Index (EasyMock)

Package | Class | Tree | Deprecated | Index | Help

PREV NEXT | FRAMES NO FRAMES

A C E F G I L M N O R S T V Z

## A

AbstractMatcher - Class in org.easymock
  Deprecated. Since EasyMock 2.0, `ArgumentsMatcher`s 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.
AbstractMatcher() - Constructor for class org.easymock.AbstractMatcher
  Deprecated.
ALWAYS_MATCHER - Static variable in class org.easymock.MockControl
  Deprecated. Matches always.
and(boolean, boolean) - Static method in class org.easymock.EasyMock
  Expects a boolean that matches both given expectations.
and(byte, byte) - Static method in class org.easymock.EasyMock
  Expects a byte that matches both given expectations.
and(char, char) - Static method in class org.easymock.EasyMock
  Expects a char that matches both given expectations.
and(double, double) - Static method in class org.easymock.EasyMock
  Expects a double that matches both given expectations.
and(float, float) - Static method in class org.easymock.EasyMock
  Expects a float that matches both given expectations.
and(int, int) - Static method in class org.easymock.EasyMock
  Expects an int that matches both given expectations.
and(long, long) - Static method in class org.easymock.EasyMock
  Expects a long that matches both given expectations.
and(short, short) - Static method in class org.easymock.EasyMock
  Expects a short that matches both given expectations.
and(T, T) - Static method in class org.easymock.EasyMock
  Expects an Object that matches both given expectations.
andAnswer(IAnswer<T>) - Method in interface org.easymock.IExpectationSetters
  Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
andReturn(T) - Method in interface org.easymock.IExpectationSetters
  Sets a return value that will be returned for the expected invocation.
andStubAnswer(IAnswer<T>) - Method in interface org.easymock.IExpectationSetters
  Sets a stub object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
andStubReturn(Object) - Method in interface org.easymock.IExpectationSetters
  Sets a stub return value that will be returned for the expected invocation.
andStubThrow(Throwable) - Method in interface org.easymock.IExpectationSetters
  Sets a stub throwable that will be thrown for the expected invocation.
andThrow(Throwable) - Method in interface org.easymock.IExpectationSetters
  Sets a throwable that will be thrown for the expected invocation.
answer() - Method in interface org.easymock.IAnswer
  is called by EasyMock to answer an expected call.
anyBoolean() - Static method in class org.easymock.EasyMock
  Expects any boolean argument.
anyByte() - Static method in class org.easymock.EasyMock
  Expects any byte argument.
anyChar() - Static method in class org.easymock.EasyMock
  Expects any char argument.
anyDouble() - Static method in class org.easymock.EasyMock
  Expects any double argument.
anyFloat() - Static method in class org.easymock.EasyMock
  Expects any float argument.
anyInt() - Static method in class org.easymock.EasyMock
  Expects any int argument.
anyLong() - Static method in class org.easymock.EasyMock
  Expects any long argument.
anyObject() - Static method in class org.easymock.EasyMock
  Expects any Object argument.
anyShort() - Static method in class org.easymock.EasyMock
  Expects any short argument.
anyTimes() - Method in interface org.easymock.IExpectationSetters
  Expect the last invocation any times.
appendTo(StringBuffer) - Method in interface org.easymock.IArgumentMatcher
  Appends a string representation of this matcher to the given buffer.
argumentMatches(Object, Object) - Method in class org.easymock.AbstractMatcher
  Deprecated. Checks whether an expected argument matches an actual argument; the method is used by `AbstractMatcher.matches(Object[], Object[])`.
ArgumentsMatcher - Interface in org.easymock
  Deprecated. Since EasyMock 2.0, `ArgumentsMatcher`s 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.
argumentToString(Object) - Method in class org.easymock.AbstractMatcher
  Deprecated. Converts an argument to a String, used by `AbstractMatcher.toString(Object[])`.
ARRAY_MATCHER - Static variable in class org.easymock.MockControl
  Deprecated. 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.
aryEq(boolean[]) - Static method in class org.easymock.EasyMock
  Expects a boolean array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
aryEq(byte[]) - Static method in class org.easymock.EasyMock
  Expects a byte array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
aryEq(char[]) - Static method in class org.easymock.EasyMock
  Expects a char array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
aryEq(double[]) - Static method in class org.easymock.EasyMock
  Expects a double array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
aryEq(float[]) - Static method in class org.easymock.EasyMock
  Expects a float array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
aryEq(int[]) - Static method in class org.easymock.EasyMock
  Expects an int array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
