Alphabetical Index

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

A

AbstractDynamicMock(Class,String) - constructor for class org.jmock.core.AbstractDynamicMock
AbstractExpectation - class org.jmock.expectation.AbstractExpectation
AbstractExpectation(String) - constructor for class org.jmock.expectation.AbstractExpectation
AbstractExpectationCollection(String) - constructor for class org.jmock.expectation.AbstractExpectationCollection
add(Object) - method in class org.jmock.expectation.ReturnValues
add(org.jmock.core.Invokable) - method in class org.jmock.core.InvocationDispatcher
addActual(int) - method in class org.jmock.expectation.AbstractExpectationCollection
addActual(long) - method in class org.jmock.expectation.AbstractExpectationCollection
addActual(long) - method in class org.jmock.expectation.ExpectationCollection
addActual(Object) - method in class org.jmock.expectation.AbstractExpectationCollection
addActual(Object) - method in class org.jmock.expectation.ExpectationCollection
addActualMany(Enumeration) - method in class org.jmock.expectation.AbstractExpectationCollection
addActualMany(Enumeration) - method in class org.jmock.expectation.ExpectationCollection
addActualMany(Iterator) - method in class org.jmock.expectation.AbstractExpectationCollection
addActualMany(Iterator) - method in class org.jmock.expectation.ExpectationCollection
addActualMany(Object[]) - method in class org.jmock.expectation.AbstractExpectationCollection
addActualMany(Object[]) - method in class org.jmock.expectation.ExpectationCollection
addAll(Collection) - method in class org.jmock.expectation.ReturnValues
addExpected(int) - method in class org.jmock.expectation.AbstractExpectationCollection
addExpected(long) - method in class org.jmock.expectation.AbstractExpectationCollection
addExpected(long) - method in class org.jmock.expectation.ExpectationCollection
addExpected(Object) - method in class org.jmock.expectation.AbstractExpectationCollection
addExpected(Object) - method in class org.jmock.expectation.ExpectationCollection
addExpected(Object,Object) - method in class org.jmock.expectation.ExpectationMap
addExpectedMany(Enumeration) - method in class org.jmock.expectation.AbstractExpectationCollection
addExpectedMany(Enumeration) - method in class org.jmock.expectation.ExpectationCollection
addExpectedMany(Iterator) - method in class org.jmock.expectation.AbstractExpectationCollection
addExpectedMany(Iterator) - method in class org.jmock.expectation.ExpectationCollection
addExpectedMany(Object[]) - method in class org.jmock.expectation.AbstractExpectationCollection
addExpectedMany(Object[]) - method in class org.jmock.expectation.ExpectationCollection
addExpectedMissing(Object) - method in class org.jmock.expectation.ExpectationMap
addInvokable(org.jmock.core.Invokable) - method in class org.jmock.core.DynamicMock
addInvokable(org.jmock.core.Invokable) - method in class org.jmock.Mock
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.
addObjectToReturn(Object) - method in class org.jmock.expectation.ReturnObjectList
Add a next object to the end of the list.
addResult(Class,Object) - method in class org.jmock.core.stub.DefaultResultStub
after(String) - method in class org.jmock.builder.InvocationMockerBuilder
after(String) - method in class org.jmock.builder.MatchBuilder
And - class org.jmock.core.constraint.And
Calculates the logical conjunction of two constraints.
And(org.jmock.core.Constraint,org.jmock.core.Constraint) - constructor for class org.jmock.core.constraint.And
AnyArgumentsMatcher - class org.jmock.core.matcher.AnyArgumentsMatcher
ANYTHING - static field in class org.jmock.core.MockObjectSupportTestCase
ArgumentsMatchBuilder - interface org.jmock.builder.ArgumentsMatchBuilder
ArgumentsMatcher - class org.jmock.core.matcher.ArgumentsMatcher
ArgumentsMatcher(org.jmock.core.Constraint[]) - constructor for class org.jmock.core.matcher.ArgumentsMatcher
assertEquals(String,int,int) - method in class org.jmock.expectation.AbstractExpectation
assertEquals(String,int,int) - method in class org.jmock.expectation.MockObject
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) - method in class org.jmock.expectation.MockObject
assertEquals(String,Object[],Object[]) - static method in class org.jmock.expectation.AssertMo
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
AssertMo - class org.jmock.expectation.AssertMo
AssertMo() - constructor for 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(org.jmock.core.Verifiable) - static method in class org.jmock.expectation.AssertMo
atLeastOnce() - method in class org.jmock.MockObjectTestCase

