Uses of Interface
org.hamcrest.Description
Packages that use Description
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 Description in org.hamcrest
Classes in org.hamcrest that implement DescriptionModifier and TypeClassDescriptionclass
ADescription
that is stored as a string.static final class
class
ADescription
that is stored as a string.Fields in org.hamcrest declared as DescriptionModifier and TypeFieldDescriptionstatic final Description
Description.NONE
A description that consumes input but does nothing.Methods in org.hamcrest that return DescriptionModifier and TypeMethodDescriptionBaseDescription.appendDescriptionOf
(SelfDescribing value) Description.appendDescriptionOf
(SelfDescribing value) Appends the description of aSelfDescribing
value to this description.Description.NullDescription.appendDescriptionOf
(SelfDescribing value) BaseDescription.appendList
(String start, String separator, String end, Iterable<? extends SelfDescribing> values) Description.appendList
(String start, String separator, String end, Iterable<? extends SelfDescribing> values) Appends a list ofSelfDescribing
objects to the description.Description.NullDescription.appendList
(String start, String separator, String end, Iterable<? extends SelfDescribing> values) BaseDescription.appendText
(String text) Description.appendText
(String text) Appends some plain text to the description.Description.NullDescription.appendText
(String text) BaseDescription.appendValue
(Object value) Description.appendValue
(Object value) Appends an arbitrary value to the description.Description.NullDescription.appendValue
(Object value) <T> Description
BaseDescription.appendValueList
(String start, String separator, String end, Iterable<T> values) final <T> Description
BaseDescription.appendValueList
(String start, String separator, String end, T... values) <T> Description
Description.appendValueList
(String start, String separator, String end, Iterable<T> values) Appends a list of values to the description.<T> Description
Description.appendValueList
(String start, String separator, String end, T... values) Appends a list of values to the description.<T> Description
Description.NullDescription.appendValueList
(String start, String separator, String end, Iterable<T> values) <T> Description
Description.NullDescription.appendValueList
(String start, String separator, String end, T... values) Methods in org.hamcrest with parameters of type DescriptionModifier and TypeMethodDescriptionCondition.Step.apply
(I value, Description mismatch) void
BaseMatcher.describeMismatch
(Object item, Description description) final void
DiagnosingMatcher.describeMismatch
(Object item, Description mismatchDescription) void
Matcher.describeMismatch
(Object actual, Description mismatchDescription) Generate a description of why the matcher has not accepted the item.final void
TypeSafeDiagnosingMatcher.describeMismatch
(Object item, Description mismatchDescription) final void
TypeSafeMatcher.describeMismatch
(Object item, Description description) protected void
TypeSafeMatcher.describeMismatchSafely
(T item, Description mismatchDescription) Subclasses should override this.final void
CustomMatcher.describeTo
(Description description) final void
CustomTypeSafeMatcher.describeTo
(Description description) final void
FeatureMatcher.describeTo
(Description description) void
SelfDescribing.describeTo
(Description description) Generates a description of the object.protected static boolean
BaseMatcher.isNotNull
(Object actual, Description mismatch) Useful null-check method.static <T> Condition
<T> Condition.matched
(T theValue, Description mismatch) protected abstract boolean
DiagnosingMatcher.matches
(Object item, Description mismatchDescription) protected boolean
FeatureMatcher.matchesSafely
(T actual, Description mismatch) protected abstract boolean
TypeSafeDiagnosingMatcher.matchesSafely
(T item, Description mismatchDescription) Subclasses should implement this. -
Uses of Description in org.hamcrest.beans
Methods in org.hamcrest.beans with parameters of type DescriptionModifier and TypeMethodDescriptionvoid
HasProperty.describeMismatchSafely
(T item, Description mismatchDescription) void
HasProperty.describeTo
(Description description) void
HasPropertyWithValue.describeTo
(Description description) void
SamePropertyValuesAs.describeTo
(Description description) protected boolean
SamePropertyValuesAs.matches
(Object actual, Description mismatch) boolean
HasPropertyWithValue.matchesSafely
(T bean, Description mismatch) -
Uses of Description in org.hamcrest.collection
Methods in org.hamcrest.collection with parameters of type DescriptionModifier and TypeMethodDescriptionvoid
ArrayAsIterableMatcher.describeMismatchSafely
(E[] item, Description mismatchDescription) void
HasItemInArray.describeMismatchSafely
(T[] actual, Description mismatchDescription) void
IsArray.describeMismatchSafely
(T[] actual, Description mismatchDescription) void
IsArrayContainingInAnyOrder.describeMismatchSafely
(E[] item, Description mismatchDescription) Deprecated.void
IsArrayContainingInOrder.describeMismatchSafely
(E[] item, Description mismatchDescription) Deprecated.void
IsEmptyCollection.describeMismatchSafely
(Collection<? extends E> item, Description mismatchDescription) void
IsEmptyIterable.describeMismatchSafely
(Iterable<? extends E> iter, Description mismatchDescription) void
IsMapContaining.describeMismatchSafely
(Map<? extends K, ? extends V> map, Description mismatchDescription) void
ArrayAsIterableMatcher.describeTo
(Description description) void
HasItemInArray.describeTo
(Description description) void
IsArray.describeTo
(Description description) void
IsArrayContainingInAnyOrder.describeTo
(Description description) Deprecated.void
IsArrayContainingInOrder.describeTo
(Description description) Deprecated.void
IsEmptyCollection.describeTo
(Description description) void
IsEmptyIterable.describeTo
(Description description) void
IsIn.describeTo
(Description buffer) void
IsIterableContainingInAnyOrder.describeTo
(Description description) void
IsIterableContainingInOrder.describeTo
(Description description) void
IsIterableContainingInRelativeOrder.describeTo
(Description description) void
IsMapContaining.describeTo
(Description description) protected boolean
IsIterableContainingInAnyOrder.matchesSafely
(Iterable<? extends T> items, Description mismatchDescription) protected boolean
IsIterableContainingInOrder.matchesSafely
(Iterable<? extends E> iterable, Description mismatchDescription) protected boolean
IsIterableContainingInRelativeOrder.matchesSafely
(Iterable<? extends E> iterable, Description mismatchDescription) -
Uses of Description in org.hamcrest.core
Methods in org.hamcrest.core with parameters of type DescriptionModifier and TypeMethodDescriptionvoid
DescribedAs.describeMismatch
(Object item, Description description) void
Is.describeMismatch
(Object item, Description mismatchDescription) void
SubstringMatcher.describeMismatchSafely
(String item, Description mismatchDescription) void
AllOf.describeTo
(Description description) void
AnyOf.describeTo
(Description description) void
CombinableMatcher.describeTo
(Description description) void
DescribedAs.describeTo
(Description description) void
Every.describeTo
(Description description) void
Is.describeTo
(Description description) void
IsAnything.describeTo
(Description description) void
IsCollectionContaining.describeTo
(Description description) Deprecated.void
IsEqual.describeTo
(Description description) void
IsInstanceOf.describeTo
(Description description) void
IsIterableContaining.describeTo
(Description description) void
IsNot.describeTo
(Description description) void
IsNull.describeTo
(Description description) void
IsSame.describeTo
(Description description) void
StringRegularExpression.describeTo
(Description description) void
SubstringMatcher.describeTo
(Description description) boolean
AllOf.matches
(Object o, Description mismatch) protected boolean
IsInstanceOf.matches
(Object item, Description mismatch) protected boolean
CombinableMatcher.matchesSafely
(T item, Description mismatch) boolean
Every.matchesSafely
(Iterable<? extends T> collection, Description mismatchDescription) protected boolean
IsCollectionContaining.matchesSafely
(Iterable<? super T> collection, Description mismatchDescription) Deprecated.protected boolean
IsIterableContaining.matchesSafely
(Iterable<? super T> collection, Description mismatchDescription) protected boolean
StringRegularExpression.matchesSafely
(String actual, Description mismatchDescription) -
Uses of Description in org.hamcrest.internal
Methods in org.hamcrest.internal with parameters of type Description -
Uses of Description in org.hamcrest.number
Methods in org.hamcrest.number with parameters of type DescriptionModifier and TypeMethodDescriptionvoid
BigDecimalCloseTo.describeMismatchSafely
(BigDecimal item, Description mismatchDescription) void
IsCloseTo.describeMismatchSafely
(Double item, Description mismatchDescription) void
IsNaN.describeMismatchSafely
(Double item, Description mismatchDescription) void
BigDecimalCloseTo.describeTo
(Description description) void
IsCloseTo.describeTo
(Description description) void
IsNaN.describeTo
(Description description) -
Uses of Description in org.hamcrest.object
Methods in org.hamcrest.object with parameters of type DescriptionModifier and TypeMethodDescriptionvoid
IsCompatibleType.describeMismatchSafely
(Class<?> cls, Description mismatchDescription) void
HasEqualValues.describeTo
(Description description) void
IsCompatibleType.describeTo
(Description description) void
IsEventFrom.describeTo
(Description description) protected boolean
HasEqualValues.matchesSafely
(T item, Description mismatch) boolean
IsEventFrom.matchesSafely
(EventObject item, Description mismatchDescription) -
Uses of Description in org.hamcrest.text
Methods in org.hamcrest.text with parameters of type DescriptionModifier and TypeMethodDescriptionvoid
IsEqualCompressingWhiteSpace.describeMismatchSafely
(String item, Description mismatchDescription) void
IsEqualIgnoringCase.describeMismatchSafely
(String item, Description mismatchDescription) void
StringContainsInOrder.describeMismatchSafely
(String item, Description mismatchDescription) void
IsBlankString.describeTo
(Description description) void
IsEmptyString.describeTo
(Description description) void
IsEqualCompressingWhiteSpace.describeTo
(Description description) void
IsEqualIgnoringCase.describeTo
(Description description) void
MatchesPattern.describeTo
(Description description) void
StringContainsInOrder.describeTo
(Description description) -
Uses of Description in org.hamcrest.xml
Methods in org.hamcrest.xml with parameters of type DescriptionModifier and TypeMethodDescriptionvoid
HasXPath.describeTo
(Description description) boolean
HasXPath.matchesSafely
(Node item, Description mismatch)