Package org.easymock.internal
Interface IMocksControlState
-
- All Known Implementing Classes:
RecordState,ReplayState
public interface IMocksControlState- Author:
- OFFIS, Tammo Freese
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidandAnswer(IAnswer<?> answer)voidandDelegateTo(Object answer)voidandReturn(Object value)voidandStubAnswer(IAnswer<?> answer)voidandStubDelegateTo(Object delegateTo)voidandStubReturn(Object value)voidandStubThrow(Throwable throwable)voidandThrow(Throwable throwable)voidandVoid()voidassertRecordState()voidasStub()voidcheckIsUsedInOneThread(boolean shouldBeUsedInOneThread)voidcheckOrder(boolean value)Objectinvoke(Invocation invocation)voidmakeThreadSafe(boolean threadSafe)voidreplay()voidtimes(Range range)voidverify()voidverifyRecording()voidverifyUnexpectedCalls()
-
-
-
Method Detail
-
invoke
Object invoke(Invocation invocation) throws Throwable
- Throws:
Throwable
-
assertRecordState
void assertRecordState()
-
andReturn
void andReturn(Object value)
-
andThrow
void andThrow(Throwable throwable)
-
andAnswer
void andAnswer(IAnswer<?> answer)
-
andDelegateTo
void andDelegateTo(Object answer)
-
andVoid
void andVoid()
-
andStubReturn
void andStubReturn(Object value)
-
andStubThrow
void andStubThrow(Throwable throwable)
-
andStubAnswer
void andStubAnswer(IAnswer<?> answer)
-
andStubDelegateTo
void andStubDelegateTo(Object delegateTo)
-
asStub
void asStub()
-
times
void times(Range range)
-
checkOrder
void checkOrder(boolean value)
-
makeThreadSafe
void makeThreadSafe(boolean threadSafe)
-
checkIsUsedInOneThread
void checkIsUsedInOneThread(boolean shouldBeUsedInOneThread)
-
replay
void replay()
-
verifyRecording
void verifyRecording()
-
verifyUnexpectedCalls
void verifyUnexpectedCalls()
-
verify
void verify()
-
-