Skip navigation links
A B C D E F G H I J L M N O P R S T U V W Z 

A

accepts(Injection) - Method in class org.easymock.internal.InjectionTarget
Can the given Injection be applied to this InjectionTarget?
add(Result, Range) - Method in class org.easymock.internal.Results
 
addActual(Invocation) - Method in interface org.easymock.internal.IMocksBehavior
 
addActual(Invocation) - Method in class org.easymock.internal.MocksBehavior
 
addActual(Invocation) - Method in class org.easymock.internal.UnorderedBehavior
 
addCapture(Captures<Object>, Object) - Method in class org.easymock.internal.Invocation
 
addExpected(ExpectedInvocation, Result, Range) - Method in interface org.easymock.internal.IMocksBehavior
 
addExpected(ExpectedInvocation, Result, Range) - Method in class org.easymock.internal.MocksBehavior
 
addExpected(ExpectedInvocation, Result, Range) - Method in class org.easymock.internal.UnorderedBehavior
 
addInjection(Injection) - Method in class org.easymock.internal.InjectionPlan
Add an Injection to this container.
addMockedMethod(Method) - Method in interface org.easymock.IMockBuilder
Adds a method to be mocked in the testing class.
addMockedMethod(String) - Method in interface org.easymock.IMockBuilder
Adds a method to be mocked in the testing class.
addMockedMethod(String, Class<?>...) - Method in interface org.easymock.IMockBuilder
Adds a method to be mocked in the testing class.
addMockedMethod(Method) - Method in class org.easymock.internal.MockBuilder
 
addMockedMethod(String) - Method in class org.easymock.internal.MockBuilder
 
addMockedMethod(String, Class<?>...) - Method in class org.easymock.internal.MockBuilder
 
addMockedMethods(String...) - Method in interface org.easymock.IMockBuilder
Adds methods to be mocked in the testing class.
addMockedMethods(Method...) - Method in interface org.easymock.IMockBuilder
Adds methods to be mocked in the testing class.
addMockedMethods(String...) - Method in class org.easymock.internal.MockBuilder
 
addMockedMethods(Method...) - Method in class org.easymock.internal.MockBuilder
 
addStub(ExpectedInvocation, Result) - Method in interface org.easymock.internal.IMocksBehavior
 
addStub(ExpectedInvocation, Result) - Method in class org.easymock.internal.MocksBehavior
 
addTestSubjectField(Field) - Method in class org.easymock.internal.InjectionPlan
Add a field that should be treated as a test subject injection target.
afterInvocation(IInvokedMethod, ITestResult) - Method in class org.easymock.EasyMockListener
 
allowsExpectedInvocation(ExpectedInvocation, boolean) - Method in class org.easymock.internal.UnorderedBehavior
 
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.
And - Class in org.easymock.internal.matchers
 
And(List<IArgumentMatcher>) - Constructor for class org.easymock.internal.matchers.And
 
andAnswer(IAnswer<? extends 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).
andAnswer(IAnswer<?>) - Method in interface org.easymock.internal.IMocksControlState
 
andAnswer(IAnswer<? extends Object>) - Method in class org.easymock.internal.MocksControl
 
andAnswer(IAnswer<?>) - Method in class org.easymock.internal.RecordState
 
andAnswer(IAnswer<?>) - Method in class org.easymock.internal.ReplayState
 
andDelegateTo(Object) - Method in interface org.easymock.IExpectationSetters
Sets an object implementing the same interface as the mock.
andDelegateTo(Object) - Method in interface org.easymock.internal.IMocksControlState
 
andDelegateTo(Object) - Method in class org.easymock.internal.MocksControl
 
andDelegateTo(Object) - Method in class org.easymock.internal.RecordState
 
andDelegateTo(Object) - Method in class org.easymock.internal.ReplayState
 
andReturn(T) - Method in interface org.easymock.IExpectationSetters
Sets a return value that will be returned for the expected invocation.
andReturn(Object) - Method in interface org.easymock.internal.IMocksControlState
 
andReturn(Object) - Method in class org.easymock.internal.MocksControl
 
andReturn(Object) - Method in class org.easymock.internal.RecordState
 
andReturn(Object) - Method in class org.easymock.internal.ReplayState
 
AndroidClassProxyFactory - Class in org.easymock.internal
Mocks concrete classes for Android's runtime by generating dex files.
AndroidClassProxyFactory() - Constructor for class org.easymock.internal.AndroidClassProxyFactory
 
AndroidSupport - Class in org.easymock.internal
Android-specific support.
AndroidSupport() - Constructor for class org.easymock.internal.AndroidSupport
 
andStubAnswer(IAnswer<? extends 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).
andStubAnswer(IAnswer<?>) - Method in interface org.easymock.internal.IMocksControlState
 
andStubAnswer(IAnswer<? extends Object>) - Method in class org.easymock.internal.MocksControl
 
andStubAnswer(IAnswer<?>) - Method in class org.easymock.internal.RecordState
 
andStubAnswer(IAnswer<?>) - Method in class org.easymock.internal.ReplayState
 
andStubDelegateTo(Object) - Method in interface org.easymock.IExpectationSetters
Sets a stub object implementing the same interface as the mock.
andStubDelegateTo(Object) - Method in interface org.easymock.internal.IMocksControlState
 
andStubDelegateTo(Object) - Method in class org.easymock.internal.MocksControl
 
andStubDelegateTo(Object) - Method in class org.easymock.internal.RecordState
 
andStubDelegateTo(Object) - Method in class org.easymock.internal.ReplayState
 
andStubReturn(T) - Method in interface org.easymock.IExpectationSetters
Sets a stub return value that will be returned for the expected invocation.
andStubReturn(Object) - Method in interface org.easymock.internal.IMocksControlState
 
andStubReturn(Object) - Method in class org.easymock.internal.MocksControl
 
andStubReturn(Object) - Method in class org.easymock.internal.RecordState
 
andStubReturn(Object) - Method in class org.easymock.internal.ReplayState
 
andStubThrow(Throwable) - Method in interface org.easymock.IExpectationSetters
Sets a stub throwable that will be thrown for the expected invocation.
andStubThrow(Throwable) - Method in interface org.easymock.internal.IMocksControlState
 
andStubThrow(Throwable) - Method in class org.easymock.internal.MocksControl
 
andStubThrow(Throwable) - Method in class org.easymock.internal.RecordState
 
andStubThrow(Throwable) - Method in class org.easymock.internal.ReplayState
 
andThrow(Throwable) - Method in interface org.easymock.IExpectationSetters
Sets a throwable that will be thrown for the expected invocation.
andThrow(Throwable) - Method in interface org.easymock.internal.IMocksControlState
 
andThrow(Throwable) - Method in class org.easymock.internal.MocksControl
 
andThrow(Throwable) - Method in class org.easymock.internal.RecordState
 
andThrow(Throwable) - Method in class org.easymock.internal.ReplayState
 
andVoid() - Method in interface org.easymock.IExpectationSetters
Records a call but returns nothing.
andVoid() - Method in interface org.easymock.internal.IMocksControlState
 
andVoid() - Method in class org.easymock.internal.MocksControl
 
andVoid() - Method in class org.easymock.internal.RecordState
 
andVoid() - Method in class org.easymock.internal.ReplayState
 
answer() - Method in interface org.easymock.IAnswer
Is called by EasyMock to answer an expected call.
answer() - Method in class org.easymock.internal.Result
 
Any - Class in org.easymock.internal.matchers
 
