|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
ArgumentsMatchers are only supported
for the legacy MockControl. For mock objects generated by the methods
on EasyMock, there are per-argument matchers available. For more
information, see the EasyMock documentation.matches(Object[], Object[]).
ArgumentsMatchers are only supported
for the legacy MockControl. For mock objects generated by the methods
on EasyMock, there are per-argument matchers available. For more
information, see the EasyMock documentation.toString(Object[]).
java.util.Arrays.equals() -method.
capture() matcher.0,
null or false for unexpected invocations.
0,
null or false for unexpected invocations.
0,
null or false for unexpected invocations.
EasyMock.makeThreadSafe(Object, boolean) method).
MockControl.setDefaultReturnValue(Object).
MockControl.setDefaultThrowable(Throwable).
MockControl.setReturnValue(Object).
MockControl.setReturnValue(Object, Range).
MockControl.setReturnValue(Object, int).
MockControl.setReturnValue(Object, int, int).
MockControl.setThrowable(Throwable).
MockControl.setThrowable(Throwable, Range).
MockControl.setThrowable(Throwable, int).
MockControl.setThrowable(Throwable, int, int).
IAnswer callback - be careful here, reordering parameters of
method changes the semantics of your tests.
EasyMock.cmp(T, java.util.Comparator super T>, org.easymock.LogicalOperator)EasyMock.NOT_THREAD_SAFE_BY_DEFAULT is set).
EasyMock are
used to create and control mock objects.minCount and maxCount times, and will react
by returning the provided return value.
minCount and maxCount times, and will react
by throwing the provided Throwable.
minCount and maxCount times, and will react
by returning silently.
count times.
min and
max times.
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||