org.jmock.dynamic
Class Invocation

java.lang.Object
  extended byorg.jmock.dynamic.Invocation

public class Invocation
extends java.lang.Object

An object that holds information about a call dispatched to a Mock object for err... mocking.

TODO Simplify this (smgf)


Constructor Summary
Invocation(java.lang.reflect.Method method, java.lang.Object[] parameterValues)
           
Invocation(java.lang.String name, java.lang.Class[] parameterTypes, java.lang.Class returnType, java.lang.Object[] parameterValues)
           
 
Method Summary
 boolean equals(Invocation call)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getMethodName()
           
 java.util.List getParameterTypes()
           
 java.util.List getParameterValues()
           
 java.lang.Class getReturnType()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Invocation

public Invocation(java.lang.String name,
                  java.lang.Class[] parameterTypes,
                  java.lang.Class returnType,
                  java.lang.Object[] parameterValues)

Invocation

public Invocation(java.lang.reflect.Method method,
                  java.lang.Object[] parameterValues)
Method Detail

getMethodName

public java.lang.String getMethodName()

getParameterTypes

public java.util.List getParameterTypes()

getParameterValues

public java.util.List getParameterValues()

getReturnType

public java.lang.Class getReturnType()

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

equals

public boolean equals(Invocation call)


Copyright © 2003 jMock.org. All Rights Reserved.