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.MethodinvokedMethodjava.lang.ObjectinvokedObjectjava.util.ListparameterValues
-
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 voidcheckReturnTypeCompatibility(java.lang.Object result)java.lang.StringBufferdescribeTo(java.lang.StringBuffer buffer)Appends the description of this object to the buffer.booleanequals(java.lang.Object other)booleanequals(Invocation other)inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
equals
public boolean equals(Invocation other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
describeTo
public java.lang.StringBuffer describeTo(java.lang.StringBuffer buffer)
Description copied from interface:SelfDescribingAppends the description of this object to the buffer.- Specified by:
describeToin 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)
-
-