A C E G I J M N O P R S T V

A

Actions - class jface.mockobject.Actions.
The Actions class is used to record actions in a Mock Object.
Actions() - Constructor for class jface.mockobject.Actions
 
assertEmpty() - Method in class jface.mockobject.Actions
Asserts no more recorded actions are available.
assertEquals(Object, Object) - Static method in class jface.mockobject.util.ObjectUtils
Asserts that both parameters are equal.
assertExpectation() - Method in class jface.mockobject.Actions
The same as Actions.assertExpectation(Object[]) but without parameters.
assertExpectation(Object[]) - Method in class jface.mockobject.Actions
Asserts that the expectation is true.
assertReturnValue() - Method in class jface.mockobject.Actions
The same as Actions.assertReturnValue(Object[]), but without parameters.
assertReturnValue(Object[]) - Method in class jface.mockobject.Actions
Asserts the correct parameters and method name.
assertThrowable() - Method in class jface.mockobject.Actions
The same as Actions.assertThrowable(Object[]), without parameters.
assertThrowable(Object[]) - Method in class jface.mockobject.Actions
Asserts the correct method name and parameters, and throws the Throwable of the Expectation defined by Expectation.throwable(Throwable).

C

CALLING_METHOD_NAME_DEPTH - Static variable in class jface.mockobject.util.MethodUtils
 

E

expect(Expectation) - Method in class jface.mockobject.Actions
The basic method to assign an Expectation to the actions.
Expectation - class jface.mockobject.Expectation.
The Expectation object encapsulates all information expected as behaviour of a mock object.
Expectation(String) - Constructor for class jface.mockobject.Expectation
Creates a new Expectation object for the mock method with the given name.
Expectation(String, boolean, boolean) - Constructor for class jface.mockobject.Expectation
Creates a new Expectation object for the mock method with the given name.
expectsReturnValue() - Method in class jface.mockobject.Actions
Returns true, if the next expectation expects a return value.
expectsThrowable() - Method in class jface.mockobject.Actions
Returns true, if the next expectation expects a throwable to be thrown.

G

getCallingMethodName() - Static method in class jface.mockobject.util.MethodUtils
Returns the name of the calling method.
getMethodName() - Method in class jface.mockobject.Expectation
Returns the name of the expected mock method.
getMethodName() - Static method in class jface.mockobject.util.MethodUtils
Returns the name of the current method.
getMethodName(int) - Static method in class jface.mockobject.util.MethodUtils
Returns the name of the method at the given depth of the throwable's stacktrace.
getParameters() - Method in class jface.mockobject.Expectation
Returns the expected parameters of the mock method.
getReturnValue() - Method in class jface.mockobject.Expectation
Returns the expected return value.
getThrowable() - Method in class jface.mockobject.Expectation
Returns the expected Throwable.

I

isArray(Object) - Static method in class jface.mockobject.util.ObjectUtils
Tests if the given object is an array.
isMethodNameTolerant() - Method in class jface.mockobject.Expectation
Returns true if the next methods are skipped, until the method defined by this Expectation is reached.
isParametersTolerant() - Method in class jface.mockobject.Expectation
Returns true if the next parameters are ignored.

J

jface.mockobject - package jface.mockobject
 
jface.mockobject.util - package jface.mockobject.util
 

M

METHOD_NAME_DEPTH - Static variable in class jface.mockobject.util.MethodUtils
 
MethodUtils - class jface.mockobject.util.MethodUtils.
Defines some useful method for working with methods.
MethodUtils() - Constructor for class jface.mockobject.util.MethodUtils
 
MockObjectManager - class jface.mockobject.MockObjectManager.
Under certain circumstances, the construction of mock objects is very complicated.
MockObjectManager() - Constructor for class jface.mockobject.MockObjectManager
 

N

newMockObject(Class) - Method in class jface.mockobject.MockObjectManager
Creates a new mock object implementing the given interface.
newMockObject(Class[]) - Method in class jface.mockobject.MockObjectManager
Creates a new mock object implementing the given interfaces.
nextIgnoreMethods(boolean) - Method in class jface.mockobject.MockObjectManager
Sets the mockobject to ignore the next methods.
nextIgnoreParameters(boolean) - Method in class jface.mockobject.MockObjectManager
Sets the mockobject to ignore the next method parameters.
nextReturnValue(boolean) - Method in class jface.mockobject.MockObjectManager
Registers the given boolean as next return value.
nextReturnValue(byte) - Method in class jface.mockobject.MockObjectManager
Registers the given byte as next return value.
nextReturnValue(double) - Method in class jface.mockobject.MockObjectManager
Registers the given double as next return value.
nextReturnValue(float) - Method in class jface.mockobject.MockObjectManager
Registers the given float as next return value.
nextReturnValue(int) - Method in class jface.mockobject.MockObjectManager
Registers the given int as next return value.
nextReturnValue(long) - Method in class jface.mockobject.MockObjectManager
Registers the given long as next return value.
nextReturnValue(Object) - Method in class jface.mockobject.MockObjectManager
Registers the given Object as next return value.
nextReturnValue(short) - Method in class jface.mockobject.MockObjectManager
Registers the given short as next return value.
nextThrowable(Throwable) - Method in class jface.mockobject.MockObjectManager
Registers the next Throwable.

O

ObjectUtils - class jface.mockobject.util.ObjectUtils.
Defines useful methods for working with objects.
ObjectUtils() - Constructor for class jface.mockobject.util.ObjectUtils
 

P

parameter(Object) - Method in class jface.mockobject.Expectation
Appends a paramter to the list of expected parameters.
parameters(Object[]) - Method in class jface.mockobject.Expectation
Appends a number of parameters to the list of expected parameters.

R

returnValue(Object) - Method in class jface.mockobject.Expectation
Sets the expected return value.

S

setMethodNameTolerant(boolean) - Method in class jface.mockobject.Expectation
Set to true if the next methods should be skipped, until the method defined by this Expectation is reached.
setParametersTolerant(boolean) - Method in class jface.mockobject.Expectation
Set to true if the next parameter values should be ingored.
setPlaybackMode(boolean) - Method in class jface.mockobject.MockObjectManager
Toggles the playback mode.

T

throwable(Throwable) - Method in class jface.mockobject.Expectation
Sets the expected Throwable.
toString() - Method in class jface.mockobject.Actions
Returns the String representaiton of this Actions instance.
toString() - Method in class jface.mockobject.Expectation
Returns the String representaiton of this Expectation instance.
toString(Object) - Static method in class jface.mockobject.util.ObjectUtils
Returns the String representation of the given object.

V

validate() - Method in class jface.mockobject.MockObjectManager
Validates all generated mockobjects.

A C E G I J M N O P R S T V

Copyright © 2003-2004 jface.org. All Rights Reserved.