aryEq(long[]) - Static method in class org.easymock.EasyMock
  Expects a long array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
aryEq(short[]) - Static method in class org.easymock.EasyMock
  Expects a short array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
aryEq(T[]) - Static method in class org.easymock.EasyMock
  Expects an Object array that is equal to the given array, i.e. it has to have the same type, length, and each element has to be equal.
asStub() - Method in interface org.easymock.IExpectationSetters
  Sets stub behavior for the expected invocation (this is needed for void methods).
atLeastOnce() - Method in interface org.easymock.IExpectationSetters
  Expect the last invocation at least once.

## C

checkOrder(Object, boolean) - Static method in class org.easymock.EasyMock
  Switches order checking of the given mock object (more exactly: the control of the mock object) the on and off.
checkOrder(boolean) - Method in interface org.easymock.IMocksControl
  Switches order checking on and off.
cmp(T, Comparator<T>, LogicalOperator) - Static method in class org.easymock.EasyMock
  Expects an argument that will be compared using the provided comparator.
cmpEq(Comparable<T>) - Static method in class org.easymock.EasyMock
  Expects a comparable argument equals to the given value according to their compareTo method.
contains(String) - Static method in class org.easymock.EasyMock
  Expects a string that contains the given substring.
createControl() - Static method in class org.easymock.EasyMock
  Creates a control, order checking is disabled by default.
createControl(Class<T>) - Static method in class org.easymock.MockControl
  Deprecated. Creates a mock control object for the specified interface.
createMock(Class<T>) - Static method in class org.easymock.EasyMock
  Creates a mock object that implements the given interface, order checking is disabled by default.
createMock(String, Class<T>) - Static method in class org.easymock.EasyMock
  Creates a mock object that implements the given interface, order checking is disabled by default.
createMock(Class<T>) - Method in interface org.easymock.IMocksControl
  Creates a mock object that implements the given interface.
createMock(String, Class<T>) - Method in interface org.easymock.IMocksControl
  Creates a mock object that implements the given interface.
createNiceControl() - Static method in class org.easymock.EasyMock
  Creates a control, order checking is disabled by default, and the mock objects created by this control will return `0`, `null` or `false` for unexpected invocations.
createNiceControl(Class<T>) - Static method in class org.easymock.MockControl
  Deprecated. Creates a mock control object for the specified interface.
createNiceMock(Class<T>) - Static method in class org.easymock.EasyMock
  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.
createNiceMock(String, Class<T>) - Static method in class org.easymock.EasyMock
  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.
createStrictControl() - Static method in class org.easymock.EasyMock
  Creates a control, order checking is enabled by default.
createStrictControl(Class<T>) - Static method in class org.easymock.MockControl
  Deprecated. Creates a mock control object for the specified interface.
createStrictMock(Class<T>) - Static method in class org.easymock.EasyMock
  Creates a mock object that implements the given interface, order checking is enabled by default.
createStrictMock(String, Class<T>) - Static method in class org.easymock.EasyMock
  Creates a mock object that implements the given interface, order checking is enabled by default.

## E

EasyMock - Class in org.easymock
EasyMock() - Constructor for class org.easymock.EasyMock
endsWith(String) - Static method in class org.easymock.EasyMock
  Expects a string that ends with the given suffix.
eq(boolean) - Static method in class org.easymock.EasyMock
  Expects a boolean that is equal to the given value.
eq(byte) - Static method in class org.easymock.EasyMock
  Expects a byte that is equal to the given value.
eq(char) - Static method in class org.easymock.EasyMock
  Expects a char that is equal to the given value.
eq(double) - Static method in class org.easymock.EasyMock
  Expects a double that is equal to the given value.
eq(float) - Static method in class org.easymock.EasyMock
  Expects a float that is equal to the given value.
eq(int) - Static method in class org.easymock.EasyMock
  Expects an int that is equal to the given value.
eq(long) - Static method in class org.easymock.EasyMock
  Expects a long that is equal to the given value.
eq(short) - Static method in class org.easymock.EasyMock
  Expects a short that is equal to the given value.
eq(T) - Static method in class org.easymock.EasyMock
  Expects an Object that is equal to the given value.
eq(double, double) - Static method in class org.easymock.EasyMock
  Expects a double that has an absolute difference to the given value that is less than the given delta.
eq(float, float) - Static method in class org.easymock.EasyMock
  Expects a float that has an absolute difference to the given value that is less than the given delta.
