Package org.jmock.api
Class Invocation
- java.lang.Object
-
- org.jmock.api.Invocation
-
- All Implemented Interfaces:
org.hamcrest.SelfDescribing
public class Invocation extends Object implements org.hamcrest.SelfDescribing
The static details about a method and the run-time details of its invocation.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static Object[]
NO_PARAMETERS
-
Constructor Summary
Constructors Constructor Description Invocation(Object invoked, Method method, Object... parameterValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
applyTo(Object target)
void
checkReturnTypeCompatibility(Object value)
void
describeTo(org.hamcrest.Description description)
boolean
equals(Object other)
boolean
equals(Invocation other)
Method
getInvokedMethod()
Object
getInvokedObject()
Object
getParameter(int i)
int
getParameterCount()
Object[]
getParametersAsArray()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
NO_PARAMETERS
public static final Object[] NO_PARAMETERS
-
-
Method Detail
-
equals
public boolean equals(Invocation other)
-
describeTo
public void describeTo(org.hamcrest.Description description)
- Specified by:
describeTo
in interfaceorg.hamcrest.SelfDescribing
-
getInvokedObject
public Object getInvokedObject()
-
getInvokedMethod
public Method getInvokedMethod()
-
getParameterCount
public int getParameterCount()
-
getParameter
public Object getParameter(int i)
-
getParametersAsArray
public Object[] getParametersAsArray()
-
checkReturnTypeCompatibility
public void checkReturnTypeCompatibility(Object value)
-
-