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() |
public RecordState(IMocksBehavior behavior)
public void assertRecordState()
assertRecordState in interface IMocksControlStatepublic Object invoke(Invocation invocation)
invoke in interface IMocksControlStatepublic void replay()
replay in interface IMocksControlStatepublic void verify()
verify 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 delegateTo)
andDelegateTo in interface IMocksControlStatepublic void andVoid()
andVoid in interface IMocksControlStatepublic void andStubReturn(Object value)
andStubReturn in interface IMocksControlStatepublic void asStub()
asStub 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 times(Range range)
times in interface IMocksControlStatepublic void checkOrder(boolean value)
checkOrder in interface IMocksControlStatepublic void makeThreadSafe(boolean threadSafe)
makeThreadSafe in interface IMocksControlStatepublic void checkIsUsedInOneThread(boolean shouldBeUsedInOneThread)
checkIsUsedInOneThread in interface IMocksControlStateCopyright © 2001–2014 EasyMock contributors. All rights reserved.