EQUALS_MATCHER - Static variable in class org.easymock.MockControl
  Deprecated. Matches if each expected argument is equal to the corresponding actual argument.
expect(T) - Static method in class org.easymock.EasyMock
  Returns the expectation setter for the last expected invocation in the current thread.
expectAndDefaultReturn(V1, V2) - Method in class org.easymock.MockControl
  Deprecated. Same as `setDefaultReturnValue(Object)`.
expectAndDefaultThrow(Object, Throwable) - Method in class org.easymock.MockControl
  Deprecated. Same as `setDefaultThrowable(Throwable)`.
expectAndReturn(V1, V2) - Method in class org.easymock.MockControl
  Deprecated. Same as `setReturnValue(Object)`.
expectAndReturn(int, int) - Method in class org.easymock.MockControl
  Deprecated.
expectAndReturn(V1, V2, Range) - Method in class org.easymock.MockControl
  Deprecated. Same as `setReturnValue(Object, Range)`.
expectAndReturn(int, int, Range) - Method in class org.easymock.MockControl
  Deprecated.
expectAndReturn(V1, V2, int) - Method in class org.easymock.MockControl
  Deprecated. Same as `setReturnValue(Object, int)`.
expectAndReturn(int, int, int) - Method in class org.easymock.MockControl
  Deprecated.
expectAndReturn(V1, V2, int, int) - Method in class org.easymock.MockControl
  Deprecated. Same as `setReturnValue(Object, int, int)`.
expectAndReturn(int, int, int, int) - Method in class org.easymock.MockControl
  Deprecated.
expectAndThrow(Object, Throwable) - Method in class org.easymock.MockControl
  Deprecated. Same as `setThrowable(Throwable)`.
expectAndThrow(Object, Throwable, Range) - Method in class org.easymock.MockControl
  Deprecated. Same as `setThrowable(Throwable, Range)`.
expectAndThrow(Object, Throwable, int) - Method in class org.easymock.MockControl
  Deprecated. Same as `setThrowable(Throwable, int)`.
expectAndThrow(Object, Throwable, int, int) - Method in class org.easymock.MockControl
  Deprecated. Same as `setThrowable(Throwable, int, int)`.
expectLastCall() - Static method in class org.easymock.EasyMock
  Returns the expectation setter for the last expected invocation in the current thread.

## F

find(String) - Static method in class org.easymock.EasyMock
  Expects a string that contains a substring that matches the given regular expression.

## G

geq(Comparable<T>) - Static method in class org.easymock.EasyMock
  Expects a comparable argument greater than or equal the given value.
geq(byte) - Static method in class org.easymock.EasyMock
  Expects a byte argument greater than or equal to the given value.
geq(double) - Static method in class org.easymock.EasyMock
  Expects a double argument greater than or equal to the given value.
geq(float) - Static method in class org.easymock.EasyMock
  Expects a float argument greater than or equal to the given value.
geq(int) - Static method in class org.easymock.EasyMock
  Expects an int argument greater than or equal to the given value.
geq(long) - Static method in class org.easymock.EasyMock
  Expects a long argument greater than or equal to the given value.
geq(short) - Static method in class org.easymock.EasyMock
  Expects a short argument greater than or equal to the given value.
getCurrentArguments() - Static method in class org.easymock.EasyMock
  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.
getMock() - Method in class org.easymock.MockControl
  Deprecated. Returns the mock object.
getSymbol() - Method in enum org.easymock.LogicalOperator
gt(Comparable<T>) - Static method in class org.easymock.EasyMock
  Expects a comparable argument greater than the given value.
gt(byte) - Static method in class org.easymock.EasyMock
  Expects a byte argument greater than the given value.
gt(double) - Static method in class org.easymock.EasyMock
  Expects a double argument greater than the given value.
gt(float) - Static method in class org.easymock.EasyMock
  Expects a float argument greater than the given value.
gt(int) - Static method in class org.easymock.EasyMock
  Expects an int argument greater than the given value.
gt(long) - Static method in class org.easymock.EasyMock
  Expects a long argument greater than the given value.
gt(short) - Static method in class org.easymock.EasyMock
  Expects a short argument greater than the given value.

## I

IAnswer<T> - Interface in org.easymock
  Used to answer expected calls.
IArgumentMatcher - Interface in org.easymock
  Decides whether an actual argument is accepted.
IExpectationSetters<T> - Interface in org.easymock
  Allows setting expectations for an associated expected invocation.
