A C D E F G H I J L M N O P R S T V W

A

ANY_ARGS - Static variable in class org.jmock.C
 
AbstractExpectation - class org.jmock.expectation.AbstractExpectation.
 
AbstractExpectation(String) - Constructor for class org.jmock.expectation.AbstractExpectation
 
AbstractExpectationCollection - class org.jmock.expectation.AbstractExpectationCollection.
 
AbstractExpectationCollection(String) - Constructor for class org.jmock.expectation.AbstractExpectationCollection
 
And - class org.jmock.constraint.And.
Calculates the logical conjunction of two constraints.
And(Constraint, Constraint) - Constructor for class org.jmock.constraint.And
 
ArgumentsMatcher - class org.jmock.matcher.ArgumentsMatcher.
 
ArgumentsMatcher(Constraint[]) - Constructor for class org.jmock.matcher.ArgumentsMatcher
 
AssertMo - class org.jmock.expectation.AssertMo.
 
AssertMo() - Constructor for class org.jmock.expectation.AssertMo
 
add(Invokable) - Method in class org.jmock.dynamic.CoreMock
 
add(Invokable) - Method in interface org.jmock.dynamic.DynamicMock
 
add(Invokable) - Method in interface org.jmock.dynamic.InvocationDispatcher
 
add(Invokable) - Method in class org.jmock.dynamic.LIFOInvocationDispatcher
 
add(Object) - Method in class org.jmock.expectation.ReturnValues
 
addActual(Object) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
addActual(int) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
addActual(long) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
addActual(Object) - Method in interface org.jmock.expectation.ExpectationCollection
 
addActual(long) - Method in interface org.jmock.expectation.ExpectationCollection
 
addActualMany(Object[]) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
addActualMany(Enumeration) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
addActualMany(Iterator) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
addActualMany(Object[]) - Method in interface org.jmock.expectation.ExpectationCollection
 
addActualMany(Enumeration) - Method in interface org.jmock.expectation.ExpectationCollection
 
addActualMany(Iterator) - Method in interface org.jmock.expectation.ExpectationCollection
 
addAll(Collection) - Method in class org.jmock.expectation.ReturnValues
 
addExpected(int) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
addExpected(Object) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
addExpected(long) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
addExpected(Object) - Method in interface org.jmock.expectation.ExpectationCollection
 
addExpected(long) - Method in interface org.jmock.expectation.ExpectationCollection
 
addExpected(Object, Object) - Method in class org.jmock.expectation.ExpectationMap
 
addExpectedMany(Object[]) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
addExpectedMany(Enumeration) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
addExpectedMany(Iterator) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
addExpectedMany(Object[]) - Method in interface org.jmock.expectation.ExpectationCollection
 
addExpectedMany(Enumeration) - Method in interface org.jmock.expectation.ExpectationCollection
 
addExpectedMany(Iterator) - Method in interface org.jmock.expectation.ExpectationCollection
 
addExpectedMissing(Object) - Method in class org.jmock.expectation.ExpectationMap
 
addMatcher(InvocationMatcher) - Method in class org.jmock.dynamic.InvocationMocker
 
addObjectToReturn(Object) - Method in class org.jmock.expectation.ReturnObjectList
Add a next object to the end of the list.
addObjectToReturn(boolean) - Method in class org.jmock.expectation.ReturnObjectList
Add a next boolean to the end of the list.
addObjectToReturn(int) - Method in class org.jmock.expectation.ReturnObjectList
Add a next integer to the end of the list.
and(Constraint, Constraint) - Static method in class org.jmock.C
 
anyArgs(int) - Static method in class org.jmock.C
 
args() - Static method in class org.jmock.C
 
args(Constraint) - Static method in class org.jmock.C
 
args(Constraint, Constraint) - Static method in class org.jmock.C
 
args(Constraint, Constraint, Constraint) - Static method in class org.jmock.C
 
args(Constraint, Constraint, Constraint, Constraint) - Static method in class org.jmock.C
 
asObjectArray(Object) - Static method in class org.jmock.dynamic.DynamicUtil
 
assertEquals(String, int, int) - Method in class org.jmock.expectation.AbstractExpectation
 
assertEquals(String, Object, Object) - Method in class org.jmock.expectation.AbstractExpectation
Due to junit Assert being a Singleton implemented with static methods, and java's unfortunate implementation of class methods (e.g.
assertEquals(String, Object[], Object[]) - Static method in class org.jmock.expectation.AssertMo
 
assertEquals(String, int, int) - Method in class org.jmock.expectation.MockObject
 
assertEquals(String, Object, Object) - Method in class org.jmock.expectation.MockObject
 
assertExcludes(String, String, String) - Static method in class org.jmock.expectation.AssertMo
 
assertFails(String, Runnable) - Static method in class org.jmock.expectation.AssertMo
 
assertIncludes(String, String, String) - Static method in class org.jmock.expectation.AssertMo
 
assertStartsWith(String, String, String) - Static method in class org.jmock.expectation.AssertMo
 
assertTrue(String, boolean) - Method in class org.jmock.expectation.MockObject
 