ANY - Static variable in class org.easymock.internal.matchers.Any
 
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.
anyObject(Class<T>) - Static method in class org.easymock.EasyMock
Expects any Object argument.
anyShort() - Static method in class org.easymock.EasyMock
Expects any short argument.
anyString() - Static method in class org.easymock.EasyMock
Expect any string whatever its content is.
anyTimes() - Method in interface org.easymock.IExpectationSetters
Expect the last invocation any times.
anyTimes() - Method in class org.easymock.internal.MocksControl
 
appendArgument(Object, StringBuffer) - Static method in class org.easymock.internal.ArgumentToString
 
appendTo(StringBuffer) - Method in interface org.easymock.IArgumentMatcher
Appends a string representation of this matcher to the given buffer.
appendTo(StringBuilder, int) - Method in class org.easymock.internal.ErrorMessage
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.And
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.Any
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.ArrayEquals
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.Captures
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.Compare
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.CompareTo
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.Contains
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.EndsWith
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.Equals
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.EqualsWithDelta
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.Find
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.InstanceOf
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.Matches
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.Not
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.NotNull
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.Null
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.Or
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.Same
 
appendTo(StringBuffer) - Method in class org.easymock.internal.matchers.StartsWith
 
apply(Statement, Description) - Method in class org.easymock.EasyMockRule
 
argumentsToString(Object...) - Static method in class org.easymock.internal.ArgumentToString
Returns a string representation of the arguments.
ArgumentToString - Class in org.easymock.internal
Utility class to convert method arguments to Strings
argumentToString(Object) - Static method in class org.easymock.internal.ArgumentToString
Converts an argument to a String using ArgumentToString.appendArgument(Object, StringBuffer)
ArrayEquals - Class in org.easymock.internal.matchers
 
ArrayEquals(Object) - Constructor for class org.easymock.internal.matchers.ArrayEquals
 
aryEq(boolean[]) - Static method in class org.easymock.EasyMock
Expects a boolean array that is equal to the given array, i.e.
aryEq(byte[]) - Static method in class org.easymock.EasyMock
Expects a byte array that is equal to the given array, i.e.
aryEq(char[]) - Static method in class org.easymock.EasyMock
Expects a char array that is equal to the given array, i.e.
aryEq(double[]) - Static method in class org.easymock.EasyMock
Expects a double array that is equal to the given array, i.e.
aryEq(float[]) - Static method in class org.easymock.EasyMock
Expects a float array that is equal to the given array, i.e.
aryEq(int[]) - Static method in class org.easymock.EasyMock
Expects an int array that is equal to the given array, i.e.
aryEq(long[]) - Static method in class org.easymock.EasyMock
Expects a long array that is equal to the given array, i.e.
aryEq(short[]) - Static method in class org.easymock.EasyMock
Expects a short array that is equal to the given array, i.e.
aryEq(T[]) - Static method in class org.easymock.EasyMock
Expects an Object array that is equal to the given array, i.e.
AssertionErrorWrapper - Exception in org.easymock.internal
 
AssertionErrorWrapper(AssertionError) - Constructor for exception org.easymock.internal.AssertionErrorWrapper
 
assertRecordState() - Method in interface org.easymock.internal.IMocksControlState
 
assertRecordState() - Method in class org.easymock.internal.RecordState
 
assertRecordState() - Method in class org.easymock.internal.ReplayState
 
asStub() - Method in interface org.easymock.IExpectationSetters
Sets stub behavior for the expected invocation (this is needed for void methods).
asStub() - Method in interface org.easymock.internal.IMocksControlState
 
asStub() - Method in class org.easymock.internal.MocksControl
 
asStub() - Method in class org.easymock.internal.RecordState
 
asStub() - Method in class org.easymock.internal.ReplayState
 
AT_LEAST_ONCE - Static variable in class org.easymock.internal.MocksControl
One or more calls.
atLeastOnce() - Method in interface org.easymock.IExpectationSetters
Expect the last invocation at least once.
atLeastOnce() - Method in class org.easymock.internal.MocksControl
 

B

beforeInvocation(IInvokedMethod, ITestResult) - Method in class org.easymock.EasyMockListener
 
BridgeMethodResolver - Class in org.easymock.internal
Code taken from the Spring framework.

C

callback(Runnable) - Method in class org.easymock.internal.ReplayState
 
Capture<T> - Class in org.easymock
Will contain what was captured by the capture() matcher.
Capture() - Constructor for class org.easymock.Capture
Deprecated.
Capture(CaptureType) - Constructor for class org.easymock.Capture
Deprecated.
capture(Capture<T>) - Static method in class org.easymock.EasyMock
Expect any object but captures it for later use.
captureBoolean(Capture<Boolean>) - Static method in class org.easymock.EasyMock
Expect any boolean but captures it for later use.
captureByte(Capture<Byte>) - Static method in class org.easymock.EasyMock
Expect any byte but captures it for later use.
captureChar(Capture<Character>) - Static method in class org.easymock.EasyMock
Expect any char but captures it for later use.
captureDouble(Capture<Double>) - Static method in class org.easymock.EasyMock
Expect any double but captures it for later use.
captureFloat(Capture<Float>) - Static method in class org.easymock.EasyMock
Expect any float but captures it for later use.
captureInt(Capture<Integer>) - Static method in class org.easymock.EasyMock
Expect any int but captures it for later use.
captureLong(Capture<Long>) - Static method in class org.easymock.EasyMock
Expect any long but captures it for later use.
Captures<T> - Class in org.easymock.internal.matchers
 
Captures(Capture<T>) - Constructor for class org.easymock.internal.matchers.Captures
 
CaptureType - Enum in org.easymock
Defines how arguments will be captured by a Capture object
checkIsUsedInOneThread(Object, boolean) - Static method in class org.easymock.EasyMock
Tell that the mock should be used in only one thread.
checkIsUsedInOneThread(boolean) - Method in interface org.easymock.IMocksControl
Check that the mock is called from only one thread
checkIsUsedInOneThread(boolean) - Method in interface org.easymock.internal.IMocksControlState
 
checkIsUsedInOneThread(boolean) - Method in class org.easymock.internal.MocksControl
 
checkIsUsedInOneThread(boolean) - Method in class org.easymock.internal.RecordState
 
checkIsUsedInOneThread(boolean) - Method in class org.easymock.internal.ReplayState
 
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.
checkOrder(boolean) - Method in interface org.easymock.internal.IMocksBehavior
 
checkOrder(boolean) - Method in interface org.easymock.internal.IMocksControlState
 
checkOrder(boolean) - Method in class org.easymock.internal.MocksBehavior
 
checkOrder(boolean) - Method in class org.easymock.internal.MocksControl
 
checkOrder(boolean) - Method in class org.easymock.internal.RecordState
 
checkOrder(boolean) - Method in class org.easymock.internal.ReplayState
 
checkThreadSafety() - Method in interface org.easymock.internal.IMocksBehavior
 
checkThreadSafety() - Method in class org.easymock.internal.MocksBehavior
 
ClassInstantiatorFactory - Class in org.easymock.internal
Factory returning a IClassInstantiatorfor the current JVM
ClassProxyFactory - Class in org.easymock.internal
Factory generating a mock for a class.
ClassProxyFactory() - Constructor for class org.easymock.internal.ClassProxyFactory
 
ClassProxyFactory.MockMethodInterceptor - Class in org.easymock.internal
 
clearCaptures() - Method in class org.easymock.internal.Invocation
 
