A C E G M N O R S T U V Z

A

AbstractMatcher - Class in org.easymock
A convenience implementation of ArgumentsMatcher.
AbstractMatcher() - Constructor for class org.easymock.AbstractMatcher
 
ALWAYS_MATCHER - Static variable in class org.easymock.MockControl
Matches always.
argumentMatches(Object, Object) - Method in class org.easymock.AbstractMatcher
Compares two arguments; used by AbstractMatcher.matches(Object[], Object[]).
ArgumentsMatcher - Interface in org.easymock
A comparison function that is used to match arguments.
argumentToString(Object) - Method in class org.easymock.AbstractMatcher
Converts an argument to a String, used by AbstractMatcher.toString(Object[]).
ARRAY_MATCHER - Static variable in class org.easymock.MockControl
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.

C

createControl(Class) - Static method in class org.easymock.MockControl
Creates a mock control object for the specified interface.
createNiceControl(Class) - Static method in class org.easymock.MockControl
Creates a mock control object for the specified interface.
createStrictControl(Class) - Static method in class org.easymock.MockControl
Creates a mock control object for the specified interface.

E

EQUALS_MATCHER - Static variable in class org.easymock.MockControl
Matches if each expected argument is equal to the corresponding actual argument.
expectAndDefaultReturn(boolean, boolean) - Method in class org.easymock.MockControl
Same as setDefaultReturnValue(boolean).
expectAndDefaultReturn(long, long) - Method in class org.easymock.MockControl
Same as setDefaultReturnValue(long).
expectAndDefaultReturn(float, float) - Method in class org.easymock.MockControl
Same as setDefaultReturnValue(float).
expectAndDefaultReturn(double, double) - Method in class org.easymock.MockControl
Same as setDefaultReturnValue(double).
expectAndDefaultReturn(Object, Object) - Method in class org.easymock.MockControl
Same as setDefaultReturnValue(Object).
expectAndDefaultThrow(boolean, Throwable) - Method in class org.easymock.MockControl
Same as setDefaultThrowable(Throwable).
expectAndDefaultThrow(long, Throwable) - Method in class org.easymock.MockControl
Same as setDefaultThrowable(Throwable).
expectAndDefaultThrow(float, Throwable) - Method in class org.easymock.MockControl
Same as setDefaultThrowable(Throwable).
expectAndDefaultThrow(double, Throwable) - Method in class org.easymock.MockControl
Same as setDefaultThrowable(Throwable).
expectAndDefaultThrow(Object, Throwable) - Method in class org.easymock.MockControl
Same as setDefaultThrowable(Throwable).
expectAndReturn(boolean, boolean) - Method in class org.easymock.MockControl
Same as setReturnValue(boolean).
expectAndReturn(long, long) - Method in class org.easymock.MockControl
Same as setReturnValue(long).
expectAndReturn(float, float) - Method in class org.easymock.MockControl
Same as setReturnValue(float).
expectAndReturn(double, double) - Method in class org.easymock.MockControl
Same as setReturnValue(double).
expectAndReturn(Object, Object) - Method in class org.easymock.MockControl
Same as setReturnValue(Object).
expectAndReturn(boolean, boolean, Range) - Method in class org.easymock.MockControl
Same as setReturnValue(boolean, Range).
expectAndReturn(long, long, Range) - Method in class org.easymock.MockControl
Same as setReturnValue(long, Range).
expectAndReturn(float, float, Range) - Method in class org.easymock.MockControl
Same as setReturnValue(float, Range).
expectAndReturn(double, double, Range) - Method in class org.easymock.MockControl
Same as setReturnValue(double, Range).
expectAndReturn(Object, Object, Range) - Method in class org.easymock.MockControl
Same as setReturnValue(Object, Range).
expectAndReturn(boolean, boolean, int) - Method in class org.easymock.MockControl
Same as setReturnValue(boolean, int).
expectAndReturn(long, long, int) - Method in class org.easymock.MockControl
Same as setReturnValue(long, int).
expectAndReturn(float, float, int) - Method in class org.easymock.MockControl
Same as setReturnValue(float, int).
expectAndReturn(double, double, int) - Method in class org.easymock.MockControl
Same as setReturnValue(double, int).
expectAndReturn(Object, Object, int) - Method in class org.easymock.MockControl
Same as setReturnValue(Object, int).
expectAndReturn(boolean, boolean, int, int) - Method in class org.easymock.MockControl
Same as setReturnValue(boolean, int, int).
expectAndReturn(long, long, int, int) - Method in class org.easymock.MockControl
Same as setReturnValue(long, int, int).
expectAndReturn(float, float, int, int) - Method in class org.easymock.MockControl
Same as setReturnValue(float, int, int).
expectAndReturn(double, double, int, int) - Method in class org.easymock.MockControl
Same as setReturnValue(double, int, int).
expectAndReturn(Object, Object, int, int) - Method in class org.easymock.MockControl
Same as setReturnValue(Object, int, int).
expectAndThrow(boolean, Throwable) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable).
expectAndThrow(long, Throwable) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable).
expectAndThrow(float, Throwable) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable).
expectAndThrow(double, Throwable) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable).
expectAndThrow(Object, Throwable) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable).
expectAndThrow(boolean, Throwable, Range) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, Range).
expectAndThrow(long, Throwable, Range) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, Range).
expectAndThrow(float, Throwable, Range) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, Range).
expectAndThrow(double, Throwable, Range) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, Range).
expectAndThrow(Object, Throwable, Range) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, Range).
expectAndThrow(boolean, Throwable, int) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, int).
expectAndThrow(long, Throwable, int) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, int).
expectAndThrow(float, Throwable, int) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, int).
expectAndThrow(double, Throwable, int) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, int).
expectAndThrow(Object, Throwable, int) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, int).
expectAndThrow(boolean, Throwable, int, int) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, int, int).
expectAndThrow(long, Throwable, int, int) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, int, int).
expectAndThrow(float, Throwable, int, int) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, int, int).
expectAndThrow(double, Throwable, int, int) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, int, int).
expectAndThrow(Object, Throwable, int, int) - Method in class org.easymock.MockControl
Same as setThrowable(Throwable, int, int).

