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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidandDelegateTo(Object delegateTo) voidvoidandStubAnswer(IAnswer<?> answer) voidandStubDelegateTo(Object delegateTo) voidandStubReturn(Object value) voidandStubThrow(Throwable throwable) voidvoidandVoid()voidvoidasStub()voidcheckIsUsedInOneThread(boolean shouldBeUsedInOneThread) voidcheckOrder(boolean value) static ObjectemptyReturnValueFor(Class<?> type) invoke(Invocation invocation) voidmakeThreadSafe(boolean threadSafe) voidreplay()voidvoidverify()voidvoid
-
Constructor Details
-
RecordState
-
-
Method Details
-
assertRecordState
public void assertRecordState()- Specified by:
assertRecordStatein interfaceIMocksControlState
-
invoke
- Specified by:
invokein interfaceIMocksControlState
-
replay
public void replay()- Specified by:
replayin interfaceIMocksControlState
-
verifyRecording
public void verifyRecording()- Specified by:
verifyRecordingin interfaceIMocksControlState
-
verifyUnexpectedCalls
public void verifyUnexpectedCalls()- Specified by:
verifyUnexpectedCallsin interfaceIMocksControlState
-
verify
public void verify()- Specified by:
verifyin 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
-
asStub
public void asStub()- Specified by:
asStubin interfaceIMocksControlState
-
andStubThrow
- Specified by:
andStubThrowin interfaceIMocksControlState
-
andStubAnswer
- Specified by:
andStubAnswerin interfaceIMocksControlState
-
andStubDelegateTo
- Specified by:
andStubDelegateToin interfaceIMocksControlState
-
times
- Specified by:
timesin interfaceIMocksControlState
-
emptyReturnValueFor
-
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
-