A B C D E G I L M O P R V

A

AfterCreateMock - Annotation Type in org.unitils.easymock.annotation
Annotation that is called after a mock object has been created by the EasyMockModule
afterInit() - Method in class org.unitils.easymock.EasyMockModule
No after initialization needed for this module
afterTestMethod(Object, Method, Throwable) - Method in class org.unitils.easymock.EasyMockModule.EasyMockTestListener
After each test is executed this calls EasyMockModule.verify() to verify the recorded behavior of all created mocks.

B

beforeTestSetUp(Object, Method) - Method in class org.unitils.easymock.EasyMockModule.EasyMockTestListener
Before the test is executed this calls EasyMockModule.createAndInjectRegularMocksIntoTest(Object) to create and inject all mocks on the class.

C

callAfterCreateMockMethods(Object, Object, String, Class<?>) - Method in class org.unitils.easymock.EasyMockModule
Calls all AfterCreateMock annotated methods on the test, passing the given mock.
Calls - Enum in org.unitils.easymock.util
Possible values for allowing unexpected (non-recorded) method calls on mock objects.
createAndInjectMocksIntoTest(Object) - Method in class org.unitils.easymock.EasyMockModule
 
createAndInjectRegularMocksIntoTest(Object) - Method in class org.unitils.easymock.EasyMockModule
Creates and sets a mock for all RegularMock annotated fields.
createMock(Class<T>, InvocationOrder, Calls, Order, Dates, Defaults) - Method in class org.unitils.easymock.EasyMockModule
todo javadoc

Creates an EasyMock mock instance of the given type (class/interface).

createMock(Class<T>) - Static method in class org.unitils.easymock.EasyMockUnitils
Creates a lenient mock object of the given type.
createMock(Class<T>, InvocationOrder, Calls, Order, Dates, Defaults) - Static method in class org.unitils.easymock.EasyMockUnitils
Creates a lenient mock object of the given type.
createRegularMock(Class<T>, InvocationOrder, Calls) - Method in class org.unitils.easymock.EasyMockModule
Creates an EasyMock mock object of the given type.
createRegularMock(Class<T>) - Static method in class org.unitils.easymock.EasyMockUnitils
Creates a regular EasyMock mock object of the given type.
createRegularMock(Class<T>, InvocationOrder, Calls) - Static method in class org.unitils.easymock.EasyMockUnitils
Creates a regular EasyMock mock object of the given type.

D

Dates - Enum in org.unitils.easymock.util
Possible values for checking arguments with date values.
Defaults - Enum in org.unitils.easymock.util
Possible values for checking arguments with default values.

E

EasyMockModule - Class in org.unitils.easymock
Module for testing with mock objects using EasyMock.
EasyMockModule() - Constructor for class org.unitils.easymock.EasyMockModule
 
EasyMockModule.EasyMockTestListener - Class in org.unitils.easymock
Test listener that handles the mock creation and injection.
EasyMockModule.EasyMockTestListener() - Constructor for class org.unitils.easymock.EasyMockModule.EasyMockTestListener
 
EasyMockUnitils - Class in org.unitils.easymock
Utility facade for handling EasyMock things such as replay or manually creating a mock.
EasyMockUnitils() - Constructor for class org.unitils.easymock.EasyMockUnitils
 

G

getState() - Method in class org.unitils.easymock.util.LenientMocksControl
Overriden to be able to replace the record behavior that going to record all method invocations.
getTestListener() - Method in class org.unitils.easymock.EasyMockModule
Creates the listener for plugging in the behavior of this module into the test runs.

I

init(Properties) - Method in class org.unitils.easymock.EasyMockModule
Initializes the module
InvocationOrder - Enum in org.unitils.easymock.util
Possible values for checking the order of method invocation on the mock.

L

lenEq(T) - Static method in class org.unitils.easymock.EasyMockUnitils
Expects the given object argument but uses a reflection argument matcher to compare the given value with the actual value during the test.
LenientMocksControl - Class in org.unitils.easymock.util
An EasyMock mock control that uses the reflection argument matcher for all arguments of a method invocation.
LenientMocksControl(ReflectionComparatorMode...) - Constructor for class org.unitils.easymock.util.LenientMocksControl
Creates a default (no default returns and no order checking) mock control.
LenientMocksControl(MocksControl.MockType, ReflectionComparatorMode...) - Constructor for class org.unitils.easymock.util.LenientMocksControl
Creates a mock control.

M

matches(Object) - Method in class org.unitils.easymock.util.ReflectionArgumentMatcher
Checks whether the given actual value is equal to the expected value.
Mock - Annotation Type in org.unitils.easymock.annotation
Annotation indicating that a lenient mock object (see LenientMocksControl should be created and set intp the annotated field.

O

Order - Enum in org.unitils.easymock.util
 
org.unitils.easymock - package org.unitils.easymock
 
org.unitils.easymock.annotation - package org.unitils.easymock.annotation
 
org.unitils.easymock.util - package org.unitils.easymock.util
 

P

PROPKEY_AUTO_VERIFY_AFTER_TEST_ENABLED - Static variable in class org.unitils.easymock.EasyMockModule
 

R

refEq(T, ReflectionComparatorMode...) - Static method in class org.unitils.easymock.EasyMockUnitils
Expects the given object argument but uses a reflection argument matcher with the given comparator modes to compare the given value with the actual value during the test.
ReflectionArgumentMatcher<T> - Class in org.unitils.easymock.util
An easy mock argument matcher to check whether 2 objects are equal by comparing all fields of the objects using reflection.
ReflectionArgumentMatcher(T, ReflectionComparatorMode...) - Constructor for class org.unitils.easymock.util.ReflectionArgumentMatcher
Creates a matcher for the expected argument value.
RegularMock - Annotation Type in org.unitils.easymock.annotation
Annotation indicating that a regular EasyMock mock object should be created and set in the annotated field.
replay() - Method in class org.unitils.easymock.EasyMockModule
Replays all mock controls.
replay() - Static method in class org.unitils.easymock.EasyMockUnitils
Unit tests should call this method after having set their recorded expected behavior on the mock objects.

V

valueOf(String) - Static method in enum org.unitils.easymock.util.Calls
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.unitils.easymock.util.Dates
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.unitils.easymock.util.Defaults
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.unitils.easymock.util.InvocationOrder
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.unitils.easymock.util.Order
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.unitils.easymock.util.Calls
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.unitils.easymock.util.Dates
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.unitils.easymock.util.Defaults
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.unitils.easymock.util.InvocationOrder
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.unitils.easymock.util.Order
Returns an array containing the constants of this enum type, in the order they are declared.
verify() - Method in class org.unitils.easymock.EasyMockModule
This method makes sure MocksControl.verify() method is called for every mock mock object that was injected to a field annotated with Mock, or directly created by calling EasyMockModule.createRegularMock(Class,InvocationOrder,Calls) or EasyMockModule.createMock(Class,InvocationOrder,Calls,Order,Dates,Defaults).
verify() - Static method in class org.unitils.easymock.EasyMockUnitils
Unit tests can call this method to check whether all recorded expected behavior was actually observed during the test.

A B C D E G I L M O P R V

Copyright © 2011. All Rights Reserved.