Uses of Interface
org.hamcrest.SelfDescribing
Packages that use SelfDescribing
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 SelfDescribing in org.hamcrest
Subinterfaces of SelfDescribing in org.hamcrestClasses in org.hamcrest that implement SelfDescribingModifier and TypeClassDescriptionclass
BaseMatcher<T>
BaseClass for all Matcher implementations.class
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.Methods in org.hamcrest with parameters of type SelfDescribingModifier and TypeMethodDescriptionBaseDescription.appendDescriptionOf
(SelfDescribing value) Description.appendDescriptionOf
(SelfDescribing value) Appends the description of aSelfDescribing
value to this description.Description.NullDescription.appendDescriptionOf
(SelfDescribing value) static String
StringDescription.asString
(SelfDescribing selfDescribing) Alias forStringDescription.toString(SelfDescribing)
.static String
StringDescription.toString
(SelfDescribing selfDescribing) Return the description of aSelfDescribing
object as a String.Method parameters in org.hamcrest with type arguments of type SelfDescribingModifier and TypeMethodDescriptionBaseDescription.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) -
Uses of SelfDescribing in org.hamcrest.beans
Classes in org.hamcrest.beans that implement SelfDescribingModifier 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 SelfDescribing in org.hamcrest.collection
Classes in org.hamcrest.collection that implement SelfDescribingModifier 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 SelfDescribing in org.hamcrest.core
Classes in org.hamcrest.core that implement SelfDescribingModifier 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 SelfDescribing in org.hamcrest.internal
Classes in org.hamcrest.internal that implement SelfDescribingMethods in org.hamcrest.internal that return SelfDescribing -
Uses of SelfDescribing in org.hamcrest.number
Classes in org.hamcrest.number that implement SelfDescribingModifier 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 SelfDescribing in org.hamcrest.object
Classes in org.hamcrest.object that implement SelfDescribingModifier and TypeClassDescriptionclass
class
HasToString<T>
class
class
Tests if the value is an event announced by a specific object. -
Uses of SelfDescribing in org.hamcrest.text
Classes in org.hamcrest.text that implement SelfDescribingModifier 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 SelfDescribing in org.hamcrest.xml
Classes in org.hamcrest.xml that implement SelfDescribingModifier and TypeClassDescriptionclass
Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.
ArrayMatching
.