assertVerifyFails(Verifiable) - Static method in class org.jmock.expectation.AssertMo
 

C

C - class org.jmock.C.
Convenient factory functions and constants for building Constraints.
C() - Constructor for class org.jmock.C
 
CallOnceMatcher - class org.jmock.matcher.CallOnceMatcher.
 
CallOnceMatcher() - Constructor for class org.jmock.matcher.CallOnceMatcher
 
CallStub - class org.jmock.stub.CallStub.
 
CallStub() - Constructor for class org.jmock.stub.CallStub
 
Constraint - interface org.jmock.Constraint.
A constraint over acceptable values.
CoreMock - class org.jmock.dynamic.CoreMock.
 
CoreMock(Class, String, InvocationDispatcher) - Constructor for class org.jmock.dynamic.CoreMock
 
checkImmediateValues(Object) - Method in class org.jmock.expectation.AbstractExpectationCollection
 
checkImmediateValues(Object) - Method in class org.jmock.expectation.ExpectationList
 
checkImmediateValues(Object) - Method in class org.jmock.expectation.ExpectationSet
 
className(Class) - Static method in class org.jmock.dynamic.CoreMock
 
clear() - Method in interface org.jmock.dynamic.InvocationDispatcher
 
clear() - Method in class org.jmock.dynamic.LIFOInvocationDispatcher
 
clearActual() - Method in class org.jmock.expectation.AbstractExpectation
 
clearActual() - Method in class org.jmock.expectation.AbstractExpectationCollection
 
clearActual() - Method in class org.jmock.expectation.ExpectationCounter
 
clearActual() - Method in class org.jmock.expectation.ExpectationDoubleValue
 
clearActual() - Method in class org.jmock.expectation.ExpectationSegment
 
clearActual() - Method in class org.jmock.expectation.ExpectationValue
 
clearExpectation() - Method in class org.jmock.expectation.AbstractExpectationCollection
 
createReturnExpectation(String, InvocationMatcher, Object) - Method in class org.jmock.dynamic.InvokableFactory
 
createReturnStub(String, InvocationMatcher, Object) - Method in class org.jmock.dynamic.InvokableFactory
 
createThrowableExpectation(String, InvocationMatcher, Throwable) - Method in class org.jmock.dynamic.InvokableFactory
 
createThrowableStub(String, InvocationMatcher, Throwable) - Method in class org.jmock.dynamic.InvokableFactory
 
createVoidExpectation(String, InvocationMatcher) - Method in class org.jmock.dynamic.InvokableFactory
 
createVoidStub(String, InvocationMatcher) - Method in class org.jmock.dynamic.InvokableFactory
 

D

DEFAULT_DESCRIPTION - Static variable in class org.jmock.expectation.Null
The default description for all Null objects.
DynaMock - class org.jmock.dynamic.DynaMock.
 
DynaMock(Class) - Constructor for class org.jmock.dynamic.DynaMock
 
DynaMock(DynamicMock) - Constructor for class org.jmock.dynamic.DynaMock
 
DynamicMock - interface org.jmock.dynamic.DynamicMock.
 
DynamicMockError - error org.jmock.dynamic.DynamicMockError.
 
DynamicMockError(Invocation, String) - Constructor for class org.jmock.dynamic.DynamicMockError
 
DynamicUtil - class org.jmock.dynamic.DynamicUtil.
 
DynamicUtil() - Constructor for class org.jmock.dynamic.DynamicUtil
 
dispatch(Invocation) - Method in interface org.jmock.dynamic.InvocationDispatcher
 
dispatch(Invocation) - Method in class org.jmock.dynamic.LIFOInvocationDispatcher
 

E

ExceptionalReturnValue - class org.jmock.expectation.ExceptionalReturnValue.
Sequence of exception values as required by MockMaker This is a generic class that should have been introduced to the mockobjects code stream instead of being separately included in org.mockobjects.
ExceptionalReturnValue(Throwable) - Constructor for class org.jmock.expectation.ExceptionalReturnValue
 
Expectation - interface org.jmock.expectation.Expectation.
An Expectation is an object that we set up at the beginning of a unit test to expect certain things to happen to it.
ExpectationBuilder - interface org.jmock.dynamic.ExpectationBuilder.
 
ExpectationCollection - interface org.jmock.expectation.ExpectationCollection.
An ExpectationCollection is an expectation that supports multiple values, such as lists and sets.
ExpectationCounter - class org.jmock.expectation.ExpectationCounter.
 
ExpectationCounter(String) - Constructor for class org.jmock.expectation.ExpectationCounter
 
ExpectationDoubleValue - class org.jmock.expectation.ExpectationDoubleValue.
 
ExpectationDoubleValue(String) - Constructor for class org.jmock.expectation.ExpectationDoubleValue
 
ExpectationList - class org.jmock.expectation.ExpectationList.
 
ExpectationList(String) - Constructor for class org.jmock.expectation.ExpectationList
 
ExpectationMap - class org.jmock.expectation.ExpectationMap.
 
ExpectationMap(String) - Constructor for class org.jmock.expectation.ExpectationMap
 
ExpectationSegment - class org.jmock.expectation.ExpectationSegment.
 
