org.jmock.core

Class Invocation

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)
boolean
equals(Object other)
boolean
equals(Invocation other)
int
hashCode()
String
toString()

Field Details

invokedMethod

public final Method invokedMethod

invokedObject

public final Object invokedObject

parameterValues

public final List parameterValues

Constructor Details

Invocation

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

Method Details

describeTo

public StringBuffer describeTo(StringBuffer buffer)
Specified by:
describeTo in interface SelfDescribing

equals

public boolean equals(Object other)

equals

public boolean equals(Invocation other)

hashCode

public int hashCode()

toString

public String toString()