public class ReplayState extends Object implements IMocksControlState, Serializable
| Constructor and Description |
|---|
ReplayState(IMocksBehavior behavior) |
| Modifier and Type | Method and Description |
|---|---|
void |
andAnswer(IAnswer<?> answer) |
void |
andDelegateTo(Object answer) |
void |
andReturn(Object value) |
void |
andStubAnswer(IAnswer<?> answer) |
void |
andStubDelegateTo(Object delegateTo) |
void |
andStubReturn(Object value) |
void |
andStubThrow(Throwable throwable) |
void |
andThrow(Throwable throwable) |
void |
andVoid() |
void |
assertRecordState() |
void |
asStub() |
void |
callback(Runnable runnable) |
void |
checkIsUsedInOneThread(boolean shouldBeUsedInOneThread) |
void |
checkOrder(boolean value) |
Object |
invoke(Invocation invocation) |
void |
makeThreadSafe(boolean threadSafe) |
void |
replay() |
void |
setDefaultReturnValue(Object value) |
void |
setDefaultThrowable(Throwable throwable) |
void |
setDefaultVoidCallable() |
void |
times(Range range) |
void |
verify() |
public ReplayState(IMocksBehavior behavior)
public Object invoke(Invocation invocation) throws Throwable
invoke in interface IMocksControlStateThrowablepublic void verify()
verify in interface IMocksControlStatepublic void replay()
replay in interface IMocksControlStatepublic void callback(Runnable runnable)
public void checkOrder(boolean value)
checkOrder in interface IMocksControlStatepublic void makeThreadSafe(boolean threadSafe)
makeThreadSafe in interface IMocksControlStatepublic void checkIsUsedInOneThread(boolean shouldBeUsedInOneThread)
checkIsUsedInOneThread in interface IMocksControlStatepublic void andReturn(Object value)
andReturn in interface IMocksControlStatepublic void andThrow(Throwable throwable)
andThrow in interface IMocksControlStatepublic void andAnswer(IAnswer<?> answer)
andAnswer in interface IMocksControlStatepublic void andDelegateTo(Object answer)
andDelegateTo in interface IMocksControlStatepublic void andVoid()
andVoid in interface IMocksControlStatepublic void andStubReturn(Object value)
andStubReturn in interface IMocksControlStatepublic void andStubThrow(Throwable throwable)
andStubThrow in interface IMocksControlStatepublic void andStubAnswer(IAnswer<?> answer)
andStubAnswer in interface IMocksControlStatepublic void andStubDelegateTo(Object delegateTo)
andStubDelegateTo in interface IMocksControlStatepublic void asStub()
asStub in interface IMocksControlStatepublic void times(Range range)
times in interface IMocksControlStatepublic void setDefaultReturnValue(Object value)
public void setDefaultThrowable(Throwable throwable)
public void setDefaultVoidCallable()
public void assertRecordState()
assertRecordState in interface IMocksControlStateCopyright © 2001–2014 EasyMock contributors. All rights reserved.