B

BuilderNamespace - interface org.jmock.builder.BuilderNamespace

C

CGLIBCoreMock - class org.jmock.cglib.CGLIBCoreMock
CGLIBCoreMock(Class) - constructor for class org.jmock.cglib.CGLIBCoreMock
CGLIBCoreMock(Class,String) - constructor for class org.jmock.cglib.CGLIBCoreMock
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
classShortName(Class) - static method in class org.jmock.core.Formatting
clear() - method in class org.jmock.core.FIFOInvocationDispatcher
clear() - method in class org.jmock.core.InvocationDispatcher
clear() - method in class org.jmock.core.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
Constraint - interface org.jmock.core.Constraint
A constraint over acceptable values.
CoreMock - class org.jmock.core.CoreMock
CoreMock(Class,String) - constructor for class org.jmock.core.CoreMock
createDefaultResults() - method in class org.jmock.core.stub.DefaultResultStub
CustomStub - class org.jmock.core.stub.CustomStub
A partial implementation of the Stub interface that makes it convenient to implement application-specific stubs with inline anonymous classes:
 final String name = "NAME";
 final StringBuffer buffer = new StringBuffer();
 

mock.expect("describeTo", C.args(C.same(buffer))), new CustomStub("appends name to buffer") { public Object invoke( Invocation invocation ) throws Throwable { return buffer.append(name); } } );

CustomStub(String) - constructor for class org.jmock.core.stub.CustomStub

D

DEFAULT_DESCRIBER - static field in class org.jmock.core.InvocationMocker
DEFAULT_DESCRIPTION - static field in class org.jmock.expectation.Null
The default description for all Null objects.
DefaultResultStub - class org.jmock.core.stub.DefaultResultStub
DefaultResultStub() - constructor for class org.jmock.core.stub.DefaultResultStub
describeTo(StringBuffer) - method in class org.jmock.core.constraint.And
describeTo(StringBuffer) - method in class org.jmock.core.matcher.AnyArgumentsMatcher
describeTo(StringBuffer) - method in class org.jmock.core.matcher.ArgumentsMatcher
describeTo(StringBuffer) - method in class org.jmock.core.stub.CustomStub
Appends the description of this object to the buffer.
describeTo(StringBuffer) - method in class org.jmock.core.stub.DefaultResultStub
describeTo(StringBuffer) - method in class org.jmock.core.FIFOInvocationDispatcher
Appends the description of this object to the buffer.
describeTo(StringBuffer) - method in class org.jmock.core.Invocation
describeTo(StringBuffer) - method in class org.jmock.core.InvocationMocker
describeTo(StringBuffer) - method in class org.jmock.core.matcher.InvokeAtLeastOnceMatcher
describeTo(StringBuffer) - method in class org.jmock.core.matcher.InvokedAfterMatcher
describeTo(StringBuffer) - method in class org.jmock.core.matcher.InvokedRecorder
describeTo(StringBuffer) - method in class org.jmock.core.matcher.InvokeOnceMatcher
describeTo(StringBuffer) - method in class org.jmock.core.constraint.IsAnything
describeTo(StringBuffer) - method in class org.jmock.core.constraint.IsCloseTo
describeTo(StringBuffer) - method in class org.jmock.core.constraint.IsEqual
describeTo(StringBuffer) - method in class org.jmock.core.constraint.IsEventFrom
describeTo(StringBuffer) - method in class org.jmock.core.constraint.IsGreaterThan
describeTo(StringBuffer) - method in class org.jmock.core.constraint.IsInstanceOf
describeTo(StringBuffer) - method in class org.jmock.core.constraint.IsLessThan
describeTo(StringBuffer) - method in class org.jmock.core.constraint.IsNot
describeTo(StringBuffer) - method in class org.jmock.core.constraint.IsNull
describeTo(StringBuffer) - method in class org.jmock.core.constraint.IsSame
describeTo(StringBuffer) - method in class org.jmock.core.LIFOInvocationDispatcher
describeTo(StringBuffer) - method in class org.jmock.core.matcher.MethodNameMatcher
describeTo(StringBuffer) - method in class org.jmock.core.matcher.NoArgumentsMatcher
describeTo(StringBuffer) - method in class org.jmock.core.constraint.Or
describeTo(StringBuffer) - method in class org.jmock.core.stub.ReturnStub
describeTo(StringBuffer) - method in class org.jmock.core.SelfDescribing
Appends the description of this object to the buffer.
describeTo(StringBuffer) - method in class org.jmock.core.constraint.StringContains
describeTo(StringBuffer) - method in class org.jmock.core.stub.StubSequence
describeTo(StringBuffer) - method in class org.jmock.core.matcher.TestFailureMatcher
describeTo(StringBuffer) - method in class org.jmock.core.stub.TestFailureStub
describeTo(StringBuffer) - method in class org.jmock.core.stub.ThrowStub
describeTo(StringBuffer) - method in class org.jmock.core.stub.VoidStub
dispatcher - field in class org.jmock.core.DynamicMockError
Dummy - class org.jmock.util.Dummy
dynamicMock - field in class org.jmock.core.DynamicMockError
DynamicMock - interface org.jmock.core.DynamicMock
DynamicMockError - class org.jmock.core.DynamicMockError

