Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractDynamicMock - Class in org.jmock.core
- AbstractDynamicMock(Class, String) - Constructor for class org.jmock.core.AbstractDynamicMock
- AbstractDynamicMock(Class, String, InvocationDispatcher) - Constructor for class org.jmock.core.AbstractDynamicMock
- AbstractExpectation - Class in org.jmock.expectation
- AbstractExpectation(String) - Constructor for class org.jmock.expectation.AbstractExpectation
- AbstractExpectationCollection - Class in org.jmock.expectation
- AbstractExpectationCollection(String) - Constructor for class org.jmock.expectation.AbstractExpectationCollection
- AbstractInvocationDispatcher - Class in org.jmock.core
- AbstractInvocationDispatcher() - Constructor for class org.jmock.core.AbstractInvocationDispatcher
- add(Object) - Method in class org.jmock.expectation.ReturnValues
- add(Invokable) - Method in class org.jmock.core.AbstractInvocationDispatcher
- add(Invokable) - Method in interface 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 interface org.jmock.expectation.ExpectationCollection
- addActual(Object) - Method in class org.jmock.expectation.AbstractExpectationCollection
- addActual(Object) - Method in interface org.jmock.expectation.ExpectationCollection
- addActualMany(Object[]) - Method in class org.jmock.expectation.AbstractExpectationCollection
- addActualMany(Object[]) - Method in interface org.jmock.expectation.ExpectationCollection
- addActualMany(Enumeration) - Method in class org.jmock.expectation.AbstractExpectationCollection
- addActualMany(Enumeration) - Method in interface org.jmock.expectation.ExpectationCollection
- addActualMany(Iterator) - Method in class org.jmock.expectation.AbstractExpectationCollection
- 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(long) - Method in class org.jmock.expectation.AbstractExpectationCollection
- addExpected(long) - Method in interface org.jmock.expectation.ExpectationCollection
- addExpected(Object) - Method in class org.jmock.expectation.AbstractExpectationCollection
- addExpected(Object) - 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(Object[]) - Method in interface org.jmock.expectation.ExpectationCollection
- addExpectedMany(Enumeration) - Method in class org.jmock.expectation.AbstractExpectationCollection
- addExpectedMany(Enumeration) - Method in interface org.jmock.expectation.ExpectationCollection
- addExpectedMany(Iterator) - Method in class org.jmock.expectation.AbstractExpectationCollection
- 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.core.AbstractDynamicMock
- addInvokable(Invokable) - Method in interface org.jmock.core.DynamicMock
- addInvokable(Invokable) - Method in class org.jmock.Mock
- addMatcher(InvocationMatcher) - Method in class org.jmock.core.InvocationMocker
- addMatcher(InvocationMatcher) - Method in interface org.jmock.core.StubMatchersCollection
- 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 interface org.jmock.builder.MatchBuilder
- after(BuilderNamespace, String) - Method in class org.jmock.builder.InvocationMockerBuilder
- after(BuilderNamespace, String) - Method in interface org.jmock.builder.MatchBuilder
- and(Constraint, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
- And - Class in org.jmock.core.constraint
-
Calculates the logical conjunction of two constraints.
- And(Constraint, Constraint) - Constructor for class org.jmock.core.constraint.And
- AnyArgumentsMatcher - Class in org.jmock.core.matcher
- AnyArgumentsMatcher() - Constructor for class org.jmock.core.matcher.AnyArgumentsMatcher
- ANYTHING - Static variable in class org.jmock.core.MockObjectSupportTestCase
- ArgumentsMatchBuilder - Interface in org.jmock.builder
- ArgumentsMatcher - Class in org.jmock.core.matcher
- ArgumentsMatcher(Constraint[]) - Constructor for class org.jmock.core.matcher.ArgumentsMatcher
- arrayContaining(boolean) - Method in class org.jmock.core.MockObjectSupportTestCase
- arrayContaining(byte) - Method in class org.jmock.core.MockObjectSupportTestCase
- arrayContaining(char) - Method in class org.jmock.core.MockObjectSupportTestCase
- arrayContaining(double) - Method in class org.jmock.core.MockObjectSupportTestCase
- arrayContaining(float) - 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(short) - Method in class org.jmock.core.MockObjectSupportTestCase
- arrayContaining(Object) - Method in class org.jmock.core.MockObjectSupportTestCase
- arrayContaining(Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
- 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[]) - Static method in class org.jmock.expectation.AssertMo
- 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
- 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 in org.jmock.expectation
- AssertMo() - Constructor for class org.jmock.expectation.AssertMo
- assertStartsWith(String, String, String) - Static method in class org.jmock.expectation.AssertMo
- assertThat(boolean, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
- assertThat(byte, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
- assertThat(char, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
- assertThat(double, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
- assertThat(float, 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(short, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
- assertThat(Object, 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
B
- BuilderNamespace - Interface in org.jmock.builder
C
- CGLIBCoreMock - Class in org.jmock.cglib
- 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, Class[], Object[], InvocationDispatcher) - Constructor for class org.jmock.cglib.CGLIBCoreMock
- CGLIBCoreMock(Class, String, InvocationDispatcher) - 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
- 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(Object) - Method in class org.jmock.core.MockObjectSupportTestCase
- collectionContaining(Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
- compatibleType(Class) - Method in class org.jmock.core.MockObjectSupportTestCase
- Constraint - Interface in org.jmock.core
-
A constraint over acceptable values.
- contains(String) - Method in class org.jmock.core.MockObjectSupportTestCase
- CoreMock - Class in org.jmock.core
- CoreMock(Class, String) - Constructor for class org.jmock.core.CoreMock
- CoreMock(Class, String, InvocationDispatcher) - Constructor for class org.jmock.core.CoreMock
- createDefaultResults() - Method in class org.jmock.core.stub.DefaultResultStub
- createErrorMessage(Invocation) - Method in class org.jmock.core.stub.DefaultResultStub
- CustomStub - Class in org.jmock.core.stub
-
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
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. - defaultMockNameForType(Class) - Method in class org.jmock.MockObjectTestCase
-
Calculates
- DefaultResultStub - Class in org.jmock.core.stub
- DefaultResultStub() - Constructor for class org.jmock.core.stub.DefaultResultStub
- defaultStub - Variable in class org.jmock.core.AbstractInvocationDispatcher
- describeTo(StringBuffer) - Method in class org.jmock.core.AbstractInvocationDispatcher
- 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.Invocation
- describeTo(StringBuffer) - Method in class org.jmock.core.InvocationMocker
- 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.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.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 interface org.jmock.core.SelfDescribing
-
Appends the description of this object to the buffer.
- 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
- describeTo(StringBuffer, List, Stub, String) - Method in class org.jmock.builder.InvocationMockerDescriber
- describeTo(StringBuffer, List, Stub, String) - Method in interface org.jmock.core.InvocationMocker.Describer
- dispatch(Invocation) - Method in class org.jmock.core.AbstractInvocationDispatcher
- dispatch(Invocation) - Method in interface org.jmock.core.InvocationDispatcher
- dispatcher - Variable in exception class org.jmock.core.DynamicMockError
- 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
- doAll(Stub[]) - Method in class org.jmock.MockObjectTestCase
- 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
- DoAllStub - Class in org.jmock.core.stub
- DoAllStub(Stub[]) - Constructor for class org.jmock.core.stub.DoAllStub
- Dummy - Class in org.jmock.util
-
Deprecated.Use MockObjectTestCase.newDummy instead
- dynamicMock - Variable in exception class org.jmock.core.DynamicMockError
- DynamicMock - Interface in org.jmock.core
- DynamicMockError - Exception Class in org.jmock.core
- DynamicMockError(DynamicMock, Invocation, InvocationDispatcher, String) - Constructor for exception class org.jmock.core.DynamicMockError
E
- endsWith(String) - 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(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(short) - Method in class org.jmock.core.MockObjectSupportTestCase
- eq(Object) - 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(Invocation) - Method in class org.jmock.core.Invocation
- eval(Object) - Method in class org.jmock.core.constraint.And
- eval(Object) - Method in interface org.jmock.core.Constraint
-
Evaluates the constraint for argument o.
- 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
- Example Usage - Search tag in class org.jmock.core.constraint.HasPropertyWithValue
- Section
- ExceptionalReturnValue - Class in org.jmock.expectation
-
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
- expect(InvocationMatcher) - Method in class org.jmock.builder.InvocationMockerBuilder
- Expectation - Interface in org.jmock.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 in org.jmock.expectation
-
An ExpectationCollection is an expectation that supports multiple values, such as lists and sets.
- ExpectationCounter - Class in org.jmock.expectation
- ExpectationCounter(String) - Constructor for class org.jmock.expectation.ExpectationCounter
- ExpectationDoubleValue - Class in org.jmock.expectation
- ExpectationDoubleValue(String) - Constructor for class org.jmock.expectation.ExpectationDoubleValue
- ExpectationList - Class in org.jmock.expectation
- ExpectationList(String) - Constructor for class org.jmock.expectation.ExpectationList
- ExpectationMap - Class in org.jmock.expectation
- ExpectationMap(String) - Constructor for class org.jmock.expectation.ExpectationMap
- ExpectationSegment - Class in org.jmock.expectation
- ExpectationSegment(String) - Constructor for class org.jmock.expectation.ExpectationSegment
- ExpectationSet - Class in org.jmock.expectation
- ExpectationSet(String) - Constructor for class org.jmock.expectation.ExpectationSet
- ExpectationValue - Class in org.jmock.expectation
- ExpectationValue(String) - Constructor for class org.jmock.expectation.ExpectationValue
- expects(InvocationMatcher) - Method in class org.jmock.Mock
F
- fail(String) - Method in class org.jmock.expectation.MockObject
- failNotEquals(String, Object, Object) - Static method in class org.jmock.expectation.AssertMo
- FIFOInvocationDispatcher - Class in org.jmock.core
- FIFOInvocationDispatcher() - Constructor for class org.jmock.core.FIFOInvocationDispatcher
- Formatting - Class in org.jmock.core
- Formatting() - Constructor for 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
- 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 exception class org.jmock.core.DynamicMockError
- getMockedType() - Method in class org.jmock.core.AbstractDynamicMock
- getMockedType() - Method in interface 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.
- 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() - Method in class org.jmock.expectation.ReturnValue
- getValue(short) - Method in class org.jmock.expectation.ReturnObjectMap
- getValue(Object) - Method in class org.jmock.expectation.ReturnObjectMap
H
- 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.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 interface org.jmock.expectation.Expectation
-
Return true if any expectations have been set on this object.
- hasExpectations() - Method in class org.jmock.expectation.ExpectationMap
- hashCode() - Method in class org.jmock.core.Invocation
- hashCode() - Method in class org.jmock.expectation.MapEntry
- hashCode() - Method in class org.jmock.expectation.Null
-
Returns this
Null
object's hashCode. - hasProperty(String) - Method in class org.jmock.core.MockObjectSupportTestCase
- hasProperty(String, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
- HasProperty - Class in org.jmock.core.constraint
-
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 in org.jmock.core.constraint
-
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 in org.jmock.core.constraint
- HasToString(Constraint) - Constructor for class org.jmock.core.constraint.HasToString
I
- id(String) - Method in interface org.jmock.builder.IdentityBuilder
- id(String) - Method in class org.jmock.builder.InvocationMockerBuilder
- IdentityBuilder - Interface in org.jmock.builder
- inc() - Method in class org.jmock.expectation.ExpectationCounter
- 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
- intercept(Object, Method, Object[], MethodProxy) - Method in class org.jmock.cglib.CGLIBCoreMock
- invocation - Variable in exception class org.jmock.core.DynamicMockError
- Invocation - Class in org.jmock.core
-
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 in org.jmock.core
- InvocationMatcher - Interface in org.jmock.core
- InvocationMocker - Class in org.jmock.core
- InvocationMocker() - Constructor for class org.jmock.core.InvocationMocker
- InvocationMocker(InvocationMocker.Describer) - Constructor for class org.jmock.core.InvocationMocker
- InvocationMocker.Describer - Interface in org.jmock.core
- InvocationMockerBuilder - Class in org.jmock.builder
- InvocationMockerBuilder(StubMatchersCollection, BuilderNamespace, Class) - Constructor for class org.jmock.builder.InvocationMockerBuilder
- InvocationMockerDescriber - Class in org.jmock.builder
- InvocationMockerDescriber() - Constructor for class org.jmock.builder.InvocationMockerDescriber
- Invokable - Interface in org.jmock.core
- invokables - Variable in class org.jmock.core.AbstractInvocationDispatcher
- 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 class org.jmock.core.stub.DefaultResultStub
- invoke(Invocation) - Method in class org.jmock.core.stub.DoAllStub
- invoke(Invocation) - Method in interface org.jmock.core.Stub
-
Processes the invocation.
- 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
- InvokeAtLeastOnceMatcher - Class in org.jmock.core.matcher
- InvokeAtLeastOnceMatcher() - Constructor for class org.jmock.core.matcher.InvokeAtLeastOnceMatcher
- InvokeAtMostOnceMatcher - Class in org.jmock.core.matcher
- InvokeAtMostOnceMatcher() - Constructor for class org.jmock.core.matcher.InvokeAtMostOnceMatcher
- InvokeCountMatcher - Class in org.jmock.core.matcher
- InvokeCountMatcher(int) - Constructor for class org.jmock.core.matcher.InvokeCountMatcher
- 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
- InvokedAfterMatcher - Class in org.jmock.core.matcher
- InvokedAfterMatcher(InvokedRecorder, String) - Constructor for class org.jmock.core.matcher.InvokedAfterMatcher
- invokedMethod - Variable in class org.jmock.core.Invocation
- invokedObject - Variable in class org.jmock.core.Invocation
- InvokedRecorder - Class in org.jmock.core.matcher
- InvokedRecorder() - Constructor for class org.jmock.core.matcher.InvokedRecorder
- InvokeOnceMatcher - Class in org.jmock.core.matcher
- InvokeOnceMatcher() - Constructor for class org.jmock.core.matcher.InvokeOnceMatcher
- isA(Class) - Method in class org.jmock.core.MockObjectSupportTestCase
- IsAnything - Class in org.jmock.core.constraint
-
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 in org.jmock.core.constraint
- IsArrayContaining(Constraint) - Constructor for class org.jmock.core.constraint.IsArrayContaining
- IsCloseTo - Class in org.jmock.core.constraint
-
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 in org.jmock.core.constraint
- IsCollectionContaining(Constraint) - Constructor for class org.jmock.core.constraint.IsCollectionContaining
- IsCompatibleType - Class in org.jmock.core.constraint
- IsCompatibleType(Class) - Constructor for class org.jmock.core.constraint.IsCompatibleType
- isEmpty() - Method in class org.jmock.expectation.ReturnValues
- IsEqual - Class in org.jmock.core.constraint
-
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 in org.jmock.core.constraint
-
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
EventObject
announced by source . - IsGreaterThan - Class in org.jmock.core.constraint
-
Is the value greater than another
Comparable
value? - IsGreaterThan(Comparable) - Constructor for class org.jmock.core.constraint.IsGreaterThan
- isIn(Object[]) - Method in class org.jmock.core.MockObjectSupportTestCase
- isIn(Collection) - Method in class org.jmock.core.MockObjectSupportTestCase
- IsIn - Class in org.jmock.core.constraint
- IsIn(Object[]) - Constructor for class org.jmock.core.constraint.IsIn
- IsIn(Collection) - Constructor for class org.jmock.core.constraint.IsIn
- IsInstanceOf - Class in org.jmock.core.constraint
-
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 in org.jmock.core.constraint
-
Is the value less than another
Comparable
value? - IsLessThan(Comparable) - Constructor for class org.jmock.core.constraint.IsLessThan
- IsMapContaining - Class in org.jmock.core.constraint
- IsMapContaining(Constraint, Constraint) - Constructor for class org.jmock.core.constraint.IsMapContaining
- IsNot - Class in org.jmock.core.constraint
-
Calculates the logical negation of a constraint.
- IsNot(Constraint) - Constructor for class org.jmock.core.constraint.IsNot
- IsNothing - Class in org.jmock.core.constraint
- IsNothing() - Constructor for class org.jmock.core.constraint.IsNothing
- IsNothing(String) - Constructor for class org.jmock.core.constraint.IsNothing
- IsNull - Class in org.jmock.core.constraint
-
Is the value null?
- IsNull() - Constructor for class org.jmock.core.constraint.IsNull
- IsSame - Class in org.jmock.core.constraint
-
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 interface org.jmock.builder.StubBuilder
J
- 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
- 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
L
- LIFOInvocationDispatcher - Class in org.jmock.core
- LIFOInvocationDispatcher() - Constructor for class org.jmock.core.LIFOInvocationDispatcher
- lookupID(String) - Method in interface org.jmock.builder.BuilderNamespace
- lookupID(String) - Method in class org.jmock.Mock
M
- mapContaining(Object, Object) - Method in class org.jmock.core.MockObjectSupportTestCase
- mapContaining(Constraint, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
- MapEntry - Class in org.jmock.expectation
-
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
- 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
- MatchBuilder - Interface in org.jmock.builder
- 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.InvokedAfterMatcher
- matches(Invocation) - Method in class org.jmock.core.matcher.InvokedRecorder
- matches(Invocation) - Method in class org.jmock.core.matcher.InvokeOnceMatcher
- 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(String) - Method in class org.jmock.builder.InvocationMockerBuilder
- method(String) - Method in interface org.jmock.builder.NameMatchBuilder
- method(Constraint) - Method in class org.jmock.builder.InvocationMockerBuilder
- method(Constraint) - Method in interface org.jmock.builder.NameMatchBuilder
- MethodNameMatcher - Class in org.jmock.core.matcher
- MethodNameMatcher(String) - Constructor for class org.jmock.core.matcher.MethodNameMatcher
- MethodNameMatcher(Constraint) - Constructor for class org.jmock.core.matcher.MethodNameMatcher
- mock(Class) - Method in class org.jmock.MockObjectTestCase
-
Creates a mock object that mocks the given type.
- mock(Class, Class[], Object[]) - Method in class org.jmock.cglib.MockObjectTestCase
- 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 in org.jmock
- 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
- mockInvocation(Invocation) - Method in class org.jmock.core.AbstractDynamicMock
- mockNameFromClass(Class) - Static method in class org.jmock.core.AbstractDynamicMock
- MockObject - Class in org.jmock.expectation
- MockObject() - Constructor for class org.jmock.expectation.MockObject
- MockObjectSupportTestCase - Class in org.jmock.core
- MockObjectSupportTestCase() - Constructor for class org.jmock.core.MockObjectSupportTestCase
- MockObjectSupportTestCase(String) - Constructor for class org.jmock.core.MockObjectSupportTestCase
- MockObjectTestCase - Class in org.jmock.cglib
- MockObjectTestCase - Class in org.jmock
-
A base class for tests that use Mock Objects.
- MockObjectTestCase() - Constructor for class org.jmock.cglib.MockObjectTestCase
- MockObjectTestCase() - Constructor for class org.jmock.MockObjectTestCase
- MockObjectTestCase(String) - Constructor for class org.jmock.cglib.MockObjectTestCase
- MockObjectTestCase(String) - Constructor for class org.jmock.MockObjectTestCase
- 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
- NameMatchBuilder - Interface in org.jmock.builder
- never() - Method in class org.jmock.MockObjectTestCase
- never(String) - Method in class org.jmock.MockObjectTestCase
- newCoreMock(Class, String) - Method in class org.jmock.cglib.MockObjectTestCase
- newCoreMock(Class, String) - Method in class org.jmock.MockObjectTestCase
- newCoreMock(Class, String, Class[], Object[]) - Method in class org.jmock.cglib.MockObjectTestCase
- newDummy(Class) - Method in class org.jmock.core.MockObjectSupportTestCase
-
Deprecated.Use MockObjectTestCase.newDummy instead
- newDummy(Class) - Method in class org.jmock.MockObjectTestCase
- newDummy(Class) - Static method in class org.jmock.util.Dummy
-
Deprecated.
- newDummy(Class, String) - Method in class org.jmock.core.MockObjectSupportTestCase
-
Deprecated.Use MockObjectTestCase.newDummy instead
- newDummy(Class, String) - Method in class org.jmock.MockObjectTestCase
- newDummy(Class, String) - Static method in class org.jmock.util.Dummy
-
Deprecated.
- newDummy(String) - Method in class org.jmock.core.MockObjectSupportTestCase
-
Deprecated.Use MockObjectTestCase.newDummy instead
- newDummy(String) - Method in class org.jmock.MockObjectTestCase
- 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.
- NO_EXPECTATIONS_MESSAGE - Static variable in class org.jmock.core.AbstractInvocationDispatcher
- NoArgumentsMatcher - Class in org.jmock.core.matcher
- NoArgumentsMatcher() - Constructor for class org.jmock.core.matcher.NoArgumentsMatcher
- not(Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
- NOT_NULL - Static variable 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 - Exception Class in org.jmock.util
- NotImplementedException() - Constructor for exception class org.jmock.util.NotImplementedException
-
NotImplementedException constructor comment.
- NotImplementedException(String) - Constructor for exception class org.jmock.util.NotImplementedException
-
NotImplementedException constructor comment.
- notYetImplemented() - Method in class org.jmock.expectation.MockObject
-
Deprecated.
- notYetImplemented(String) - Static method in class org.jmock.expectation.MockObject
-
Deprecated.
- Null - Class in org.jmock.expectation
-
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. - NULL - Static variable in class org.jmock.core.MockObjectSupportTestCase
- NULL - Static variable in class org.jmock.expectation.Null
-
A default
Null
object.
O
- once() - Method in class org.jmock.MockObjectTestCase
- onConsecutiveCalls(Stub[]) - Method in class org.jmock.MockObjectTestCase
- 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
- or(Constraint, Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
- Or - Class in org.jmock.core.constraint
-
Calculates the logical disjunction of two constraints.
- Or(Constraint, Constraint) - Constructor for class org.jmock.core.constraint.Or
- 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
- parameterValues - Variable in class org.jmock.core.Invocation
- pop() - Method in class org.jmock.expectation.ReturnValues
- PropertyUtil - Class in org.jmock.util
-
Utility class for accessing properties on JavaBean objects.
- PropertyUtil() - Constructor for class org.jmock.util.PropertyUtil
- 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
- 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(short, Object) - Method in class org.jmock.expectation.ReturnObjectMap
- 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
R
- registerMethodName(String, MatchBuilder) - Method in interface org.jmock.builder.BuilderNamespace
- registerMethodName(String, MatchBuilder) - Method in class org.jmock.Mock
- registerToVerify(Verifiable) - Method in class org.jmock.core.VerifyingTestCase
- registerUniqueID(String, MatchBuilder) - Method in interface org.jmock.builder.BuilderNamespace
- registerUniqueID(String, MatchBuilder) - Method in class org.jmock.Mock
- 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.core.AbstractDynamicMock
- reset() - Method in interface org.jmock.core.DynamicMock
- reset() - Method in class org.jmock.Mock
- returnIterator(Object[]) - Method in class org.jmock.MockObjectTestCase
- returnIterator(Collection) - Method in class org.jmock.MockObjectTestCase
- ReturnIteratorStub - Class in org.jmock.core.stub
- ReturnIteratorStub(Object[]) - Constructor for class org.jmock.core.stub.ReturnIteratorStub
- ReturnIteratorStub(Collection) - Constructor for class org.jmock.core.stub.ReturnIteratorStub
- ReturnObjectBag - Class in org.jmock.expectation
-
The ReturnObjectBag is a map containing instances of ReturnObjectList.
- ReturnObjectBag(String) - Constructor for class org.jmock.expectation.ReturnObjectBag
- ReturnObjectList - Class in org.jmock.expectation
-
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 in org.jmock.expectation
- ReturnObjectMap(String) - Constructor for class org.jmock.expectation.ReturnObjectMap
- ReturnStub - Class in org.jmock.core.stub
- ReturnStub(Object) - Constructor for class org.jmock.core.stub.ReturnStub
- 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(short) - Method in class org.jmock.MockObjectTestCase
- returnValue(Object) - Method in class org.jmock.MockObjectTestCase
- ReturnValue - Class in org.jmock.expectation
-
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 in org.jmock.expectation
-
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 in org.jmock.core
-
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(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
- setDefaultStub(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
- 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
- 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
- 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
- startsWith(String) - Method in class org.jmock.core.MockObjectSupportTestCase
- StatelessInvocationMatcher - Class in org.jmock.core.matcher
- StatelessInvocationMatcher() - Constructor for class org.jmock.core.matcher.StatelessInvocationMatcher
- stringContains(String) - Method in class org.jmock.core.MockObjectSupportTestCase
- StringContains - Class in org.jmock.core.constraint
-
Tests if the argument is a string that contains a substring.
- StringContains(String) - Constructor for class org.jmock.core.constraint.StringContains
- StringEndsWith - Class in org.jmock.core.constraint
-
Tests if the argument is a string that contains a substring.
- StringEndsWith(String) - Constructor for class org.jmock.core.constraint.StringEndsWith
- StringStartsWith - Class in org.jmock.core.constraint
-
Tests if the argument is a string that contains a substring.
- StringStartsWith(String) - Constructor for class org.jmock.core.constraint.StringStartsWith
- Stub - Interface in org.jmock.core
-
An object that stubs the behaviour of a invokedMethod invocation on behalf of an
Invokable
object. - StubBuilder - Interface in org.jmock.builder
- StubMatchersCollection - Interface in org.jmock.core
- stubs() - Method in class org.jmock.Mock
- StubSequence - Class in org.jmock.core.stub
- StubSequence(Stub[]) - Constructor for class org.jmock.core.stub.StubSequence
- substring - Variable in class org.jmock.core.constraint.SubstringConstraint
- SubstringConstraint - Class in org.jmock.core.constraint
- SubstringConstraint(String) - Constructor for class org.jmock.core.constraint.SubstringConstraint
T
- TestFailureMatcher - Class in org.jmock.core.matcher
- TestFailureMatcher(String) - Constructor for class org.jmock.core.matcher.TestFailureMatcher
- TestFailureStub - Class in org.jmock.core.stub
- TestFailureStub(String) - Constructor for class org.jmock.core.stub.TestFailureStub
- throwException(Throwable) - Method in class org.jmock.MockObjectTestCase
- ThrowStub - Class in org.jmock.core.stub
- 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.expectation.Null
-
Returns a string representation of this
Null
object. - toString() - Method in class org.jmock.Mock
- toString(Constraint) - Method in class org.jmock.core.MockObjectSupportTestCase
U
- unregisterToVerify(Verifiable) - Method in class org.jmock.core.VerifyingTestCase
V
- Verifiable - Interface in org.jmock.core
-
A Verifiable is an object that can confirm at the end of a unit test that the correct behvaiour has occurred.
- Verifier - Class in org.jmock.util
-
Helper class to verify all
Verifiable
fields of an object. - Verifier() - Constructor for class org.jmock.util.Verifier
- 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 class org.jmock.core.matcher.InvokeAtLeastOnceMatcher
- verify() - Method in class org.jmock.core.matcher.InvokeCountMatcher
- 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.matcher.StatelessInvocationMatcher
- verify() - Method in class org.jmock.core.matcher.TestFailureMatcher
- 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.expectation.AbstractExpectation
- verify() - Method in class org.jmock.expectation.AbstractExpectationCollection
- verify() - Method in class org.jmock.expectation.ExpectationCounter
- verify() - Method in class org.jmock.expectation.ExpectationDoubleValue
- verify() - Method in class org.jmock.expectation.ExpectationMap
- verify() - Method in class org.jmock.expectation.ExpectationSegment
- verify() - Method in class org.jmock.expectation.ExpectationSet
- verify() - Method in class org.jmock.expectation.ExpectationValue
- verify() - Method in class org.jmock.expectation.MockObject
- verify() - Method in class org.jmock.expectation.ReturnObjectBag
-
Checks each the list for each key to verify that all no objects remain in the list for that key.
- verify() - Method in class org.jmock.expectation.ReturnObjectList
-
Verify that there are no objects left within the list.
- verify() - Method in class org.jmock.expectation.ReturnObjectMap
- verify() - Method in class org.jmock.Mock
- verifyHasBeenInvoked() - Method in class org.jmock.core.matcher.InvokedRecorder
- verifyHasBeenInvokedExactly(int) - Method in class org.jmock.core.matcher.InvokedRecorder
- VerifyingTestCase - Class in org.jmock.core
-
A
TestCase
that verifiesVerifiable
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 in org.jmock.expectation
-
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 in org.jmock.core.stub
- VoidStub() - Constructor for class org.jmock.core.stub.VoidStub
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 class org.jmock.builder.InvocationMockerBuilder
- with(Constraint[]) - Method in interface org.jmock.builder.ArgumentsMatchBuilder
- with(Constraint[]) - Method in class org.jmock.builder.InvocationMockerBuilder
- with(Constraint, Constraint) - Method in interface org.jmock.builder.ArgumentsMatchBuilder
- with(Constraint, Constraint) - Method in class org.jmock.builder.InvocationMockerBuilder
- with(Constraint, Constraint, Constraint) - Method in interface org.jmock.builder.ArgumentsMatchBuilder
- with(Constraint, Constraint, Constraint) - Method in class org.jmock.builder.InvocationMockerBuilder
- with(Constraint, Constraint, Constraint, Constraint) - Method in interface org.jmock.builder.ArgumentsMatchBuilder
- with(Constraint, Constraint, Constraint, Constraint) - Method in class org.jmock.builder.InvocationMockerBuilder
- withAnyArguments() - Method in interface org.jmock.builder.ArgumentsMatchBuilder
- withAnyArguments() - Method in class org.jmock.builder.InvocationMockerBuilder
- withNoArguments() - Method in interface org.jmock.builder.ArgumentsMatchBuilder
- withNoArguments() - Method in class org.jmock.builder.InvocationMockerBuilder
- writeTo(StringBuffer) - Method in exception class org.jmock.core.DynamicMockError
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form