IMocksControl - Interface in org.easymock
  Controls all the mock objects created by it.
isA(Class<T>) - Static method in class org.easymock.EasyMock
  Expects an object implementing the given class.
isNull() - Static method in class org.easymock.EasyMock
  Expects null.

## L

leq(Comparable<T>) - Static method in class org.easymock.EasyMock
  Expects a comparable argument less than or equal the given value.
leq(byte) - Static method in class org.easymock.EasyMock
  Expects a byte argument less than or equal to the given value.
leq(double) - Static method in class org.easymock.EasyMock
  Expects a double argument less than or equal to the given value.
leq(float) - Static method in class org.easymock.EasyMock
  Expects a float argument less than or equal to the given value.
leq(int) - Static method in class org.easymock.EasyMock
  Expects an int argument less than or equal to the given value.
leq(long) - Static method in class org.easymock.EasyMock
  Expects a long argument less than or equal to the given value.
leq(short) - Static method in class org.easymock.EasyMock
  Expects a short argument less than or equal to the given value.
LogicalOperator - Enum in org.easymock
  See `EasyMock.cmp(T, java.util.Comparator, org.easymock.LogicalOperator)`
lt(Comparable<T>) - Static method in class org.easymock.EasyMock
  Expects a comparable argument less than the given value.
lt(byte) - Static method in class org.easymock.EasyMock
  Expects a byte argument less than the given value.
lt(double) - Static method in class org.easymock.EasyMock
  Expects a double argument less than the given value.
lt(float) - Static method in class org.easymock.EasyMock
  Expects a float argument less than the given value.
lt(int) - Static method in class org.easymock.EasyMock
  Expects an int argument less than the given value.
lt(long) - Static method in class org.easymock.EasyMock
  Expects a long argument less than the given value.
lt(short) - Static method in class org.easymock.EasyMock
  Expects a short argument less than the given value.

## M

matches(Object[], Object[]) - Method in class org.easymock.AbstractMatcher
  Deprecated. Checks whether an expected argument array matches an actual argument array.
matches(Object[], Object[]) - Method in interface org.easymock.ArgumentsMatcher
  Deprecated. Matches two arrays of arguments.
matches(String) - Static method in class org.easymock.EasyMock
  Expects a string that matches the given regular expression.
matches(Object) - Method in interface org.easymock.IArgumentMatcher
  Returns whether this matcher accepts the given argument.
matchResult(int) - Method in enum org.easymock.LogicalOperator
MockControl<T> - Class in org.easymock
  Deprecated. Since EasyMock 2.0, static methods on `EasyMock` are used to create and control mock objects.
MockControl(MocksControl, Class<T>) - Constructor for class org.easymock.MockControl
  Deprecated.

## N

not(boolean) - Static method in class org.easymock.EasyMock
  Expects a boolean that does not match the given expectation.
not(byte) - Static method in class org.easymock.EasyMock
  Expects a byte that does not match the given expectation.
not(char) - Static method in class org.easymock.EasyMock
  Expects a char that does not match the given expectation.
not(double) - Static method in class org.easymock.EasyMock
  Expects a double that does not match the given expectation.
not(float) - Static method in class org.easymock.EasyMock
  Expects a float that does not match the given expectation.
not(int) - Static method in class org.easymock.EasyMock
  Expects an int that does not match the given expectation.
not(long) - Static method in class org.easymock.EasyMock
  Expects a long that does not match the given expectation.
not(short) - Static method in class org.easymock.EasyMock
  Expects a short that does not match the given expectation.
not(T) - Static method in class org.easymock.EasyMock
  Expects an Object that does not match the given expectation.
notNull() - Static method in class org.easymock.EasyMock
  Expects not null.

## O

once() - Method in interface org.easymock.IExpectationSetters
  Expect the last invocation once.
ONE - Static variable in class org.easymock.MockControl
  Deprecated. Exactly one call.
ONE_OR_MORE - Static variable in class org.easymock.MockControl
  Deprecated. One or more calls.
or(boolean, boolean) - Static method in class org.easymock.EasyMock
  Expects a boolean that matches one of the given expectations.
or(byte, byte) - Static method in class org.easymock.EasyMock
  Expects a byte that matches one of the given expectations.
or(char, char) - Static method in class org.easymock.EasyMock
  Expects a char that matches one of the given expectations.
or(double, double) - Static method in class org.easymock.EasyMock
  Expects a double that matches one of the given expectations.
or(float, float) - Static method in class org.easymock.EasyMock
  Expects a float that matches one of the given expectations.