ExpectationSegment(String) - Constructor for class org.jmock.expectation.ExpectationSegment
 
ExpectationSet - class org.jmock.expectation.ExpectationSet.
 
ExpectationSet(String) - Constructor for class org.jmock.expectation.ExpectationSet
 
ExpectationValue - class org.jmock.expectation.ExpectationValue.
 
ExpectationValue(String) - Constructor for class org.jmock.expectation.ExpectationValue
 
eq(Object) - Static method in class org.jmock.C
 
eq(Object, Object) - Static method in class org.jmock.C
 
eq(Object, Object, Object) - Static method in class org.jmock.C
 
eq(Object, Object, Object, Object) - Static method in class org.jmock.C
 
eq(int) - Static method in class org.jmock.C
 
eq(long) - Static method in class org.jmock.C
 
eq(double) - Static method in class org.jmock.C
 
equals(Object) - Method in class org.jmock.constraint.IsEqual
 
equals(Object) - Method in class org.jmock.dynamic.Invocation
 
equals(Invocation) - Method in class org.jmock.dynamic.Invocation
 
equals(Object) - Method in class org.jmock.expectation.MapEntry
 
equals(Object) - Method in class org.jmock.expectation.Null
Determines equality between two objects.
equals(Object) - Method in class org.jmock.matcher.ArgumentsMatcher
 
eval(Object) - Method in interface org.jmock.Constraint
Evaluates the constraint for argument o.
eval(Object) - Method in class org.jmock.constraint.And
 
eval(Object) - Method in class org.jmock.constraint.IsAnything
 
eval(Object) - Method in class org.jmock.constraint.IsCloseTo
 
eval(Object) - Method in class org.jmock.constraint.IsEqual
 
eval(Object) - Method in class org.jmock.constraint.IsEventFrom
 
eval(Object) - Method in class org.jmock.constraint.IsGreaterThan
 
eval(Object) - Method in class org.jmock.constraint.IsInstanceOf
 
eval(Object) - Method in class org.jmock.constraint.IsLessThan
 
eval(Object) - Method in class org.jmock.constraint.IsNot
 
eval(Object) - Method in class org.jmock.constraint.IsNull
 
eval(Object) - Method in class org.jmock.constraint.IsSame
 
eval(Object) - Method in class org.jmock.constraint.Or
 
expect(String, InvocationMatcher) - Method in class org.jmock.Mock
 
expect(String) - Method in class org.jmock.Mock
 
expect(String, Object) - Method in class org.jmock.Mock
 
expectAndReturn(String, InvocationMatcher, Object) - Method in class org.jmock.Mock
 
expectAndReturn(String, Object) - Method in class org.jmock.Mock
 
expectAndReturn(String, boolean) - Method in class org.jmock.Mock
 
expectAndReturn(String, int) - Method in class org.jmock.Mock
 
expectAndReturn(String, Object, Object) - Method in class org.jmock.Mock
 
expectAndReturn(String, Object, boolean) - Method in class org.jmock.Mock
 
expectAndReturn(String, Object, int) - Method in class org.jmock.Mock
 
expectAndReturn(String, InvocationMatcher, boolean) - Method in class org.jmock.Mock
 
expectAndReturn(String, InvocationMatcher, int) - Method in class org.jmock.Mock
 
expectAndThrow(String, InvocationMatcher, Throwable) - Method in class org.jmock.Mock
 
expectAndThrow(String, Throwable) - Method in class org.jmock.Mock
 
expectAndThrow(String, Object, Throwable) - Method in class org.jmock.Mock
 
expectNotCalled(String) - Method in class org.jmock.Mock
Deprecated. Not required, as if methodName is called, you will get an exception
expectVoid(String, InvocationMatcher) - Method in class org.jmock.Mock
Deprecated. @see expect
expectVoid(String, Object) - Method in class org.jmock.Mock
Deprecated. @see expect
expectVoid(String) - Method in class org.jmock.Mock
Deprecated. @see expect

F

fail(String) - Method in class org.jmock.expectation.MockObject
 
failNotEquals(String, Object, Object) - Static method in class org.jmock.expectation.AssertMo
 

G

get(Object) - Method in class org.jmock.expectation.ExpectationMap
 
getActualCollection() - Method in class org.jmock.expectation.AbstractExpectationCollection
 
getActualCollection() - Method in class org.jmock.expectation.ExpectationList
 
getActualCollection() - Method in class org.jmock.expectation.ExpectationSet
 
getBooleanValue(String) - Method in class org.jmock.expectation.ReturnObjectMap
 
getBooleanValue() - Method in class org.jmock.expectation.ReturnValue
 
getConstraints() - Method in class org.jmock.matcher.ArgumentsMatcher
 
getDescription() - Method in interface org.jmock.Stub
 
getDescription() - Method in class org.jmock.dynamic.InvocationMocker
 
getDescription() - Method in interface org.jmock.dynamic.Invokable
 
getDescription() - Method in class org.jmock.stub.ReturnStub
 
getDescription() - Method in class org.jmock.stub.ThrowStub
 
getDescription() - Method in class org.jmock.stub.VoidStub
 
