public class MocksBehavior extends Object implements IMocksBehavior, Serializable
Constructor and Description |
---|
MocksBehavior(boolean nice) |
Modifier and Type | Method and Description |
---|---|
Result |
addActual(Invocation actual) |
void |
addExpected(ExpectedInvocation expected,
Result result,
Range count) |
void |
addStub(ExpectedInvocation expected,
Result result) |
void |
checkOrder(boolean value) |
void |
checkThreadSafety() |
boolean |
isThreadSafe() |
void |
makeThreadSafe(boolean isThreadSafe) |
void |
shouldBeUsedInOneThread(boolean shouldBeUsedInOneThread) |
void |
verify() |
void |
verifyRecording() |
void |
verifyUnexpectedCalls() |
public final void addStub(ExpectedInvocation expected, Result result)
addStub
in interface IMocksBehavior
public void addExpected(ExpectedInvocation expected, Result result, Range count)
addExpected
in interface IMocksBehavior
public final Result addActual(Invocation actual)
addActual
in interface IMocksBehavior
public void verifyRecording()
verifyRecording
in interface IMocksBehavior
public void verifyUnexpectedCalls()
verifyUnexpectedCalls
in interface IMocksBehavior
public void verify()
verify
in interface IMocksBehavior
public void checkOrder(boolean value)
checkOrder
in interface IMocksBehavior
public void makeThreadSafe(boolean isThreadSafe)
makeThreadSafe
in interface IMocksBehavior
public void shouldBeUsedInOneThread(boolean shouldBeUsedInOneThread)
shouldBeUsedInOneThread
in interface IMocksBehavior
public boolean isThreadSafe()
isThreadSafe
in interface IMocksBehavior
public void checkThreadSafety()
checkThreadSafety
in interface IMocksBehavior
Copyright © 2001–2022 EasyMock contributors. All rights reserved.