Uses of Interface
org.hamcrest.SelfDescribing
-
Packages that use SelfDescribing Package Description org.hamcrest The stable API defining Matcher and its associated interfaces and classes.org.hamcrest.beans Matchers of Java Bean properties and their values.org.hamcrest.collection Matchers of arrays and collections.org.hamcrest.core Fundamental matchers of objects and values, and composite matchers.org.hamcrest.internal org.hamcrest.number Matchers that perform numeric comparisons.org.hamcrest.object Matchers that inspect objects and classes.org.hamcrest.text Matchers that perform text comparisons.org.hamcrest.xml Matchers of XML documents. -
-
Uses of SelfDescribing in org.hamcrest
Subinterfaces of SelfDescribing in org.hamcrest Modifier and Type Interface Description interface
Matcher<T>
A matcher over acceptable values.Classes in org.hamcrest that implement SelfDescribing Modifier and Type Class Description class
BaseMatcher<T>
BaseClass for all Matcher implementations.class
CustomMatcher<T>
Utility class for writing one off matchers.class
CustomTypeSafeMatcher<T>
Utility class for writing one off matchers.class
DiagnosingMatcher<T>
TODO(ngd): Document.class
FeatureMatcher<T,U>
Supporting class for matching a feature of an object.class
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.class
TypeSafeMatcher<T>
Convenient base class for Matchers that require a non-null value of a specific type.Methods in org.hamcrest with parameters of type SelfDescribing Modifier and Type Method Description Description
BaseDescription. appendDescriptionOf(SelfDescribing value)
Description
Description. appendDescriptionOf(SelfDescribing value)
Appends the description of aSelfDescribing
value to this description.Description
Description.NullDescription. appendDescriptionOf(SelfDescribing value)
static java.lang.String
StringDescription. asString(SelfDescribing selfDescribing)
Alias forStringDescription.toString(SelfDescribing)
.static java.lang.String
StringDescription. toString(SelfDescribing selfDescribing)
Return the description of aSelfDescribing
object as a String.Method parameters in org.hamcrest with type arguments of type SelfDescribing Modifier and Type Method Description Description
BaseDescription. appendList(java.lang.String start, java.lang.String separator, java.lang.String end, java.lang.Iterable<? extends SelfDescribing> values)
Description
Description. appendList(java.lang.String start, java.lang.String separator, java.lang.String end, java.lang.Iterable<? extends SelfDescribing> values)
Appends a list ofSelfDescribing
objects to the description.Description
Description.NullDescription. appendList(java.lang.String start, java.lang.String separator, java.lang.String end, java.lang.Iterable<? extends SelfDescribing> values)
-
Uses of SelfDescribing in org.hamcrest.beans
Classes in org.hamcrest.beans that implement SelfDescribing Modifier and Type Class Description class
HasProperty<T>
A Matcher that checks that an object has a JavaBean property with the specified name.class
HasPropertyWithValue<T>
Matcher that asserts that a JavaBean property on an argument passed to the mock object meets the provided matcher.class
SamePropertyValuesAs<T>
static class
SamePropertyValuesAs.PropertyMatcher
-
Uses of SelfDescribing in org.hamcrest.collection
Classes in org.hamcrest.collection that implement SelfDescribing Modifier and Type Class Description class
IsArray<T>
Matcher for array whose elements satisfy a sequence of matchers.class
IsArrayContaining<T>
Matches if an array contains an item satisfying a nested matcher.class
IsArrayContainingInAnyOrder<E>
class
IsArrayContainingInOrder<E>
class
IsArrayWithSize<E>
Matches if array size satisfies a nested matcher.class
IsCollectionWithSize<E>
Matches if collection size satisfies a nested matcher.class
IsEmptyCollection<E>
Tests if collection is empty.class
IsEmptyIterable<E>
Tests if collection is empty.class
IsIn<T>
class
IsIterableContainingInAnyOrder<T>
class
IsIterableContainingInOrder<E>
class
IsIterableWithSize<E>
class
IsMapContaining<K,V>
-
Uses of SelfDescribing in org.hamcrest.core
Classes in org.hamcrest.core that implement SelfDescribing Modifier and Type Class Description class
AllOf<T>
Calculates the logical conjunction of multiple matchers.class
AnyOf<T>
Calculates the logical disjunction of multiple matchers.class
CombinableMatcher<T>
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
IsCollectionContaining<T>
class
IsEqual<T>
Is the value equal to another value, as tested by theObject.equals(java.lang.Object)
invokedMethod?class
IsInstanceOf
Tests whether the value is an instance of a 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
StringContains
Tests if the argument is a string that contains a substring.class
StringEndsWith
Tests if the argument is a string that contains a substring.class
StringStartsWith
Tests if the argument is a string that contains a substring.class
SubstringMatcher
-
Uses of SelfDescribing in org.hamcrest.internal
Classes in org.hamcrest.internal that implement SelfDescribing Modifier and Type Class Description class
SelfDescribingValue<T>
Methods in org.hamcrest.internal that return SelfDescribing Modifier and Type Method Description SelfDescribing
SelfDescribingValueIterator. next()
-
Uses of SelfDescribing in org.hamcrest.number
Classes in org.hamcrest.number that implement SelfDescribing Modifier and Type Class Description class
BigDecimalCloseTo
class
IsCloseTo
Is the value a number equal to a value within some range of acceptable error?class
OrderingComparison<T extends java.lang.Comparable<T>>
-
Uses of SelfDescribing in org.hamcrest.object
Classes in org.hamcrest.object that implement SelfDescribing Modifier and Type Class Description class
HasToString<T>
class
IsCompatibleType<T>
class
IsEventFrom
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 SelfDescribing Modifier and Type Class Description class
IsEmptyString
Matches empty Strings (and null).class
IsEqualIgnoringCase
Tests if a string is equal to another string, regardless of the case.class
IsEqualIgnoringWhiteSpace
Tests if a string is equal to another string, ignoring any changes in whitespace.class
StringContainsInOrder
-
Uses of SelfDescribing in org.hamcrest.xml
Classes in org.hamcrest.xml that implement SelfDescribing Modifier and Type Class Description class
HasXPath
Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.
-