getException() - Method in class org.jmock.expectation.ExceptionalReturnValue
 
getExpectedCollection() - Method in class org.jmock.expectation.AbstractExpectationCollection
 
getExpectedCollection() - Method in class org.jmock.expectation.ExpectationList
 
getExpectedCollection() - Method in class org.jmock.expectation.ExpectationSet
 
getHashTable() - Method in class org.jmock.expectation.ReturnObjectBag
 
getIntValue(Object) - Method in class org.jmock.expectation.ReturnObjectMap
 
getIntValue() - Method in class org.jmock.expectation.ReturnValue
 
getKey() - Method in class org.jmock.expectation.MapEntry
 
getLongValue() - Method in class org.jmock.expectation.ReturnValue
 
getMethodName() - Method in class org.jmock.dynamic.Invocation
 
getMockName() - Method in class org.jmock.dynamic.CoreMock
 
getNext() - Method in class org.jmock.expectation.ReturnValues
 
getNext() - Method in class org.jmock.expectation.VoidReturnValues
 
getNextReturnBoolean(Object) - Method in class org.jmock.expectation.ReturnObjectBag
 
getNextReturnInt(Object) - Method in class org.jmock.expectation.ReturnObjectBag
 
getNextReturnObject(Object) - Method in class org.jmock.expectation.ReturnObjectBag
Returns the next object in the ReturnObjectList for a given key.
getNextReturnObject(int) - Method in class org.jmock.expectation.ReturnObjectBag
Returns the next object in the ReturnObjectList for a given int key.
getParameterTypes() - Method in class org.jmock.dynamic.Invocation
 
getParameterValues() - Method in class org.jmock.dynamic.Invocation
 
getReturnType() - Method in class org.jmock.dynamic.Invocation
 
getValue() - Method in class org.jmock.expectation.MapEntry
 
getValue(Object) - Method in class org.jmock.expectation.ReturnObjectMap
 
getValue(short) - Method in class org.jmock.expectation.ReturnObjectMap
 
getValue() - Method in class org.jmock.expectation.ReturnValue
 
gt(int) - Static method in class org.jmock.C
 
gt(long) - Static method in class org.jmock.C
 
gt(double) - Static method in class org.jmock.C
 
gt(char) - Static method in class org.jmock.C
 

H

hasExpectations() - Method in class org.jmock.expectation.AbstractExpectation
 
hasExpectations() - Method in interface org.jmock.expectation.Expectation
Return true if any expectations have been set on this object.
hasExpectations() - Method in class org.jmock.expectation.ExpectationMap
 
hashCode() - Method in class org.jmock.dynamic.Invocation
 
hashCode() - Method in class org.jmock.expectation.MapEntry
 
hashCode() - Method in class org.jmock.expectation.Null
Returns this Null object's hashCode.

I

IS_ANYTHING - Static variable in class org.jmock.C
 
IS_FALSE - Static variable in class org.jmock.C
 
IS_NOT_NULL - Static variable in class org.jmock.C
 
IS_NOT_ZERO - Static variable in class org.jmock.C
 
IS_NULL - Static variable in class org.jmock.C
 
IS_TRUE - Static variable in class org.jmock.C
 
IS_ZERO - Static variable in class org.jmock.C
 
Invocation - class org.jmock.dynamic.Invocation.
An object that holds information about a call dispatched to a Mock object for err...
Invocation(String, Class[], Class, Object[]) - Constructor for class org.jmock.dynamic.Invocation
 
Invocation(Method, Object[]) - Constructor for class org.jmock.dynamic.Invocation
 
InvocationDispatcher - interface org.jmock.dynamic.InvocationDispatcher.
 
InvocationMatcher - interface org.jmock.InvocationMatcher.
 
InvocationMocker - class org.jmock.dynamic.InvocationMocker.
 
InvocationMocker(String, InvocationMatcher, Stub) - Constructor for class org.jmock.dynamic.InvocationMocker
 
InvocationMocker(InvocationMatcher[], Stub) - Constructor for class org.jmock.dynamic.InvocationMocker
 
InvocationMocker(Stub) - Constructor for class org.jmock.dynamic.InvocationMocker
 
InvocationMockerBuilder - class org.jmock.dynamic.InvocationMockerBuilder.
 
InvocationMockerBuilder(InvocationMocker) - Constructor for class org.jmock.dynamic.InvocationMockerBuilder
 
Invokable - interface org.jmock.dynamic.Invokable.
 
InvokableFactory - class org.jmock.dynamic.InvokableFactory.
 
InvokableFactory() - Constructor for class org.jmock.dynamic.InvokableFactory
 
IsAnything - class org.jmock.constraint.IsAnything.
A constraint that always returns true.
IsAnything() - Constructor for class org.jmock.constraint.IsAnything
 
IsCloseTo - class org.jmock.constraint.IsCloseTo.
Is the value a number equal to a value within some range of acceptable error?
IsCloseTo(double, double) - Constructor for class org.jmock.constraint.IsCloseTo
 
IsEqual - class org.jmock.constraint.IsEqual.
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) method?
IsEqual(Object) - Constructor for class org.jmock.constraint.IsEqual
 