cmp(T, Comparator<? super T>, LogicalOperator) - Static method in class org.easymock.EasyMock
Expects an argument that will be compared using the provided comparator.
cmpEq(T) - Static method in class org.easymock.EasyMock
Expects a comparable argument equals to the given value according to their compareTo method.
Compare<T> - Class in org.easymock.internal.matchers
 
Compare(T, Comparator<? super T>, LogicalOperator) - Constructor for class org.easymock.internal.matchers.Compare
 
CompareEqual<T extends Comparable<T>> - Class in org.easymock.internal.matchers
 
CompareEqual(Comparable<T>) - Constructor for class org.easymock.internal.matchers.CompareEqual
 
CompareTo<T extends Comparable<T>> - Class in org.easymock.internal.matchers
 
CompareTo(Comparable<T>) - Constructor for class org.easymock.internal.matchers.CompareTo
 
ConstructorArgs - Class in org.easymock
Class wrapping arguments to create a partial class mock that gets instantiated by calling one of its constructors
ConstructorArgs(Constructor<?>, Object...) - Constructor for class org.easymock.ConstructorArgs
 
contains(String) - Static method in class org.easymock.EasyMock
Expects a string that contains the given substring.
Contains - Class in org.easymock.internal.matchers
 
Contains(String) - Constructor for class org.easymock.internal.matchers.Contains
 
contains(int) - Method in class org.easymock.internal.Range
 
controls - Variable in class org.easymock.EasyMockSupport
List of all controls created
createAnswerResult(IAnswer<?>) - Static method in class org.easymock.internal.Result
 
createControl(MockType) - Static method in class org.easymock.EasyMock
Creates a control of the requested type.
createControl() - Static method in class org.easymock.EasyMock
Creates a control, order checking is disabled by default.
createControl(MockType) - Method in class org.easymock.EasyMockSupport
Creates a control of the given type.
createControl() - Method in class org.easymock.EasyMockSupport
Creates a control, order checking is disabled by default.
createDelegatingResult(Object) - Static method in class org.easymock.internal.Result
 
createMock(MockType, Class<T>) - Static method in class org.easymock.EasyMock
Creates a mock object, of the requested type, that implements the given interface or extends the given class.
createMock(String, MockType, Class<T>) - Static method in class org.easymock.EasyMock
Creates a mock object, of the requested type and name, that implements the given interface or extends the given class
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(MockType, Class<T>) - Method in class org.easymock.EasyMockSupport
Creates a mock object of the requested type that implements the given interface or extends the given class
createMock(String, MockType, Class<T>) - Method in class org.easymock.EasyMockSupport
Creates a mock object of the requested type that implements the given interface or extends the given class
createMock(Class<T>) - Method in class org.easymock.EasyMockSupport
Creates a mock object that implements the given interface, order checking is disabled by default.
createMock(String, Class<T>) - Method in class org.easymock.EasyMockSupport
Creates a mock object that implements the given interface, order checking is disabled by default.
createMock(MockType) - Method in interface org.easymock.IMockBuilder
Create mock of the request type from this builder.
createMock() - Method in interface org.easymock.IMockBuilder
Create a default mock from this builder.
createMock(IMocksControl) - Method in interface org.easymock.IMockBuilder
Create mock from the provided mock control using the arguments passed to the builder.
createMock(String, MockType) - Method in interface org.easymock.IMockBuilder
Create a named mock of the request type from this builder.
createMock(String) - Method in interface org.easymock.IMockBuilder
Create named mock from the provided mock control using the arguments passed to the builder.
createMock(String, IMocksControl) - Method in interface org.easymock.IMockBuilder
Create named mock from the provided mock control using the arguments passed to the builder.
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.
createMock(String, Class<T>, ConstructorArgs, Method...) - Method in interface org.easymock.IMocksControl
Creates a mock object that implements the given class.
createMock(MockType) - Method in class org.easymock.internal.MockBuilder
 
createMock(String, MockType) - Method in class org.easymock.internal.MockBuilder
 
createMock(IMocksControl) - Method in class org.easymock.internal.MockBuilder
 
createMock() - Method in class org.easymock.internal.MockBuilder
 
createMock(String, IMocksControl) - Method in class org.easymock.internal.MockBuilder
 
createMock(String) - Method in class org.easymock.internal.MockBuilder
 
createMock(Class<T>) - Method in class org.easymock.internal.MocksControl
 
createMock(String, Class<T>) - Method in class org.easymock.internal.MocksControl
 
createMock(String, Class<T>, ConstructorArgs, Method...) - Method in class org.easymock.internal.MocksControl
 
createMockBuilder(Class<T>) - Static method in class org.easymock.EasyMock
Create a mock builder allowing to create a partial mock for the given class or interface.
createMockBuilder(Class<T>) - Method in class org.easymock.EasyMockSupport
Create a mock builder allowing to create a partial mock for the given class or 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() - Method in class org.easymock.EasyMockSupport
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.
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.
createNiceMock(Class<T>) - Method in class org.easymock.EasyMockSupport
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>) - Method in class org.easymock.EasyMockSupport
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() - Method in interface org.easymock.IMockBuilder
Create a nice mock from this builder.
createNiceMock(String) - Method in interface org.easymock.IMockBuilder
Create a named nice mock from this builder.
createNiceMock() - Method in class org.easymock.internal.MockBuilder
 
createNiceMock(String) - Method in class org.easymock.internal.MockBuilder
 
createProxy(Class<T>, InvocationHandler, Method[], ConstructorArgs) - Method in class org.easymock.internal.AndroidClassProxyFactory
 
createProxy(Class<T>, InvocationHandler, Method[], ConstructorArgs) - Method in class org.easymock.internal.ClassProxyFactory
 
createProxy(Class<T>, InvocationHandler, Method[], ConstructorArgs) - Method in interface org.easymock.internal.IProxyFactory
 
createProxy(Class<T>, InvocationHandler, Method[], ConstructorArgs) - Method in class org.easymock.internal.JavaProxyFactory
 
createReturnResult(Object) - Static method in class org.easymock.internal.Result
 
createStrictControl() - Static method in class org.easymock.EasyMock
Creates a control, order checking is enabled by default.
createStrictControl() - Method in class org.easymock.EasyMockSupport
Creates a control, order checking is enabled by default.
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.
createStrictMock(Class<T>) - Method in class org.easymock.EasyMockSupport
Creates a mock object that implements the given interface, order checking is enabled by default.
createStrictMock(String, Class<T>) - Method in class org.easymock.EasyMockSupport
Creates a mock object that implements the given interface, order checking is enabled by default.
createStrictMock() - Method in interface org.easymock.IMockBuilder
Create a strict mock from this builder.
createStrictMock(String) - Method in interface org.easymock.IMockBuilder
Create a named strict mock from this builder.
createStrictMock() - Method in class org.easymock.internal.MockBuilder
 
createStrictMock(String) - Method in class org.easymock.internal.MockBuilder
 
createThrowResult(Throwable) - Static method in class org.easymock.internal.Result
 

D

DefaultClassInstantiator - Class in org.easymock.internal
Default class instantiator that is pretty limited.
DefaultClassInstantiator() - Constructor for class org.easymock.internal.DefaultClassInstantiator
 
DISABLE_CLASS_MOCKING - Static variable in class org.easymock.EasyMock
Since EasyMock 3.0, EasyMock can perform class mocking directly without using the class extension.

E

