org.virtualmock.call
Class InvokedCall

java.lang.Object
  extended byorg.virtualmock.call.Call
      extended byorg.virtualmock.call.InvokedCall

public class InvokedCall
extends Call

Represents a method invocation of an invoked call (which was invoked by the Class Under Test). This is a subclass of Call which only contains information which is specific to invoked calls.

Version:
$Revision: 1.12 $
Author:
Chad Woolley

Constructor Summary
InvokedCall(Signature signature)
          Creates a new InvokedCall object with no args, return value, or exception.
InvokedCall(Signature signature, java.lang.Object[] argValues)
          Creates a new InvokedCall object.
InvokedCall(Signature signature, java.lang.Object[] argValues, java.lang.Object returnValue)
          Creates a new InvokedCall object which has a return value.
InvokedCall(Signature signature, java.lang.Object[] argValues, java.lang.Throwable throwable)
          Creates a new InvokedCall object which throws an exception.
 
Method Summary
 int getVerificationCount()
          DOCUMENT ME! (Method)
 void incrementVerificationCount()
          Increments the internal verification count for this call by one.
 boolean isVerified()
          returns true if verification count is greater than zero.
 
Methods inherited from class org.virtualmock.call.Call
getArgTypes, getArgValues, getCallId, getClassName, getMethodName, getReturnType, getReturnValue, getSignature, getSignatureSequence, getThrowable, hasArguments, hasMatchingSignature, hasMatchingSignature, hasReturnValue, isReturnTypePrimitive, setReturnValue, setSignatureSequence, setThrowable, toString, validateArguments, validateReturnValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvokedCall

public InvokedCall(Signature signature)
Creates a new InvokedCall object with no args, return value, or exception.

Parameters:
signature - the signature of the call

InvokedCall

public InvokedCall(Signature signature,
                   java.lang.Object[] argValues)
Creates a new InvokedCall object.

Parameters:
signature - the signature of the call
argValues - an array representing the values of the arguments passed to (or expected by) the call.

InvokedCall

public InvokedCall(Signature signature,
                   java.lang.Object[] argValues,
                   java.lang.Object returnValue)
Creates a new InvokedCall object which has a return value.

Parameters:
signature - the method signature for the call
argValues - an array representing the values of the arguments passed to (or expected by) the call.
returnValue - the value the call will return

InvokedCall

public InvokedCall(Signature signature,
                   java.lang.Object[] argValues,
                   java.lang.Throwable throwable)
Creates a new InvokedCall object which throws an exception.

Parameters:
signature - the method signature for the call
argValues - an array representing the values of the arguments passed to (or expected by) the call.
throwable - the exception the call will throw
Method Detail

getVerificationCount

public int getVerificationCount()
DOCUMENT ME! (Method)

Returns:
DOCUMENT ME! (Method Return)

isVerified

public boolean isVerified()
returns true if verification count is greater than zero.

Returns:
true if verification count is greater than zero.

incrementVerificationCount

public void incrementVerificationCount()
Increments the internal verification count for this call by one.



Copyright © 2003-2005 Virtual Mock. All Rights Reserved.