Package | Description |
---|---|
org.hamcrest |
The stable API defining Matcher and its associated interfaces and classes.
|
org.hamcrest.beans |
Matchers of Java Bean properties and their values.
|
org.hamcrest.collection |
Matchers of arrays and collections.
|
org.hamcrest.core |
Fundamental matchers of objects and values, and composite matchers.
|
org.hamcrest.number |
Matchers that perform numeric comparisons.
|
org.hamcrest.object |
Matchers that inspect objects and classes.
|
org.hamcrest.text |
Matchers that perform text comparisons.
|
Modifier and Type | Class | Description |
---|---|---|
class |
CustomTypeSafeMatcher<T> |
Utility class for writing one off matchers.
|
Modifier and Type | Class | Description |
---|---|---|
class |
HasProperty<T> |
A Matcher that checks that an object has a JavaBean property
with the specified name.
|
Modifier and Type | Class | Description |
---|---|---|
class |
IsArray<T> |
Matcher for array whose elements satisfy a sequence of matchers.
|
class |
IsArrayContaining<T> |
Matches if an array contains an item satisfying a nested matcher.
|
class |
IsArrayContainingInAnyOrder<E> |
|
class |
IsArrayContainingInOrder<E> |
|
class |
IsEmptyCollection<E> |
Tests if collection is empty.
|
class |
IsEmptyIterable<E> |
Tests if collection is empty.
|
class |
IsMapContaining<K,V> |
Modifier and Type | Class | Description |
---|---|---|
class |
StringContains |
Tests if the argument is a string that contains a substring.
|
class |
StringEndsWith |
Tests if the argument is a string that contains a substring.
|
class |
StringStartsWith |
Tests if the argument is a string that contains a substring.
|
class |
SubstringMatcher |
Modifier and Type | Class | Description |
---|---|---|
class |
BigDecimalCloseTo |
|
class |
IsCloseTo |
Is the value a number equal to a value within some range of
acceptable error?
|
class |
OrderingComparison<T extends java.lang.Comparable<T>> |
Modifier and Type | Class | Description |
---|---|---|
class |
IsCompatibleType<T> |
Modifier and Type | Class | Description |
---|---|---|
class |
IsEqualIgnoringCase |
Tests if a string is equal to another string, regardless of the case.
|
class |
IsEqualIgnoringWhiteSpace |
Tests if a string is equal to another string, ignoring any changes in whitespace.
|
class |
StringContainsInOrder |