Uses of Class
org.hamcrest.BaseMatcher
Packages that use BaseMatcher
Package
Description
Matchers of Java Bean properties and their values.
Matchers of arrays and collections.
Fundamental matchers of objects and values, and composite matchers.
Matchers that perform numeric comparisons.
Matchers that inspect objects and classes.
Matchers that perform text comparisons.
Matchers of XML documents.
-
Uses of BaseMatcher in org.hamcrest
Subclasses of BaseMatcher in org.hamcrestModifier and TypeClassDescriptionclass
Utility class for writing one off matchers.class
Utility class for writing one off matchers.class
TODO(ngd): Document.class
FeatureMatcher<T,
U> Supporting class for matching a feature of an object.class
Convenient base class for Matchers that require a non-null value of a specific type and that will report why the received value has been rejected.class
Convenient base class for Matchers that require a non-null value of a specific type. -
Uses of BaseMatcher in org.hamcrest.beans
Subclasses of BaseMatcher in org.hamcrest.beansModifier and TypeClassDescriptionclass
HasProperty<T>
A Matcher that checks that an object has a JavaBean property with the specified name.class
Matcher that asserts that a JavaBean property on an argument passed to the mock object meets the provided matcher.class
-
Uses of BaseMatcher in org.hamcrest.collection
Subclasses of BaseMatcher in org.hamcrest.collectionModifier and TypeClassDescriptionclass
class
Matches if an array contains an item satisfying a nested matcher.class
IsArray<T>
Matcher for array whose elements satisfy a sequence of matchers.class
Deprecated.class
Deprecated.As of release 2.1, replaced byArrayMatching
.class
Matches if array size satisfies a nested matcher.class
Matches if collection size satisfies a nested matcher.class
Tests if collection is empty.class
Tests if collection is empty.class
IsIn<T>
class
class
class
class
class
IsMapContaining<K,
V> final class
IsMapWithSize<K,
V> Matches if map size satisfies a nested matcher. -
Uses of BaseMatcher in org.hamcrest.core
Subclasses of BaseMatcher in org.hamcrest.coreModifier and TypeClassDescriptionclass
AllOf<T>
Calculates the logical conjunction of multiple matchers.class
AnyOf<T>
Calculates the logical disjunction of multiple matchers.class
class
DescribedAs<T>
Provides a custom description to another matcher.class
Every<T>
class
Is<T>
Decorates another Matcher, retaining the behaviour but allowing tests to be slightly more expressive.class
IsAnything<T>
A matcher that always returnstrue
.class
Deprecated.As of release 2.1, replaced byIsIterableContaining
.class
IsEqual<T>
Is the value equal to another value, as tested by theObject.equals(java.lang.Object)
invokedMethod?class
Tests whether the value is an instance of a class.class
class
IsNot<T>
Calculates the logical negation of a matcher.class
IsNull<T>
Is the value null?class
IsSame<T>
Is the value the same object as another value?class
Tests if the argument is a string that contains a specific substring.class
Tests if the argument is a string that ends with a specific substring.class
class
Tests if the argument is a string that starts with a specific substring.class
-
Uses of BaseMatcher in org.hamcrest.number
Subclasses of BaseMatcher in org.hamcrest.numberModifier and TypeClassDescriptionclass
class
Is the value a number equal to a value within some range of acceptable error?final class
Is the value a number actually not a number (NaN)? -
Uses of BaseMatcher in org.hamcrest.object
Subclasses of BaseMatcher in org.hamcrest.objectModifier and TypeClassDescriptionclass
class
HasToString<T>
class
class
Tests if the value is an event announced by a specific object. -
Uses of BaseMatcher in org.hamcrest.text
Subclasses of BaseMatcher in org.hamcrest.textModifier and TypeClassDescriptionclass
final class
Matches blank Strings (and null).final class
Matches empty Strings (and null).class
Tests if a string is equal to another string, compressing any changes in whitespace.class
Tests if a string is equal to another string, regardless of the case.class
class
-
Uses of BaseMatcher in org.hamcrest.xml
Subclasses of BaseMatcher in org.hamcrest.xmlModifier and TypeClassDescriptionclass
Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.
ArrayMatching
.