org.jmock.core
Class Invocation
java.lang.Object
org.jmock.core.Invocation
- All Implemented Interfaces:
- SelfDescribing
public class Invocation
- extends java.lang.Object
- implements SelfDescribing
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 |
invokedObject
public final java.lang.Object invokedObject
invokedMethod
public final java.lang.reflect.Method invokedMethod
parameterValues
public final java.util.List parameterValues
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 java.lang.StringBuffer describeTo(java.lang.StringBuffer buffer)
- Description copied from interface:
SelfDescribing
- Appends the description of this object to the buffer.
- Specified by:
describeTo
in interface SelfDescribing
- Parameters:
buffer
- The buffer that the description is appended to.
- Returns:
- The buffer passed to the invokedMethod.
checkReturnTypeCompatibility
public void checkReturnTypeCompatibility(java.lang.Object result)