java.lang.Object
org.easymock.internal.ReplayState
- All Implemented Interfaces:
Serializable,IMocksControlState
A mock has two states, record and replay. This class handles the replay state where we return all recorded invocation
for a method call on a mock.
- Author:
- OFFIS, Tammo Freese
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidandDelegateTo(Object answer) voidvoidandStubAnswer(IAnswer<?> answer) voidandStubDelegateTo(Object delegateTo) voidandStubReturn(Object value) voidandStubThrow(Throwable throwable) voidvoidandVoid()voidvoidasStub()voidvoidcheckIsUsedInOneThread(boolean shouldBeUsedInOneThread) voidcheckOrder(boolean value) invoke(Invocation invocation) voidmakeThreadSafe(boolean threadSafe) voidreplay()voidvoidverify()voidvoid
-
Constructor Details
-
ReplayState
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceIMocksControlState- Throws:
Throwable
-
verifyRecording
public void verifyRecording()- Specified by:
verifyRecordingin interfaceIMocksControlState
-
verifyUnexpectedCalls
public void verifyUnexpectedCalls()- Specified by:
verifyUnexpectedCallsin interfaceIMocksControlState
-
verify
public void verify()- Specified by:
verifyin interfaceIMocksControlState
-
replay
public void replay()- Specified by:
replayin interfaceIMocksControlState
-
callback
-
checkOrder
public void checkOrder(boolean value) - Specified by:
checkOrderin interfaceIMocksControlState
-
makeThreadSafe
public void makeThreadSafe(boolean threadSafe) - Specified by:
makeThreadSafein interfaceIMocksControlState
-
checkIsUsedInOneThread
public void checkIsUsedInOneThread(boolean shouldBeUsedInOneThread) - Specified by:
checkIsUsedInOneThreadin interfaceIMocksControlState
-
andReturn
- Specified by:
andReturnin interfaceIMocksControlState
-
andThrow
- Specified by:
andThrowin interfaceIMocksControlState
-
andAnswer
- Specified by:
andAnswerin interfaceIMocksControlState
-
andDelegateTo
- Specified by:
andDelegateToin interfaceIMocksControlState
-
andVoid
public void andVoid()- Specified by:
andVoidin interfaceIMocksControlState
-
andStubReturn
- Specified by:
andStubReturnin interfaceIMocksControlState
-
andStubThrow
- Specified by:
andStubThrowin interfaceIMocksControlState
-
andStubAnswer
- Specified by:
andStubAnswerin interfaceIMocksControlState
-
andStubDelegateTo
- Specified by:
andStubDelegateToin interfaceIMocksControlState
-
asStub
public void asStub()- Specified by:
asStubin interfaceIMocksControlState
-
times
- Specified by:
timesin interfaceIMocksControlState
-
assertRecordState
public void assertRecordState()- Specified by:
assertRecordStatein interfaceIMocksControlState
-