- All Known Implementing Classes:
MocksBehavior
public interface IMocksBehavior
The behavior of a mock. I.e. ordered or not, thread safe or not, expectations, etc.
- Author:
- OFFIS, Tammo Freese
-
Method Summary
Modifier and TypeMethodDescriptionaddActual
(Invocation invocation) void
addExpected
(ExpectedInvocation expected, Result result, Range count) void
addStub
(ExpectedInvocation expected, Result result) void
checkOrder
(boolean value) void
boolean
void
makeThreadSafe
(boolean isThreadSafe) void
shouldBeUsedInOneThread
(boolean shouldBeUsedInOneThread) void
verify()
void
void
-
Method Details
-
addExpected
-
addStub
-
checkOrder
void checkOrder(boolean value) -
makeThreadSafe
void makeThreadSafe(boolean isThreadSafe) -
shouldBeUsedInOneThread
void shouldBeUsedInOneThread(boolean shouldBeUsedInOneThread) -
addActual
-
isThreadSafe
boolean isThreadSafe() -
checkThreadSafety
void checkThreadSafety() -
verifyRecording
void verifyRecording() -
verifyUnexpectedCalls
void verifyUnexpectedCalls() -
verify
void verify()
-