IsEventFrom - class org.jmock.constraint.IsEventFrom.
Tests if the value is an event announced by a specific object.
IsEventFrom(Object) - Constructor for class org.jmock.constraint.IsEventFrom
Constructs an IsEventFrom predicate that returns true for any object derived from EventObject announced by source.
IsEventFrom(Class, Object) - Constructor for class org.jmock.constraint.IsEventFrom
Constructs an IsEventFrom predicate that returns true for any object derived from event_class announced by source.
IsGreaterThan - class org.jmock.constraint.IsGreaterThan.
Is the value greater than another Comparable value?
IsGreaterThan(Comparable) - Constructor for class org.jmock.constraint.IsGreaterThan
 
IsInstanceOf - class org.jmock.constraint.IsInstanceOf.
Tests whether the value is an instance of a class.
IsInstanceOf(Class) - Constructor for class org.jmock.constraint.IsInstanceOf
Creates a new instance of IsInstanceOf
IsLessThan - class org.jmock.constraint.IsLessThan.
Is the value less than another Comparable value?
IsLessThan(Comparable) - Constructor for class org.jmock.constraint.IsLessThan
 
IsNot - class org.jmock.constraint.IsNot.
Calculates the logical negation of a constraint.
IsNot(Constraint) - Constructor for class org.jmock.constraint.IsNot
 
IsNull - class org.jmock.constraint.IsNull.
Is the value null?
IsNull() - Constructor for class org.jmock.constraint.IsNull
 
IsSame - class org.jmock.constraint.IsSame.
Is the value the same object as another value?
IsSame(Object) - Constructor for class org.jmock.constraint.IsSame
Creates a new instance of IsSame
inc() - Method in class org.jmock.expectation.ExpectationCounter
 
invocation - Variable in class org.jmock.dynamic.DynamicMockError
 
invoke(Invocation) - Method in interface org.jmock.Stub
Processes the invocation.
invoke(Object, Method, Object[]) - Method in class org.jmock.dynamic.CoreMock
 
invoke(Invocation) - Method in class org.jmock.dynamic.InvocationMocker
 
invoke(Invocation) - Method in interface org.jmock.dynamic.Invokable
 
invoke(Invocation) - Method in class org.jmock.stub.ReturnStub
 
invoke(Invocation) - Method in class org.jmock.stub.ThrowStub
 
invoke(Invocation) - Method in class org.jmock.stub.VoidStub
 
invoked(Invocation) - Method in interface org.jmock.InvocationMatcher
 
invoked(Invocation) - Method in class org.jmock.matcher.CallOnceMatcher
 
invoked(Invocation) - Method in class org.jmock.matcher.StatelessInvocationMatcher
 
isA(Class) - Static method in class org.jmock.C
 
isEmpty() - Method in class org.jmock.expectation.ReturnValues
 
isVoid() - Method in class org.jmock.dynamic.InvocationMockerBuilder
 
isVoid() - Method in interface org.jmock.stub.StubBuilder
 

J

join(Object[], StringBuffer) - Static method in class org.jmock.dynamic.DynamicUtil
 

L

LIFOInvocationDispatcher - class org.jmock.dynamic.LIFOInvocationDispatcher.
 
LIFOInvocationDispatcher() - Constructor for class org.jmock.dynamic.LIFOInvocationDispatcher
 
lt(int) - Static method in class org.jmock.C
 
lt(long) - Static method in class org.jmock.C
 
lt(double) - Static method in class org.jmock.C
 
lt(char) - Static method in class org.jmock.C
 

M

MapEntry - class org.jmock.expectation.MapEntry.
A public MapEntry data type that can be used where the Map.Entry interface is required (needed because the Sun implementation is package protected)
MapEntry(Object, Object) - Constructor for class org.jmock.expectation.MapEntry
 
MethodNameMatcher - class org.jmock.matcher.MethodNameMatcher.
 
MethodNameMatcher(Constraint) - Constructor for class org.jmock.matcher.MethodNameMatcher
 
MethodNameMatcher(String) - Constructor for class org.jmock.matcher.MethodNameMatcher
 
Mock - class org.jmock.Mock.
 
Mock(InvokableFactory, InvocationDispatcher, Class, String) - Constructor for class org.jmock.Mock
 
Mock(Class, String) - Constructor for class org.jmock.Mock
 
Mock(Class) - Constructor for class org.jmock.Mock
 
MockObject - class org.jmock.expectation.MockObject.
 
MockObject() - Constructor for class org.jmock.expectation.MockObject
 
match(String, InvocationMatcher) - Method in class org.jmock.Mock
 
match(String) - Method in class org.jmock.Mock
 
match(String, Object) - Method in class org.jmock.Mock
 
match(String, int) - Method in class org.jmock.Mock
 
match(String, boolean) - Method in class org.jmock.Mock
 
matchAndReturn(String, InvocationMatcher, Object) - Method in class org.jmock.Mock
 
matchAndReturn(String, Object) - Method in class org.jmock.Mock
 
matchAndReturn(String, boolean) - Method in class org.jmock.Mock
 
matchAndReturn(String, int) - Method in class org.jmock.Mock
 