G

getMock() - Method in class org.easymock.MockControl
Returns the mock object.

M

matches(Object[], Object[]) - Method in class org.easymock.AbstractMatcher
Matches two arrays of arguments.
matches(Object[], Object[]) - Method in interface org.easymock.ArgumentsMatcher
Matches two arrays of arguments.
MockControl - Class in org.easymock
A MockControl object controls the behavior of its associated mock object.
MockControl(Class, IProxyFactory, IBehaviorFactory) - Constructor for class org.easymock.MockControl
Creates a new mock control object using the provided proxy and behavior factory - this is an internal constructor with protected visibility to allow access for extensions.

N

NICE_BEHAVIOR_FACTORY - Static variable in class org.easymock.MockControl
internal constant with protected visibility to allow access for extensions.

O

ONE - Static variable in class org.easymock.MockControl
Exactly one call.
ONE_OR_MORE - Static variable in class org.easymock.MockControl
One or more calls.
ORDERED_BEHAVIOR_FACTORY - Static variable in class org.easymock.MockControl
internal constant with protected visibility to allow access for extensions.
org.easymock - package org.easymock
 

R

replay() - Method in class org.easymock.MockControl
Switches the mock object from record state to replay state.
reset() - Method in class org.easymock.MockControl
Resets the mock control and the mock object to the state directly after creation.

S

setDefaultMatcher(ArgumentsMatcher) - Method in class org.easymock.MockControl
Sets the default ArgumentsMatcher for all methods of the mock object.
setDefaultReturnValue(boolean) - Method in class org.easymock.MockControl
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.
setDefaultReturnValue(long) - Method in class org.easymock.MockControl
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.
setDefaultReturnValue(float) - Method in class org.easymock.MockControl
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.
setDefaultReturnValue(double) - Method in class org.easymock.MockControl
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.
setDefaultReturnValue(Object) - Method in class org.easymock.MockControl
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.
setDefaultThrowable(Throwable) - Method in class org.easymock.MockControl
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.
setDefaultVoidCallable() - Method in class org.easymock.MockControl
Records that the mock object will by default allow the last method specified by a method call.
setMatcher(ArgumentsMatcher) - Method in class org.easymock.MockControl
Sets the ArgumentsMatcher for the last method called on the mock object.
setReturnValue(boolean) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call once, and will react by returning the provided return value.
setReturnValue(long) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call once, and will react by returning the provided return value.
setReturnValue(float) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call once, and will react by returning the provided return value.
setReturnValue(double) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call once, and will react by returning the provided return value.
setReturnValue(Object) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call once, and will react by returning the provided return value.
setReturnValue(boolean, int) - Method in class org.easymock.MockControl
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.
setReturnValue(double, int) - Method in class org.easymock.MockControl
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.
setReturnValue(float, int) - Method in class org.easymock.MockControl
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.
setReturnValue(long, int) - Method in class org.easymock.MockControl
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.
setReturnValue(Object, int) - Method in class org.easymock.MockControl
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.
setReturnValue(boolean, Range) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call the number of times specified by the range argument, and will react by returning the provided return value.
setReturnValue(double, Range) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call the number of times specified by the range argument, and will react by returning the provided return value.
setReturnValue(float, Range) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call the number of times specified by the range argument, and will react by returning the provided return value.
setReturnValue(long, Range) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call the number of times specified by the range argument, and will react by returning the provided return value.
setReturnValue(Object, Range) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call the number of times specified by the range argument, and will react by returning the provided return value.
setReturnValue(boolean, int, int) - Method in class org.easymock.MockControl
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.
setReturnValue(long, int, int) - Method in class org.easymock.MockControl
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.
setReturnValue(float, int, int) - Method in class org.easymock.MockControl
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.
setReturnValue(double, int, int) - Method in class org.easymock.MockControl
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.
setReturnValue(Object, int, int) - Method in class org.easymock.MockControl
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.
setThrowable(Throwable) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call once, and will react by throwing the provided Throwable.
setThrowable(Throwable, int) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call a fixed number of times, and will react by throwing the provided Throwable.
setThrowable(Throwable, Range) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call the number of times specified by the range argument, and will react by throwing the provided Throwable.
setThrowable(Throwable, int, int) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call between minCount and maxCount times, and will react by throwing the provided Throwable.
setVoidCallable() - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call once, and will react by returning silently.
setVoidCallable(int) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call a fixed number of times, and will react by returning silently.
setVoidCallable(Range) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call the number of times specified by the range argument, and will react by returning silently.
setVoidCallable(int, int) - Method in class org.easymock.MockControl
Records that the mock object will expect the last method call between minCount and maxCount times, and will react by returning silently.

T

toString(Object[]) - Method in class org.easymock.AbstractMatcher
Returns a string representation of the matcher.
toString(Object[]) - Method in interface org.easymock.ArgumentsMatcher
Returns a string representation of the arguments.

U

UNORDERED_BEHAVIOR_FACTORY - Static variable in class org.easymock.MockControl
internal constant with protected visibility to allow access for extensions.

V

verify() - Method in class org.easymock.MockControl
Verifies that all expectations have been met.

Z

ZERO_OR_MORE - Static variable in class org.easymock.MockControl
Zero or more calls.

A C E G M N O R S T U V Z

Copyright © 2001-2005 OFFIS. This documentation is provided under the terms of the MIT licence.