java.lang.Object
org.easymock.internal.RecordState
- All Implemented Interfaces:
Serializable
,IMocksControlState
State in which a mock is recording its behavior.
- Author:
- OFFIS, Tammo Freese
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
andDelegateTo
(Object delegateTo) void
void
andStubAnswer
(IAnswer<?> answer) void
andStubDelegateTo
(Object delegateTo) void
andStubReturn
(Object value) void
andStubThrow
(Throwable throwable) void
void
andVoid()
void
void
asStub()
void
checkIsUsedInOneThread
(boolean shouldBeUsedInOneThread) void
checkOrder
(boolean value) static Object
emptyReturnValueFor
(Class<?> type) invoke
(Invocation invocation) void
makeThreadSafe
(boolean threadSafe) void
replay()
void
void
verify()
void
void
-
Constructor Details
-
RecordState
-
-
Method Details
-
assertRecordState
public void assertRecordState()- Specified by:
assertRecordState
in interfaceIMocksControlState
-
invoke
- Specified by:
invoke
in interfaceIMocksControlState
-
replay
public void replay()- Specified by:
replay
in interfaceIMocksControlState
-
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
-
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
-
asStub
public void asStub()- Specified by:
asStub
in interfaceIMocksControlState
-
andStubThrow
- Specified by:
andStubThrow
in interfaceIMocksControlState
-
andStubAnswer
- Specified by:
andStubAnswer
in interfaceIMocksControlState
-
andStubDelegateTo
- Specified by:
andStubDelegateTo
in interfaceIMocksControlState
-
times
- Specified by:
times
in interfaceIMocksControlState
-
emptyReturnValueFor
-
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
-