E

eq(boolean) - method in class org.jmock.core.MockObjectSupportTestCase
eq(byte) - method in class org.jmock.core.MockObjectSupportTestCase
eq(char) - method in class org.jmock.core.MockObjectSupportTestCase
eq(double) - method in class org.jmock.core.MockObjectSupportTestCase
eq(double,double) - method in class org.jmock.core.MockObjectSupportTestCase
eq(float) - method in class org.jmock.core.MockObjectSupportTestCase
eq(int) - method in class org.jmock.core.MockObjectSupportTestCase
eq(long) - method in class org.jmock.core.MockObjectSupportTestCase
eq(Object) - method in class org.jmock.core.MockObjectSupportTestCase
eq(short) - method in class org.jmock.core.MockObjectSupportTestCase
equals(Object) - method in class org.jmock.core.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(org.jmock.core.Invocation) - method in class org.jmock.core.Invocation
eval(Object) - method in class org.jmock.core.constraint.And
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.Constraint
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.constraint.IsAnything
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.constraint.IsCloseTo
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.constraint.IsEqual
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.constraint.IsEventFrom
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.constraint.IsGreaterThan
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.constraint.IsInstanceOf
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.constraint.IsLessThan
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.constraint.IsNot
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.constraint.IsNull
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.constraint.IsSame
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.constraint.Or
Evaluates the constraint for argument o.
eval(Object) - method in class org.jmock.core.constraint.StringContains
Evaluates the constraint for argument o.
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.
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

F

fail(String) - method in class org.jmock.expectation.MockObject
failNotEquals(String,Object,Object) - static method in class org.jmock.expectation.AssertMo
Formatting - class org.jmock.core.Formatting

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() - method in class org.jmock.expectation.ReturnValue
getBooleanValue(String) - method in class org.jmock.expectation.ReturnObjectMap
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() - method in class org.jmock.expectation.ReturnValue
getIntValue(Object) - method in class org.jmock.expectation.ReturnObjectMap
getKey() - method in class org.jmock.expectation.MapEntry
getLongValue() - method in class org.jmock.expectation.ReturnValue
getMessage() - method in class org.jmock.core.DynamicMockError
getMockedType() - method in class org.jmock.core.AbstractDynamicMock
getMockedType() - method in class org.jmock.core.DynamicMock
getMockedType() - method in class org.jmock.Mock
getMockName() - method in class org.jmock.core.AbstractDynamicMock
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(int) - method in class org.jmock.expectation.ReturnObjectBag
Returns the next object in the ReturnObjectList for a given int key.
getNextReturnObject(Object) - method in class org.jmock.expectation.ReturnObjectBag
Returns the next object in the ReturnObjectList for a given key.
getValue() - method in class org.jmock.expectation.MapEntry
getValue() - method in class org.jmock.expectation.ReturnValue
getValue(Object) - method in class org.jmock.expectation.ReturnObjectMap
getValue(short) - method in class org.jmock.expectation.ReturnObjectMap

H

