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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ResultaddActual(Invocation actual) voidaddExpected(ExpectedInvocation expected, Result result, Range count) final voidaddStub(ExpectedInvocation expected, Result result) voidcheckOrder(boolean value) voidbooleanvoidmakeThreadSafe(boolean isThreadSafe) voidshouldBeUsedInOneThread(boolean shouldBeUsedInOneThread) voidverify()voidvoid
-
Constructor Details
-
MocksBehavior
public MocksBehavior(boolean nice)
-
-
Method Details
-
addStub
- Specified by:
addStubin interfaceIMocksBehavior
-
addExpected
- Specified by:
addExpectedin interfaceIMocksBehavior
-
addActual
- Specified by:
addActualin interfaceIMocksBehavior
-
verifyRecording
public void verifyRecording()- Specified by:
verifyRecordingin interfaceIMocksBehavior
-
verifyUnexpectedCalls
public void verifyUnexpectedCalls()- Specified by:
verifyUnexpectedCallsin interfaceIMocksBehavior
-
verify
public void verify()- Specified by:
verifyin interfaceIMocksBehavior
-
checkOrder
public void checkOrder(boolean value) - Specified by:
checkOrderin interfaceIMocksBehavior
-
makeThreadSafe
public void makeThreadSafe(boolean isThreadSafe) - Specified by:
makeThreadSafein interfaceIMocksBehavior
-
shouldBeUsedInOneThread
public void shouldBeUsedInOneThread(boolean shouldBeUsedInOneThread) - Specified by:
shouldBeUsedInOneThreadin interfaceIMocksBehavior
-
isThreadSafe
public boolean isThreadSafe()- Specified by:
isThreadSafein interfaceIMocksBehavior
-
checkThreadSafety
public void checkThreadSafety()- Specified by:
checkThreadSafetyin interfaceIMocksBehavior
-