Package | Description |
---|---|
org.hamcrest | |
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.object |
Matchers that inspect objects and classes.
|
org.hamcrest.text |
Matchers that perform text comparisons.
|
org.hamcrest.xml |
Matchers of XML documents.
|
Modifier and Type | Class and Description |
---|---|
class |
FeatureMatcher<T,U>
Supporting class for matching a feature of an object.
|
Modifier and Type | Class and Description |
---|---|
class |
HasPropertyWithValue<T>
Matcher that asserts that a JavaBean property on an argument passed to the
mock object meets the provided matcher.
|
Modifier and Type | Class and Description |
---|---|
class |
IsArrayWithSize<E>
Matches if array size satisfies a nested matcher.
|
class |
IsCollectionWithSize<E>
Matches if collection size satisfies a nested matcher.
|
class |
IsIterableContainingInAnyOrder<T> |
class |
IsIterableContainingInOrder<E> |
class |
IsIterableContainingInRelativeOrder<E> |
class |
IsIterableWithSize<E> |
class |
IsMapWithSize<K,V>
Matches if map size satisfies a nested matcher.
|
Modifier and Type | Field and Description |
---|---|
protected TypeSafeDiagnosingMatcher<Iterable<? extends E>> |
ArrayAsIterableMatcher.iterableMatcher |
Constructor and Description |
---|
ArrayAsIterableMatcher(TypeSafeDiagnosingMatcher<Iterable<? extends E>> iterableMatcher,
Collection<Matcher<? super E>> matchers,
String message) |
Modifier and Type | Class and Description |
---|---|
class |
CombinableMatcher<T> |
class |
Every<T> |
class |
IsCollectionContaining<T>
Deprecated.
As of release 2.1, replaced by
IsIterableContaining . |
class |
IsIterableContaining<T> |
class |
StringRegularExpression |
Modifier and Type | Class and Description |
---|---|
class |
HasEqualValues<T> |
class |
HasToString<T> |
class |
IsEventFrom
Tests if the value is an event announced by a specific object.
|
Modifier and Type | Class and Description |
---|---|
class |
CharSequenceLength |
Modifier and Type | Class and Description |
---|---|
class |
HasXPath
Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.
|
Copyright © 2020. All rights reserved.