hasBeenInvoked() - method in class org.jmock.core.matcher.InvokedRecorder
hasDescription() - method in class org.jmock.core.InvocationMatcher
hasDescription() - method in class org.jmock.core.InvocationMocker
hasDescription() - method in class org.jmock.core.InvocationMocker.Describer
hasDescription() - method in class org.jmock.builder.InvocationMockerDescriber
hasDescription() - method in class org.jmock.core.Invokable
hasDescription() - method in class org.jmock.core.matcher.InvokeAtLeastOnceMatcher
hasDescription() - method in class org.jmock.core.matcher.InvokedRecorder
hasDescription() - method in class org.jmock.core.matcher.InvokeOnceMatcher
hasDescription() - method in class org.jmock.core.matcher.StatelessInvocationMatcher
hasDescription() - method in class org.jmock.core.matcher.TestFailureMatcher
hasExpectations() - method in class org.jmock.expectation.AbstractExpectation
hasExpectations() - method in class 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.core.Invocation
hashCode() - method in class org.jmock.expectation.MapEntry
hashCode() - method in class org.jmock.expectation.Null
Returns this Null object's hashCode.

I

id(String) - method in class org.jmock.builder.IdentityBuilder
id(String) - method in class org.jmock.builder.InvocationMockerBuilder
IdentityBuilder - interface org.jmock.builder.IdentityBuilder
inc() - method in class org.jmock.expectation.ExpectationCounter
INSTANCE - static field in class org.jmock.core.matcher.AnyArgumentsMatcher
INSTANCE - static field in class org.jmock.core.matcher.NoArgumentsMatcher
INSTANCE - static field in class org.jmock.core.stub.VoidStub
invocation - field in class org.jmock.core.DynamicMockError
Invocation - class org.jmock.core.Invocation
A "dumb struct" that holds information about an invocation dispatched to a Mock object.
Invocation(Object,Method,Object[]) - constructor for class org.jmock.core.Invocation
InvocationDispatcher - interface org.jmock.core.InvocationDispatcher
InvocationMatcher - interface org.jmock.core.InvocationMatcher
InvocationMocker - class org.jmock.core.InvocationMocker
InvocationMocker() - constructor for class org.jmock.core.InvocationMocker
Invokable - interface org.jmock.core.Invokable
invoke(Object,Method,Object[]) - method in class org.jmock.core.CoreMock
invoke(org.jmock.core.Invocation) - method in class org.jmock.core.stub.DefaultResultStub
invoke(org.jmock.core.Invocation) - method in class org.jmock.core.InvocationMocker
invoke(org.jmock.core.Invocation) - method in class org.jmock.core.Invokable
invoke(org.jmock.core.Invocation) - method in class org.jmock.core.stub.ReturnStub
invoke(org.jmock.core.Invocation) - method in class org.jmock.core.Stub
Processes the invocation.
invoke(org.jmock.core.Invocation) - method in class org.jmock.core.stub.StubSequence
invoke(org.jmock.core.Invocation) - method in class org.jmock.core.stub.TestFailureStub
invoke(org.jmock.core.Invocation) - method in class org.jmock.core.stub.ThrowStub
invoke(org.jmock.core.Invocation) - method in class org.jmock.core.stub.VoidStub
InvokeAtLeastOnceMatcher - class org.jmock.core.matcher.InvokeAtLeastOnceMatcher
invoked(org.jmock.core.Invocation) - method in class org.jmock.core.InvocationMatcher
invoked(org.jmock.core.Invocation) - method in class org.jmock.core.matcher.InvokedAfterMatcher
invoked(org.jmock.core.Invocation) - method in class org.jmock.core.matcher.InvokedRecorder
invoked(org.jmock.core.Invocation) - method in class org.jmock.core.matcher.StatelessInvocationMatcher
invoked(org.jmock.core.Invocation) - method in class org.jmock.core.matcher.TestFailureMatcher
InvokedAfterMatcher - class org.jmock.core.matcher.InvokedAfterMatcher
invokedMethod - field in class org.jmock.core.Invocation
invokedObject - field in class org.jmock.core.Invocation
InvokedRecorder - class org.jmock.core.matcher.InvokedRecorder
InvokeOnceMatcher - class org.jmock.core.matcher.InvokeOnceMatcher
isA(Class) - method in class org.jmock.core.MockObjectSupportTestCase
IsAnything - class org.jmock.core.constraint.IsAnything
A constraint that always returns true.
IsCloseTo - class org.jmock.core.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.core.constraint.IsCloseTo
isEmpty() - method in class org.jmock.expectation.ReturnValues
IsEqual - class org.jmock.core.constraint.IsEqual
Is the value equal to another value, as tested by the Object.equals invokedMethod?
IsEqual(Object) - constructor for class org.jmock.core.constraint.IsEqual
IsEventFrom - class org.jmock.core.constraint.IsEventFrom
Tests if the value is an event announced by a specific object.
IsEventFrom(Class,Object) - constructor for class org.jmock.core.constraint.IsEventFrom
Constructs an IsEventFrom predicate that returns true for any object derived from event_class announced by source.
IsEventFrom(Object) - constructor for class org.jmock.core.constraint.IsEventFrom
Constructs an IsEventFrom predicate that returns true for any object derived from EventObjectannounced by source .
IsGreaterThan - class org.jmock.core.constraint.IsGreaterThan
Is the value greater than another Comparable value?
IsGreaterThan(Comparable) - constructor for class org.jmock.core.constraint.IsGreaterThan
IsInstanceOf - class org.jmock.core.constraint.IsInstanceOf
Tests whether the value is an instance of a class.
IsInstanceOf(Class) - constructor for class org.jmock.core.constraint.IsInstanceOf
Creates a new instance of IsInstanceOf
IsLessThan - class org.jmock.core.constraint.IsLessThan
Is the value less than another Comparable value?
IsLessThan(Comparable) - constructor for class org.jmock.core.constraint.IsLessThan
IsNot - class org.jmock.core.constraint.IsNot
Calculates the logical negation of a constraint.
IsNot(org.jmock.core.Constraint) - constructor for class org.jmock.core.constraint.IsNot
IsNull - class org.jmock.core.constraint.IsNull
Is the value null?
IsSame - class org.jmock.core.constraint.IsSame
Is the value the same object as another value?
IsSame(Object) - constructor for class org.jmock.core.constraint.IsSame
Creates a new instance of IsSame
isVoid() - method in class org.jmock.builder.InvocationMockerBuilder
isVoid() - method in class org.jmock.builder.StubBuilder

