Uses of Interface
org.hamcrest.Matcher

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
<T> Matcher<T>
CoreMatchers.allOf(java.lang.Iterable<Matcher<? super T>> matchers)
          Evaluates to true only if ALL of the passed in matchers evaluate to true.
static
<T> Matcher<T>
CoreMatchers.allOf(Matcher<? super T>... matchers)
          Evaluates to true only if ALL of the passed in matchers evaluate to true.
static
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
CoreMatchers.equalTo(T operand)
          Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?
static
<U> Matcher<java.lang.Iterable<U>>
CoreMatchers.everyItem(Matcher<U> itemMatcher)
           
static
<T> Matcher<java.lang.Iterable<? super T>>
CoreMatchers.hasItem(Matcher<? super T> elementMatcher)
           
static
<T> Matcher<java.lang.Iterable<? super T>>
CoreMatchers.hasItem(T element)
           
static
<T> Matcher<java.lang.Iterable<T>>
CoreMatchers.hasItems(Matcher<? super T>... elementMatchers)
           
static
<T> Matcher<java.lang.Iterable<T>>
CoreMatchers.hasItems(T... elements)
           
static
<T> Matcher<T>
CoreMatchers.instanceOf(java.lang.Class<?> type)
          Is the value an instance of a particular type?
static
<T> Matcher<T>
CoreMatchers.is(java.lang.Class<T> type)
          Deprecated. use isA(Class type) instead.
static
<T> Matcher<T>
CoreMatchers.is(Matcher<T> matcher)
          Decorates another Matcher, retaining the behavior but allowing tests to be slightly more expressive.
static
<T> Matcher<T>
CoreMatchers.is(T value)
          This is a shortcut to the frequently used is(equalTo(x)).
static
<T> Matcher<T>
CoreMatchers.isA(java.lang.Class<T> type)
           
static
<T> Matcher<T>
CoreMatchers.not(Matcher<T> matcher)
          Inverts the rule.
static
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
CoreMatchers.nullValue(java.lang.Class<T> type)
          Matches if value is null.
static
<T> Matcher<T>
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
<T> Matcher<T>
CoreMatchers.allOf(Matcher<? super T>... matchers)
          Evaluates to true only if ALL of the passed in matchers evaluate to true.
static
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> AnyOf<T>
CoreMatchers.anyOf(Matcher<? super T>... matchers)
          Evaluates to true if ANY of the passed in matchers evaluate to true.
static
<T> AnyOf<T>
CoreMatchers.anyOf(Matcher<T> first, Matcher<? super T> second)
          Evaluates to true if ANY of the passed in matchers evaluate to true.
static
<T> AnyOf<T>
CoreMatchers.anyOf(Matcher<T> first, Matcher<? super T> second)
          Evaluates to true if ANY of the passed in matchers evaluate to true.
static
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> void
MatcherAssert.assertThat(java.lang.String reason, T actual, Matcher<? super T> matcher)
           
static
<T> void
MatcherAssert.assertThat(T actual, Matcher<? super T> matcher)
           
static
<LHS> CombinableMatcher<LHS>
CoreMatchers.both(Matcher<? super LHS> matcher)
          This is useful for fluently combining matchers that must both pass.
static
<T> Matcher<T>
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
<LHS> CombinableMatcher<LHS>
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
<U> Matcher<java.lang.Iterable<U>>
CoreMatchers.everyItem(Matcher<U> itemMatcher)
           
static
<T> Matcher<java.lang.Iterable<? super T>>
CoreMatchers.hasItem(Matcher<? super T> elementMatcher)
           
static
<T> Matcher<java.lang.Iterable<T>>
CoreMatchers.hasItems(Matcher<? super T>... elementMatchers)
           
static
<T> Matcher<T>
CoreMatchers.is(Matcher<T> matcher)
          Decorates another Matcher, retaining the behavior but allowing tests to be slightly more expressive.
static
<T> Matcher<T>
CoreMatchers.not(Matcher<T> matcher)
          Inverts the rule.
 