matchAndReturn(String, Object, Object) - Method in class org.jmock.Mock
 
matchAndReturn(String, boolean, Object) - Method in class org.jmock.Mock
 
matchAndReturn(String, int, Object) - Method in class org.jmock.Mock
 
matchAndReturn(String, Object, boolean) - Method in class org.jmock.Mock
 
matchAndReturn(String, Object, int) - Method in class org.jmock.Mock
 
matchAndReturn(String, InvocationMatcher, boolean) - Method in class org.jmock.Mock
 
matchAndReturn(String, InvocationMatcher, int) - Method in class org.jmock.Mock
 
matchAndThrow(String, InvocationMatcher, Throwable) - Method in class org.jmock.Mock
 
matchAndThrow(String, Throwable) - Method in class org.jmock.Mock
 
matchAndThrow(String, Object, Throwable) - Method in class org.jmock.Mock
 
matchAndThrow(String, boolean, Throwable) - Method in class org.jmock.Mock
 
matchAndThrow(String, int, Throwable) - Method in class org.jmock.Mock
 
matches(Invocation) - Method in interface org.jmock.InvocationMatcher
 
matches(Invocation) - Method in class org.jmock.dynamic.InvocationMocker
 
matches(Invocation) - Method in interface org.jmock.dynamic.Invokable
 
matches(Invocation) - Method in class org.jmock.matcher.ArgumentsMatcher
 
matches(Invocation) - Method in class org.jmock.matcher.CallOnceMatcher
 
matches(Invocation) - Method in class org.jmock.matcher.MethodNameMatcher
 
method(String, Object, Object) - Method in class org.jmock.dynamic.DynaMock
 
methodToString(String, Object[]) - Static method in class org.jmock.dynamic.DynamicUtil
 
mockNameFromClass(Class) - Static method in class org.jmock.dynamic.CoreMock
 
myActualItems - Variable in class org.jmock.expectation.ExpectationList
 
myContents - Variable in class org.jmock.expectation.ReturnValues
 
myExpectedItems - Variable in class org.jmock.expectation.ExpectationList
 
myFailureModeIsImmediate - Variable in class org.jmock.expectation.AbstractExpectation
 
myName - Variable in class org.jmock.expectation.AbstractExpectation
 

N

NO_ARGS - Static variable in class org.jmock.C
 
NULL - Static variable in class org.jmock.expectation.Null
A default Null object.
NotImplementedException - error org.jmock.expectation.NotImplementedException.
 
NotImplementedException() - Constructor for class org.jmock.expectation.NotImplementedException
NotImplementedException constructor comment.
NotImplementedException(String) - Constructor for class org.jmock.expectation.NotImplementedException
NotImplementedException constructor comment.
Null - class org.jmock.expectation.Null.
A class that represents the null value.
Null() - Constructor for class org.jmock.expectation.Null
Instantiates a new Null object with the default description.
Null(String) - Constructor for class org.jmock.expectation.Null
Instantiates a new Null object and sets it's description.
nextReturnObject() - Method in class org.jmock.expectation.ReturnObjectList
Returns the next object from the list.
not(Constraint) - Static method in class org.jmock.C
 
notImplemented(String) - Static method in class org.jmock.expectation.AssertMo
 
notImplemented() - Method in class org.jmock.expectation.MockObject
 
notYetImplemented() - Method in class org.jmock.expectation.MockObject
Deprecated.  
notYetImplemented(String) - Static method in class org.jmock.expectation.MockObject
Deprecated.  

O

Or - class org.jmock.constraint.Or.
Calculates the logical disjunction of two constraints.
Or(Constraint, Constraint) - Constructor for class org.jmock.constraint.Or
 
or(Constraint, Constraint) - Static method in class org.jmock.C
 
org.jmock - package org.jmock
 
org.jmock.constraint - package org.jmock.constraint
 
org.jmock.dynamic - package org.jmock.dynamic
 
org.jmock.expectation - package org.jmock.expectation
 
org.jmock.matcher - package org.jmock.matcher
 
org.jmock.stub - package org.jmock.stub
 

P

pop() - Method in class org.jmock.expectation.ReturnValues
 
proxy() - Method in class org.jmock.Mock
 
proxy() - Method in class org.jmock.dynamic.CoreMock
 
proxy() - Method in class org.jmock.dynamic.DynaMock
 
proxy() - Method in interface org.jmock.dynamic.DynamicMock
 
proxyToString(Object) - Static method in class org.jmock.dynamic.DynamicUtil
 
putObjectToReturn(Object, Object) - Method in class org.jmock.expectation.ReturnObjectBag
Places an object into the list of return objects for a particular key
putObjectToReturn(int, Object) - Method in class org.jmock.expectation.ReturnObjectBag
Places an object into the list of return objects for a particular int key
putObjectToReturn(Object, int) - Method in class org.jmock.expectation.ReturnObjectBag
Places an int into the list of return objects for a particular key.
putObjectToReturn(Object, boolean) - Method in class org.jmock.expectation.ReturnObjectBag
Places an boolean into the list of return objects for a particular key.
putReturnValue(Object, Object) - Method in class org.jmock.expectation.ReturnObjectMap
 
