Package 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
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.reflect.Method
invokedMethod
java.lang.Object
invokedObject
java.util.List
parameterValues
-
Constructor Summary
Constructors Constructor Description Invocation(java.lang.Object invoked, java.lang.reflect.Method method, java.lang.Object[] parameterValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkReturnTypeCompatibility(java.lang.Object result)
java.lang.StringBuffer
describeTo(java.lang.StringBuffer buffer)
Appends the description of this object to the buffer.boolean
equals(java.lang.Object other)
boolean
equals(Invocation other)
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(Invocation other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.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 interfaceSelfDescribing
- 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)
-
-