EasyMock - Class in org.easymock
Main EasyMock class.
EasyMockListener - Class in org.easymock
 
EasyMockListener() - Constructor for class org.easymock.EasyMockListener
 
EasyMockProperties - Class in org.easymock.internal
Contains properties used by EasyMock to change its default behavior.
EasyMockRule - Class in org.easymock
JUnit Rule used to process Mock and TestSubject annotations.
EasyMockRule(Object) - Constructor for class org.easymock.EasyMockRule
 
EasyMockRunner - Class in org.easymock
JUnit runner used to process Mock and TestSubject annotations.
EasyMockRunner(Class<?>) - Constructor for class org.easymock.EasyMockRunner
 
EasyMockStatement - Class in org.easymock.internal
JUnit Statement for use by JUnit Rule or JUnit Runner to process Mock and TestSubject annotations.
EasyMockStatement(Statement, Object) - Constructor for class org.easymock.internal.EasyMockStatement
 
EasyMockSupport - Class in org.easymock
Helper class to keep track of mocks easily.
EasyMockSupport() - Constructor for class org.easymock.EasyMockSupport
 
emptyReturnValueFor(Class<?>) - Static method in class org.easymock.internal.RecordState
 
ENABLE_THREAD_SAFETY_CHECK_BY_DEFAULT - Static variable in class org.easymock.EasyMock
Since EasyMock 2.4, by default, a mock wasn't allowed to be called in multiple threads unless it was made thread-safe (See EasyMock.makeThreadSafe(Object, boolean) method).
endsWith(String) - Static method in class org.easymock.EasyMock
Expects a string that ends with the given suffix.
EndsWith - Class in org.easymock.internal.matchers
 
EndsWith(String) - Constructor for class org.easymock.internal.matchers.EndsWith
 
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(Object) - Method in class org.easymock.internal.ExpectedInvocation
 
equals(Object) - Method in class org.easymock.internal.Invocation
 
Equals - Class in org.easymock.internal.matchers
 
Equals(Object) - Constructor for class org.easymock.internal.matchers.Equals
 
equals(Object) - Method in class org.easymock.internal.matchers.Equals
 
EqualsWithDelta - Class in org.easymock.internal.matchers
 
EqualsWithDelta(Number, Number) - Constructor for class org.easymock.internal.matchers.EqualsWithDelta
 
ErrorMessage - Class in org.easymock.internal
 
ErrorMessage(boolean, String, int) - Constructor for class org.easymock.internal.ErrorMessage
 
evaluate() - Method in class org.easymock.internal.EasyMockStatement
 
expect(T) - Static method in class org.easymock.EasyMock
Returns the expectation setter for the last expected invocation in the current thread.
expectedCount() - Method in class org.easymock.internal.Range
 
ExpectedInvocation - Class in org.easymock.internal
 
ExpectedInvocation(Invocation, List<IArgumentMatcher>) - Constructor for class org.easymock.internal.ExpectedInvocation
 
ExpectedInvocationAndResult - Class in org.easymock.internal
 
ExpectedInvocationAndResult(ExpectedInvocation, Result) - Constructor for class org.easymock.internal.ExpectedInvocationAndResult
 
ExpectedInvocationAndResults - Class in org.easymock.internal
 
ExpectedInvocationAndResults(ExpectedInvocation, Results) - Constructor for class org.easymock.internal.ExpectedInvocationAndResults
 
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.
Find - Class in org.easymock.internal.matchers
 
Find(String) - Constructor for class org.easymock.internal.matchers.Find
 
findBridgedMethod(Method) - Static method in class org.easymock.internal.BridgeMethodResolver
Find the original method for the supplied bridge Method.
findMethod(Class<?>, String) - Static method in class org.easymock.internal.ReflectionUtils
Attempt to find a Method on the supplied class with the supplied name and no parameters.
findMethod(Class<?>, String, Class<?>...) - Static method in class org.easymock.internal.ReflectionUtils
Attempt to find a Method on the supplied class with the supplied name and parameter types.

G

