|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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
|
AllOf.allOf(Iterable<Matcher<? extends T>> matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
AllOf.allOf(Matcher<? extends T>... matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
IsAnything.any(Class<T> type)
This matcher always evaluates to true. |
|
static
|
AnyOf.anyOf(Iterable<Matcher<? extends T>> matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
AnyOf.anyOf(Matcher<? extends T>... matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true. |
|
static
|
IsAnything.anything()
This matcher always evaluates to true. |
|
static
|
IsAnything.anything(String description)
This matcher always evaluates to true. |
|
static
|
DescribedAs.describedAs(String description,
Matcher<T> matcher,
Object... values)
Wraps an existing matcher and overrides the description when it fails. |
|
static
|
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
|
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
|
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
|
IsNull.notNullValue()
Matches if value is not null. |
|
static
|
IsNull.notNullValue(Class<T> type)
Matches if value is not null. |
|
static
|
IsNull.nullValue()
Matches if value is null. |
|
static
|
IsNull.nullValue(Class<T> type)
Matches if value is null. |
|
static
|
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
|
IsCollectionContaining.hasItem(Matcher<? extends T> elementMatcher)
|
|
static
|
IsCollectionContaining.hasItem(T element)
|
|
static
|
IsCollectionContaining.hasItems(Matcher<? extends T>... elementMatchers)
|
|
static
|
IsCollectionContaining.hasItems(T... elements)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |