A convenience implementation of ArgumentsMatcher
.
And - class org.easymock.internal.matchers.
And Expects a boolean that matches both given expectations.
Expects a byte that matches both given expectations.
Expects a char that matches both given expectations.
Expects a double that matches both given expectations.
Expects a float that matches both given expectations.
Expects an int that matches both given expectations.
And(List) - constructor for class org.easymock.internal.matchers.
And Expects a long that matches both given expectations.
Expects a short that matches both given expectations.
Sets an object that will be used to calculate the answer for the expected
invocation (either return a value, or throw an exception).
Sets a return value that will be returned for the expected invocation.
Sets a stub object that will be used to calculate the answer for the
expected invocation (either return a value, or throw an exception).
Sets a stub return value that will be returned for the expected
invocation.
Sets a stub throwable that will be thrown for the expected invocation.
Sets a throwable that will be thrown for the expected invocation.
is called by EasyMock to answer an expected call.
ANY - static field in class org.easymock.internal.matchers.
Any Any - class org.easymock.internal.matchers.
Any Expects any boolean argument.
Expects any byte argument.
Expects any char argument.
Expects any double argument.
Expects any float argument.
Expects any int argument.
Expects any long argument.
Expects any Object argument.
Expects any short argument.
Expect the last invocation any times.
Appends a string representation of this matcher to the given buffer.
Checks whether an expected argument matches an actual argument; the method
is used by
AbstractMatcher.matches(Object[], Object[])
.
A comparison function that is used to match arguments.
Converts an argument to a String, used by
AbstractMatcher.toString(Object[])
.
Matches if each expected argument is equal to the corresponding actual
argument for non-array arguments; array arguments are compared with the
appropriate java.util.Arrays.equals()
-method.
Expects a boolean array that is equal to the given array, i.e.
Expects a byte array that is equal to the given array, i.e.
Expects a char array that is equal to the given array, i.e.
Expects a double array that is equal to the given array, i.e.
Expects a float array that is equal to the given array, i.e.
Expects an int array that is equal to the given array, i.e.
Expects a long array that is equal to the given array, i.e.
Expects a short array that is equal to the given array, i.e.
Sets stub behavior for the expected invocation (this is needed for void
methods).
Expect the last invocation at least once.
Expects a string that ends with the given suffix.
Expects a boolean that is equal to the given value.
Expects a byte that is equal to the given value.
Expects a char that is equal to the given value.
Expects a double that is equal to the given value.
Expects a double that has an absolute difference to the given value that
is less than the given delta.
Expects a float that is equal to the given value.
Expects a float that has an absolute difference to the given value that
is less than the given delta.
Expects an int that is equal to the given value.
Expects a long that is equal to the given value.
Expects a short that is equal to the given value.
Matches if each expected argument is equal to the corresponding actual
argument.
Same as MockControl.setDefaultThrowable(Throwable)
.
Same as MockControl.setThrowable(Throwable)
.
Same as MockControl.setThrowable(Throwable, int)
.
Same as MockControl.setThrowable(Throwable, int, int)
.
Same as MockControl.setThrowable(Throwable, Range)
.
Expects a comparable argument equals to the given value according to their
compareTo method.
Expects a comparable argument greater than or equal the given value.
Expects a comparable argument greater than the given value.
Expects a comparable argument less than or equal the given value.
Expects a comparable argument less than the given value.
Expects a byte argument greater than or equal to the given value.
Expects a double argument greater than or equal to the given value.
Expects a float argument greater than or equal to the given value.
Expects an int argument greater than or equal to the given value.
Expects a long argument greater than or equal to the given value.
Expects a short argument greater than or equal to the given value.
Returns the arguments of the current mock method call, if inside an
IAnswer
callback - be careful here, reordering parameters of
method changes the semantics of your tests.
Expects a byte argument greater than the given value.
Expects a double argument greater than the given value.
Expects a float argument greater than the given value.
Expects an int argument greater than the given value.
Expects a long argument greater than the given value.
Expects a short argument greater than the given value.
Expects a byte argument less than or equal to the given value.
Expects a double argument less than or equal to the given value.
Expects a float argument less than or equal to the given value.
Expects an int argument less than or equal to the given value.
Expects a long argument less than or equal to the given value.
Expects a short argument less than or equal to the given value.
Expects a byte argument less than the given value.
Expects a double argument less than the given value.
Expects a float argument less than the given value.
Expects an int argument less than the given value.
Expects a long argument less than the given value.
Expects a short argument less than the given value.
Not - class org.easymock.internal.matchers.
Not Expects a boolean that does not match the given expectation.
Expects a byte that does not match the given expectation.
Expects a char that does not match the given expectation.
Expects a double that does not match the given expectation.
Expects a float that does not match the given expectation.
Expects an int that does not match the given expectation.
Expects a long that does not match the given expectation.
Expects a short that does not match the given expectation.
NULL - static field in class org.easymock.internal.matchers.
Null Null - class org.easymock.internal.matchers.
Null Expect the last invocation once.
Or - class org.easymock.internal.matchers.
Or Expects a boolean that matches one of the given expectations.
Expects a byte that matches one of the given expectations.
Expects a char that matches one of the given expectations.
Expects a double that matches one of the given expectations.
Expects a float that matches one of the given expectations.
Expects an int that matches one of the given expectations.
Or(List) - constructor for class org.easymock.internal.matchers.
Or Expects a long that matches one of the given expectations.
Expects a short that matches one of the given expectations.
Same - class org.easymock.internal.matchers.
Same Sets the default ArgumentsMatcher for all methods of the mock object.
Records that the mock object will by default allow the last method
specified by a method call, and will react by returning the provided
return value.
Records that the mock object will by default allow the last method
specified by a method call, and will react by throwing the provided
Throwable.
Records that the mock object will by default allow the last method
specified by a method call.
Sets the ArgumentsMatcher for the last method called on the mock object.
Records that the mock object will expect the last method call once, and
will react by returning the provided return value.
Records that the mock object will expect the last method call a fixed
number of times, and will react by returning the provided return value.
Records that the mock object will expect the last method call between
minCount
and maxCount
times, and will react
by returning the provided return value.
Records that the mock object will expect the last method call a fixed
number of times, and will react by returning the provided return value.
Records that the mock object will expect the last method call once, and
will react by throwing the provided Throwable.
Records that the mock object will expect the last method call a fixed
number of times, and will react by throwing the provided Throwable.
Records that the mock object will expect the last method call between
minCount
and maxCount
times, and will react
by throwing the provided Throwable.
Records that the mock object will expect the last method call once, and
will react by returning silently.
Records that the mock object will expect the last method call a fixed
number of times, and will react by returning silently.
Records that the mock object will expect the last method call between
minCount
and maxCount
times, and will react
by returning silently.
Expects a string that starts with the given prefix.
Expects an Object that matches both given expectations.
Expects an argument that will be compared using the provided comparator.
Creates a mock object that implements the given interface, order checking
is disabled by default.
Creates a mock object that implements the given interface.
Creates a mock object that implements the given interface, order checking
is disabled by default.
Creates a mock object that implements the given interface.
Creates a mock object that implements the given interface, order checking
is disabled by default, and the mock object will return 0
,
null
or false
for unexpected invocations.
Creates a mock object that implements the given interface, order checking
is disabled by default, and the mock object will return 0
,
null
or false
for unexpected invocations.
Creates a mock object that implements the given interface, order checking
is enabled by default.
Creates a mock object that implements the given interface, order checking
is enabled by default.
Expects an Object that is equal to the given value.
Expects an object implementing the given class.
Expects an Object that does not match the given expectation.
Expects an Object that matches one of the given expectations.
Expects an Object that is the same as the given value.
Expects an Object array that is equal to the given array, i.e.
Expect the last invocation count
times.
Expect the last invocation between min
and
max
times.
Returns a string representation of the matcher.
Returns a string representation of the arguments.
Same as MockControl.setDefaultReturnValue(Object)
.
Same as MockControl.setReturnValue(Object)
.
Same as MockControl.setReturnValue(Object, int)
.
Same as MockControl.setReturnValue(Object, int, int)
.
Same as MockControl.setReturnValue(Object, Range)
.
Verifies that all expectations were met.
Verifies that all expectations have been met.
Verifies the given mock objects (more exactly: the controls of the mock
objects).