- 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 Summary
Modifier 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
-
assertRecordState
void assertRecordState() -
andReturn
-
andThrow
-
andAnswer
-
andDelegateTo
-
andVoid
void andVoid() -
andStubReturn
-
andStubThrow
-
andStubAnswer
-
andStubDelegateTo
-
asStub
void asStub() -
times
-
checkOrder
void checkOrder(boolean value) -
makeThreadSafe
void makeThreadSafe(boolean threadSafe) -
checkIsUsedInOneThread
void checkIsUsedInOneThread(boolean shouldBeUsedInOneThread) -
replay
void replay() -
verifyRecording
void verifyRecording() -
verifyUnexpectedCalls
void verifyUnexpectedCalls() -
verify
void verify()
-