A B C D E F H I J M N O S T V 

A

addError(Throwable) - Method in class org.hamcrest.junit.ErrorCollector
Adds a Throwable to the table.
apply(Statement, Description) - Method in class org.hamcrest.junit.ExpectedException
 
assertThat(T, Matcher<? super T>) - Static method in class org.hamcrest.junit.MatcherAssert
 
assertThat(String, T, Matcher<? super T>) - Static method in class org.hamcrest.junit.MatcherAssert
 
assumeThat(T, Matcher<? super T>) - Static method in class org.hamcrest.junit.MatcherAssume
Call to assume that actual satisfies the condition specified by matcher.
assumeThat(String, T, Matcher<? super T>) - Static method in class org.hamcrest.junit.MatcherAssume
Call to assume that actual satisfies the condition specified by matcher.

B

both(Matcher<? super T>) - Static method in class org.hamcrest.junit.JUnitMatchers
Deprecated.
Please use CoreMatchers.both(Matcher) instead.

C

checkMatch(String, T, Matcher<? super T>, MismatchAction) - Static method in class org.hamcrest.junit.internal.Matching
 
checkSucceeds(Callable<Object>) - Method in class org.hamcrest.junit.ErrorCollector
Adds to the table the exception, if any, thrown from callable.
checkThat(T, Matcher<T>) - Method in class org.hamcrest.junit.ErrorCollector
Adds a failure to the table if matcher does not match value.
checkThat(String, T, Matcher<T>) - Method in class org.hamcrest.junit.ErrorCollector
Adds a failure with the given reason to the table if matcher does not match value.
containsString(String) - Static method in class org.hamcrest.junit.JUnitMatchers
Deprecated.
Please use CoreMatchers.containsString(String) instead.

D

describeMismatchSafely(T, Description) - Method in class org.hamcrest.junit.internal.StacktracePrintingMatcher
 
describeTo(Description) - Method in class org.hamcrest.junit.internal.StacktracePrintingMatcher
 

E

either(Matcher<? super T>) - Static method in class org.hamcrest.junit.JUnitMatchers
Deprecated.
Please use CoreMatchers.either(Matcher) instead.
ErrorCollector - Class in org.hamcrest.junit
The ErrorCollector rule allows execution of a test to continue after the first problem is found (for example, to collect _all_ the incorrect rows in a table, and report them all at once):
ErrorCollector() - Constructor for class org.hamcrest.junit.ErrorCollector
 
everyItem(Matcher<T>) - Static method in class org.hamcrest.junit.JUnitMatchers
Deprecated.
Please use CoreMatchers.everyItem(Matcher) instead.
expect(Matcher<?>) - Method in class org.hamcrest.junit.ExpectedException
Adds matcher to the list of requirements for any thrown exception.
expect(Class<? extends Throwable>) - Method in class org.hamcrest.junit.ExpectedException
Adds to the list of requirements for any thrown exception that it should be an instance of type
expectCause(Matcher<? super Throwable>) - Method in class org.hamcrest.junit.ExpectedException
Adds matcher to the list of requirements for the cause of any thrown exception.
ExpectedException - Class in org.hamcrest.junit
The ExpectedException rule allows in-test specification of expected exception types and messages:
expectMessage(String) - Method in class org.hamcrest.junit.ExpectedException
Adds to the list of requirements for any thrown exception that it should contain string substring
expectMessage(Matcher<String>) - Method in class org.hamcrest.junit.ExpectedException
Adds matcher to the list of requirements for the message returned from any thrown exception.

F

featureValueOf(Throwable) - Method in class org.hamcrest.junit.internal.ThrowableCauseMatcher
 
featureValueOf(Throwable) - Method in class org.hamcrest.junit.internal.ThrowableMessageMatcher
 

H

handleAssertionErrors() - Method in class org.hamcrest.junit.ExpectedException
 
handleAssumptionViolatedExceptions() - Method in class org.hamcrest.junit.ExpectedException
 
hasCause(Matcher<? super Throwable>) - Static method in class org.hamcrest.junit.internal.ThrowableCauseMatcher
 
hasItem(T) - Static method in class org.hamcrest.junit.JUnitMatchers
Deprecated.
Please use CoreMatchers.hasItem(Object) instead.
hasItem(Matcher<? super T>) - Static method in class org.hamcrest.junit.JUnitMatchers
Deprecated.
Please use CoreMatchers.hasItem(Matcher) instead.
hasItems(T...) - Static method in class org.hamcrest.junit.JUnitMatchers
Deprecated.
Please use CoreMatchers.hasItems(Object...) instead.
hasItems(Matcher<? super T>...) - Static method in class org.hamcrest.junit.JUnitMatchers
Deprecated.
Please use CoreMatchers.hasItems(Matcher...) instead.
hasMessage(Matcher<? super String>) - Static method in class org.hamcrest.junit.internal.ThrowableMessageMatcher
 

I

isException(Matcher<T>) - Static method in class org.hamcrest.junit.internal.StacktracePrintingMatcher
 
isException(Matcher<T>) - Static method in class org.hamcrest.junit.JUnitMatchers
 
isThrowable(Matcher<T>) - Static method in class org.hamcrest.junit.internal.StacktracePrintingMatcher
 
isThrowable(Matcher<T>) - Static method in class org.hamcrest.junit.JUnitMatchers
 

J

JUnitMatchers - Class in org.hamcrest.junit
Convenience import class: these are useful matchers for use with the assertThat method, but they are not currently included in the basic CoreMatchers class from hamcrest.
JUnitMatchers() - Constructor for class org.hamcrest.junit.JUnitMatchers
 

M

MatcherAssert - Class in org.hamcrest.junit
 
MatcherAssert() - Constructor for class org.hamcrest.junit.MatcherAssert
 
MatcherAssume - Class in org.hamcrest.junit
A set of methods useful for stating assumptions about the conditions in which a test is meaningful.
MatcherAssume() - Constructor for class org.hamcrest.junit.MatcherAssume
 
matchesSafely(T) - Method in class org.hamcrest.junit.internal.StacktracePrintingMatcher
 
Matching - Class in org.hamcrest.junit.internal
 
Matching() - Constructor for class org.hamcrest.junit.internal.Matching
 
mismatch(String) - Method in interface org.hamcrest.junit.internal.MismatchAction
 
MismatchAction - Interface in org.hamcrest.junit.internal
 

N

none() - Static method in class org.hamcrest.junit.ExpectedException
 

O

org.hamcrest.junit - package org.hamcrest.junit
 
org.hamcrest.junit.internal - package org.hamcrest.junit.internal
 

S

StacktracePrintingMatcher<T extends java.lang.Throwable> - Class in org.hamcrest.junit.internal
A matcher that delegates to throwableMatcher and in addition appends the stacktrace of the actual Throwable in case of a mismatch.
StacktracePrintingMatcher(Matcher<T>) - Constructor for class org.hamcrest.junit.internal.StacktracePrintingMatcher
 

T

ThrowableCauseMatcher - Class in org.hamcrest.junit.internal
 
ThrowableCauseMatcher(Matcher<? super Throwable>) - Constructor for class org.hamcrest.junit.internal.ThrowableCauseMatcher
 
ThrowableMessageMatcher - Class in org.hamcrest.junit.internal
 
ThrowableMessageMatcher(Matcher<? super String>) - Constructor for class org.hamcrest.junit.internal.ThrowableMessageMatcher
 

V

verify() - Method in class org.hamcrest.junit.ErrorCollector
 
A B C D E F H I J M N O S T V