putReturnValue(Object, int) - Method in class org.jmock.expectation.ReturnObjectMap
 
putReturnValue(short, Object) - Method in class org.jmock.expectation.ReturnObjectMap
 
putReturnValue(Object, boolean) - Method in class org.jmock.expectation.ReturnObjectMap
 

R

ReturnObjectBag - class org.jmock.expectation.ReturnObjectBag.
The ReturnObjectBag is a map containing instances of ReturnObjectList.
ReturnObjectBag(String) - Constructor for class org.jmock.expectation.ReturnObjectBag
 
ReturnObjectList - class org.jmock.expectation.ReturnObjectList.
This class allows a list of objects to be setup which can be used whilst.The list is check to make sure that all the object in it are used and that none are left over at the end of a test.
ReturnObjectList(String) - Constructor for class org.jmock.expectation.ReturnObjectList
Construct a new empty list
ReturnObjectMap - class org.jmock.expectation.ReturnObjectMap.
 
ReturnObjectMap(String) - Constructor for class org.jmock.expectation.ReturnObjectMap
 
ReturnStub - class org.jmock.stub.ReturnStub.
 
ReturnStub(Object) - Constructor for class org.jmock.stub.ReturnStub
 
ReturnValue - class org.jmock.expectation.ReturnValue.
The ReturnValue class allows a value to be setup which will then be returned upon a specific method call.
ReturnValue(String) - Constructor for class org.jmock.expectation.ReturnValue
 
ReturnValues - class org.jmock.expectation.ReturnValues.
Sequence values as required by MockMaker This is a generic class that should have been introduced to the mockobjects code stream instead of being separately included in org.mockobjects.
ReturnValues() - Constructor for class org.jmock.expectation.ReturnValues
 
ReturnValues(String, boolean) - Constructor for class org.jmock.expectation.ReturnValues
 
ReturnValues(boolean) - Constructor for class org.jmock.expectation.ReturnValues
 
reset() - Method in class org.jmock.Mock
 
reset() - Method in class org.jmock.dynamic.CoreMock
 
reset() - Method in interface org.jmock.dynamic.DynamicMock
 
returns(Object) - Method in class org.jmock.dynamic.InvocationMockerBuilder
 
returns(Object) - Method in interface org.jmock.stub.StubBuilder
 

S

StatelessInvocationMatcher - class org.jmock.matcher.StatelessInvocationMatcher.
 
StatelessInvocationMatcher() - Constructor for class org.jmock.matcher.StatelessInvocationMatcher
 
Stub - interface org.jmock.Stub.
An object that stubs the behaviour of a method invocation on behalf of an Invokable object.
StubBuilder - interface org.jmock.stub.StubBuilder.
 
same(Object) - Static method in class org.jmock.C
 
setActual(double) - Method in class org.jmock.expectation.ExpectationDoubleValue
 
setActual(String) - Method in class org.jmock.expectation.ExpectationSegment
 
setActual(int) - Method in class org.jmock.expectation.ExpectationValue
 
setActual(long) - Method in class org.jmock.expectation.ExpectationValue
 
setActual(double) - Method in class org.jmock.expectation.ExpectationValue
 
setActual(Object) - Method in class org.jmock.expectation.ExpectationValue
 
setActual(boolean) - Method in class org.jmock.expectation.ExpectationValue
 
setExpectNothing() - Method in class org.jmock.expectation.AbstractExpectationCollection
 
setExpectNothing() - Method in interface org.jmock.expectation.Expectation
Tell the object to expect nothing to happen to it, perhaps because the test is exercising the handling of an error.
setExpectNothing() - Method in class org.jmock.expectation.ExpectationCounter
 
setExpectNothing() - Method in class org.jmock.expectation.ExpectationDoubleValue
 
setExpectNothing() - Method in class org.jmock.expectation.ExpectationMap
 
setExpectNothing() - Method in class org.jmock.expectation.ExpectationSegment
 
setExpectNothing() - Method in class org.jmock.expectation.ExpectationValue
 
setExpected(int) - Method in class org.jmock.expectation.ExpectationCounter
 
setExpected(double, double) - Method in class org.jmock.expectation.ExpectationDoubleValue
 
setExpected(String) - Method in class org.jmock.expectation.ExpectationSegment
 
setExpected(int) - Method in class org.jmock.expectation.ExpectationValue
 
setExpected(long) - Method in class org.jmock.expectation.ExpectationValue
 
setExpected(double) - Method in class org.jmock.expectation.ExpectationValue
 
setExpected(Object) - Method in class org.jmock.expectation.ExpectationValue
 
setExpected(boolean) - Method in class org.jmock.expectation.ExpectationValue
 
setFailOnVerify() - Method in class org.jmock.expectation.AbstractExpectation
 
setFailOnVerify() - Method in interface org.jmock.expectation.Expectation
If an incorrect actual value is set, defer reporting this as a failure until verify() is called on this object.
setFailOnVerify() - Method in class org.jmock.expectation.ExpectationMap
 
setHasExpectations() - Method in class org.jmock.expectation.AbstractExpectation
 
