Package org.easymock.internal
Class RecordState
java.lang.Object
org.easymock.internal.RecordState
- All Implemented Interfaces:
Serializable
,IMocksControlState
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IMocksBehavior
private ExpectedInvocation
private boolean
private Result
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
andDelegateTo
(Object delegateTo) void
void
andStubAnswer
(IAnswer<?> answer) void
andStubDelegateTo
(Object delegateTo) void
andStubReturn
(Object value) void
andStubThrow
(Throwable throwable) void
void
andVoid()
void
void
asStub()
void
checkIsUsedInOneThread
(boolean shouldBeUsedInOneThread) void
checkOrder
(boolean value) private void
private Object
private Object
createNumberObject
(Object value, Class<?> returnType) static Object
emptyReturnValueFor
(Class<?> type) invoke
(Invocation invocation) private boolean
private boolean
isValidThrowable
(Throwable throwable) private boolean
void
makeThreadSafe
(boolean threadSafe) void
replay()
private void
requireAssignable
(Object returnValue) private void
private void
requireMethodCall
(String failMessage) private void
requireValidAnswer
(IAnswer<?> answer) private void
requireValidDelegation
(Object delegateTo) private void
requireValidThrowable
(Throwable throwable) private void
void
void
verify()
void
void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
lastInvocation
-
lastInvocationUsed
private boolean lastInvocationUsed -
lastResult
-
behavior
-
-
Constructor Details
-
RecordState
-
-
Method Details
-
assertRecordState
public void assertRecordState()- Specified by:
assertRecordState
in interfaceIMocksControlState
-
invoke
- Specified by:
invoke
in interfaceIMocksControlState
-
replay
public void replay()- Specified by:
replay
in interfaceIMocksControlState
-
verifyRecording
public void verifyRecording()- Specified by:
verifyRecording
in interfaceIMocksControlState
-
verifyUnexpectedCalls
public void verifyUnexpectedCalls()- Specified by:
verifyUnexpectedCalls
in interfaceIMocksControlState
-
verify
public void verify()- Specified by:
verify
in interfaceIMocksControlState
-
andReturn
- Specified by:
andReturn
in interfaceIMocksControlState
-
andThrow
- Specified by:
andThrow
in interfaceIMocksControlState
-
andAnswer
- Specified by:
andAnswer
in interfaceIMocksControlState
-
andDelegateTo
- Specified by:
andDelegateTo
in interfaceIMocksControlState
-
andVoid
public void andVoid()- Specified by:
andVoid
in interfaceIMocksControlState
-
andStubReturn
- Specified by:
andStubReturn
in interfaceIMocksControlState
-
asStub
public void asStub()- Specified by:
asStub
in interfaceIMocksControlState
-
andStubThrow
- Specified by:
andStubThrow
in interfaceIMocksControlState
-
andStubAnswer
- Specified by:
andStubAnswer
in interfaceIMocksControlState
-
andStubDelegateTo
- Specified by:
andStubDelegateTo
in interfaceIMocksControlState
-
times
- Specified by:
times
in interfaceIMocksControlState
-
createNumberObject
-
convertNumberClassIfNecessary
-
closeMethod
private void closeMethod() -
emptyReturnValueFor
-
requireMethodCall
-
requireAssignable
-
requireValidThrowable
-
requireValidAnswer
-
requireValidDelegation
-
requireLastResultOrVoidMethod
private void requireLastResultOrVoidMethod() -
requireVoidMethod
private void requireVoidMethod() -
isLastResultOrVoidMethod
private boolean isLastResultOrVoidMethod() -
lastMethodIsVoidMethod
private boolean lastMethodIsVoidMethod() -
isValidThrowable
-
checkOrder
public void checkOrder(boolean value) - Specified by:
checkOrder
in interfaceIMocksControlState
-
makeThreadSafe
public void makeThreadSafe(boolean threadSafe) - Specified by:
makeThreadSafe
in interfaceIMocksControlState
-
checkIsUsedInOneThread
public void checkIsUsedInOneThread(boolean shouldBeUsedInOneThread) - Specified by:
checkIsUsedInOneThread
in interfaceIMocksControlState
-