Package | Description |
---|---|
org.eclipse.epsilon.egl.engine.traceability.fine.test.matchers | |
org.eclipse.epsilon.test.util.hamcrest | |
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.
|
org.mockito |
Mockito is a mock library for java - see Mockito class for for usage.
|
org.mockito.internal.invocation |
Invocation and related classes.
|
org.mockito.internal.matchers |
Argument matchers for verification and stubbing.
|
org.mockito.internal.matchers.apachecommons |
Argument matchers that use Apache Commons Lang reflection-equality.
|
org.mockito.internal.progress |
Mocking progress stateful classes.
|
org.mockito.internal.verification.argumentmatching |
Deals with matching arguments
|
Modifier and Type | Class and Description |
---|---|
class |
EmptyMapMatcher |
Modifier and Type | Class and Description |
---|---|
class |
EmptyCollection |
Modifier and Type | Method and Description |
---|---|
static Matcher<Collection<?>> |
EmptyCollection.empty() |
Modifier and Type | Class and Description |
---|---|
class |
BaseMatcher<T>
BaseClass for all Matcher implementations.
|
class |
org.hamcrest.TypeSafeMatcher<T> |
Modifier and Type | Method and Description |
---|---|
static <T> Matcher<T> |
CoreMatchers.allOf(Iterable<Matcher<? extends T>> matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true.
|
static <T> Matcher<T> |
CoreMatchers.allOf(Matcher<? extends T>... matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true.
|
static <T> Matcher<T> |
CoreMatchers.any(Class<T> type)
This matcher always evaluates to true.
|
static <T> Matcher<T> |
CoreMatchers.anyOf(Iterable<Matcher<? extends T>> matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
static <T> Matcher<T> |
CoreMatchers.anyOf(Matcher<? extends T>... matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
static <T> Matcher<T> |
CoreMatchers.anything()
This matcher always evaluates to true.
|
static <T> Matcher<T> |
CoreMatchers.anything(String description)
This matcher always evaluates to true.
|
static <T> Matcher<T> |
CoreMatchers.describedAs(String description,
Matcher<T> matcher,
Object... values)
Wraps an existing matcher and overrides the description when it fails.
|
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 Matcher<Object> |
CoreMatchers.instanceOf(Class<?> type)
Is the value an instance of a particular type?
|
static Matcher<Object> |
CoreMatchers.is(Class<?> type)
This is a shortcut to the frequently used is(instanceOf(SomeClass.class)).
|
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.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 <T> Matcher<T> |
CoreMatchers.notNullValue()
Matches if value is not null.
|
static <T> Matcher<T> |
CoreMatchers.notNullValue(Class<T> type)
Matches if value is not null.
|
static <T> Matcher<T> |
CoreMatchers.nullValue()
Matches if value is null.
|
static <T> Matcher<T> |
CoreMatchers.nullValue(Class<T> type)
Matches if value is null.
|
static <T> Matcher<T> |
CoreMatchers.sameInstance(T object)
Creates a new instance of IsSame
|
Modifier and Type | Method and Description |
---|---|
static <T> Matcher<T> |
CoreMatchers.allOf(Matcher<? extends T>... matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true.
|
static <T> Matcher<T> |
CoreMatchers.anyOf(Matcher<? extends T>... matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
static <T> Matcher<T> |
CoreMatchers.describedAs(String description,
Matcher<T> matcher,
Object... values)
Wraps an existing matcher and overrides the description when it fails.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static <T> Matcher<T> |
CoreMatchers.allOf(Iterable<Matcher<? extends T>> matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true.
|
static <T> Matcher<T> |
CoreMatchers.anyOf(Iterable<Matcher<? extends T>> matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
Modifier and Type | Class and Description |
---|---|
class |
AllOf<T>
Calculates the logical conjunction of two matchers.
|
class |
AnyOf<T>
Calculates the logical disjunction of two matchers.
|
class |
DescribedAs<T>
Provides a custom description to another matcher.
|
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 |
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?
|
Modifier and Type | Method and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
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> |
AnyOf.anyOf(Matcher<? extends T>... matchers)
Evaluates to true if ANY of the passed in matchers evaluate 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> |
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.
|
Modifier and Type | Method and Description |
---|---|
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> |
AnyOf.anyOf(Iterable<Matcher<? extends T>> matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
Constructor and Description |
---|
DescribedAs(String descriptionTemplate,
Matcher<T> matcher,
Object[] values) |
Is(Matcher<T> matcher) |
IsNot(Matcher<T> matcher) |
Constructor and Description |
---|
AllOf(Iterable<Matcher<? extends T>> matchers) |
AnyOf(Iterable<Matcher<? extends T>> matchers) |
Modifier and Type | Class and Description |
---|---|
class |
ArgumentMatcher<T>
Allows creating customized argument matchers.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
Matchers.argThat(Matcher<T> matcher)
Allows creating custom argument matchers.
|
static boolean |
Matchers.booleanThat(Matcher<Boolean> matcher)
Allows creating custom argument matchers.
|
static byte |
Matchers.byteThat(Matcher<Byte> matcher)
Allows creating custom argument matchers.
|
static char |
Matchers.charThat(Matcher<Character> matcher)
Allows creating custom argument matchers.
|
static double |
Matchers.doubleThat(Matcher<Double> matcher)
Allows creating custom argument matchers.
|
static float |
Matchers.floatThat(Matcher<Float> matcher)
Allows creating custom argument matchers.
|
static int |
Matchers.intThat(Matcher<Integer> matcher)
Allows creating custom argument matchers.
|
static long |
Matchers.longThat(Matcher<Long> matcher)
Allows creating custom argument matchers.
|
static short |
Matchers.shortThat(Matcher<Short> matcher)
Allows creating custom argument matchers.
|
Modifier and Type | Method and Description |
---|---|
protected List<Matcher> |
Invocation.argumentsToMatchers() |
List<Matcher> |
InvocationMatcher.getMatchers() |
Modifier and Type | Method and Description |
---|---|
protected String |
Invocation.toString(List<Matcher> matchers,
PrintSettings printSettings) |
Constructor and Description |
---|
InvocationMatcher(Invocation invocation,
List<Matcher> matchers) |
Modifier and Type | Class and Description |
---|---|
class |
And |
class |
Any |
class |
AnyVararg |
class |
ArrayEquals |
class |
CapturingMatcher<T> |
class |
CompareEqual<T extends Comparable<T>> |
class |
CompareTo<T extends Comparable<T>> |
class |
Contains |
class |
EndsWith |
class |
Equals |
class |
EqualsWithDelta |
class |
Find |
class |
GreaterOrEqual<T extends Comparable<T>> |
class |
GreaterThan<T extends Comparable<T>> |
class |
InstanceOf |
class |
LessOrEqual<T extends Comparable<T>> |
class |
LessThan<T extends Comparable<T>> |
class |
LocalizedMatcher |
class |
Matches |
class |
Not |
class |
NotNull |
class |
Null |
class |
Or |
class |
Same |
class |
StartsWith |
Modifier and Type | Field and Description |
---|---|
static Matcher |
AnyVararg.ANY_VARARG |
Modifier and Type | Method and Description |
---|---|
Matcher |
MatcherDecorator.getActualMatcher() |
Matcher |
LocalizedMatcher.getActualMatcher() |
Modifier and Type | Method and Description |
---|---|
String |
MatchersPrinter.getArgumentsBlock(List<Matcher> matchers,
PrintSettings printSettings) |
String |
MatchersPrinter.getArgumentsLine(List<Matcher> matchers,
PrintSettings printSettings) |
Constructor and Description |
---|
LocalizedMatcher(Matcher actualMatcher) |
Not(Matcher first) |
Constructor and Description |
---|
And(List<Matcher> matchers) |
Or(List<Matcher> matchers) |
Modifier and Type | Class and Description |
---|---|
class |
ReflectionEquals |
Modifier and Type | Method and Description |
---|---|
List<Matcher> |
ArgumentMatcherStorageImpl.pullMatchers() |
List<Matcher> |
ArgumentMatcherStorage.pullMatchers() |
Modifier and Type | Method and Description |
---|---|
HandyReturnValues |
ArgumentMatcherStorageImpl.reportMatcher(Matcher matcher) |
HandyReturnValues |
ArgumentMatcherStorage.reportMatcher(Matcher matcher) |
Modifier and Type | Method and Description |
---|---|
Integer[] |
ArgumentMatchingTool.getSuspiciouslyNotMatchingArgsIndexes(List<Matcher> matchers,
Object[] arguments)
Suspiciously not matching arguments are those that don't match, the toString() representation is the same but types are different.
|
Copyright © 2018. All rights reserved.