J

join(Collection,StringBuffer,String,String) - static method in class org.jmock.core.Formatting
join(Collection,StringBuffer,String,String,String) - static method in class org.jmock.core.Formatting
join(Object,StringBuffer) - static method in class org.jmock.core.Formatting
join(Object,StringBuffer,String,String) - static method in class org.jmock.core.Formatting
join(Object,StringBuffer,String,String,String) - static method in class org.jmock.core.Formatting

L

lookupID(String) - method in class org.jmock.builder.BuilderNamespace
lookupID(String) - method in class org.jmock.Mock

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
match(org.jmock.core.InvocationMatcher) - method in class org.jmock.builder.MatchBuilder
MatchBuilder - interface org.jmock.builder.MatchBuilder
matches(org.jmock.core.Invocation) - method in class org.jmock.core.matcher.AnyArgumentsMatcher
matches(org.jmock.core.Invocation) - method in class org.jmock.core.matcher.ArgumentsMatcher
matches(org.jmock.core.Invocation) - method in class org.jmock.core.InvocationMatcher
matches(org.jmock.core.Invocation) - method in class org.jmock.core.InvocationMocker
matches(org.jmock.core.Invocation) - method in class org.jmock.core.Invokable
matches(org.jmock.core.Invocation) - method in class org.jmock.core.matcher.InvokedAfterMatcher
matches(org.jmock.core.Invocation) - method in class org.jmock.core.matcher.InvokedRecorder
matches(org.jmock.core.Invocation) - method in class org.jmock.core.matcher.InvokeOnceMatcher
matches(org.jmock.core.Invocation) - method in class org.jmock.core.matcher.MethodNameMatcher
matches(org.jmock.core.Invocation) - method in class org.jmock.core.matcher.NoArgumentsMatcher
matches(org.jmock.core.Invocation) - method in class org.jmock.core.matcher.TestFailureMatcher
method(org.jmock.core.Constraint) - method in class org.jmock.builder.NameMatchBuilder
method(String) - method in class org.jmock.builder.InvocationMockerBuilder
method(String) - method in class org.jmock.builder.NameMatchBuilder
MethodNameMatcher - class org.jmock.core.matcher.MethodNameMatcher
MethodNameMatcher(org.jmock.core.Constraint) - constructor for class org.jmock.core.matcher.MethodNameMatcher
MethodNameMatcher(String) - constructor for class org.jmock.core.matcher.MethodNameMatcher
Mock - class org.jmock.Mock
Mock - class org.jmock.cglib.Mock
Mock(Class) - constructor for class org.jmock.Mock
Mock(Class) - constructor for class org.jmock.cglib.Mock
mock(Class) - method in class org.jmock.MockObjectTestCase
Mock(Class,String) - constructor for class org.jmock.Mock
Mock(Class,String) - constructor for class org.jmock.cglib.Mock
mock(Class,String) - method in class org.jmock.MockObjectTestCase
Mock(org.jmock.core.DynamicMock) - constructor for class org.jmock.Mock
Mock(org.jmock.core.DynamicMock) - constructor for class org.jmock.cglib.Mock
mockNameFromClass(Class) - static method in class org.jmock.core.AbstractDynamicMock
MockObject - class org.jmock.expectation.MockObject
MockObjectSupportTestCase() - constructor for class org.jmock.core.MockObjectSupportTestCase
MockObjectSupportTestCase(String) - constructor for class org.jmock.core.MockObjectSupportTestCase
A base class for tests that use Mock Objects.
MockObjectTestCase - class org.jmock.cglib.MockObjectTestCase
MockObjectTestCase() - constructor for class org.jmock.MockObjectTestCase
MockObjectTestCase(String) - constructor for class org.jmock.MockObjectTestCase
myActualItems - field in class org.jmock.expectation.ExpectationList
myContents - field in class org.jmock.expectation.ReturnValues
myExpectedItems - field in class org.jmock.expectation.ExpectationList
myFailureModeIsImmediate - field in class org.jmock.expectation.AbstractExpectation
myName - field in class org.jmock.expectation.AbstractExpectation

