Uses of Class
org.hamcrest.Factory

Packages that use Factory
org.hamcrest.core Fundamental matchers of objects and values, and composite matchers. 
org.junit.internal.matchers   
 

Uses of Factory in org.hamcrest.core
 

Methods in org.hamcrest.core with annotations of type Factory
static
<T> Matcher<T>
AllOf.allOf(Iterable<Matcher<? extends T>> matchers)
          Evaluates to true only if ALL of the passed in matchers evaluate to true.
static
<T> Matcher<T>
AllOf.allOf(Matcher<? extends T>... matchers)
          Evaluates to true only if ALL of the passed in matchers evaluate to true.
static
<T> Matcher<T>
IsAnything.any(Class<T> type)
          This matcher always evaluates to true.
static
<T> Matcher<T>
AnyOf.anyOf(Iterable<Matcher<? extends T>> matchers)
          Evaluates to true if ANY of the passed in matchers evaluate to true.
static
<T> Matcher<T>
AnyOf.anyOf(Matcher<? extends T>... matchers)
          Evaluates to true if ANY of the passed in matchers evaluate to true.
static
<T> Matcher<T>
IsAnything.anything()
          This matcher always evaluates to true.
static
<T> Matcher<T>
IsAnything.anything(String description)
          This matcher always evaluates to true.
static
<T> Matcher<T>
DescribedAs.describedAs(String description, Matcher<T> matcher, Object... values)
          Wraps an existing matcher and overrides the description when it fails.
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 Matcher<Object> IsInstanceOf.instanceOf(Class<?> type)
          Is the value an instance of a particular type?
static Matcher<Object> Is.is(Class<?> type)
          This is a shortcut to the frequently used is(instanceOf(SomeClass.class)).
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>
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
<T> Matcher<T>
IsNull.notNullValue()
          Matches if value is not null.
static
<T> Matcher<T>
IsNull.notNullValue(Class<T> type)
          Matches if value is not null.
static
<T> Matcher<T>
IsNull.nullValue()
          Matches if value is null.
static
<T> Matcher<T>
IsNull.nullValue(Class<T> type)
          Matches if value is null.
static
<T> Matcher<T>
IsSame.sameInstance(T object)
          Creates a new instance of IsSame
 

Uses of Factory in org.junit.internal.matchers
 

Methods in org.junit.internal.matchers with annotations of type Factory
static Matcher<String> StringContains.containsString(String substring)
           
static
<T> Matcher<Iterable<T>>
IsCollectionContaining.hasItem(Matcher<? extends T> elementMatcher)
           
static
<T> Matcher<Iterable<T>>
IsCollectionContaining.hasItem(T element)
           
static
<T> Matcher<Iterable<T>>
IsCollectionContaining.hasItems(Matcher<? extends T>... elementMatchers)
           
static
<T> Matcher<Iterable<T>>
IsCollectionContaining.hasItems(T... elements)