- 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 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
checkIsUsedInOneThread
(boolean shouldBeUsedInOneThread) void
checkOrder
(boolean value) invoke
(Invocation invocation) void
makeThreadSafe
(boolean threadSafe) void
replay()
void
void
verify()
void
void
-
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()
-