Uses of Class
org.hamcrest.Factory

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

Uses of Factory in org.hamcrest.core
 

Methods in org.hamcrest.core with annotations of type Factory
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
<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.
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, 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, 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 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
<LHS> CombinableMatcher<LHS>
CombinableMatcher.both(Matcher<? super LHS> matcher)
          This is useful for fluently combining matchers that must both pass.
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
<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 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)
           
 



Copyright © 2010. All Rights Reserved.