Method parameters in org.hamcrest with type arguments of type Matcher
static
<T> Matcher<T>
CoreMatchers.allOf(java.lang.Iterable<Matcher<? super T>> matchers)
          Evaluates to true only if ALL of the passed in matchers evaluate to true.
static
<T> AnyOf<T>
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
<T> Matcher<T>
AllOf.allOf(java.lang.Iterable<Matcher<? super T>> matchers)
          Evaluates to true only if ALL of the passed in matchers evaluate to true.
static
<T> Matcher<T>
AllOf.allOf(Matcher<? super T>... matchers)
          Evaluates to true only if ALL of the passed in matchers evaluate to true.
static
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
IsEqual.equalTo(T operand)
          Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?
static
<U> Matcher<java.lang.Iterable<U>>
Every.everyItem(Matcher<U> itemMatcher)
           
static
<T> Matcher<java.lang.Iterable<? super T>>
IsCollectionContaining.hasItem(Matcher<? super T> elementMatcher)
           
static
<T> Matcher<java.lang.Iterable<? super T>>
IsCollectionContaining.hasItem(T element)
           
static
<T> Matcher<java.lang.Iterable<T>>
IsCollectionContaining.hasItems(Matcher<? super T>... elementMatchers)
           
static
<T> Matcher<java.lang.Iterable<T>>
IsCollectionContaining.hasItems(T... elements)
           
static
<T> Matcher<T>
IsInstanceOf.instanceOf(java.lang.Class<?> type)
          Is the value an instance of a particular type?
static
<T> Matcher<T>
Is.is(java.lang.Class<T> type)
          Deprecated. use isA(Class type) instead.
static
<T> Matcher<T>
Is.is(Matcher<T> matcher)
          Decorates another Matcher, retaining the behavior but allowing tests to be slightly more expressive.
static
<T> Matcher<T>
Is.is(T value)
          This is a shortcut to the frequently used is(equalTo(x)).
static
<T> Matcher<T>
Is.isA(java.lang.Class<T> type)
          Deprecated. 
static
<T> Matcher<T>
IsNot.not(Matcher<T> matcher)
          Inverts the rule.
static
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
IsNull.nullValue(java.lang.Class<T> type)
          Matches if value is null.
static
<T> Matcher<T>
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
<T> Matcher<T>
AllOf.allOf(Matcher<? super T>... matchers)
          Evaluates to true only if ALL of the passed in matchers evaluate to true.
static
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> Matcher<T>
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
<T> AnyOf<T>
AnyOf.anyOf(Matcher<? super T>... matchers)
          Evaluates to true if ANY of the passed in matchers evaluate to true.
static
<T> AnyOf<T>
AnyOf.anyOf(Matcher<T> first, Matcher<? super T> second)
          Evaluates to true if ANY of the passed in matchers evaluate to true.
static
<T> AnyOf<T>
AnyOf.anyOf(Matcher<T> first, Matcher<? super T> second)
          Evaluates to true if ANY of the passed in matchers evaluate to true.
static
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<T> AnyOf<T>
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
<LHS> CombinableMatcher<LHS>
CombinableMatcher.both(Matcher<? super LHS> matcher)
          This is useful for fluently combining matchers that must both pass.
static
<T> Matcher<T>
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
<LHS> CombinableMatcher<LHS>
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
<U> Matcher<java.lang.Iterable<U>>
Every.everyItem(Matcher<U> itemMatcher)
           
static
<T> Matcher<java.lang.Iterable<? super T>>
IsCollectionContaining.hasItem(Matcher<? super T> elementMatcher)
           
static
<T> Matcher<java.lang.Iterable<T>>
IsCollectionContaining.hasItems(Matcher<? super T>... elementMatchers)
           
static
<T> Matcher<T>
Is.is(Matcher<T> matcher)
          Decorates another Matcher, retaining the behavior but allowing tests to be slightly more expressive.
static
<T> Matcher<T>
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
<T> Matcher<T>
AllOf.allOf(java.lang.Iterable<Matcher<? super T>> matchers)
          Evaluates to true only if ALL of the passed in matchers evaluate to true.
static
<T> AnyOf<T>
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)
           
 



Copyright © 2010. All Rights Reserved.