All Classes
-
All Classes Interface Summary Class Summary Annotation Types Summary Class Description AllOf<T> Calculates the logical conjunction of multiple matchers.AnyOf<T> Calculates the logical disjunction of multiple matchers.ArrayIterator BaseDescription ADescription
that is stored as a string.BaseMatcher<T> BaseClass for all Matcher implementations.BigDecimalCloseTo CombinableMatcher<T> CombinableMatcher.CombinableBothMatcher<X> CombinableMatcher.CombinableEitherMatcher<X> Condition<T> A Condition implements part of a multi-step match.Condition.Step<I,O> CoreMatchers CustomMatcher<T> Utility class for writing one off matchers.CustomTypeSafeMatcher<T> Utility class for writing one off matchers.DescribedAs<T> Provides a custom description to another matcher.Description A description of a Matcher.Description.NullDescription DiagnosingMatcher<T> TODO(ngd): Document.EasyMock2Adapter An adapter allowing a HamcrestMatcher
to act as an EasyMockIArgumentMatcher
.EasyMock2Matchers Every<T> Factory Marks a Hamcrest static factory method so tools recognise them.FeatureMatcher<T,U> Supporting class for matching a feature of an object.HasProperty<T> A Matcher that checks that an object has a JavaBean property with the specified name.HasPropertyWithValue<T> Matcher that asserts that a JavaBean property on an argument passed to the mock object meets the provided matcher.HasToString<T> HasXPath Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.Is<T> Decorates another Matcher, retaining the behaviour but allowing tests to be slightly more expressive.IsAnything<T> A matcher that always returnstrue
.IsArray<T> Matcher for array whose elements satisfy a sequence of matchers.IsArrayContaining<T> Matches if an array contains an item satisfying a nested matcher.IsArrayContainingInAnyOrder<E> IsArrayContainingInOrder<E> IsArrayWithSize<E> Matches if array size satisfies a nested matcher.IsCloseTo Is the value a number equal to a value within some range of acceptable error?IsCollectionContaining<T> IsCollectionWithSize<E> Matches if collection size satisfies a nested matcher.IsCompatibleType<T> IsEmptyCollection<E> Tests if collection is empty.IsEmptyIterable<E> Tests if collection is empty.IsEmptyString Matches empty Strings (and null).IsEqual<T> Is the value equal to another value, as tested by theObject.equals(java.lang.Object)
invokedMethod?IsEqualIgnoringCase Tests if a string is equal to another string, regardless of the case.IsEqualIgnoringWhiteSpace Tests if a string is equal to another string, ignoring any changes in whitespace.IsEventFrom Tests if the value is an event announced by a specific object.IsIn<T> IsInstanceOf Tests whether the value is an instance of a class.IsIterableContainingInAnyOrder<T> IsIterableContainingInOrder<E> IsIterableWithSize<E> IsMapContaining<K,V> 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?JavaLangMatcherAssert Integration method for use with Java'sassert
keyword.Matcher<T> A matcher over acceptable values.MatcherAssert Matchers OrderingComparison<T extends java.lang.Comparable<T>> PropertyUtil Utility class for accessing properties on JavaBean objects.ReflectiveTypeFinder SamePropertyValuesAs<T> SamePropertyValuesAs.PropertyMatcher SelfDescribing The ability of an object to describe itself.SelfDescribingValue<T> SelfDescribingValueIterator<T> StringContains Tests if the argument is a string that contains a substring.StringContainsInOrder StringDescription ADescription
that is stored as a string.StringEndsWith Tests if the argument is a string that contains a substring.StringStartsWith Tests if the argument is a string that contains a substring.SubstringMatcher TypeSafeDiagnosingMatcher<T> 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.TypeSafeMatcher<T> Convenient base class for Matchers that require a non-null value of a specific type.