public class RecordState extends Object implements IMocksControlState, Serializable
Constructor and Description |
---|
RecordState(IMocksBehavior behavior) |
Modifier and Type | Method and Description |
---|---|
void |
andAnswer(IAnswer<?> answer) |
void |
andDelegateTo(Object delegateTo) |
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 |
checkIsUsedInOneThread(boolean shouldBeUsedInOneThread) |
void |
checkOrder(boolean value) |
static Object |
emptyReturnValueFor(Class<?> type) |
Object |
invoke(Invocation invocation) |
void |
makeThreadSafe(boolean threadSafe) |
void |
replay() |
void |
times(Range range) |
void |
verify() |
void |
verifyRecording() |
void |
verifyUnexpectedCalls() |
public RecordState(IMocksBehavior behavior)
public void assertRecordState()
assertRecordState
in interface IMocksControlState
public Object invoke(Invocation invocation)
invoke
in interface IMocksControlState
public void replay()
replay
in interface IMocksControlState
public void verifyRecording()
verifyRecording
in interface IMocksControlState
public void verifyUnexpectedCalls()
verifyUnexpectedCalls
in interface IMocksControlState
public void verify()
verify
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 delegateTo)
andDelegateTo
in interface IMocksControlState
public void andVoid()
andVoid
in interface IMocksControlState
public void andStubReturn(Object value)
andStubReturn
in interface IMocksControlState
public void asStub()
asStub
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 times(Range range)
times
in interface IMocksControlState
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
Copyright © 2001–2022 EasyMock contributors. All rights reserved.