|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Matcher | |
|---|---|
| org.hamcrest | The stable API defining Matcher and its associated interfaces and classes. |
| org.hamcrest.core | Fundamental matchers of objects and values, and composite matchers. |
| Uses of Matcher in org.hamcrest |
|---|
| Classes in org.hamcrest that implement Matcher | |
|---|---|
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 that return Matcher | ||
|---|---|---|
static
|
CoreMatchers.allOf(java.lang.Iterable<Matcher<? super T>> matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T>... matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.any(java.lang.Class<T> type)
Is the value an instance of a particular type? |
|
static Matcher<java.lang.Object> |
CoreMatchers.anything()
This matcher always evaluates to true. |
|
static Matcher<java.lang.Object> |
CoreMatchers.anything(java.lang.String description)
This matcher always evaluates to true. |
|
static Matcher<java.lang.String> |
CoreMatchers.containsString(java.lang.String substring)
|
|
static
|
CoreMatchers.describedAs(java.lang.String description,
Matcher<T> matcher,
java.lang.Object... values)
Wraps an existing matcher and overrides the description when it fails. |
|
static Matcher<java.lang.String> |
CoreMatchers.endsWith(java.lang.String substring)
|
|
static
|
CoreMatchers.equalTo(T operand)
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod? |
|
static
|
CoreMatchers.everyItem(Matcher<U> itemMatcher)
|
|
static
|
CoreMatchers.hasItem(Matcher<? super T> elementMatcher)
|
|
static
|
CoreMatchers.hasItem(T element)
|
|
static
|
CoreMatchers.hasItems(Matcher<? super T>... elementMatchers)
|
|
static
|
CoreMatchers.hasItems(T... elements)
|
|
static
|
CoreMatchers.instanceOf(java.lang.Class<?> type)
Is the value an instance of a particular type? |
|
static
|
CoreMatchers.is(java.lang.Class<T> type)
Deprecated. use isA(Class |
|
static
|
CoreMatchers.is(Matcher<T> matcher)
Decorates another Matcher, retaining the behavior but allowing tests to be slightly more expressive. |
|
static
|
CoreMatchers.is(T value)
This is a shortcut to the frequently used is(equalTo(x)). |
|
static
|
CoreMatchers.isA(java.lang.Class<T> type)
|
|
static
|
CoreMatchers.not(Matcher<T> matcher)
Inverts the rule. |
|
static
|
CoreMatchers.not(T value)
This is a shortcut to the frequently used not(equalTo(x)). |
|
static Matcher<java.lang.Object> |
CoreMatchers.notNullValue()
Matches if value is not null. |
|
static
|
CoreMatchers.notNullValue(java.lang.Class<T> type)
Matches if value is not null. |
|
static Matcher<java.lang.Object> |
CoreMatchers.nullValue()
Matches if value is null. |
|
static
|
CoreMatchers.nullValue(java.lang.Class<T> type)
Matches if value is null. |
|
static
|
CoreMatchers.sameInstance(T object)
Creates a new instance of IsSame |
|
static Matcher<java.lang.String> |
CoreMatchers.startsWith(java.lang.String substring)
|
|
| Methods in org.hamcrest with parameters of type Matcher | ||
|---|---|---|
static
|
CoreMatchers.allOf(Matcher<? super T>... matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<? super T>... matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
MatcherAssert.assertThat(java.lang.String reason,
T actual,
Matcher<? super T> matcher)
|
|
static
|
MatcherAssert.assertThat(T actual,
Matcher<? super T> matcher)
|
|
static
|
CoreMatchers.both(Matcher<? super LHS> matcher)
This is useful for fluently combining matchers that must both pass. |
|
static
|
CoreMatchers.describedAs(java.lang.String description,
Matcher<T> matcher,
java.lang.Object... values)
Wraps an existing matcher and overrides the description when it fails. |
|
static
|
CoreMatchers.either(Matcher<? super LHS> matcher)
This is useful for fluently combining matchers where either may pass, for example: assertThat(string, both(containsString("a")).and(containsString("b"))); |
|
static
|
CoreMatchers.everyItem(Matcher<U> itemMatcher)
|
|
static
|
CoreMatchers.hasItem(Matcher<? super T> elementMatcher)
|
|
static
|
CoreMatchers.hasItems(Matcher<? super T>... elementMatchers)
|
|
static
|
CoreMatchers.is(Matcher<T> matcher)
Decorates another Matcher, retaining the behavior but allowing tests to be slightly more expressive. |
|
static
|
CoreMatchers.not(Matcher<T> matcher)
Inverts the rule. |
|
| Method parameters in org.hamcrest with type arguments of type Matcher | ||
|---|---|---|
static
|
CoreMatchers.allOf(java.lang.Iterable<Matcher<? super T>> matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
CoreMatchers.anyOf(java.lang.Iterable<Matcher<? super T>> matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
| Constructors in org.hamcrest with parameters of type Matcher | |
|---|---|
FeatureMatcher(Matcher<? super U> subMatcher,
java.lang.String featureDescription,
java.lang.String featureName)
Constructor |
|
| Uses of Matcher in org.hamcrest.core |
|---|
| Classes in org.hamcrest.core that implement Matcher | |
|---|---|
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 behavior but allowing tests to be slightly more expressive. |
class |
IsAnything<T>
A matcher that always returns true. |
class |
IsCollectionContaining<T>
|
class |
IsEqual<T>
Is the value equal to another value, as tested by the Object.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
|
| Methods in org.hamcrest.core that return Matcher | ||
|---|---|---|
static
|
AllOf.allOf(java.lang.Iterable<Matcher<? super T>> matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T>... matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
IsInstanceOf.any(java.lang.Class<T> type)
Is the value an instance of a particular type? |
|
static Matcher<java.lang.Object> |
IsAnything.anything()
This matcher always evaluates to true. |
|
static Matcher<java.lang.Object> |
IsAnything.anything(java.lang.String description)
This matcher always evaluates to true. |
|
static Matcher<java.lang.String> |
StringContains.containsString(java.lang.String substring)
|
|
static
|
DescribedAs.describedAs(java.lang.String description,
Matcher<T> matcher,
java.lang.Object... values)
Wraps an existing matcher and overrides the description when it fails. |
|
static Matcher<java.lang.String> |
StringEndsWith.endsWith(java.lang.String substring)
|
|
static
|
IsEqual.equalTo(T operand)
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod? |
|
static
|
Every.everyItem(Matcher<U> itemMatcher)
|
|
static
|
IsCollectionContaining.hasItem(Matcher<? super T> elementMatcher)
|
|
static
|
IsCollectionContaining.hasItem(T element)
|
|
static
|
IsCollectionContaining.hasItems(Matcher<? super T>... elementMatchers)
|
|
static
|
IsCollectionContaining.hasItems(T... elements)
|
|
static
|
IsInstanceOf.instanceOf(java.lang.Class<?> type)
Is the value an instance of a particular type? |
|
static
|
Is.is(java.lang.Class<T> type)
Deprecated. use isA(Class |
|
static
|
Is.is(Matcher<T> matcher)
Decorates another Matcher, retaining the behavior but allowing tests to be slightly more expressive. |
|
static
|
Is.is(T value)
This is a shortcut to the frequently used is(equalTo(x)). |
|
static
|
Is.isA(java.lang.Class<T> type)
Deprecated. |
|
static
|
IsNot.not(Matcher<T> matcher)
Inverts the rule. |
|
static
|
IsNot.not(T value)
This is a shortcut to the frequently used not(equalTo(x)). |
|
static Matcher<java.lang.Object> |
IsNull.notNullValue()
Matches if value is not null. |
|
static
|
IsNull.notNullValue(java.lang.Class<T> type)
Matches if value is not null. |
|
static Matcher<java.lang.Object> |
IsNull.nullValue()
Matches if value is null. |
|
static
|
IsNull.nullValue(java.lang.Class<T> type)
Matches if value is null. |
|
static
|
IsSame.sameInstance(T object)
Creates a new instance of IsSame |
|
static Matcher<java.lang.String> |
StringStartsWith.startsWith(java.lang.String substring)
|
|
| Methods in org.hamcrest.core with parameters of type Matcher | ||
|---|---|---|
static
|
AllOf.allOf(Matcher<? super T>... matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
CombinableMatcher<T> |
CombinableMatcher.and(Matcher<? super T> other)
|
|
static
|
AnyOf.anyOf(Matcher<? super T>... matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
CombinableMatcher.both(Matcher<? super LHS> matcher)
This is useful for fluently combining matchers that must both pass. |
|
static
|
DescribedAs.describedAs(java.lang.String description,
Matcher<T> matcher,
java.lang.Object... values)
Wraps an existing matcher and overrides the description when it fails. |
|
static
|
CombinableMatcher.either(Matcher<? super LHS> matcher)
This is useful for fluently combining matchers where either may pass, for example: assertThat(string, both(containsString("a")).and(containsString("b"))); |
|
static
|
Every.everyItem(Matcher<U> itemMatcher)
|
|
static
|
IsCollectionContaining.hasItem(Matcher<? super T> elementMatcher)
|
|
static
|
IsCollectionContaining.hasItems(Matcher<? super T>... elementMatchers)
|
|
static
|
Is.is(Matcher<T> matcher)
Decorates another Matcher, retaining the behavior but allowing tests to be slightly more expressive. |
|
static
|
IsNot.not(Matcher<T> matcher)
Inverts the rule. |
|
CombinableMatcher<T> |
CombinableMatcher.or(Matcher<? super T> other)
|
|
| Method parameters in org.hamcrest.core with type arguments of type Matcher | ||
|---|---|---|
static
|
AllOf.allOf(java.lang.Iterable<Matcher<? super T>> matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(java.lang.Iterable<Matcher<? super T>> matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
| Constructors in org.hamcrest.core with parameters of type Matcher | |
|---|---|
CombinableMatcher(Matcher<? super T> matcher)
|
|
DescribedAs(java.lang.String descriptionTemplate,
Matcher<T> matcher,
java.lang.Object[] values)
|
|
Every(Matcher<? super T> matcher)
|
|
Is(Matcher<T> matcher)
|
|
IsCollectionContaining(Matcher<? super T> elementMatcher)
|
|
IsNot(Matcher<T> matcher)
|
|
| Constructor parameters in org.hamcrest.core with type arguments of type Matcher | |
|---|---|
AllOf(java.lang.Iterable<Matcher<? super T>> matchers)
|
|
AnyOf(java.lang.Iterable<Matcher<? super T>> matchers)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||