Package org.easymock.internal
Class Invocation
java.lang.Object
org.easymock.internal.Invocation
- All Implemented Interfaces:
Serializable
Represents a method invocation on a mock object. It's used for record one or for actual calls.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCapture(Captures<Object> capture, Object value) voidprivate static Object[]createObjectArray(Object array) private booleanequalArguments(Object[] arguments) booleanprivate static Object[]expandVarArgs(boolean isVarArgs, Object[] args) Object[]Returns the arguments passed to the method invocation.Returns the method invoked on the mock object.getMock()Returns the mock object on which the invocation was performed.inthashCode()private static booleanisDefaultName(String mockName) private booleanisPrimitiveParameter(int parameterPosition) private voidreadObject(ObjectInputStream stream) toString()private booleanvoidprivate voidwriteObject(ObjectOutputStream stream)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
NO_ARGS
-
mock
-
method
-
arguments
-
currentCaptures
-
-
Constructor Details
-
Invocation
-
-
Method Details
-
expandVarArgs
-
createObjectArray
-
getMock
Returns the mock object on which the invocation was performed.- Returns:
- the mock object on which the invocation was performed.
-
getMethod
Returns the method invoked on the mock object.- Returns:
- the method invoked on the mock object.
-
getArguments
Returns the arguments passed to the method invocation.- Returns:
- the arguments passed to the method invocation.
-
equals
-
hashCode
public int hashCode() -
toString
-
equalArguments
-
isPrimitiveParameter
private boolean isPrimitiveParameter(int parameterPosition) -
getMockAndMethodName
-
addCapture
-
validateCaptures
public void validateCaptures() -
clearCaptures
public void clearCaptures() -
toStringIsDefined
-
isDefaultName
-
readObject
- Throws:
IOExceptionClassNotFoundException
-
writeObject
- Throws:
IOException
-