N

NameMatchBuilder - interface org.jmock.builder.NameMatchBuilder
never() - method in class org.jmock.MockObjectTestCase
newCoreMock(Class,String) - method in class org.jmock.MockObjectTestCase
newCoreMock(Class,String) - method in class org.jmock.cglib.MockObjectTestCase
newDummy(Class) - static method in class org.jmock.util.Dummy
newDummy(Class) - method in class org.jmock.core.MockObjectSupportTestCase
newDummy(Class,String) - static method in class org.jmock.util.Dummy
newDummy(Class,String) - method in class org.jmock.core.MockObjectSupportTestCase
newDummy(String) - static method in class org.jmock.util.Dummy
newDummy(String) - method in class org.jmock.core.MockObjectSupportTestCase
nextReturnObject() - method in class org.jmock.expectation.ReturnObjectList
Returns the next object from the list.
NO_EXPECTATIONS_MESSAGE - static field in class org.jmock.core.FIFOInvocationDispatcher
NO_EXPECTATIONS_MESSAGE - static field in class org.jmock.core.LIFOInvocationDispatcher
NoArgumentsMatcher - class org.jmock.core.matcher.NoArgumentsMatcher
NOT_NULL - static field in class org.jmock.core.MockObjectSupportTestCase
notImplemented() - method in class org.jmock.expectation.MockObject
notImplemented(String) - static method in class org.jmock.expectation.AssertMo
NotImplementedException() - constructor for class org.jmock.util.NotImplementedException
NotImplementedException constructor comment.
NotImplementedException(String) - constructor for class org.jmock.util.NotImplementedException
NotImplementedException constructor comment.
notYetImplemented() - method in class org.jmock.expectation.MockObject
notYetImplemented(String) - static method in class org.jmock.expectation.MockObject
NULL - static field in class org.jmock.core.MockObjectSupportTestCase
NULL - static field in class org.jmock.expectation.Null
A default Null object.
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.

O

once() - method in class org.jmock.MockObjectTestCase
Or - class org.jmock.core.constraint.Or
Calculates the logical disjunction of two constraints.
Or(org.jmock.core.Constraint,org.jmock.core.Constraint) - constructor for class org.jmock.core.constraint.Or
org.jmock - package
org.jmock.cglib - package
org.jmock.core - package
org.jmock.util - package

P

