org.jmock.api
Class Invocation
java.lang.Object
org.jmock.api.Invocation
public class Invocation
- extends java.lang.Object
The static details about a method and the run-time details of its invocation.
- Since:
- 1.0
Constructor Summary |
Invocation(java.lang.Object invoked,
java.lang.reflect.Method method,
java.lang.Object... parameterValues)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NO_PARAMETERS
public static final java.lang.Object[] NO_PARAMETERS
Invocation
public Invocation(java.lang.Object invoked,
java.lang.reflect.Method method,
java.lang.Object... parameterValues)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
equals
public boolean equals(Invocation other)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
describeTo
public void describeTo(Description description)
getInvokedObject
public java.lang.Object getInvokedObject()
getInvokedMethod
public java.lang.reflect.Method getInvokedMethod()
getParameterCount
public int getParameterCount()
getParameter
public java.lang.Object getParameter(int i)
getParametersAsArray
public java.lang.Object[] getParametersAsArray()
applyTo
public java.lang.Object applyTo(java.lang.Object target)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
checkReturnTypeCompatibility
public void checkReturnTypeCompatibility(java.lang.Object value)