A C E G M N R S T V

A

addExpectedParameters(Object[]) - Method in class net.sf.surrogate.core.MockMethod
Sets up the next excpected arguments for the method.
addMock(Object) - Method in class net.sf.surrogate.core.SurrogateManager
Adds a Mock object to the manager for later lookup by Aspect code.
addMockMethod(MockMethod) - Method in class net.sf.surrogate.core.SurrogateManager
Adds a mock method to the manager for later lookup by Aspect code.
addReturnValue(Object) - Method in class net.sf.surrogate.core.MockMethod
Sets up the next return value of the mock method.
addThrowableReturnValue(Throwable) - Method in class net.sf.surrogate.core.MockMethod
Adds an errror to the list of return values.

C

createInstance() - Static method in class net.sf.surrogate.core.SurrogateManager
Created an instance of the manager.

E

ExceptionThrower - class net.sf.surrogate.core.ExceptionThrower.
Throws an exception without declaring it!.
ExceptionThrower() - Constructor for class net.sf.surrogate.core.ExceptionThrower
 
execute(Object[]) - Method in class net.sf.surrogate.core.MockMethod
Performs the actual method call.
execute(Object[]) - Method in interface net.sf.surrogate.core.SurrogateManager.MockExecutor
If the manager returns a non-null MockExecutor, the calling advice should call "execute" and return the "execute" return value.

G

getAccessibleObject() - Method in class net.sf.surrogate.core.MockMethod
Gets the java reflection method or constructor
getInstance() - Static method in class net.sf.surrogate.core.SurrogateManager
Gets the manager singleton
getMockConstructor(Constructor) - Method in class net.sf.surrogate.core.SurrogateManager
Gets a registered Mock method reference for a constructor
getMockExecutor(JoinPoint) - Method in class net.sf.surrogate.core.SurrogateManager
Gets the mock object or mock method for a joinpoint.
getMockMethod(JoinPoint) - Method in class net.sf.surrogate.core.SurrogateManager
Checks if an AspectJ "mock" joinpoint has an assoicated mock method registered by the manager.
getMockMethod(Method) - Method in class net.sf.surrogate.core.SurrogateManager
Gets a registered Mock method reference for a method.
getMockObject(Class) - Method in class net.sf.surrogate.core.SurrogateManager
Locates and gets a Mock object for an interface or a class.
getReturnedClassMock(JoinPoint) - Method in class net.sf.surrogate.core.SurrogateManager
Checks if an AspectJ "mock" joinpoint has an assoicated mock object registered by the manager.

M

MockMethod - class net.sf.surrogate.core.MockMethod.
General mock class to mock a specific method.
MockMethod(Class, Class[]) - Constructor for class net.sf.surrogate.core.MockMethod
MockMethod(Class, String) - Constructor for class net.sf.surrogate.core.MockMethod
MockMethod(Class, String, Class[]) - Constructor for class net.sf.surrogate.core.MockMethod

N

net.sf.surrogate.core - package net.sf.surrogate.core
 

R

removeMock(Object) - Method in class net.sf.surrogate.core.SurrogateManager
Removes a mock from the manager.
removeMockMethod(MockMethod) - Method in class net.sf.surrogate.core.SurrogateManager
Removes a mock method from the manager.
reset() - Method in class net.sf.surrogate.core.MockMethod
Resets the mock method counters, expectation values and stored actual values.
reset() - Method in class net.sf.surrogate.core.SurrogateManager
Removes all Mock objects and methods from the list of active objects.

S

setExpectedCalls(int) - Method in class net.sf.surrogate.core.MockMethod
Sets the number of expected calls to this method.
SurrogateCalls - class net.sf.surrogate.core.SurrogateCalls.
Abstract aspect for use with the Surrogate framework.
SurrogateCalls() - Constructor for class net.sf.surrogate.core.SurrogateCalls
 
SurrogateManager - class net.sf.surrogate.core.SurrogateManager.
The link between Mock/ Unit Test objects and AspectJ code.
SurrogateManager.MockExecutor - interface net.sf.surrogate.core.SurrogateManager.MockExecutor.
Defines, towards the AspectJ layer, the mock object or method to be executed.

T

throwThrowable(Throwable) - Static method in class net.sf.surrogate.core.ExceptionThrower
Throws a throwable as an unchecked exception.
toString() - Method in class net.sf.surrogate.core.MockMethod
Gets a textual representation of this MockMethod

V

verify() - Method in class net.sf.surrogate.core.MockMethod
Verifies that the method has been called as many times as specified in MockMethod.setExpectedCalls(int)

A C E G M N R S T V