parameterValues - field in class org.jmock.core.Invocation
pop() - method in class org.jmock.expectation.ReturnValues
proxy() - method in class org.jmock.cglib.CGLIBCoreMock
proxy() - method in class org.jmock.core.CoreMock
proxy() - method in class org.jmock.core.DynamicMock
proxy() - method in class org.jmock.Mock
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,boolean) - method in class org.jmock.expectation.ReturnObjectBag
Places an boolean into the list of return objects for a particular 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,Object) - method in class org.jmock.expectation.ReturnObjectBag
Places an object into the list of return objects for a particular key
putReturnValue(Object,boolean) - method in class org.jmock.expectation.ReturnObjectMap
putReturnValue(Object,int) - method in class org.jmock.expectation.ReturnObjectMap
putReturnValue(Object,Object) - method in class org.jmock.expectation.ReturnObjectMap
putReturnValue(short,Object) - method in class org.jmock.expectation.ReturnObjectMap

R

reset() - method in class org.jmock.core.AbstractDynamicMock
reset() - method in class org.jmock.core.DynamicMock
reset() - method in class org.jmock.Mock
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.core.stub.ReturnStub
ReturnStub(Object) - constructor for class org.jmock.core.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 invokedMethod call.
returnValue(boolean) - method in class org.jmock.MockObjectTestCase
returnValue(byte) - method in class org.jmock.MockObjectTestCase
returnValue(char) - method in class org.jmock.MockObjectTestCase
returnValue(double) - method in class org.jmock.MockObjectTestCase
returnValue(float) - method in class org.jmock.MockObjectTestCase
returnValue(int) - method in class org.jmock.MockObjectTestCase
returnValue(long) - method in class org.jmock.MockObjectTestCase
returnValue(Object) - method in class org.jmock.MockObjectTestCase
returnValue(short) - method in class org.jmock.MockObjectTestCase
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(boolean) - constructor for class org.jmock.expectation.ReturnValues
ReturnValues(String,boolean) - constructor for class org.jmock.expectation.ReturnValues
runBare() - method in class org.jmock.core.VerifyingTestCase

S

same(Object) - method in class org.jmock.core.MockObjectSupportTestCase
SelfDescribing - interface org.jmock.core.SelfDescribing
An object that can describe itself.
setActual(boolean) - method in class org.jmock.expectation.ExpectationValue
setActual(double) - method in class org.jmock.expectation.ExpectationDoubleValue
setActual(double) - method in class org.jmock.expectation.ExpectationValue
setActual(int) - method in class org.jmock.expectation.ExpectationValue
setActual(long) - method in class org.jmock.expectation.ExpectationValue
setActual(Object) - method in class org.jmock.expectation.ExpectationValue
setActual(String) - method in class org.jmock.expectation.ExpectationSegment
setDefaultStub(org.jmock.core.Stub) - method in class org.jmock.core.DynamicMock
setDefaultStub(org.jmock.core.Stub) - method in class org.jmock.Mock
setExpected(boolean) - method in class org.jmock.expectation.ExpectationValue
setExpected(double) - method in class org.jmock.expectation.ExpectationValue
setExpected(double,double) - method in class org.jmock.expectation.ExpectationDoubleValue
setExpected(int) - method in class org.jmock.expectation.ExpectationCounter
setExpected(int) - method in class org.jmock.expectation.ExpectationValue
setExpected(long) - method in class org.jmock.expectation.ExpectationValue
setExpected(Object) - method in class org.jmock.expectation.ExpectationValue
setExpected(String) - method in class org.jmock.expectation.ExpectationSegment
setExpectNothing() - method in class org.jmock.expectation.AbstractExpectationCollection
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.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
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.ExpectationMap
setExpectNothing() - method in class org.jmock.expectation.ExpectationSegment
setExpectNothing() - method in class org.jmock.expectation.ExpectationValue
Tell the object to expect nothing to happen to it, perhaps because the test is exercising the handling of an error.
setFailOnVerify() - method in class org.jmock.expectation.AbstractExpectation
setFailOnVerify() - method in class 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
setName(String) - method in class org.jmock.core.InvocationMocker
setName(String) - method in class org.jmock.core.StubMatchersCollection
setStub(org.jmock.core.Stub) - method in class org.jmock.core.InvocationMocker
setStub(org.jmock.core.Stub) - method in class org.jmock.core.StubMatchersCollection
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
setValue(Object) - method in class org.jmock.expectation.MapEntry
setValue(Object) - method in class org.jmock.expectation.ReturnValue
shouldCheckImmediately() - method in class org.jmock.expectation.AbstractExpectation
StringContains - class org.jmock.core.constraint.StringContains
Tests if the argument is a string that contains a substring.
stringContains(String) - method in class org.jmock.core.MockObjectSupportTestCase
StringContains(String) - constructor for class org.jmock.core.constraint.StringContains
Stub - interface org.jmock.core.Stub
An object that stubs the behaviour of a invokedMethod invocation on behalf of an Invokable object.
StubBuilder - interface org.jmock.builder.StubBuilder
stubs() - method in class org.jmock.Mock
StubSequence - class org.jmock.core.stub.StubSequence
StubSequence(List) - constructor for class org.jmock.core.stub.StubSequence
StubSequence(org.jmock.core.Stub[]) - constructor for class org.jmock.core.stub.StubSequence

