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

A

ANYTHING - Static variable in class org.jmock.core.MockObjectSupportTestCase
 
AbstractDynamicMock - class org.jmock.core.AbstractDynamicMock.
 
AbstractDynamicMock(Class, String) - Constructor for class org.jmock.core.AbstractDynamicMock
 
AbstractDynamicMock(Class, String, InvocationDispatcher) - Constructor for class org.jmock.core.AbstractDynamicMock
 
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
 
AbstractInvocationDispatcher - class org.jmock.core.AbstractInvocationDispatcher.
 
AbstractInvocationDispatcher() - Constructor for class org.jmock.core.AbstractInvocationDispatcher
 
And - class org.jmock.core.constraint.And.
Calculates the logical conjunction of two constraints.
And(Constraint, Constraint) - Constructor for class org.jmock.core.constraint.And
 
AnyArgumentsMatcher - class org.jmock.core.matcher.AnyArgumentsMatcher.
 
AnyArgumentsMatcher() - Constructor for class org.jmock.core.matcher.AnyArgumentsMatcher
 
ArgumentsMatchBuilder - interface org.jmock.builder.ArgumentsMatchBuilder.
 
ArgumentsMatcher - class org.jmock.core.matcher.ArgumentsMatcher.
 
ArgumentsMatcher(Constraint[]) - Constructor for class org.jmock.core.matcher.ArgumentsMatcher
 
AssertMo - class org.jmock.expectation.AssertMo.
 
AssertMo() - Constructor for class org.jmock.expectation.AssertMo
 
add(Invokable) - Method in class org.jmock.core.AbstractInvocationDispatcher
 
add(Invokable) - Method in interface org.jmock.core.InvocationDispatcher
 
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
 
addInvokable(Invokable) - Method in class org.jmock.Mock
 
addInvokable(Invokable) - Method in class org.jmock.core.AbstractDynamicMock
 
addInvokable(Invokable) - Method in interface org.jmock.core.DynamicMock
 
addMatcher(InvocationMatcher) - Method in class org.jmock.core.InvocationMocker
 
addMatcher(InvocationMatcher) - Method in interface org.jmock.core.StubMatchersCollection
 
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.
addResult(Class, Object) - Method in class org.jmock.core.stub.DefaultResultStub
 
addThingsTo(Collection) - Method in interface atest.jmock.DoAllAcceptanceTest.Collector
 
after(String) - Method in class org.jmock.builder.InvocationMockerBuilder
 
after(BuilderNamespace, String) - Method in class org.jmock.builder.InvocationMockerBuilder
 
after(String) - Method in interface org.jmock.builder.MatchBuilder
 
after(BuilderNamespace, String) - Method in interface org.jmock.builder.MatchBuilder
 