geq(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.
getActualCount() - Method in class org.easymock.internal.ErrorMessage
 
getAnnotation() - Method in class org.easymock.internal.Injection
Gets the annotation describing this mock instance.
getArgsForTypes(Class<?>[]) - Method in class org.easymock.internal.DefaultClassInstantiator
Get some default instances of provided classes
getArguments() - Method in class org.easymock.internal.Invocation
 
getAssertionError() - Method in exception org.easymock.internal.AssertionErrorWrapper
 
getCallCount() - Method in class org.easymock.internal.Results
 
getConstructor() - Method in class org.easymock.ConstructorArgs
 
getConstructor(Class<T>, Object...) - Static method in class org.easymock.internal.ReflectionUtils
Returns a constructor that contains objs as arguments.
getConstructorToUse(Class<?>) - Method in class org.easymock.internal.DefaultClassInstantiator
Return the constructor considered the best to use with this class.
getControl() - Method in class org.easymock.internal.MockInvocationHandler
 
getControl(Object) - Static method in class org.easymock.internal.MocksControl
 
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.
getCurrentInvocation() - Static method in class org.easymock.internal.LastControl
 
getDeclaredMethod(Class<?>, String, Class<?>...) - Static method in class org.easymock.internal.ReflectionUtils
Basically calls getDeclaredMethod on a Class but wraps the NoSuchMethodException into a Runtime.
getDelegate() - Method in class org.easymock.internal.ObjectMethodsFilter
 
getEasyMockProperty(String) - Static method in class org.easymock.EasyMock
Get the current value for an EasyMock property
getEmptyValue(Class<?>) - Static method in class org.easymock.internal.PrimitiveUtils
 
getExpected() - Method in class org.easymock.internal.matchers.Equals
 
getExpectedInvocation() - Method in class org.easymock.internal.ExpectedInvocationAndResult
 
getExpectedInvocation() - Method in class org.easymock.internal.ExpectedInvocationAndResults
 
getInitArgs() - Method in class org.easymock.ConstructorArgs
 
getInstance() - Static method in class org.easymock.internal.EasyMockProperties
 
getInstantiator() - Static method in class org.easymock.internal.ClassInstantiatorFactory
Returns a class instantiator suitable for the current JVM
getInvocationHandler(Object) - Method in class org.easymock.internal.AndroidClassProxyFactory
 
getInvocationHandler(Object) - Method in class org.easymock.internal.ClassProxyFactory
 
getInvocationHandler(Object) - Method in interface org.easymock.internal.IProxyFactory
Returns the invocation handler for mock;
getInvocationHandler(Object) - Method in class org.easymock.internal.JavaProxyFactory
 
getInvocationHandler(Object) - Static method in class org.easymock.internal.MocksControl
 
getJVM() - Static method in class org.easymock.internal.ClassInstantiatorFactory
Returns the current JVM as specified in the System properties
getJVMSpecificationVersion() - Static method in class org.easymock.internal.ClassInstantiatorFactory
Returns the current JVM specification version (1.5, 1.4, 1.3)
getMaximum() - Method in class org.easymock.internal.Range
 
getMessage() - Method in class org.easymock.internal.ErrorMessage
 
getMessages(Invocation) - Method in class org.easymock.internal.UnorderedBehavior
 
getMethod() - Method in class org.easymock.internal.ExpectedInvocation
 
getMethod() - Method in class org.easymock.internal.Invocation
 
getMethod() - Method in class org.easymock.internal.MethodSerializationWrapper
 
getMinimum() - Method in class org.easymock.internal.Range
 
getMock() - Method in class org.easymock.internal.Injection
Gets the mock instance for this injection.
getMock() - Method in class org.easymock.internal.Invocation
 
getMockAndMethodName() - Method in class org.easymock.internal.Invocation
 
getMockedClass(T) - Static method in class org.easymock.EasyMockSupport
Will return the class that was mocked if it's a mock or null otherwise.
getMockedClass(T) - Static method in class org.easymock.internal.MocksControl
Return the class of interface (depending on the mock type) that was mocked
getMockedType(T) - Static method in class org.easymock.internal.MocksControl
Deprecated.
getName() - Method in class org.easymock.internal.matchers.CompareEqual
 
getName() - Method in class org.easymock.internal.matchers.CompareTo
 
getName() - Method in class org.easymock.internal.matchers.GreaterOrEqual
 
getName() - Method in class org.easymock.internal.matchers.GreaterThan
 
getName() - Method in class org.easymock.internal.matchers.LessOrEqual
 
getName() - Method in class org.easymock.internal.matchers.LessThan
 
getPrimitiveTypeNameFromWrapper(Class<?>) - Static method in class org.easymock.internal.PrimitiveUtils
 
getProperty(String, String) - Method in class org.easymock.internal.EasyMockProperties
Searches for the property with the specified key.
getProperty(String) - Method in class org.easymock.internal.EasyMockProperties
Searches for the property with the specified key.
getProxyFactory(Object) - Static method in class org.easymock.internal.MocksControl
 
getQualifiedInjections() - Method in class org.easymock.internal.InjectionPlan
Get all injections having fieldName qualifiers.
getQualifier() - Method in class org.easymock.internal.Injection
Get the field name qualifier for this injection.
getResult() - Method in class org.easymock.internal.ExpectedInvocationAndResult
 
getResults() - Method in class org.easymock.internal.ExpectedInvocationAndResults
 
getRuntimeException() - Method in exception org.easymock.internal.RuntimeExceptionWrapper
 
getState() - Method in class org.easymock.internal.MocksControl
 
getSymbol() - Method in enum org.easymock.LogicalOperator
 
getTargetField() - Method in class org.easymock.internal.InjectionTarget
Get the field to which injections will be assigned.
getTestSubjectFields() - Method in class org.easymock.internal.InjectionPlan
Get fields identified as test subjects to which injection of mocks should be attempted.
getThrowable() - Method in class org.easymock.internal.ThrowableWrapper
 
getType() - Method in class org.easymock.internal.MocksControl
 
getUnqualifiedInjections() - Method in class org.easymock.internal.InjectionPlan
Get all injections that do not have fieldName qualifiers.
getValue() - Method in class org.easymock.Capture
Return captured value
getValues() - Method in class org.easymock.Capture
Return all captured values.
getWrapperType(Class<?>) - Static method in class org.easymock.internal.PrimitiveUtils
 
GreaterOrEqual<T extends Comparable<T>> - Class in org.easymock.internal.matchers
 
GreaterOrEqual(Comparable<T>) - Constructor for class org.easymock.internal.matchers.GreaterOrEqual
 
GreaterThan<T extends Comparable<T>> - Class in org.easymock.internal.matchers
 
GreaterThan(Comparable<T>) - Constructor for class org.easymock.internal.matchers.GreaterThan
 
gt(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.

H

hasCaptured() - Method in class org.easymock.Capture
 
hasFixedCount() - Method in class org.easymock.internal.Range
 
hashCode() - Method in class org.easymock.internal.ExpectedInvocation
 
hashCode() - Method in class org.easymock.internal.Invocation
 
hashCode() - Method in class org.easymock.internal.matchers.Equals
 
hasOpenCount() - Method in class org.easymock.internal.Range
 
hasResults() - Method in class org.easymock.internal.Results
 
hasValidCallCount() - Method in class org.easymock.internal.Results
 

I

IAnswer<T> - Interface in org.easymock
Used to answer expected calls.
IArgumentMatcher - Interface in org.easymock
Decides whether an actual argument is accepted.
IClassInstantiator - Interface in org.easymock.internal
Used to instantiate a given class.
IExpectationSetters<T> - Interface in org.easymock
Allows setting expectations for an associated expected invocation.
IMockBuilder<T> - Interface in org.easymock
Helps the creation of partial mocks with EasyMock.
IMocksBehavior - Interface in org.easymock.internal
 
IMocksControl - Interface in org.easymock
Controls all the mock objects created by it.
IMocksControlState - Interface in org.easymock.internal
 
inject(Object, Injection) - Method in class org.easymock.internal.InjectionTarget
Perform the injection against the given object set the "matched" status of the injection when successful.
Injection - Class in org.easymock.internal
Described mock instance for injection.
Injection(Object, Mock) - Constructor for class org.easymock.internal.Injection
Create instance containing the given mock and annotation.
InjectionPlan - Class in org.easymock.internal
Container for mock injections and test subject injection targets.
InjectionPlan() - Constructor for class org.easymock.internal.InjectionPlan
 
InjectionTarget - Class in org.easymock.internal
Applies an Injection to a target field.
InjectionTarget(Field) - Constructor for class org.easymock.internal.InjectionTarget
Create instance for injection to the given field.
injectMocks(Object) - Static method in class org.easymock.EasyMockSupport
Inject a mock to every fields annotated with Mock on the class passed in parameter.
injectMocks(Object) - Static method in class org.easymock.internal.Injector
Inject a mock to every fields annotated with Mock on the class passed in parameter.
Injector - Class in org.easymock.internal
Performs creation of mocks and injection into test subjects in accordance with annotations present in the host object.
Injector() - Constructor for class org.easymock.internal.Injector
 
InstanceOf - Class in org.easymock.internal.matchers
 
InstanceOf(Class<?>) - Constructor for class org.easymock.internal.matchers.InstanceOf
 
intercept(Object, Method, Object[], MethodProxy) - Method in class org.easymock.internal.ClassProxyFactory.MockMethodInterceptor
 
Invocation - Class in org.easymock.internal
 
Invocation(Object, Method, Object[]) - Constructor for class org.easymock.internal.Invocation
 
invoke(Invocation) - Method in interface org.easymock.internal.IMocksControlState
 
invoke(Object, Method, Object[]) - Method in class org.easymock.internal.MockInvocationHandler
 
invoke(Object, Method, Object[]) - Method in class org.easymock.internal.ObjectMethodsFilter
 
invoke(Invocation) - Method in class org.easymock.internal.RecordState
 
invoke(Invocation) - Method in class org.easymock.internal.ReplayState
 
IProxyFactory - Interface in org.easymock.internal
 
is1_3Specifications() - Static method in class org.easymock.internal.ClassInstantiatorFactory
 
isA(Class<T>) - Static method in class org.easymock.EasyMock
Expects an object implementing the given class.
isAndroid() - Static method in class org.easymock.internal.AndroidSupport
 
isCallerMockInvocationHandlerInvoke(Throwable) - Static method in class org.easymock.internal.ClassProxyFactory
 
isClassAvailable(String) - Static method in class org.easymock.internal.ReflectionUtils
Tells if a class is available in the classpath
isJavaIdentifier(String) - Static method in class org.easymock.internal.Invocation
 
isMatched() - Method in class org.easymock.internal.Injection
Is this injection matched by some injection target?
isMatching() - Method in class org.easymock.internal.ErrorMessage
 
isNull() - Static method in class org.easymock.EasyMock
Expects null.
isNull(Class<T>) - Static method in class org.easymock.EasyMock
Expects null.
isPrimitiveWrapper(Class<?>) - Static method in class org.easymock.internal.PrimitiveUtils
 
isThreadSafe() - Method in interface org.easymock.internal.IMocksBehavior
 
isThreadSafe() - Method in class org.easymock.internal.MocksBehavior
 

J

JavaProxyFactory - Class in org.easymock.internal
 
JavaProxyFactory() - Constructor for class org.easymock.internal.JavaProxyFactory
 

L

LastControl - Class in org.easymock.internal
 
lastControl() - Static method in class org.easymock.internal.LastControl
 
leq(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.
LessOrEqual<T extends Comparable<T>> - Class in org.easymock.internal.matchers
 
LessOrEqual(Comparable<T>) - Constructor for class org.easymock.internal.matchers.LessOrEqual
 
LessThan<T extends Comparable<T>> - Class in org.easymock.internal.matchers
 
LessThan(Comparable<T>) - Constructor for class org.easymock.internal.matchers.LessThan
 
LogicalOperator - Enum in org.easymock
lt(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

makeThreadSafe(Object, boolean) - Static method in class org.easymock.EasyMock
By default, a mock is thread safe (unless EasyMock.NOT_THREAD_SAFE_BY_DEFAULT is set).
makeThreadSafe(boolean) - Method in interface org.easymock.IMocksControl
Makes the mock thread safe.
makeThreadSafe(boolean) - Method in interface org.easymock.internal.IMocksBehavior
 
makeThreadSafe(boolean) - Method in interface org.easymock.internal.IMocksControlState
 
makeThreadSafe(boolean) - Method in class org.easymock.internal.MocksBehavior
 
makeThreadSafe(boolean) - Method in class org.easymock.internal.MocksControl
 
makeThreadSafe(boolean) - Method in class org.easymock.internal.RecordState
 
makeThreadSafe(boolean) - Method in class org.easymock.internal.ReplayState
 
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.
matches(Invocation) - Method in class org.easymock.internal.ExpectedInvocation
 
matches(Object) - Method in class org.easymock.internal.matchers.And
 
matches(Object) - Method in class org.easymock.internal.matchers.Any
 
matches(Object) - Method in class org.easymock.internal.matchers.ArrayEquals
 
matches(Object) - Method in class org.easymock.internal.matchers.Captures
 
matches(Object) - Method in class org.easymock.internal.matchers.Compare
 
matches(Object) - Method in class org.easymock.internal.matchers.CompareTo
 
matches(Object) - Method in class org.easymock.internal.matchers.Contains
 
matches(Object) - Method in class org.easymock.internal.matchers.EndsWith
 
matches(Object) - Method in class org.easymock.internal.matchers.Equals
 
matches(Object) - Method in class org.easymock.internal.matchers.EqualsWithDelta
 
matches(Object) - Method in class org.easymock.internal.matchers.Find
 
matches(Object) - Method in class org.easymock.internal.matchers.InstanceOf
 
Matches - Class in org.easymock.internal.matchers
 
Matches(String) - Constructor for class org.easymock.internal.matchers.Matches
 
matches(Object) - Method in class org.easymock.internal.matchers.Matches
 
matches(Object) - Method in class org.easymock.internal.matchers.Not
 
matches(Object) - Method in class org.easymock.internal.matchers.NotNull
 
matches(Object) - Method in class org.easymock.internal.matchers.Null
 
matches(Object) - Method in class org.easymock.internal.matchers.Or
 
matches(Object) - Method in class org.easymock.internal.matchers.Same
 
matches(Object) - Method in class org.easymock.internal.matchers.StartsWith
 
matchResult(int) - Method in class org.easymock.internal.matchers.CompareEqual
 
matchResult(int) - Method in class org.easymock.internal.matchers.CompareTo
 
matchResult(int) - Method in class org.easymock.internal.matchers.GreaterOrEqual
 
matchResult(int) - Method in class org.easymock.internal.matchers.GreaterThan
 
matchResult(int) - Method in class org.easymock.internal.matchers.LessOrEqual
 
matchResult(int) - Method in class org.easymock.internal.matchers.LessThan
 
matchResult(int) - Method in enum org.easymock.LogicalOperator
 
MethodSerializationWrapper - Class in org.easymock.internal
 
MethodSerializationWrapper(Method) - Constructor for class org.easymock.internal.MethodSerializationWrapper
 
mock(Class<T>) - Static method in class org.easymock.EasyMock
Creates a mock object that implements the given interface, order checking is disabled by default.
mock(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.
mock(MockType, Class<T>) - Static method in class org.easymock.EasyMock
Creates a mock object, of the requested type, that implements the given interface or extends the given class
mock(String, MockType, Class<T>) - Static method in class org.easymock.EasyMock
Creates a mock object, of the requested type and name, that implements the given interface or extends the given class
mock(Class<T>) - Method in class org.easymock.EasyMockSupport
Creates a mock object that implements the given interface, order checking is disabled by default.
mock(String, Class<T>) - Method in class org.easymock.EasyMockSupport
Creates a mock object that implements the given interface, order checking is disabled by default.
mock(MockType, Class<T>) - Method in class org.easymock.EasyMockSupport
Creates a mock object of the requested type that implements the given interface or extends the given class
mock(String, MockType, Class<T>) - Method in class org.easymock.EasyMockSupport
Creates a mock object of the requested type that implements the given interface or extends the given class
Mock - Annotation Type in org.easymock
Annotation to set on a field so that EasyMockRunner, EasyMockRule or EasyMockSupport.injectMocks(Object) will inject a mock to it.
MockBuilder<T> - Class in org.easymock.internal
Default implementation of IMockBuilder.
MockBuilder(Class<T>) - Constructor for class org.easymock.internal.MockBuilder
 
MockBuilder(Class<T>, EasyMockSupport) - Constructor for class org.easymock.internal.MockBuilder
Used by EasyMockSupport to allow the mock registration in the list of controls
MockInvocationHandler - Class in org.easymock.internal
 
MockInvocationHandler(MocksControl) - Constructor for class org.easymock.internal.MockInvocationHandler
 
MockMethodInterceptor(InvocationHandler) - Constructor for class org.easymock.internal.ClassProxyFactory.MockMethodInterceptor
 
MocksBehavior - Class in org.easymock.internal
 
MocksBehavior(boolean) - Constructor for class org.easymock.internal.MocksBehavior
 
MocksControl - Class in org.easymock.internal
 
MocksControl(MockType) - Constructor for class org.easymock.internal.MocksControl
 
MocksControl(MocksControl.MockType) - Constructor for class org.easymock.internal.MocksControl
 
MocksControl.MockType - Enum in org.easymock.internal
Deprecated.
Use org.easymock.MockType
MockType - Enum in org.easymock
Enum describing the 3 possibles kind of mocks

N

newCapture() - Static method in class org.easymock.EasyMock
Create a new capture instance that will keep only the last captured value.
newCapture(CaptureType) - Static method in class org.easymock.EasyMock
Create a new capture instance with a specific CaptureType
newInstance() - Static method in class org.easymock.Capture
Create a new capture instance that will keep only the last captured value
newInstance(CaptureType) - Static method in class org.easymock.Capture
Create a new capture instance with a specific CaptureType
newInstance(Class<?>) - Method in class org.easymock.internal.DefaultClassInstantiator
Try to instantiate a class without using a special constructor.
newInstance(Class<?>) - Method in interface org.easymock.internal.IClassInstantiator
Return a new instance of the specified class.
newInstance(Class<?>) - Method in class org.easymock.internal.ObjenesisClassInstantiator
 
next() - Method in class org.easymock.internal.Results
 
niceMock(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.
niceMock(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.
niceMock(Class<T>) - Method in class org.easymock.EasyMockSupport
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.
niceMock(String, Class<T>) - Method in class org.easymock.EasyMockSupport
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.
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.
Not - Class in org.easymock.internal.matchers
 
Not(IArgumentMatcher) - Constructor for class org.easymock.internal.matchers.Not
 
NOT_NULL - Static variable in class org.easymock.internal.matchers.NotNull
 
NOT_THREAD_SAFE_BY_DEFAULT - Static variable in class org.easymock.EasyMock
Since EasyMock 2.5, by default a mock is thread-safe.
notNull() - Static method in class org.easymock.EasyMock
Expects not null.
notNull(Class<T>) - Static method in class org.easymock.EasyMock
Expects not null.
NotNull - Class in org.easymock.internal.matchers
 
Null - Class in org.easymock.internal.matchers
 
NULL - Static variable in class org.easymock.internal.matchers.Null
 

O

OBJECT_EQUALS - Static variable in class org.easymock.internal.ReflectionUtils
 
OBJECT_FINALIZE - Static variable in class org.easymock.internal.ReflectionUtils
 
OBJECT_HASHCODE - Static variable in class org.easymock.internal.ReflectionUtils
 
OBJECT_TOSTRING - Static variable in class org.easymock.internal.ReflectionUtils
 
ObjectMethodsFilter - Class in org.easymock.internal
 
ObjectMethodsFilter(Class<?>, MockInvocationHandler, String) - Constructor for class org.easymock.internal.ObjectMethodsFilter
 
ObjenesisClassInstantiator - Class in org.easymock.internal
 
ObjenesisClassInstantiator() - Constructor for class org.easymock.internal.ObjenesisClassInstantiator
 
once() - Method in interface org.easymock.IExpectationSetters
Expect the last invocation once.
ONCE - Static variable in class org.easymock.internal.MocksControl
Exactly one call.
once() - Method in class org.easymock.internal.MocksControl
 
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.
Or - Class in org.easymock.internal.matchers
 
Or(List<IArgumentMatcher>) - Constructor for class org.easymock.internal.matchers.Or
 
org.easymock - package org.easymock
 
org.easymock.internal - package org.easymock.internal
 
org.easymock.internal.matchers - package org.easymock.internal.matchers
 

P

partialMockBuilder(Class<T>) - Static method in class org.easymock.EasyMock
Create a mock builder allowing to create a partial mock for the given class or interface.
partialMockBuilder(Class<T>) - Method in class org.easymock.EasyMockSupport
Create a mock builder allowing to create a partial mock for the given class or interface.
popCurrentInvocation() - Static method in class org.easymock.internal.LastControl
 
PrimitiveUtils - Class in org.easymock.internal
 
pullMatchers() - Static method in class org.easymock.internal.LastControl
 
pushCurrentInvocation(Invocation) - Static method in class org.easymock.internal.LastControl
 

R

Range - Class in org.easymock.internal
 
Range(int) - Constructor for class org.easymock.internal.Range
 
Range(int, int) - Constructor for class org.easymock.internal.Range
 
realType - Variable in enum org.easymock.internal.MocksControl.MockType
Deprecated.
 
RecordState - Class in org.easymock.internal
 
RecordState(IMocksBehavior) - Constructor for class org.easymock.internal.RecordState
 
ReflectionUtils - Class in org.easymock.internal
 
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 interface org.easymock.internal.IMocksControlState
 
replay() - Method in class org.easymock.internal.MocksControl
 
replay() - Method in class org.easymock.internal.RecordState
 
replay() - Method in class org.easymock.internal.ReplayState
 
replayAll() - Method in class org.easymock.EasyMockSupport
Switches all registered mock objects (more exactly: the controls of the mock objects) to replay mode.
ReplayState - Class in org.easymock.internal
 
ReplayState(IMocksBehavior) - Constructor for class org.easymock.internal.ReplayState
 
reportAnd(int) - Static method in class org.easymock.internal.LastControl
 
reportLastControl(MocksControl) - Static method in class org.easymock.internal.LastControl
 
reportMatcher(IArgumentMatcher) - Static method in class org.easymock.EasyMock
Reports an argument matcher.
reportMatcher(IArgumentMatcher) - Static method in class org.easymock.internal.LastControl
 
reportNot() - Static method in class org.easymock.internal.LastControl
 
reportOr(int) - Static method in class org.easymock.internal.LastControl
 
reset() - Method in class org.easymock.Capture
Will reset capture to a "nothing captured yet" state
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.internal.MocksControl
 
resetAll() - Method in class org.easymock.EasyMockSupport
Resets all registered mock objects (more exactly: the controls of the mock objects).
resetAllToDefault() - Method in class org.easymock.EasyMockSupport
Resets all registered mock objects (more exactly: the controls of the mock objects) and turn them to a mock with default behavior.
resetAllToNice() - Method in class org.easymock.EasyMockSupport
Resets all registered mock objects (more exactly: the controls of the mock objects) and turn them to a mock with nice behavior.
resetAllToStrict() - Method in class org.easymock.EasyMockSupport
Resets all registered mock objects (more exactly: the controls of the mock objects) and turn them to a mock with strict behavior.
resetToDefault(Object...) - Static method in class org.easymock.EasyMock
Resets the given mock objects (more exactly: the controls of the mock objects) and turn them to a mock with default behavior.
resetToDefault() - Method in interface org.easymock.IMocksControl
Removes all expectations for the mock objects of this control and turn them to default mocks.
resetToDefault() - Method in class org.easymock.internal.MocksControl
 
resetToNice(Object...) - Static method in class org.easymock.EasyMock
Resets the given mock objects (more exactly: the controls of the mock objects) and turn them to a mock with nice behavior.
resetToNice() - Method in interface org.easymock.IMocksControl
Removes all expectations for the mock objects of this control and turn them to nice mocks.
resetToNice() - Method in class org.easymock.internal.MocksControl
 
resetToStrict(Object...) - Static method in class org.easymock.EasyMock
Resets the given mock objects (more exactly: the controls of the mock objects) and turn them to a mock with strict behavior.
resetToStrict() - Method in interface org.easymock.IMocksControl
Removes all expectations for the mock objects of this control and turn them to strict mocks.
resetToStrict() - Method in class org.easymock.internal.MocksControl
 
Result - Class in org.easymock.internal
 
Results - Class in org.easymock.internal
 
Results() - Constructor for class org.easymock.internal.Results
 
RuntimeExceptionWrapper - Exception in org.easymock.internal
 
RuntimeExceptionWrapper(RuntimeException) - Constructor for exception org.easymock.internal.RuntimeExceptionWrapper
 

S

same(T) - Static method in class org.easymock.EasyMock
Expects an Object that is the same as the given value.
Same - Class in org.easymock.internal.matchers
 
Same(Object) - Constructor for class org.easymock.internal.matchers.Same
 
setDefaultInstantiator() - Static method in class org.easymock.internal.ClassInstantiatorFactory
Set back the default instantiator
setEasyMockProperty(String, String) - Static method in class org.easymock.EasyMock
Set a property to modify the default EasyMock behavior.
setInstantiator(IClassInstantiator) - Static method in class org.easymock.internal.ClassInstantiatorFactory
Allow to override the default instantiator.
setMatched() - Method in class org.easymock.internal.Injection
Change the status to indicate that this injection was matched to some target.
setMockedMethods(Method...) - Method in class org.easymock.internal.ClassProxyFactory.MockMethodInterceptor
 
setPotentialValue(T) - Method in class org.easymock.internal.matchers.Captures
 
setProperty(String, String) - Method in class org.easymock.internal.EasyMockProperties
Add a value referenced by the provided key.
setValue(T) - Method in class org.easymock.Capture
Used internally by the EasyMock framework to add a new captured value
shouldBeUsedInOneThread(boolean) - Method in interface org.easymock.internal.IMocksBehavior
 
shouldBeUsedInOneThread(boolean) - Method in class org.easymock.internal.MocksBehavior
 
shouldFillInStackTrace() - Method in class org.easymock.internal.Result
 
startsWith(String) - Static method in class org.easymock.EasyMock
Expects a string that starts with the given prefix.
StartsWith - Class in org.easymock.internal.matchers
 
StartsWith(String) - Constructor for class org.easymock.internal.matchers.StartsWith
 
strictMock(Class<T>) - Static method in class org.easymock.EasyMock
Creates a mock object that implements the given interface, order checking is enabled by default.
strictMock(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.
strictMock(Class<T>) - Method in class org.easymock.EasyMockSupport
Creates a mock object that implements the given interface, order checking is enabled by default.
strictMock(String, Class<T>) - Method in class org.easymock.EasyMockSupport
Creates a mock object that implements the given interface, order checking is enabled by default.

T

TestSubject - Annotation Type in org.easymock
Annotation to set on a field so that EasyMockRunner, EasyMockRule or EasyMockSupport.injectMocks(Object) will inject mocks created with Mock on its fields.
ThrowableWrapper - Class in org.easymock.internal
 
ThrowableWrapper(Throwable) - Constructor for class org.easymock.internal.ThrowableWrapper
 
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.
times(Range) - Method in interface org.easymock.internal.IMocksControlState
 
times(int) - Method in class org.easymock.internal.MocksControl
 
times(int, int) - Method in class org.easymock.internal.MocksControl
 
times(Range) - Method in class org.easymock.internal.RecordState
 
times(Range) - Method in class org.easymock.internal.ReplayState
 
toString() - Method in class org.easymock.Capture
 
toString() - Method in class org.easymock.internal.ExpectedInvocation
 
toString() - Method in class org.easymock.internal.ExpectedInvocationAndResults
 
toString() - Method in class org.easymock.internal.Invocation
 
toString() - Method in class org.easymock.internal.Range
 
toString() - Method in class org.easymock.internal.Result
 
toString() - Method in class org.easymock.internal.Results
 

U

UnorderedBehavior - Class in org.easymock.internal
 
UnorderedBehavior(boolean) - Constructor for class org.easymock.internal.UnorderedBehavior
 

V

validateCapture() - Method in class org.easymock.internal.matchers.Captures
 
validateCaptures() - Method in class org.easymock.internal.Invocation
 
valueOf(String) - Static method in enum org.easymock.CaptureType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.easymock.internal.MocksControl.MockType
Deprecated.
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.easymock.LogicalOperator
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.easymock.MockType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.easymock.CaptureType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.easymock.internal.MocksControl.MockType
Deprecated.
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.easymock.LogicalOperator
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.easymock.MockType
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 that all expectations were met and that no unexpected call was performed on the mock objects.
verify() - Method in interface org.easymock.IMocksControl
Verifies that all expectations were met and that no unexpected call was performed.
verify() - Method in interface org.easymock.internal.IMocksBehavior
 
verify() - Method in interface org.easymock.internal.IMocksControlState
 
verify() - Method in class org.easymock.internal.MocksBehavior
 
verify() - Method in class org.easymock.internal.MocksControl
 
verify() - Method in class org.easymock.internal.RecordState
 
verify() - Method in class org.easymock.internal.ReplayState
 
verify() - Method in class org.easymock.internal.UnorderedBehavior
 
verifyAll() - Method in class org.easymock.EasyMockSupport
Verifies all registered mock objects have their expectations met and that no unexpected call was performed.
verifyAllRecordings() - Method in class org.easymock.EasyMockSupport
Verifies all registered mock objects have their expectations met.
verifyAllUnexpectedCalls() - Method in class org.easymock.EasyMockSupport
Verifies that no registered mock objects had unexpected calls.
verifyRecording(Object...) - Static method in class org.easymock.EasyMock
Verifies that all expectations were met.
verifyRecording() - Method in interface org.easymock.IMocksControl
Verifies that all expectations were met.
verifyRecording() - Method in interface org.easymock.internal.IMocksBehavior
 
verifyRecording() - Method in interface org.easymock.internal.IMocksControlState
 
verifyRecording() - Method in class org.easymock.internal.MocksBehavior
 
verifyRecording() - Method in class org.easymock.internal.MocksControl
 
verifyRecording() - Method in class org.easymock.internal.RecordState
 
verifyRecording() - Method in class org.easymock.internal.ReplayState
 
verifyUnexpectedCalls(Object...) - Static method in class org.easymock.EasyMock
Verifies that no unexpected call was performed.
verifyUnexpectedCalls() - Method in interface org.easymock.IMocksControl
Verifies that no unexpected call was performed.
verifyUnexpectedCalls() - Method in interface org.easymock.internal.IMocksBehavior
 
verifyUnexpectedCalls() - Method in interface org.easymock.internal.IMocksControlState
 
verifyUnexpectedCalls() - Method in class org.easymock.internal.MocksBehavior
 
verifyUnexpectedCalls() - Method in class org.easymock.internal.MocksControl
 
verifyUnexpectedCalls() - Method in class org.easymock.internal.RecordState
 
verifyUnexpectedCalls() - Method in class org.easymock.internal.ReplayState
 

W

withArgs(Object...) - Method in interface org.easymock.IMockBuilder
Defines the arguments to be passed to the constructor of the class.
withArgs(Object...) - Method in class org.easymock.internal.MockBuilder
 
withBefores(FrameworkMethod, Object, Statement) - Method in class org.easymock.EasyMockRunner
We are required to override a deprecated method because it's the only way the perform the mock injection before the @Before of our class being called.
withConstructor(Constructor<?>) - Method in interface org.easymock.IMockBuilder
Defines the constructor to use to instantiate the mock.
withConstructor() - Method in interface org.easymock.IMockBuilder
Defines the empty constructor should be called.
withConstructor(Object...) - Method in interface org.easymock.IMockBuilder
Defines the constructor parameters for the mocked class.
withConstructor(Class<?>...) - Method in interface org.easymock.IMockBuilder
Defines the exact argument types for the constructor to use.
withConstructor(Constructor<?>) - Method in class org.easymock.internal.MockBuilder
 
withConstructor(ConstructorArgs) - Method in class org.easymock.internal.MockBuilder
 
withConstructor() - Method in class org.easymock.internal.MockBuilder
 
withConstructor(Object...) - Method in class org.easymock.internal.MockBuilder
 
withConstructor(Class<?>...) - Method in class org.easymock.internal.MockBuilder
 

Z

ZERO_OR_MORE - Static variable in class org.easymock.internal.MocksControl
Zero or more calls.
A B C D E F G H I J L M N O P R S T U V W Z 
Skip navigation links

Copyright © 2001–2017 EasyMock contributors. All rights reserved.