T

TestFailureMatcher - class org.jmock.core.matcher.TestFailureMatcher
TestFailureMatcher(String) - constructor for class org.jmock.core.matcher.TestFailureMatcher
TestFailureStub - class org.jmock.core.stub.TestFailureStub
TestFailureStub(String) - constructor for class org.jmock.core.stub.TestFailureStub
throwException(Throwable) - method in class org.jmock.MockObjectTestCase
ThrowStub - class org.jmock.core.stub.ThrowStub
ThrowStub(Throwable) - constructor for class org.jmock.core.stub.ThrowStub
toReadableString(Object) - static method in class org.jmock.core.Formatting
toString() - method in class org.jmock.core.AbstractDynamicMock
toString() - method in class org.jmock.core.Invocation
toString() - method in class org.jmock.core.InvocationMocker
toString() - method in class org.jmock.expectation.MapEntry
toString() - method in class org.jmock.Mock
toString() - method in class org.jmock.expectation.Null
Returns a string representation of this Null object.

U

V

Verifiable - interface org.jmock.core.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.util.Verifier
Helper class to verify all Verifiable fields of an object.
verify() - method in class org.jmock.core.AbstractDynamicMock
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.core.FIFOInvocationDispatcher
Throw an AssertionFailedException if any expectations have not been met.
verify() - method in class org.jmock.core.InvocationMocker
verify() - method in class org.jmock.core.matcher.InvokeAtLeastOnceMatcher
verify() - method in class org.jmock.core.matcher.InvokedRecorder
verify() - method in class org.jmock.core.matcher.InvokeOnceMatcher
verify() - method in class org.jmock.core.LIFOInvocationDispatcher
verify() - method in class org.jmock.Mock
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 class org.jmock.core.matcher.StatelessInvocationMatcher
verify() - method in class org.jmock.core.matcher.TestFailureMatcher
verify() - method in class org.jmock.core.Verifiable
Throw an AssertionFailedException if any expectations have not been met.
verify() - method in class org.jmock.core.VerifyingTestCase
verifyHasBeenInvoked() - method in class org.jmock.core.matcher.InvokedRecorder
VerifyingTestCase - class org.jmock.core.VerifyingTestCase
A TestCase that verifies Verifiable fields and registered Verifiable objects after the test has run and before the fixture has been torn down.
VerifyingTestCase() - constructor for class org.jmock.core.VerifyingTestCase
VerifyingTestCase(String) - constructor for class org.jmock.core.VerifyingTestCase
verifyObject(Object) - static method in class org.jmock.util.Verifier
Verifies all the fields of type Verifiable in the given object, including those inherited from superclasses.
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(boolean) - constructor for class org.jmock.expectation.VoidReturnValues
VoidReturnValues(String,boolean) - constructor for class org.jmock.expectation.VoidReturnValues
VoidStub - class org.jmock.core.stub.VoidStub

W

will(org.jmock.core.Stub) - method in class org.jmock.builder.InvocationMockerBuilder
will(org.jmock.core.Stub) - method in class org.jmock.builder.StubBuilder
with(org.jmock.core.Constraint) - method in class org.jmock.builder.ArgumentsMatchBuilder
with(org.jmock.core.Constraint) - method in class org.jmock.builder.InvocationMockerBuilder
with(org.jmock.core.Constraint[]) - method in class org.jmock.builder.ArgumentsMatchBuilder
withAnyArguments() - method in class org.jmock.builder.ArgumentsMatchBuilder
withAnyArguments() - method in class org.jmock.builder.InvocationMockerBuilder
withNoArguments() - method in class org.jmock.builder.ArgumentsMatchBuilder
withNoArguments() - method in class org.jmock.builder.InvocationMockerBuilder
writeTo(StringBuffer) - method in class org.jmock.core.DynamicMockError