java.lang.Object
org.easymock.internal.MocksBehavior
- All Implemented Interfaces:
Serializable
,IMocksBehavior
Default implementation of
IMocksBehavior
. It keeps the full behavior of mocks from the same IMocksControl
.- Author:
- OFFIS, Tammo Freese
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Result
addActual
(Invocation actual) void
addExpected
(ExpectedInvocation expected, Result result, Range count) final void
addStub
(ExpectedInvocation expected, Result result) void
checkOrder
(boolean value) void
boolean
void
makeThreadSafe
(boolean isThreadSafe) void
shouldBeUsedInOneThread
(boolean shouldBeUsedInOneThread) void
verify()
void
void
-
Constructor Details
-
MocksBehavior
public MocksBehavior(boolean nice)
-
-
Method Details
-
addStub
- Specified by:
addStub
in interfaceIMocksBehavior
-
addExpected
- Specified by:
addExpected
in interfaceIMocksBehavior
-
addActual
- Specified by:
addActual
in interfaceIMocksBehavior
-
verifyRecording
public void verifyRecording()- Specified by:
verifyRecording
in interfaceIMocksBehavior
-
verifyUnexpectedCalls
public void verifyUnexpectedCalls()- Specified by:
verifyUnexpectedCalls
in interfaceIMocksBehavior
-
verify
public void verify()- Specified by:
verify
in interfaceIMocksBehavior
-
checkOrder
public void checkOrder(boolean value) - Specified by:
checkOrder
in interfaceIMocksBehavior
-
makeThreadSafe
public void makeThreadSafe(boolean isThreadSafe) - Specified by:
makeThreadSafe
in interfaceIMocksBehavior
-
shouldBeUsedInOneThread
public void shouldBeUsedInOneThread(boolean shouldBeUsedInOneThread) - Specified by:
shouldBeUsedInOneThread
in interfaceIMocksBehavior
-
isThreadSafe
public boolean isThreadSafe()- Specified by:
isThreadSafe
in interfaceIMocksBehavior
-
checkThreadSafety
public void checkThreadSafety()- Specified by:
checkThreadSafety
in interfaceIMocksBehavior
-