Package org.hamcrest.core
Fundamental matchers of objects and values, and composite matchers.
-
Class Summary Class Description AllOf<T> Calculates the logical conjunction of multiple matchers.AnyOf<T> Calculates the logical disjunction of multiple matchers.CombinableMatcher<T> CombinableMatcher.CombinableBothMatcher<X> CombinableMatcher.CombinableEitherMatcher<X> DescribedAs<T> Provides a custom description to another matcher.Every<T> Is<T> Decorates another Matcher, retaining the behaviour but allowing tests to be slightly more expressive.IsAnything<T> A matcher that always returnstrue
.IsCollectionContaining<T> Deprecated. As of release 2.1, replaced byIsIterableContaining
.IsEqual<T> Is the value equal to another value, as tested by theObject.equals(java.lang.Object)
invokedMethod?IsInstanceOf Tests whether the value is an instance of a class.IsIterableContaining<T> IsNot<T> Calculates the logical negation of a matcher.IsNull<T> Is the value null?IsSame<T> Is the value the same object as another value?ShortcutCombination<T> StringContains Tests if the argument is a string that contains a specific substring.StringEndsWith Tests if the argument is a string that ends with a specific substring.StringRegularExpression StringStartsWith Tests if the argument is a string that starts with a specific substring.SubstringMatcher