- All Known Implementing Classes:
- RecordState,- ReplayState
public interface IMocksControlState
Current state of a mocks control. In practice there are two implementations: record and replay.
- Author:
- OFFIS, Tammo Freese
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidandDelegateTo(Object answer) voidvoidandStubAnswer(IAnswer<?> answer) voidandStubDelegateTo(Object delegateTo) voidandStubReturn(Object value) voidandStubThrow(Throwable throwable) voidvoidandVoid()voidvoidasStub()voidcheckIsUsedInOneThread(boolean shouldBeUsedInOneThread) voidcheckOrder(boolean value) invoke(Invocation invocation) voidmakeThreadSafe(boolean threadSafe) voidreplay()voidvoidverify()voidvoid
- 
Method Details- 
invoke- Throws:
- Throwable
 
- 
assertRecordStatevoid assertRecordState()
- 
andReturn
- 
andThrow
- 
andAnswer
- 
andDelegateTo
- 
andVoidvoid andVoid()
- 
andStubReturn
- 
andStubThrow
- 
andStubAnswer
- 
andStubDelegateTo
- 
asStubvoid asStub()
- 
times
- 
checkOrdervoid checkOrder(boolean value) 
- 
makeThreadSafevoid makeThreadSafe(boolean threadSafe) 
- 
checkIsUsedInOneThreadvoid checkIsUsedInOneThread(boolean shouldBeUsedInOneThread) 
- 
replayvoid replay()
- 
verifyRecordingvoid verifyRecording()
- 
verifyUnexpectedCallsvoid verifyUnexpectedCalls()
- 
verifyvoid verify()
 
-