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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
andDelegateTo
(Object answer) void
void
andStubAnswer
(IAnswer<?> answer) void
andStubDelegateTo
(Object delegateTo) void
andStubReturn
(Object value) void
andStubThrow
(Throwable throwable) void
void
andVoid()
void
void
asStub()
void
void
checkIsUsedInOneThread
(boolean shouldBeUsedInOneThread) void
checkOrder
(boolean value) invoke
(Invocation invocation) void
makeThreadSafe
(boolean threadSafe) void
replay()
void
void
verify()
void
void
-
Constructor Details
-
ReplayState
-
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceIMocksControlState
- Throws:
Throwable
-
verifyRecording
public void verifyRecording()- Specified by:
verifyRecording
in interfaceIMocksControlState
-
verifyUnexpectedCalls
public void verifyUnexpectedCalls()- Specified by:
verifyUnexpectedCalls
in interfaceIMocksControlState
-
verify
public void verify()- Specified by:
verify
in interfaceIMocksControlState
-
replay
public void replay()- Specified by:
replay
in interfaceIMocksControlState
-
callback
-
checkOrder
public void checkOrder(boolean value) - Specified by:
checkOrder
in interfaceIMocksControlState
-
makeThreadSafe
public void makeThreadSafe(boolean threadSafe) - Specified by:
makeThreadSafe
in interfaceIMocksControlState
-
checkIsUsedInOneThread
public void checkIsUsedInOneThread(boolean shouldBeUsedInOneThread) - Specified by:
checkIsUsedInOneThread
in interfaceIMocksControlState
-
andReturn
- Specified by:
andReturn
in interfaceIMocksControlState
-
andThrow
- Specified by:
andThrow
in interfaceIMocksControlState
-
andAnswer
- Specified by:
andAnswer
in interfaceIMocksControlState
-
andDelegateTo
- Specified by:
andDelegateTo
in interfaceIMocksControlState
-
andVoid
public void andVoid()- Specified by:
andVoid
in interfaceIMocksControlState
-
andStubReturn
- Specified by:
andStubReturn
in interfaceIMocksControlState
-
andStubThrow
- Specified by:
andStubThrow
in interfaceIMocksControlState
-
andStubAnswer
- Specified by:
andStubAnswer
in interfaceIMocksControlState
-
andStubDelegateTo
- Specified by:
andStubDelegateTo
in interfaceIMocksControlState
-
asStub
public void asStub()- Specified by:
asStub
in interfaceIMocksControlState
-
times
- Specified by:
times
in interfaceIMocksControlState
-
assertRecordState
public void assertRecordState()- Specified by:
assertRecordState
in interfaceIMocksControlState
-