org.jmock.api
Class Invocation
java.lang.Object
  
org.jmock.api.Invocation
- All Implemented Interfaces: 
 - SelfDescribing
 
public class Invocation
- extends Object
- implements SelfDescribing
  
The static details about a method and the run-time details of its invocation.
- Since:
 
  - 1.0
 
 
 
 
 
NO_PARAMETERS
public static final Object[] NO_PARAMETERS
Invocation
public Invocation(Object invoked,
                  Method method,
                  Object... parameterValues)
toString
public String toString()
- Overrides:
 toString in class Object
 
 
equals
public boolean equals(Object other)
- Overrides:
 equals in class Object
 
 
equals
public boolean equals(Invocation other)
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class Object
 
 
describeTo
public void describeTo(Description description)
- Specified by:
 describeTo in interface SelfDescribing
 
 
getInvokedObject
public Object getInvokedObject()
 
 
getInvokedMethod
public Method getInvokedMethod()
 
 
getParameterCount
public int getParameterCount()
 
 
getParameter
public Object getParameter(int i)
 
 
getParametersAsArray
public Object[] getParametersAsArray()
 
 
applyTo
public Object applyTo(Object target)
               throws Throwable
 
- Throws:
 Throwable
 
checkReturnTypeCompatibility
public void checkReturnTypeCompatibility(Object value)