or(int, int) - Static method in class org.easymock.EasyMock
  Expects an int that matches one of the given expectations.
or(long, long) - Static method in class org.easymock.EasyMock
  Expects a long that matches one of the given expectations.
or(short, short) - Static method in class org.easymock.EasyMock
  Expects a short that matches one of the given expectations.
or(T, T) - Static method in class org.easymock.EasyMock
  Expects an Object that matches one of the given expectations.
org.easymock - package org.easymock

## R

replay(Object...) - Static method in class org.easymock.EasyMock
  Switches the given mock objects (more exactly: the controls of the mock objects) to replay mode.
replay() - Method in interface org.easymock.IMocksControl
  Switches the control from record mode to replay mode.
replay() - Method in class org.easymock.MockControl
  Deprecated. Switches the mock object from record state to replay state.
reportMatcher(IArgumentMatcher) - Static method in class org.easymock.EasyMock
  Reports an argument matcher.
reset(Object...) - Static method in class org.easymock.EasyMock
  Resets the given mock objects (more exactly: the controls of the mock objects).
reset() - Method in interface org.easymock.IMocksControl
  Removes all expectations for the mock objects of this control.
reset() - Method in class org.easymock.MockControl
  Deprecated. Resets the mock control and the mock object to the state directly after creation.

## S

same(T) - Static method in class org.easymock.EasyMock
  Expects an Object that is the same as the given value.
setDefaultMatcher(ArgumentsMatcher) - Method in class org.easymock.MockControl
  Deprecated. Sets the default ArgumentsMatcher for all methods of the mock object.
setDefaultReturnValue(Object) - Method in class org.easymock.MockControl
  Deprecated. 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
  Deprecated. 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
  Deprecated. 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
  Deprecated. Sets the ArgumentsMatcher for the last method called on the mock object.
setReturnValue(Object) - Method in class org.easymock.MockControl
  Deprecated. Records that the mock object will expect the last method call once, and will react by returning the provided return value.
setReturnValue(Object, int) - Method in class org.easymock.MockControl
  Deprecated. 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, Range) - Method in class org.easymock.MockControl
  Deprecated. 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, int) - Method in class org.easymock.MockControl
  Deprecated. 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
  Deprecated. 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
  Deprecated. 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, int, int) - Method in class org.easymock.MockControl
  Deprecated. Records that the mock object will expect the last method call between `minCount` and `maxCount` times, and will react by throwing the provided Throwable.
setThrowable(Throwable, Range) - Method in class org.easymock.MockControl
  Deprecated.
setVoidCallable() - Method in class org.easymock.MockControl
  Deprecated. 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
  Deprecated. Records that the mock object will expect the last method call a fixed number of times, and will react by returning silently.
setVoidCallable(int, int) - Method in class org.easymock.MockControl
  Deprecated. Records that the mock object will expect the last method call between `minCount` and `maxCount` times, and will react by returning silently.
setVoidCallable(Range) - Method in class org.easymock.MockControl
  Deprecated.
startsWith(String) - Static method in class org.easymock.EasyMock
  Expects a string that starts with the given prefix.

## T

times(int) - Method in interface org.easymock.IExpectationSetters
  Expect the last invocation `count` times.
times(int, int) - Method in interface org.easymock.IExpectationSetters
  Expect the last invocation between `min` and `max` times.
toString(Object[]) - Method in class org.easymock.AbstractMatcher
  Deprecated. Returns a string representation of the matcher.
toString(Object[]) - Method in interface org.easymock.ArgumentsMatcher
  Deprecated. Returns a string representation of the arguments.

## V

valueOf(String) - Static method in enum org.easymock.LogicalOperator
  Returns the enum constant of this type with the specified name.
values() - Static method in enum org.easymock.LogicalOperator
  Returns an array containing the constants of this enum type, in the order they are declared.
verify(Object...) - Static method in class org.easymock.EasyMock
  Verifies the given mock objects (more exactly: the controls of the mock objects).
verify() - Method in interface org.easymock.IMocksControl
  Verifies that all expectations were met.
verify() - Method in class org.easymock.MockControl
  Deprecated. Verifies that all expectations have been met.

## Z

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

A C E F G I L M N O R S T V Z

Package | Class | Tree | Deprecated | Index | Help

PREV NEXT | FRAMES NO FRAMES

Copyright © 2001-2007 OFFIS, Tammo Freese. This documentation is provided under the terms of the MIT licence.