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 ObjectapplyTo(Object target)voidcheckReturnTypeCompatibility(Object value)voiddescribeTo(org.hamcrest.Description description)booleanequals(Object other)booleanequals(Invocation other)MethodgetInvokedMethod()ObjectgetInvokedObject()ObjectgetParameter(int i)intgetParameterCount()Object[]getParametersAsArray()inthashCode()StringtoString()
-
-
-
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:
describeToin 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)
-
-