Package | Description |
---|---|
org.mockito |
Mockito is a mock library for java - see Mockito class for for usage.
|
org.mockito.internal.hamcrest | |
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.matchers.text | |
org.mockito.internal.progress |
Mocking progress stateful classes.
|
org.mockito.internal.reporting |
Deals with nicely printing verification errors
|
org.mockito.internal.verification.argumentmatching |
Deals with matching arguments
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
Matchers.argThat(ArgumentMatcher<T> matcher)
Allows creating custom argument matchers.
|
static boolean |
Matchers.booleanThat(ArgumentMatcher<Boolean> matcher)
Allows creating custom
boolean argument matchers. |
static byte |
Matchers.byteThat(ArgumentMatcher<Byte> matcher)
Allows creating custom
byte argument matchers. |
static char |
Matchers.charThat(ArgumentMatcher<Character> matcher)
Allows creating custom
char argument matchers. |
static double |
Matchers.doubleThat(ArgumentMatcher<Double> matcher)
Allows creating custom
double argument matchers. |
static float |
Matchers.floatThat(ArgumentMatcher<Float> matcher)
Allows creating custom
float argument matchers. |
static int |
Matchers.intThat(ArgumentMatcher<Integer> matcher)
Allows creating custom
int argument matchers. |
static long |
Matchers.longThat(ArgumentMatcher<Long> matcher)
Allows creating custom
long argument matchers. |
static short |
Matchers.shortThat(ArgumentMatcher<Short> matcher)
Allows creating custom
short argument matchers. |
Modifier and Type | Class and Description |
---|---|
class |
HamcrestArgumentMatcher<T>
Created by sfaber on 6/22/15.
|
Modifier and Type | Method and Description |
---|---|
static List<ArgumentMatcher> |
ArgumentsProcessor.argumentsToMatchers(Object[] arguments) |
List<ArgumentMatcher> |
InvocationMatcher.getMatchers() |
Constructor and Description |
---|
InvocationMatcher(Invocation invocation,
List<ArgumentMatcher> 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 |
Matches |
class |
Not |
class |
NotNull |
class |
Null |
class |
Or |
class |
Same |
class |
StartsWith |
class |
VarargCapturingMatcher<T> |
Modifier and Type | Field and Description |
---|---|
static ArgumentMatcher |
AnyVararg.ANY_VARARG |
Modifier and Type | Method and Description |
---|---|
ArgumentMatcher<?> |
LocalizedMatcher.getMatcher() |
Constructor and Description |
---|
LocalizedMatcher(ArgumentMatcher<?> matcher) |
Not(ArgumentMatcher first) |
Constructor and Description |
---|
And(List<ArgumentMatcher> matchers) |
Or(List<ArgumentMatcher> matchers) |
Modifier and Type | Class and Description |
---|---|
class |
ReflectionEquals |
Modifier and Type | Method and Description |
---|---|
String |
MatchersPrinter.getArgumentsBlock(List<ArgumentMatcher> matchers,
PrintSettings printSettings) |
String |
MatchersPrinter.getArgumentsLine(List<ArgumentMatcher> matchers,
PrintSettings printSettings) |
Modifier and Type | Method and Description |
---|---|
void |
ArgumentMatcherStorageImpl.reportMatcher(ArgumentMatcher matcher) |
void |
ArgumentMatcherStorage.reportMatcher(ArgumentMatcher<?> matcher) |
Modifier and Type | Method and Description |
---|---|
String |
PrintSettings.print(List<ArgumentMatcher> matchers,
Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
Integer[] |
ArgumentMatchingTool.getSuspiciouslyNotMatchingArgsIndexes(List<ArgumentMatcher> matchers,
Object[] arguments)
Suspiciously not matching arguments are those that don't match, the toString() representation is the same but types are different.
|