and(Constraint, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
arrayContaining(Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
arrayContaining(Object) - Method in class org.jmock.core.MockObjectSupportTestCase
 
arrayContaining(boolean) - Method in class org.jmock.core.MockObjectSupportTestCase
 
arrayContaining(byte) - Method in class org.jmock.core.MockObjectSupportTestCase
 
arrayContaining(short) - Method in class org.jmock.core.MockObjectSupportTestCase
 
arrayContaining(char) - Method in class org.jmock.core.MockObjectSupportTestCase
 
arrayContaining(int) - Method in class org.jmock.core.MockObjectSupportTestCase
 
arrayContaining(long) - Method in class org.jmock.core.MockObjectSupportTestCase
 
arrayContaining(float) - Method in class org.jmock.core.MockObjectSupportTestCase
 
arrayContaining(double) - Method in class org.jmock.core.MockObjectSupportTestCase
 
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
 
assertStringContains(String, String, String) - Static method in class atest.jmock.ErrorMessagesAcceptanceTest
 
assertSubstringOrder(String, String, String, String) - Static method in class atest.jmock.ErrorMessagesAcceptanceTest
 
assertThat(Object, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
assertThat(boolean, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
assertThat(byte, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
assertThat(short, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
assertThat(char, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
assertThat(int, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
assertThat(long, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
assertThat(float, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
assertThat(double, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
assertTrue(String, boolean) - Method in class org.jmock.expectation.MockObject
 
assertVerifyFails(Verifiable) - Static method in class org.jmock.expectation.AssertMo
 
atLeastOnce() - Method in class org.jmock.MockObjectTestCase
 
atMostOnce() - Method in class org.jmock.MockObjectTestCase
 
atest.jmock - package atest.jmock
 
atest.jmock.cglib - package atest.jmock.cglib
 

B

BadMethodNameAcceptanceTest - class atest.jmock.BadMethodNameAcceptanceTest.
 
BadMethodNameAcceptanceTest() - Constructor for class atest.jmock.BadMethodNameAcceptanceTest
 
BuilderNamespace - interface org.jmock.builder.BuilderNamespace.
 
buyLowestPriceStock(int) - Method in class atest.jmock.DynamicMockExample.Agent
 
buyStock(String, int) - Method in interface atest.jmock.DynamicMockExample.Market
 

C

CGLIBCoreMock - class org.jmock.cglib.CGLIBCoreMock.
 
CGLIBCoreMock(Class, String) - Constructor for class org.jmock.cglib.CGLIBCoreMock
 
CGLIBCoreMock(Class, String, Class[], Object[]) - Constructor for class org.jmock.cglib.CGLIBCoreMock
 
CGLIBCoreMock(Class, String, InvocationDispatcher) - Constructor for class org.jmock.cglib.CGLIBCoreMock
 
CGLIBCoreMock(Class, String, Class[], Object[], InvocationDispatcher) - Constructor for class org.jmock.cglib.CGLIBCoreMock
 
CascadedFailuresAcceptanceTest - class atest.jmock.CascadedFailuresAcceptanceTest.
 
CascadedFailuresAcceptanceTest() - Constructor for class atest.jmock.CascadedFailuresAcceptanceTest
 
CascadedFailuresAcceptanceTest.MockedType - interface atest.jmock.CascadedFailuresAcceptanceTest.MockedType.
 
CascadedFailuresAcceptanceTest.ObjectUnderTest - class atest.jmock.CascadedFailuresAcceptanceTest.ObjectUnderTest.
 
CascadedFailuresAcceptanceTest.ObjectUnderTest(CascadedFailuresAcceptanceTest.MockedType) - Constructor for class atest.jmock.CascadedFailuresAcceptanceTest.ObjectUnderTest
 
ClassLoaderAcceptanceTest - class atest.jmock.ClassLoaderAcceptanceTest.
 
ClassLoaderAcceptanceTest() - Constructor for class atest.jmock.ClassLoaderAcceptanceTest
 
CollectionsAcceptanceTest - class atest.jmock.CollectionsAcceptanceTest.
 
CollectionsAcceptanceTest() - Constructor for class atest.jmock.CollectionsAcceptanceTest
 
CollectionsAcceptanceTest.T - interface atest.jmock.CollectionsAcceptanceTest.T.
 
ConsecutiveCallsAcceptanceTest - class atest.jmock.ConsecutiveCallsAcceptanceTest.
 
ConsecutiveCallsAcceptanceTest() - Constructor for class atest.jmock.ConsecutiveCallsAcceptanceTest
 
ConsecutiveCallsAcceptanceTest.Greeter - interface atest.jmock.ConsecutiveCallsAcceptanceTest.Greeter.
 
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
 
CoreMock(Class, String, InvocationDispatcher) - Constructor for class org.jmock.core.CoreMock
 
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:
CustomStub(String) - Constructor for class org.jmock.core.stub.CustomStub
 
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
 
checkReturnTypeCompatibility(Object) - Method in class org.jmock.core.Invocation
 
classShortName(Class) - Static method in class org.jmock.core.Formatting
 
clear() - Method in class org.jmock.core.AbstractInvocationDispatcher
 
clear() - Method in interface org.jmock.core.InvocationDispatcher
 
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
 
collectionContaining(Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
collectionContaining(Object) - Method in class org.jmock.core.MockObjectSupportTestCase
 
compatibleType(Class) - Method in class org.jmock.core.MockObjectSupportTestCase
 
contains(String) - Method in class org.jmock.core.MockObjectSupportTestCase
 
count() - Method in interface atest.jmock.OrderedInvocationsAcceptanceTest.ExampleInterface
 
createDefaultResults() - Method in class org.jmock.core.stub.DefaultResultStub
 
createErrorMessage(Invocation) - Method in class org.jmock.core.stub.DefaultResultStub
 

D

DEFAULT_DESCRIBER - Static variable in class org.jmock.core.InvocationMocker
 
DEFAULT_DESCRIPTION - Static variable 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
 
DoAllAcceptanceTest - class atest.jmock.DoAllAcceptanceTest.
 
DoAllAcceptanceTest() - Constructor for class atest.jmock.DoAllAcceptanceTest
 
DoAllAcceptanceTest.AddElementStub - class atest.jmock.DoAllAcceptanceTest.AddElementStub.
 
DoAllAcceptanceTest.AddElementStub(String) - Constructor for class atest.jmock.DoAllAcceptanceTest.AddElementStub
 
DoAllAcceptanceTest.Collector - interface atest.jmock.DoAllAcceptanceTest.Collector.
 
DoAllStub - class org.jmock.core.stub.DoAllStub.
 
DoAllStub(Stub[]) - Constructor for class org.jmock.core.stub.DoAllStub
 
Dummy - class org.jmock.util.Dummy.
Deprecated. Use MockObjectTestCase.newDummy instead
DummyOfClassAcceptanceTest - class atest.jmock.cglib.DummyOfClassAcceptanceTest.
 
DummyOfClassAcceptanceTest() - Constructor for class atest.jmock.cglib.DummyOfClassAcceptanceTest
 
DummyOfClassAcceptanceTest.MockedType - class atest.jmock.cglib.DummyOfClassAcceptanceTest.MockedType.
 
DummyOfClassAcceptanceTest.MockedType() - Constructor for class atest.jmock.cglib.DummyOfClassAcceptanceTest.MockedType
 
DynamicMock - interface org.jmock.core.DynamicMock.
 
DynamicMockError - error org.jmock.core.DynamicMockError.
 
DynamicMockError(DynamicMock, Invocation, InvocationDispatcher, String) - Constructor for class org.jmock.core.DynamicMockError
 
DynamicMockExample - class atest.jmock.DynamicMockExample.
 
DynamicMockExample() - Constructor for class atest.jmock.DynamicMockExample
 
DynamicMockExample.Agent - class atest.jmock.DynamicMockExample.Agent.
 
DynamicMockExample.Agent(DynamicMockExample.Market) - Constructor for class atest.jmock.DynamicMockExample.Agent
 
DynamicMockExample.Market - interface atest.jmock.DynamicMockExample.Market.
 
defaultMockNameForType(Class) - Method in class org.jmock.MockObjectTestCase
Calculates
defaultStub - Variable in class org.jmock.core.AbstractInvocationDispatcher
 
describeTo(StringBuffer) - Method in class atest.jmock.DoAllAcceptanceTest.AddElementStub
 
describeTo(StringBuffer, List, Stub, String) - Method in class org.jmock.builder.InvocationMockerDescriber
 
describeTo(StringBuffer) - Method in class org.jmock.core.AbstractInvocationDispatcher
 
describeTo(StringBuffer) - Method in class org.jmock.core.Invocation
 
describeTo(StringBuffer, List, Stub, String) - Method in interface org.jmock.core.InvocationMocker.Describer
 
describeTo(StringBuffer) - Method in class org.jmock.core.InvocationMocker
 
describeTo(StringBuffer) - Method in interface org.jmock.core.SelfDescribing
Appends the description of this object to the buffer.
describeTo(StringBuffer) - Method in class org.jmock.core.constraint.And
 
describeTo(StringBuffer) - Method in class org.jmock.core.constraint.HasProperty
 
describeTo(StringBuffer) - Method in class org.jmock.core.constraint.HasPropertyWithValue
 
describeTo(StringBuffer) - Method in class org.jmock.core.constraint.HasToString
 
describeTo(StringBuffer) - Method in class org.jmock.core.constraint.IsAnything
 
describeTo(StringBuffer) - Method in class org.jmock.core.constraint.IsArrayContaining
 
describeTo(StringBuffer) - Method in class org.jmock.core.constraint.IsCloseTo
 
describeTo(StringBuffer) - Method in class org.jmock.core.constraint.IsCollectionContaining
 
describeTo(StringBuffer) - Method in class org.jmock.core.constraint.IsCompatibleType
 
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.IsIn
 
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.IsMapContaining
 
describeTo(StringBuffer) - Method in class org.jmock.core.constraint.IsNot
 
describeTo(StringBuffer) - Method in class org.jmock.core.constraint.IsNothing
 
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.constraint.Or
 
describeTo(StringBuffer) - Method in class org.jmock.core.constraint.SubstringConstraint
 
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.matcher.InvokeAtLeastOnceMatcher
 
describeTo(StringBuffer) - Method in class org.jmock.core.matcher.InvokeAtMostOnceMatcher
 
describeTo(StringBuffer) - Method in class org.jmock.core.matcher.InvokeCountMatcher
 
describeTo(StringBuffer) - Method in class org.jmock.core.matcher.InvokeOnceMatcher
 
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.MethodNameMatcher
 
describeTo(StringBuffer) - Method in class org.jmock.core.matcher.NoArgumentsMatcher
 
describeTo(StringBuffer) - Method in class org.jmock.core.matcher.TestFailureMatcher
 
describeTo(StringBuffer) - Method in class org.jmock.core.stub.CustomStub
 
describeTo(StringBuffer) - Method in class org.jmock.core.stub.DefaultResultStub
 
describeTo(StringBuffer) - Method in class org.jmock.core.stub.DoAllStub
 
describeTo(StringBuffer) - Method in class org.jmock.core.stub.ReturnIteratorStub
 
describeTo(StringBuffer) - Method in class org.jmock.core.stub.ReturnStub
 
describeTo(StringBuffer) - Method in class org.jmock.core.stub.StubSequence
 
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
 
dispatch(Invocation) - Method in class org.jmock.core.AbstractInvocationDispatcher
 
dispatch(Invocation) - Method in interface org.jmock.core.InvocationDispatcher
 
dispatchOrder(List) - Method in class org.jmock.core.AbstractInvocationDispatcher
 
dispatchOrder(List) - Method in class org.jmock.core.FIFOInvocationDispatcher
 
dispatchOrder(List) - Method in class org.jmock.core.LIFOInvocationDispatcher
 
dispatcher - Variable in class org.jmock.core.DynamicMockError
 
doAll(Stub, Stub) - Method in class org.jmock.MockObjectTestCase
 
doAll(Stub, Stub, Stub) - Method in class org.jmock.MockObjectTestCase
 
doAll(Stub, Stub, Stub, Stub) - Method in class org.jmock.MockObjectTestCase
 
doAll(Stub[]) - Method in class org.jmock.MockObjectTestCase
 
doSomething() - Method in class atest.jmock.cglib.DummyOfClassAcceptanceTest.MockedType
 
doSomething() - Method in class atest.jmock.cglib.OverriddenToStringAcceptanceTest.ClassThatOverridesToString
 
doSomethingWith(String, String) - Method in interface atest.jmock.IsNullAcceptanceTest.MockedType
 
dynamicMock - Variable in class org.jmock.core.DynamicMockError
 

E

ErrorDetectionAcceptanceTest - class atest.jmock.cglib.ErrorDetectionAcceptanceTest.
 
ErrorDetectionAcceptanceTest() - Constructor for class atest.jmock.cglib.ErrorDetectionAcceptanceTest
 
ErrorDetectionAcceptanceTest.NonStaticInnerClass - class atest.jmock.cglib.ErrorDetectionAcceptanceTest.NonStaticInnerClass.
 
ErrorDetectionAcceptanceTest.NonStaticInnerClass() - Constructor for class atest.jmock.cglib.ErrorDetectionAcceptanceTest.NonStaticInnerClass
 
ErrorMessagesAcceptanceTest - class atest.jmock.ErrorMessagesAcceptanceTest.
 
ErrorMessagesAcceptanceTest() - Constructor for class atest.jmock.ErrorMessagesAcceptanceTest
 
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
 
ExpectNeverAcceptanceTest - class atest.jmock.ExpectNeverAcceptanceTest.
 
ExpectNeverAcceptanceTest() - Constructor for class atest.jmock.ExpectNeverAcceptanceTest
 
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
 
endsWith(String) - Method in class org.jmock.core.MockObjectSupportTestCase
 
eq(Object) - Method in class org.jmock.core.MockObjectSupportTestCase
 
eq(boolean) - Method in class org.jmock.core.MockObjectSupportTestCase
 
eq(byte) - Method in class org.jmock.core.MockObjectSupportTestCase
 
eq(short) - Method in class org.jmock.core.MockObjectSupportTestCase
 
eq(char) - 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(float) - 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
 
equals(Object) - Method in class org.jmock.core.Invocation
 
equals(Invocation) - 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.
eval(Object) - Method in interface org.jmock.core.Constraint
Evaluates the constraint for argument o.
eval(Object) - Method in class org.jmock.core.constraint.And
 
eval(Object) - Method in class org.jmock.core.constraint.HasProperty
 
eval(Object) - Method in class org.jmock.core.constraint.HasPropertyWithValue
 
eval(Object) - Method in class org.jmock.core.constraint.HasToString
 
eval(Object) - Method in class org.jmock.core.constraint.IsAnything
 
eval(Object) - Method in class org.jmock.core.constraint.IsArrayContaining
 
eval(Object) - Method in class org.jmock.core.constraint.IsCloseTo
 
eval(Object) - Method in class org.jmock.core.constraint.IsCollectionContaining
 
eval(Object) - Method in class org.jmock.core.constraint.IsCompatibleType
 
eval(Object) - Method in class org.jmock.core.constraint.IsEqual
 
eval(Object) - Method in class org.jmock.core.constraint.IsEventFrom
 
eval(Object) - Method in class org.jmock.core.constraint.IsGreaterThan
 
eval(Object) - Method in class org.jmock.core.constraint.IsIn
 
eval(Object) - Method in class org.jmock.core.constraint.IsInstanceOf
 
eval(Object) - Method in class org.jmock.core.constraint.IsLessThan
 
eval(Object) - Method in class org.jmock.core.constraint.IsMapContaining
 
eval(Object) - Method in class org.jmock.core.constraint.IsNot
 
eval(Object) - Method in class org.jmock.core.constraint.IsNothing
 
eval(Object) - Method in class org.jmock.core.constraint.IsNull
 
eval(Object) - Method in class org.jmock.core.constraint.IsSame
 
eval(Object) - Method in class org.jmock.core.constraint.Or
 
eval(Object) - Method in class org.jmock.core.constraint.SubstringConstraint
 
evalSubstringOf(String) - Method in class org.jmock.core.constraint.StringContains
 
evalSubstringOf(String) - Method in class org.jmock.core.constraint.StringEndsWith
 
evalSubstringOf(String) - Method in class org.jmock.core.constraint.StringStartsWith
 
evalSubstringOf(String) - Method in class org.jmock.core.constraint.SubstringConstraint
 
exactly(int) - Method in class org.jmock.MockObjectTestCase
 
expect(InvocationMatcher) - Method in class org.jmock.builder.InvocationMockerBuilder
 
expects(InvocationMatcher) - Method in class org.jmock.Mock
 

F

FIFOInvocationDispatcher - class org.jmock.core.FIFOInvocationDispatcher.
 
FIFOInvocationDispatcher() - Constructor for class org.jmock.core.FIFOInvocationDispatcher
 
Formatting - class org.jmock.core.Formatting.
 
Formatting() - Constructor for class org.jmock.core.Formatting
 
f(int) - Method in interface atest.jmock.CascadedFailuresAcceptanceTest.MockedType
 
fail(String) - Method in class org.jmock.expectation.MockObject
 
failNotEquals(String, Object, Object) - Static method in class org.jmock.expectation.AssertMo
 

G

g() - Method in interface atest.jmock.CascadedFailuresAcceptanceTest.MockedType
 
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
 
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
 
getInvocationCount() - Method in class org.jmock.core.matcher.InvokedRecorder
 
getKey() - Method in class org.jmock.expectation.MapEntry
 
getLongValue() - Method in class org.jmock.expectation.ReturnValue
 
getMessage() - Method in class org.jmock.core.DynamicMockError
 
getMockName() - Method in class org.jmock.core.AbstractDynamicMock
 
getMockedType() - Method in class org.jmock.Mock
 
getMockedType() - Method in class org.jmock.core.AbstractDynamicMock
 
getMockedType() - Method in interface org.jmock.core.DynamicMock
 
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.
getPrice(String) - Method in interface atest.jmock.DynamicMockExample.Market
 
getPropertyDescriptor(String, Object) - Static method in class org.jmock.util.PropertyUtil
Returns the description of the property with the provided name on the provided object's interface.
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
 
goodbye() - Method in interface atest.jmock.OrderedInvocationsAcceptanceTest.ExampleInterface
 
greeting() - Method in interface atest.jmock.ConsecutiveCallsAcceptanceTest.Greeter
 

H

HasProperty - class org.jmock.core.constraint.HasProperty.
Constraint that checks that an object has a JavaBean property with the specified name.
HasProperty(String) - Constructor for class org.jmock.core.constraint.HasProperty
 
HasPropertyWithValue - class org.jmock.core.constraint.HasPropertyWithValue.
Constraint that asserts that a JavaBean property on an argument passed to the mock object meets the provided constraint.
HasPropertyWithValue(String, Constraint) - Constructor for class org.jmock.core.constraint.HasPropertyWithValue
 
HasToString - class org.jmock.core.constraint.HasToString.
 
HasToString(Constraint) - Constructor for class org.jmock.core.constraint.HasToString
 
hasBeenInvoked() - Method in class org.jmock.core.matcher.InvokedRecorder
 
hasDescription() - Method in class org.jmock.builder.InvocationMockerDescriber
 
hasDescription() - Method in interface org.jmock.core.InvocationMatcher
 
hasDescription() - Method in interface org.jmock.core.InvocationMocker.Describer
 
hasDescription() - Method in class org.jmock.core.InvocationMocker
 
hasDescription() - Method in interface org.jmock.core.Invokable
 
hasDescription() - Method in class org.jmock.core.matcher.InvokeAtLeastOnceMatcher
 
hasDescription() - Method in class org.jmock.core.matcher.InvokeAtMostOnceMatcher
 
hasDescription() - Method in class org.jmock.core.matcher.InvokeCountMatcher
 
hasDescription() - Method in class org.jmock.core.matcher.InvokeOnceMatcher
 
hasDescription() - Method in class org.jmock.core.matcher.InvokedRecorder
 
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 interface org.jmock.expectation.Expectation
Return true if any expectations have been set on this object.
hasExpectations() - Method in class org.jmock.expectation.ExpectationMap
 
hasProperty(String, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
hasProperty(String) - Method in class org.jmock.core.MockObjectSupportTestCase
 
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.
hello() - Method in interface atest.jmock.OrderedInvocationsAcceptanceTest.ExampleInterface
 

I

INSTANCE - Static variable in class org.jmock.core.constraint.IsAnything
 
INSTANCE - Static variable in class org.jmock.core.constraint.IsNothing
 
INSTANCE - Static variable in class org.jmock.core.matcher.AnyArgumentsMatcher
 
INSTANCE - Static variable in class org.jmock.core.matcher.NoArgumentsMatcher
 
INSTANCE - Static variable in class org.jmock.core.stub.VoidStub
 
IdentityBuilder - interface org.jmock.builder.IdentityBuilder.
 
Invocation - class org.jmock.core.Invocation.
The static details about a method and the run-time details of its invocation.
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
 
InvocationMocker(InvocationMocker.Describer) - Constructor for class org.jmock.core.InvocationMocker
 
InvocationMocker.Describer - interface org.jmock.core.InvocationMocker.Describer.
 
InvocationMockerBuilder - class org.jmock.builder.InvocationMockerBuilder.
 
InvocationMockerBuilder(StubMatchersCollection, BuilderNamespace, Class) - Constructor for class org.jmock.builder.InvocationMockerBuilder
 
InvocationMockerDescriber - class org.jmock.builder.InvocationMockerDescriber.
 
InvocationMockerDescriber() - Constructor for class org.jmock.builder.InvocationMockerDescriber
 
Invokable - interface org.jmock.core.Invokable.
 
InvokeAtLeastOnceMatcher - class org.jmock.core.matcher.InvokeAtLeastOnceMatcher.
 
InvokeAtLeastOnceMatcher() - Constructor for class org.jmock.core.matcher.InvokeAtLeastOnceMatcher
 
InvokeAtMostOnceAcceptanceTest - class atest.jmock.InvokeAtMostOnceAcceptanceTest.
 
InvokeAtMostOnceAcceptanceTest() - Constructor for class atest.jmock.InvokeAtMostOnceAcceptanceTest
 
InvokeAtMostOnceAcceptanceTest.MockedType - interface atest.jmock.InvokeAtMostOnceAcceptanceTest.MockedType.
 
InvokeAtMostOnceMatcher - class org.jmock.core.matcher.InvokeAtMostOnceMatcher.
 
InvokeAtMostOnceMatcher() - Constructor for class org.jmock.core.matcher.InvokeAtMostOnceMatcher
 
InvokeCountMatcher - class org.jmock.core.matcher.InvokeCountMatcher.
 
InvokeCountMatcher(int) - Constructor for class org.jmock.core.matcher.InvokeCountMatcher
 
InvokeOnceMatcher - class org.jmock.core.matcher.InvokeOnceMatcher.
 
InvokeOnceMatcher() - Constructor for class org.jmock.core.matcher.InvokeOnceMatcher
 
InvokedAfterMatcher - class org.jmock.core.matcher.InvokedAfterMatcher.
 
InvokedAfterMatcher(InvokedRecorder, String) - Constructor for class org.jmock.core.matcher.InvokedAfterMatcher
 
InvokedExactCountAcceptanceTest - class atest.jmock.InvokedExactCountAcceptanceTest.
 
InvokedExactCountAcceptanceTest() - Constructor for class atest.jmock.InvokedExactCountAcceptanceTest
 
InvokedRecorder - class org.jmock.core.matcher.InvokedRecorder.
 
InvokedRecorder() - Constructor for class org.jmock.core.matcher.InvokedRecorder
 
IsAnything - class org.jmock.core.constraint.IsAnything.
A constraint that always returns true.
IsAnything() - Constructor for class org.jmock.core.constraint.IsAnything
 
IsAnything(String) - Constructor for class org.jmock.core.constraint.IsAnything
 
IsArrayContaining - class org.jmock.core.constraint.IsArrayContaining.
 
IsArrayContaining(Constraint) - Constructor for class org.jmock.core.constraint.IsArrayContaining
 
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
 
IsCollectionContaining - class org.jmock.core.constraint.IsCollectionContaining.
 
IsCollectionContaining(Constraint) - Constructor for class org.jmock.core.constraint.IsCollectionContaining
 
IsCompatibleType - class org.jmock.core.constraint.IsCompatibleType.
 
IsCompatibleType(Class) - Constructor for class org.jmock.core.constraint.IsCompatibleType
 
IsEqual - class org.jmock.core.constraint.IsEqual.
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) 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(Object) - Constructor for class org.jmock.core.constraint.IsEventFrom
Constructs an IsEventFrom predicate that returns true for any object derived from EventObjectannounced by source .
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.
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
 
IsIn - class org.jmock.core.constraint.IsIn.
 
IsIn(Collection) - Constructor for class org.jmock.core.constraint.IsIn
 
IsIn(Object[]) - Constructor for class org.jmock.core.constraint.IsIn
 
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
 
IsMapContaining - class org.jmock.core.constraint.IsMapContaining.
 
IsMapContaining(Constraint, Constraint) - Constructor for class org.jmock.core.constraint.IsMapContaining
 
IsNot - class org.jmock.core.constraint.IsNot.
Calculates the logical negation of a constraint.
IsNot(Constraint) - Constructor for class org.jmock.core.constraint.IsNot
 
IsNothing - class org.jmock.core.constraint.IsNothing.
 
IsNothing() - Constructor for class org.jmock.core.constraint.IsNothing
 
IsNothing(String) - Constructor for class org.jmock.core.constraint.IsNothing
 
IsNull - class org.jmock.core.constraint.IsNull.
Is the value null?
IsNull() - Constructor for class org.jmock.core.constraint.IsNull
 
IsNullAcceptanceTest - class atest.jmock.IsNullAcceptanceTest.
 
IsNullAcceptanceTest() - Constructor for class atest.jmock.IsNullAcceptanceTest
 
IsNullAcceptanceTest.MockedType - interface atest.jmock.IsNullAcceptanceTest.MockedType.
 
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
id(String) - Method in interface org.jmock.builder.IdentityBuilder
 
id(String) - Method in class org.jmock.builder.InvocationMockerBuilder
 
inc() - Method in class org.jmock.expectation.ExpectationCounter
 
intercept(Object, Method, Object[], MethodProxy) - Method in class org.jmock.cglib.CGLIBCoreMock
 
invocation - Variable in class org.jmock.core.DynamicMockError
 
invokables - Variable in class org.jmock.core.AbstractInvocationDispatcher
 
invoke(Invocation) - Method in class atest.jmock.DoAllAcceptanceTest.AddElementStub
 
invoke(Object, Method, Object[]) - Method in class org.jmock.core.CoreMock
 
invoke(Invocation) - Method in class org.jmock.core.InvocationMocker
 
invoke(Invocation) - Method in interface org.jmock.core.Invokable
 
invoke(Invocation) - Method in interface org.jmock.core.Stub
Processes the invocation.
invoke(Invocation) - Method in class org.jmock.core.stub.DefaultResultStub
 
invoke(Invocation) - Method in class org.jmock.core.stub.DoAllStub
 
invoke(Invocation) - Method in class org.jmock.core.stub.ReturnIteratorStub
 
invoke(Invocation) - Method in class org.jmock.core.stub.ReturnStub
 
invoke(Invocation) - Method in class org.jmock.core.stub.StubSequence
 
invoke(Invocation) - Method in class org.jmock.core.stub.TestFailureStub
 
invoke(Invocation) - Method in class org.jmock.core.stub.ThrowStub
 
invoke(Invocation) - Method in class org.jmock.core.stub.VoidStub
 
invoked(Invocation) - Method in interface org.jmock.core.InvocationMatcher
 
invoked(Invocation) - Method in class org.jmock.core.matcher.InvokedAfterMatcher
 
invoked(Invocation) - Method in class org.jmock.core.matcher.InvokedRecorder
 
invoked(Invocation) - Method in class org.jmock.core.matcher.StatelessInvocationMatcher
 
invoked(Invocation) - Method in class org.jmock.core.matcher.TestFailureMatcher
 
invokedMethod - Variable in class org.jmock.core.Invocation
 
invokedObject - Variable in class org.jmock.core.Invocation
 
isA(Class) - Method in class org.jmock.core.MockObjectSupportTestCase
 
isEmpty() - Method in class org.jmock.expectation.ReturnValues
 
isIn(Collection) - Method in class org.jmock.core.MockObjectSupportTestCase
 
isIn(Object[]) - Method in class org.jmock.core.MockObjectSupportTestCase
 
isVoid() - Method in class org.jmock.builder.InvocationMockerBuilder
 
isVoid() - Method in interface org.jmock.builder.StubBuilder
 

J

join(Object, StringBuffer) - Static method in class org.jmock.core.Formatting
 
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, 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

LIFOInvocationDispatcher - class org.jmock.core.LIFOInvocationDispatcher.
 
LIFOInvocationDispatcher() - Constructor for class org.jmock.core.LIFOInvocationDispatcher
 
listStocks() - Method in interface atest.jmock.DynamicMockExample.Market
 
lookupID(String) - Method in class org.jmock.Mock
 
lookupID(String) - Method in interface org.jmock.builder.BuilderNamespace
 

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
 
MatchBuilder - interface org.jmock.builder.MatchBuilder.
 
MethodNameMatcher - class org.jmock.core.matcher.MethodNameMatcher.
 
MethodNameMatcher(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) - Constructor for class org.jmock.Mock
 
Mock(Class, String) - Constructor for class org.jmock.Mock
 
Mock(DynamicMock) - Constructor for class org.jmock.Mock
 
MockConcreteClassAcceptanceTest - class atest.jmock.cglib.MockConcreteClassAcceptanceTest.
 
MockConcreteClassAcceptanceTest() - Constructor for class atest.jmock.cglib.MockConcreteClassAcceptanceTest
 
MockConcreteClassAcceptanceTest.ClassWithComplexConstructor - class atest.jmock.cglib.MockConcreteClassAcceptanceTest.ClassWithComplexConstructor.
 
MockConcreteClassAcceptanceTest.ClassWithComplexConstructor() - Constructor for class atest.jmock.cglib.MockConcreteClassAcceptanceTest.ClassWithComplexConstructor
 
MockConcreteClassAcceptanceTest.ClassWithConstructorArguments - class atest.jmock.cglib.MockConcreteClassAcceptanceTest.ClassWithConstructorArguments.
 
MockConcreteClassAcceptanceTest.ClassWithConstructorArguments(int, String) - Constructor for class atest.jmock.cglib.MockConcreteClassAcceptanceTest.ClassWithConstructorArguments
 
MockObject - class org.jmock.expectation.MockObject.
 
MockObject() - Constructor for class org.jmock.expectation.MockObject
 
MockObjectSupportTestCase - class org.jmock.core.MockObjectSupportTestCase.
 
MockObjectSupportTestCase() - Constructor for class org.jmock.core.MockObjectSupportTestCase
 
MockObjectSupportTestCase(String) - Constructor for class org.jmock.core.MockObjectSupportTestCase
 
MockObjectTestCase - class org.jmock.MockObjectTestCase.
A base class for tests that use Mock Objects.
MockObjectTestCase() - Constructor for class org.jmock.MockObjectTestCase
 
MockObjectTestCase(String) - Constructor for class org.jmock.MockObjectTestCase
 
MockObjectTestCase - class org.jmock.cglib.MockObjectTestCase.
 
MockObjectTestCase(String) - Constructor for class org.jmock.cglib.MockObjectTestCase
 
MockObjectTestCase() - Constructor for class org.jmock.cglib.MockObjectTestCase
 
m() - Method in interface atest.jmock.InvokeAtMostOnceAcceptanceTest.MockedType
 
mapContaining(Constraint, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
mapContaining(Object, Object) - Method in class org.jmock.core.MockObjectSupportTestCase
 
mapWithKey(Object) - Method in class org.jmock.core.MockObjectSupportTestCase
 
mapWithKey(Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
mapWithValue(Object) - Method in class org.jmock.core.MockObjectSupportTestCase
 
mapWithValue(Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
match(InvocationMatcher) - Method in class org.jmock.builder.InvocationMockerBuilder
 
match(InvocationMatcher) - Method in interface org.jmock.builder.MatchBuilder
 
matches(Invocation) - Method in interface org.jmock.core.InvocationMatcher
 
matches(Invocation) - Method in class org.jmock.core.InvocationMocker
 
matches(Invocation) - Method in interface org.jmock.core.Invokable
 
matches(Invocation) - Method in class org.jmock.core.matcher.AnyArgumentsMatcher
 
matches(Invocation) - Method in class org.jmock.core.matcher.ArgumentsMatcher
 
matches(Invocation) - Method in class org.jmock.core.matcher.InvokeAtMostOnceMatcher
 
matches(Invocation) - Method in class org.jmock.core.matcher.InvokeCountMatcher
 
matches(Invocation) - Method in class org.jmock.core.matcher.InvokeOnceMatcher
 
matches(Invocation) - Method in class org.jmock.core.matcher.InvokedAfterMatcher
 
matches(Invocation) - Method in class org.jmock.core.matcher.InvokedRecorder
 
matches(Invocation) - Method in class org.jmock.core.matcher.MethodNameMatcher
 
matches(Invocation) - Method in class org.jmock.core.matcher.NoArgumentsMatcher
 
matches(Invocation) - Method in class org.jmock.core.matcher.TestFailureMatcher
 
method(Constraint) - Method in class org.jmock.builder.InvocationMockerBuilder
 
method(String) - Method in class org.jmock.builder.InvocationMockerBuilder
 
method(String) - Method in interface org.jmock.builder.NameMatchBuilder
 
method(Constraint) - Method in interface org.jmock.builder.NameMatchBuilder
 
methodUnderTest(int) - Method in class atest.jmock.CascadedFailuresAcceptanceTest.ObjectUnderTest
 
mock(Class) - Method in class org.jmock.MockObjectTestCase
Creates a mock object that mocks the given type.
mock(Class, String) - Method in class org.jmock.MockObjectTestCase
Creates a mock object that mocks the given type and is explicitly given a name.
mock(Class, String, Class[], Object[]) - Method in class org.jmock.cglib.MockObjectTestCase
 
mock(Class, Class[], Object[]) - Method in class org.jmock.cglib.MockObjectTestCase
 
mockInvocation(Invocation) - Method in class org.jmock.core.AbstractDynamicMock
 
mockNameFromClass(Class) - Static method in class org.jmock.core.AbstractDynamicMock
 
mockedMethod() - Method in class atest.jmock.cglib.MockConcreteClassAcceptanceTest.ClassWithComplexConstructor
 
mockedMethod() - Method in class atest.jmock.cglib.MockConcreteClassAcceptanceTest.ClassWithConstructorArguments
 
moreTeaVicar() - Method in interface atest.jmock.OrderedInvocationsAcceptanceTest.ExampleInterface
 
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

NOT_NULL - Static variable in class org.jmock.core.MockObjectSupportTestCase
 
NO_EXPECTATIONS_MESSAGE - Static variable in class org.jmock.core.AbstractInvocationDispatcher
 
NULL - Static variable in class org.jmock.core.MockObjectSupportTestCase
 
NULL - Static variable in class org.jmock.expectation.Null
A default Null object.
NameMatchBuilder - interface org.jmock.builder.NameMatchBuilder.
 
NoArgumentsMatcher - class org.jmock.core.matcher.NoArgumentsMatcher.
 
NoArgumentsMatcher() - Constructor for class org.jmock.core.matcher.NoArgumentsMatcher
 
NotImplementedException - exception org.jmock.util.NotImplementedException.
 
NotImplementedException() - Constructor for class org.jmock.util.NotImplementedException
NotImplementedException constructor comment.
NotImplementedException(String) - Constructor for class org.jmock.util.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.
never() - Method in class org.jmock.MockObjectTestCase
 
never(String) - 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
 
newCoreMock(Class, String, Class[], Object[]) - Method in class org.jmock.cglib.MockObjectTestCase
 
newDummy(Class) - Method in class org.jmock.MockObjectTestCase
 
newDummy(Class, String) - Method in class org.jmock.MockObjectTestCase
 
newDummy(String) - Method in class org.jmock.MockObjectTestCase
 
newDummy(Class) - Method in class org.jmock.core.MockObjectSupportTestCase
Deprecated. Use MockObjectTestCase.newDummy instead
newDummy(Class, String) - Method in class org.jmock.core.MockObjectSupportTestCase
Deprecated. Use MockObjectTestCase.newDummy instead
newDummy(String) - Method in class org.jmock.core.MockObjectSupportTestCase
Deprecated. Use MockObjectTestCase.newDummy instead
newDummy(Class) - Static method in class org.jmock.util.Dummy
Deprecated.  
newDummy(Class, String) - Static method in class org.jmock.util.Dummy
Deprecated.  
newDummy(String) - Static method in class org.jmock.util.Dummy
Deprecated.  
nextReturnObject() - Method in class org.jmock.expectation.ReturnObjectList
Returns the next object from the list.
noArgsReturnsNothing() - Method in interface atest.jmock.Types.WithTwoMethods
 
not(Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
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.core.constraint.Or.
Calculates the logical disjunction of two constraints.
Or(Constraint, Constraint) - Constructor for class org.jmock.core.constraint.Or
 
OrderedInvocationsAcceptanceTest - class atest.jmock.OrderedInvocationsAcceptanceTest.
 
OrderedInvocationsAcceptanceTest() - Constructor for class atest.jmock.OrderedInvocationsAcceptanceTest
 
OrderedInvocationsAcceptanceTest.ExampleInterface - interface atest.jmock.OrderedInvocationsAcceptanceTest.ExampleInterface.
 
OverriddenToStringAcceptanceTest - class atest.jmock.cglib.OverriddenToStringAcceptanceTest.
 
OverriddenToStringAcceptanceTest() - Constructor for class atest.jmock.cglib.OverriddenToStringAcceptanceTest
 
OverriddenToStringAcceptanceTest.ClassThatOverridesToString - class atest.jmock.cglib.OverriddenToStringAcceptanceTest.ClassThatOverridesToString.
 
OverriddenToStringAcceptanceTest.ClassThatOverridesToString() - Constructor for class atest.jmock.cglib.OverriddenToStringAcceptanceTest.ClassThatOverridesToString
 
onConsecutiveCalls(Stub, Stub) - Method in class org.jmock.MockObjectTestCase
 
onConsecutiveCalls(Stub, Stub, Stub) - Method in class org.jmock.MockObjectTestCase
 
onConsecutiveCalls(Stub, Stub, Stub, Stub) - Method in class org.jmock.MockObjectTestCase
 
onConsecutiveCalls(Stub[]) - Method in class org.jmock.MockObjectTestCase
 
once() - Method in class org.jmock.MockObjectTestCase
 
or(Constraint, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
org.jmock - package org.jmock
 
org.jmock.builder - package org.jmock.builder
 
org.jmock.cglib - package org.jmock.cglib
 
org.jmock.core - package org.jmock.core
 
org.jmock.core.constraint - package org.jmock.core.constraint
A collection of commonly useful constraints
org.jmock.core.matcher - package org.jmock.core.matcher
 
org.jmock.core.stub - package org.jmock.core.stub
 
org.jmock.expectation - package org.jmock.expectation
 
org.jmock.util - package org.jmock.util
 

P

PropertyUtil - class org.jmock.util.PropertyUtil.
Utility class for accessing properties on JavaBean objects.
PropertyUtil() - Constructor for class org.jmock.util.PropertyUtil
 
parameterValues - Variable in class org.jmock.core.Invocation
 
pop() - Method in class org.jmock.expectation.ReturnValues
 
proxy() - Method in class org.jmock.Mock
 
proxy() - Method in class org.jmock.cglib.CGLIBCoreMock
 
proxy() - Method in class org.jmock.core.AbstractDynamicMock
 
proxy() - Method in class org.jmock.core.CoreMock
 
proxy() - Method in interface org.jmock.core.DynamicMock
 
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

ReturnIteratorStub - class org.jmock.core.stub.ReturnIteratorStub.
 
ReturnIteratorStub(Collection) - Constructor for class org.jmock.core.stub.ReturnIteratorStub
 
ReturnIteratorStub(Object[]) - Constructor for class org.jmock.core.stub.ReturnIteratorStub
 
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
 
ReturnTypeAcceptanceTest - class atest.jmock.ReturnTypeAcceptanceTest.
 
ReturnTypeAcceptanceTest() - Constructor for class atest.jmock.ReturnTypeAcceptanceTest
 
ReturnTypeAcceptanceTest.ReturnTypes - interface atest.jmock.ReturnTypeAcceptanceTest.ReturnTypes.
 
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(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
 
registerMethodName(String, MatchBuilder) - Method in class org.jmock.Mock
 
registerMethodName(String, MatchBuilder) - Method in interface org.jmock.builder.BuilderNamespace
 
registerToVerify(Verifiable) - Method in class org.jmock.core.VerifyingTestCase
 
registerUniqueID(String, MatchBuilder) - Method in class org.jmock.Mock
 
registerUniqueID(String, MatchBuilder) - Method in interface org.jmock.builder.BuilderNamespace
 
relationship() - Method in class org.jmock.core.constraint.StringContains
 
relationship() - Method in class org.jmock.core.constraint.StringEndsWith
 
relationship() - Method in class org.jmock.core.constraint.StringStartsWith
 
relationship() - Method in class org.jmock.core.constraint.SubstringConstraint
 
reset() - Method in class org.jmock.Mock
 
reset() - Method in class org.jmock.core.AbstractDynamicMock
 
reset() - Method in interface org.jmock.core.DynamicMock
 
resultOfMockedMethodCalledInConstructor - Variable in class atest.jmock.cglib.MockConcreteClassAcceptanceTest.ClassWithComplexConstructor
 
returnBoolean() - Method in interface atest.jmock.ReturnTypeAcceptanceTest.ReturnTypes
 
returnByte() - Method in interface atest.jmock.ReturnTypeAcceptanceTest.ReturnTypes
 
returnChar() - Method in interface atest.jmock.ReturnTypeAcceptanceTest.ReturnTypes
 
returnDouble() - Method in interface atest.jmock.ReturnTypeAcceptanceTest.ReturnTypes
 
returnFloat() - Method in interface atest.jmock.ReturnTypeAcceptanceTest.ReturnTypes
 
returnInt() - Method in interface atest.jmock.ReturnTypeAcceptanceTest.ReturnTypes
 
returnIterator(Collection) - Method in class org.jmock.MockObjectTestCase
 
returnIterator(Object[]) - Method in class org.jmock.MockObjectTestCase
 
returnLong() - Method in interface atest.jmock.ReturnTypeAcceptanceTest.ReturnTypes
 
returnShort() - Method in interface atest.jmock.ReturnTypeAcceptanceTest.ReturnTypes
 
returnString() - Method in interface atest.jmock.ReturnTypeAcceptanceTest.ReturnTypes
 
returnValue(Object) - Method in class org.jmock.MockObjectTestCase
 
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(short) - Method in class org.jmock.MockObjectTestCase
 
returnValue(int) - Method in class org.jmock.MockObjectTestCase
 
returnValue(long) - Method in class org.jmock.MockObjectTestCase
 
returnValue(float) - Method in class org.jmock.MockObjectTestCase
 
returnValue(double) - Method in class org.jmock.MockObjectTestCase
 
runBare() - Method in class org.jmock.core.VerifyingTestCase
 

S

SelfDescribing - interface org.jmock.core.SelfDescribing.
An object that can describe itself.
SignedJarAcceptanceTest - class atest.jmock.cglib.SignedJarAcceptanceTest.
 
SignedJarAcceptanceTest() - Constructor for class atest.jmock.cglib.SignedJarAcceptanceTest
 
StatelessInvocationMatcher - class org.jmock.core.matcher.StatelessInvocationMatcher.
 
StatelessInvocationMatcher() - Constructor for class org.jmock.core.matcher.StatelessInvocationMatcher
 
StringContains - class org.jmock.core.constraint.StringContains.
Tests if the argument is a string that contains a substring.
StringContains(String) - Constructor for class org.jmock.core.constraint.StringContains
 
StringEndsWith - class org.jmock.core.constraint.StringEndsWith.
Tests if the argument is a string that contains a substring.
StringEndsWith(String) - Constructor for class org.jmock.core.constraint.StringEndsWith
 
StringStartsWith - class org.jmock.core.constraint.StringStartsWith.
Tests if the argument is a string that contains a substring.
StringStartsWith(String) - Constructor for class org.jmock.core.constraint.StringStartsWith
 
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.
 
StubMatchersCollection - interface org.jmock.core.StubMatchersCollection.
 
StubSequence - class org.jmock.core.stub.StubSequence.
 
StubSequence(Stub[]) - Constructor for class org.jmock.core.stub.StubSequence
 
SubstringConstraint - class org.jmock.core.constraint.SubstringConstraint.
 
SubstringConstraint(String) - Constructor for class org.jmock.core.constraint.SubstringConstraint
 
same(Object) - Method in class org.jmock.core.MockObjectSupportTestCase
 
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
 
setDefaultStub(Stub) - Method in class org.jmock.Mock
 
setDefaultStub(Stub) - Method in class org.jmock.core.AbstractDynamicMock
 
setDefaultStub(Stub) - Method in class org.jmock.core.AbstractInvocationDispatcher
 
setDefaultStub(Stub) - Method in interface org.jmock.core.DynamicMock
 
setDefaultStub(Stub) - Method in interface org.jmock.core.InvocationDispatcher
 
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
 
setName(String) - Method in class org.jmock.core.InvocationMocker
 
setName(String) - Method in interface org.jmock.core.StubMatchersCollection
 
setStub(Stub) - Method in class org.jmock.core.InvocationMocker
 
setStub(Stub) - Method in interface org.jmock.core.StubMatchersCollection
 
setUp() - Method in class atest.jmock.CascadedFailuresAcceptanceTest
 
setUp() - Method in class atest.jmock.InvokedExactCountAcceptanceTest
 
setUp() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
setUp() - Method in class atest.jmock.ReturnTypeAcceptanceTest
 
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
 
startsWith(String) - Method in class org.jmock.core.MockObjectSupportTestCase
 
stringContains(String) - Method in class org.jmock.core.MockObjectSupportTestCase
 
stubs() - Method in class org.jmock.Mock
 
substring - Variable in class org.jmock.core.constraint.SubstringConstraint
 

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
 
ThrowStub - class org.jmock.core.stub.ThrowStub.
 
ThrowStub(Throwable) - Constructor for class org.jmock.core.stub.ThrowStub
 
Types - interface atest.jmock.Types.
Used as namespace for example types used in integration tests
Types.WithTwoMethods - interface atest.jmock.Types.WithTwoMethods.
 
testAllowsSameInvocationMultipleTimes() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
testBuilderExample() - Method in class atest.jmock.DynamicMockExample
 
testCanCreateADummyOfAClassWithCGLIB() - Method in class atest.jmock.cglib.DummyOfClassAcceptanceTest
 
testCanEasilySpecifySequenceOfStubsForSameMethod() - Method in class atest.jmock.ConsecutiveCallsAcceptanceTest
 
testCanGenerateErrorMessageFromMockedClassThatOverridesToString() - Method in class atest.jmock.cglib.OverriddenToStringAcceptanceTest
 
testCanGiveExplicitNameToMockOfConcreteClassesWithConstructorArguments() - Method in class atest.jmock.cglib.MockConcreteClassAcceptanceTest
 
testCanMatchArrayContainingEqualElement() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMatchArrayContainingMatchingElement() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMatchCollectionContainingMatchingElement() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMatchElementOfArray() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMatchElementOfCollection() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMatchListContainingEqualElement() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMatchMapContainingEntryMatchingConstraints() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMatchMapContainingEntryValues() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMatchMapContainingEqualKey() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMatchMapContainingEqualValue() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMatchMapContainingMatchingKey() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMatchMapContainingMatchingValue() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMatchSetContainingEqualElement() - Method in class atest.jmock.CollectionsAcceptanceTest
 
testCanMockClassThatOverridesToString() - Method in class atest.jmock.cglib.OverriddenToStringAcceptanceTest
 
testCanMockClassesWithComplexConstructors() - Method in class atest.jmock.cglib.MockConcreteClassAcceptanceTest
 
testCanMockConcreteClasses() - Method in class atest.jmock.cglib.MockConcreteClassAcceptanceTest
 
testCanMockConcreteClassesWithConstructorArguments() - Method in class atest.jmock.cglib.MockConcreteClassAcceptanceTest
 
testCanMockTypesInSignedJars() - Method in class atest.jmock.cglib.SignedJarAcceptanceTest
 
testCanReturnBooleanValues() - Method in class atest.jmock.ReturnTypeAcceptanceTest
 
testCanReturnByteValues() - Method in class atest.jmock.ReturnTypeAcceptanceTest
 
testCanReturnCharValues() - Method in class atest.jmock.ReturnTypeAcceptanceTest
 
testCanReturnDoubleValues() - Method in class atest.jmock.ReturnTypeAcceptanceTest
 
testCanReturnFloatValues() - Method in class atest.jmock.ReturnTypeAcceptanceTest
 
testCanReturnIntValues() - Method in class atest.jmock.ReturnTypeAcceptanceTest
 
testCanReturnLongValues() - Method in class atest.jmock.ReturnTypeAcceptanceTest
 
testCanReturnNullObjectReferences() - Method in class atest.jmock.ReturnTypeAcceptanceTest
 
testCanReturnObjectReferences() - Method in class atest.jmock.ReturnTypeAcceptanceTest
 
testCanReturnShortValues() - Method in class atest.jmock.ReturnTypeAcceptanceTest
 
testCanSpecifyMultipleStubsForOneInvocation() - Method in class atest.jmock.DoAllAcceptanceTest
 
testCanSpecifyOrderOverDifferentMocks() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
testCanSpecifySequenceUsingArrayOfStubs() - Method in class atest.jmock.ConsecutiveCallsAcceptanceTest
 
testCanUseMethodNameAsDefaultInvocationID() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
testCanUseTheNullKeywordInPlaceOfNULLConstraint() - Method in class atest.jmock.IsNullAcceptanceTest
 
testDetectsDuplicateIDs() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
testDetectsMissingIDs() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
testDetectsUnexpectedOrderOverDifferentMocks() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
testExpectNeverCanExplicitlyDescribeError() - Method in class atest.jmock.ExpectNeverAcceptanceTest
 
testExpectNeverOverridesStubAndFailsIfCalled() - Method in class atest.jmock.ExpectNeverAcceptanceTest
 
testExpectNeverVerifiesIfNotCalled() - Method in class atest.jmock.ExpectNeverAcceptanceTest
 
testFailsIfMethodExpectedAtMostOnceIsCalledMoreThanOnce() - Method in class atest.jmock.InvokeAtMostOnceAcceptanceTest
 
testFailsWhenCalledFewerThanTheExactNumberOfTimes() - Method in class atest.jmock.InvokedExactCountAcceptanceTest
 
testFailsWhenCalledMoreThanTheExactNumberOfTimes() - Method in class atest.jmock.InvokedExactCountAcceptanceTest
 
testInvalidMethodNameCausesTestError() - Method in class atest.jmock.BadMethodNameAcceptanceTest
 
testMethodNameNotInMockedTypeCausesTestFailure() - Method in class atest.jmock.BadMethodNameAcceptanceTest
 
testMockReportsFirstFailure() - Method in class atest.jmock.CascadedFailuresAcceptanceTest
 
testMockingTypeFromOtherClassLoader() - Method in class atest.jmock.ClassLoaderAcceptanceTest
 
testOrderedCallsCanOccurInOrder() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
testOrderedCallsMustNotOccurOutOfOrder() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
testOrderingConstraintsDoNotImplyExpectedCall() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
testOrderingDoesNotAffectUnrelatedCalls() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
testPassesIfMethodExpectedAtMostOnceIsCalledOnceOnly() - Method in class atest.jmock.InvokeAtMostOnceAcceptanceTest
 
testPassesIfMethodExpectedAtMostOnceIsNotCalled() - Method in class atest.jmock.InvokeAtMostOnceAcceptanceTest
 
testPassesWhenCalledTheExactNumberOfTimes() - Method in class atest.jmock.InvokedExactCountAcceptanceTest
 
testReportsFailureWhenStubReturnValueIsNotSet() - Method in class atest.jmock.ErrorMessagesAcceptanceTest
 
testReportsFailureWhenStubReturnsWrongTypeOfResult() - Method in class atest.jmock.ErrorMessagesAcceptanceTest
 
testReportsUsefulErrorMessageWhenTryingToMockNonStaticInnerClass() - Method in class atest.jmock.cglib.ErrorDetectionAcceptanceTest
 
testResetClearsFirstFailure() - Method in class atest.jmock.CascadedFailuresAcceptanceTest
 
testResetClearsIDs() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
testShowsExpectationThatDoesNotVerify() - Method in class atest.jmock.ErrorMessagesAcceptanceTest
 
testShowsNoExpectationsStringWhenNoExpectationsSet() - Method in class atest.jmock.ErrorMessagesAcceptanceTest
 
testSuccessfulVerifyClearsFirstFailure() - Method in class atest.jmock.CascadedFailuresAcceptanceTest
 
testUnexpectedCallAlsoShowsExpectedCalls() - Method in class atest.jmock.ErrorMessagesAcceptanceTest
 
testUsingSameMethodNameAsParameterToAfterIsAnError() - Method in class atest.jmock.OrderedInvocationsAcceptanceTest
 
throwException(Throwable) - Method in class org.jmock.MockObjectTestCase
 
toReadableString(Object) - Static method in class org.jmock.core.Formatting
 
toString() - Method in class atest.jmock.cglib.OverriddenToStringAcceptanceTest.ClassThatOverridesToString
 
toString() - Method in class org.jmock.Mock
 
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(Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
 
toString() - Method in class org.jmock.expectation.MapEntry
 
toString() - Method in class org.jmock.expectation.Null
Returns a string representation of this Null object.
twoArgsReturnsInt(String, Object) - Method in interface atest.jmock.Types.WithTwoMethods
 

U

unregisterToVerify(Verifiable) - Method in class org.jmock.core.VerifyingTestCase
 

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.
Verifier() - Constructor for class org.jmock.util.Verifier
 
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
 
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(String, boolean) - Constructor for class org.jmock.expectation.VoidReturnValues
 
VoidReturnValues(boolean) - Constructor for class org.jmock.expectation.VoidReturnValues
 
VoidStub - class org.jmock.core.stub.VoidStub.
 
VoidStub() - Constructor for class org.jmock.core.stub.VoidStub
 
verify() - Method in class org.jmock.Mock
 
verify() - Method in class org.jmock.core.AbstractDynamicMock
 
verify() - Method in class org.jmock.core.AbstractInvocationDispatcher
 
verify() - Method in class org.jmock.core.InvocationMocker
 
verify() - Method in interface org.jmock.core.Verifiable
Throw an AssertionFailedException if any expectations have not been met.
verify() - Method in class org.jmock.core.VerifyingTestCase
 
verify() - Method in class org.jmock.core.matcher.InvokeAtLeastOnceMatcher
 
verify() - Method in class org.jmock.core.matcher.InvokeCountMatcher
 
verify() - Method in class org.jmock.core.matcher.InvokeOnceMatcher
 
verify() - Method in class org.jmock.core.matcher.InvokedRecorder
 
verify() - Method in class org.jmock.core.matcher.StatelessInvocationMatcher
 
verify() - Method in class org.jmock.core.matcher.TestFailureMatcher
 
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
 
verifyHasBeenInvoked() - Method in class org.jmock.core.matcher.InvokedRecorder
 
verifyHasBeenInvokedExactly(int) - Method in class org.jmock.core.matcher.InvokedRecorder
 
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.

W

will(Stub) - Method in class org.jmock.builder.InvocationMockerBuilder
 
will(Stub) - Method in interface org.jmock.builder.StubBuilder
 
with(Constraint[]) - Method in interface org.jmock.builder.ArgumentsMatchBuilder
 
with(Constraint) - Method in interface org.jmock.builder.ArgumentsMatchBuilder
 
with(Constraint, Constraint) - Method in interface org.jmock.builder.ArgumentsMatchBuilder
 
with(Constraint, Constraint, Constraint) - Method in interface org.jmock.builder.ArgumentsMatchBuilder
 
with(Constraint, Constraint, Constraint, Constraint) - Method in interface org.jmock.builder.ArgumentsMatchBuilder
 
with(Constraint) - Method in class org.jmock.builder.InvocationMockerBuilder
 
with(Constraint, Constraint) - Method in class org.jmock.builder.InvocationMockerBuilder
 
with(Constraint, Constraint, Constraint) - Method in class org.jmock.builder.InvocationMockerBuilder
 
with(Constraint, Constraint, Constraint, Constraint) - Method in class org.jmock.builder.InvocationMockerBuilder
 
with(Constraint[]) - Method in class org.jmock.builder.InvocationMockerBuilder
 
withAnyArguments() - Method in interface org.jmock.builder.ArgumentsMatchBuilder
 
withAnyArguments() - Method in class org.jmock.builder.InvocationMockerBuilder
 
withArray(Object[]) - Method in interface atest.jmock.CollectionsAcceptanceTest.T
 
withList(List) - Method in interface atest.jmock.CollectionsAcceptanceTest.T
 
withMap(Map) - Method in interface atest.jmock.CollectionsAcceptanceTest.T
 
withNoArguments() - Method in interface org.jmock.builder.ArgumentsMatchBuilder
 
withNoArguments() - Method in class org.jmock.builder.InvocationMockerBuilder
 
withObject(Object) - Method in interface atest.jmock.CollectionsAcceptanceTest.T
 
withSet(Set) - Method in interface atest.jmock.CollectionsAcceptanceTest.T
 
writeTo(StringBuffer) - Method in class org.jmock.core.DynamicMockError
 

X

xtestDynaMockExample() - Method in class atest.jmock.DynamicMockExample
 

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