setStub(Stub) - Method in class org.jmock.dynamic.InvocationMocker
 
setValue(Object) - Method in class org.jmock.expectation.MapEntry
 
setValue(Object) - Method in class org.jmock.expectation.ReturnValue
 
setValue(boolean) - Method in class org.jmock.expectation.ReturnValue
 
setValue(int) - Method in class org.jmock.expectation.ReturnValue
 
setValue(long) - Method in class org.jmock.expectation.ReturnValue
 
shouldCheckImmediately() - Method in class org.jmock.expectation.AbstractExpectation
 

T

ThrowStub - class org.jmock.stub.ThrowStub.
 
ThrowStub(Throwable) - Constructor for class org.jmock.stub.ThrowStub
 
toString() - Method in class org.jmock.Mock
 
toString() - Method in class org.jmock.constraint.And
 
toString() - Method in class org.jmock.constraint.IsAnything
 
toString() - Method in class org.jmock.constraint.IsCloseTo
 
toString() - Method in class org.jmock.constraint.IsEqual
 
toString() - Method in class org.jmock.constraint.IsEventFrom
 
toString() - Method in class org.jmock.constraint.IsGreaterThan
 
toString() - Method in class org.jmock.constraint.IsInstanceOf
 
toString() - Method in class org.jmock.constraint.IsLessThan
 
toString() - Method in class org.jmock.constraint.IsNot
 
toString() - Method in class org.jmock.constraint.IsNull
 
toString() - Method in class org.jmock.constraint.IsSame
 
toString() - Method in class org.jmock.constraint.Or
 
toString() - Method in class org.jmock.dynamic.CoreMock
 
toString() - Method in class org.jmock.dynamic.DynaMock
 
toString() - Method in class org.jmock.dynamic.Invocation
 
toString() - Method in class org.jmock.expectation.MapEntry
 
toString() - Method in class org.jmock.expectation.Null
Returns a string representation of this Null object.
toString() - Method in class org.jmock.matcher.ArgumentsMatcher
 

V

Verifiable - interface org.jmock.expectation.Verifiable.
A Verifiable is an object that can confirm at the end of a unit test that the correct behvaiour has occurred.
Verifier - class org.jmock.expectation.Verifier.
Helper class to verify all Expectations of an object.
Verifier() - Constructor for class org.jmock.expectation.Verifier
 
VoidReturnValues - class org.jmock.expectation.VoidReturnValues.
Sequence of void values as required by MockMaker This is a generic class that should have been introduced to the mockobjects code stream instead of being separately included in org.mockobjects.
VoidReturnValues() - Constructor for class org.jmock.expectation.VoidReturnValues
 
VoidReturnValues(String, boolean) - Constructor for class org.jmock.expectation.VoidReturnValues
 
VoidReturnValues(boolean) - Constructor for class org.jmock.expectation.VoidReturnValues
 
VoidStub - class org.jmock.stub.VoidStub.
 
VoidStub() - Constructor for class org.jmock.stub.VoidStub
 
verify() - Method in class org.jmock.Mock
 
verify() - Method in class org.jmock.dynamic.CoreMock
 
verify() - Method in class org.jmock.dynamic.DynaMock
 
verify() - Method in class org.jmock.dynamic.InvocationMocker
 
verify() - Method in class org.jmock.dynamic.LIFOInvocationDispatcher
 
verify() - Method in class org.jmock.expectation.AbstractExpectation
 
verify() - Method in class org.jmock.expectation.AbstractExpectationCollection
 
verify() - Method in class org.jmock.expectation.ExpectationCounter
 
verify() - Method in class org.jmock.expectation.ExpectationDoubleValue
 
verify() - Method in class org.jmock.expectation.ExpectationMap
 
verify() - Method in class org.jmock.expectation.ExpectationSegment
 
verify() - Method in class org.jmock.expectation.ExpectationSet
 
verify() - Method in class org.jmock.expectation.ExpectationValue
 
verify() - Method in class org.jmock.expectation.MockObject
 
verify() - Method in class org.jmock.expectation.ReturnObjectBag
Checks each the list for each key to verify that all no objects remain in the list for that key.
verify() - Method in class org.jmock.expectation.ReturnObjectList
Verify that there are no objects left within the list.
verify() - Method in class org.jmock.expectation.ReturnObjectMap
 
verify() - Method in interface org.jmock.expectation.Verifiable
Throw an AssertionFailedException if any expectations have not been met.
verify() - Method in class org.jmock.matcher.CallOnceMatcher
 
verify() - Method in class org.jmock.matcher.StatelessInvocationMatcher
 
verify() - Method in class org.jmock.stub.CallStub
 
verifyObject(Object) - Static method in class org.jmock.expectation.Verifier
Verifies all the fields of type Verifiable in the given object, including those inherited from superclasses.

W

willThrow(Throwable) - Method in class org.jmock.dynamic.InvocationMockerBuilder
 
willThrow(Throwable) - Method in interface org.jmock.stub.StubBuilder
 

A C D E F G H I J L M N O P R S T V W

Copyright © 2003 jMock.org. All Rights Reserved.