org.jmock.core
Class Invocation

java.lang.Object
  extended byorg.jmock.core.Invocation
All Implemented Interfaces:
SelfDescribing

public class Invocation
extends Object
implements SelfDescribing

A "dumb struct" that holds information about an invocation dispatched to a Mock object.


Field Summary
 Method invokedMethod
           
 Object invokedObject
           
 List parameterValues
           
 
Constructor Summary
Invocation(Object invoked, Method method, Object[] parameterValues)
           
 
Method Summary
 StringBuffer describeTo(StringBuffer buffer)
          Appends the description of this object to the buffer.
 boolean equals(Invocation other)
           
 boolean equals(Object other)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

invokedObject

public final Object invokedObject

invokedMethod

public final Method invokedMethod

parameterValues

public final List parameterValues
Constructor Detail

Invocation

public Invocation(Object invoked,
                  Method method,
                  Object[] parameterValues)
Method Detail

toString

public String toString()

equals

public boolean equals(Object other)

equals

public boolean equals(Invocation other)

hashCode

public int hashCode()

describeTo

public StringBuffer describeTo(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.