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 |
times(Range range) |
void |
verify() |
void |
verifyRecording() |
void |
verifyUnexpectedCalls() |
public ReplayState(IMocksBehavior behavior)
public Object invoke(Invocation invocation) throws Throwable
invoke
in interface IMocksControlState
Throwable
public void verifyRecording()
verifyRecording
in interface IMocksControlState
public void verifyUnexpectedCalls()
verifyUnexpectedCalls
in interface IMocksControlState
public void verify()
verify
in interface IMocksControlState
public void replay()
replay
in interface IMocksControlState
public void callback(Runnable runnable)
public void checkOrder(boolean value)
checkOrder
in interface IMocksControlState
public void makeThreadSafe(boolean threadSafe)
makeThreadSafe
in interface IMocksControlState
public void checkIsUsedInOneThread(boolean shouldBeUsedInOneThread)
checkIsUsedInOneThread
in interface IMocksControlState
public void andReturn(Object value)
andReturn
in interface IMocksControlState
public void andThrow(Throwable throwable)
andThrow
in interface IMocksControlState
public void andAnswer(IAnswer<?> answer)
andAnswer
in interface IMocksControlState
public void andDelegateTo(Object answer)
andDelegateTo
in interface IMocksControlState
public void andVoid()
andVoid
in interface IMocksControlState
public void andStubReturn(Object value)
andStubReturn
in interface IMocksControlState
public void andStubThrow(Throwable throwable)
andStubThrow
in interface IMocksControlState
public void andStubAnswer(IAnswer<?> answer)
andStubAnswer
in interface IMocksControlState
public void andStubDelegateTo(Object delegateTo)
andStubDelegateTo
in interface IMocksControlState
public void asStub()
asStub
in interface IMocksControlState
public void times(Range range)
times
in interface IMocksControlState
public void assertRecordState()
assertRecordState
in interface IMocksControlState
Copyright © 2001–2022 EasyMock contributors. All rights reserved.