org.jmock.dynamic
Class InvocationMocker

java.lang.Object
  extended byorg.jmock.dynamic.InvocationMocker
All Implemented Interfaces:
Invokable, Verifiable

public class InvocationMocker
extends java.lang.Object
implements Invokable


Constructor Summary
InvocationMocker(InvocationMatcher[] matchers, Stub stub)
           
InvocationMocker(java.lang.String methodName, InvocationMatcher arguments, Stub stub)
           
InvocationMocker(Stub stub)
           
 
Method Summary
 InvocationMocker addMatcher(InvocationMatcher matcher)
           
 java.lang.String getDescription()
           
 java.lang.Object invoke(Invocation invocation)
           
 boolean matches(Invocation invocation)
           
 void setStub(Stub stub)
           
 void verify()
          Throw an AssertionFailedException if any expectations have not been met.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationMocker

public InvocationMocker(java.lang.String methodName,
                        InvocationMatcher arguments,
                        Stub stub)

InvocationMocker

public InvocationMocker(InvocationMatcher[] matchers,
                        Stub stub)

InvocationMocker

public InvocationMocker(Stub stub)
Method Detail

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Invokable

matches

public boolean matches(Invocation invocation)
Specified by:
matches in interface Invokable

invoke

public java.lang.Object invoke(Invocation invocation)
                        throws java.lang.Throwable
Specified by:
invoke in interface Invokable
Throws:
java.lang.Throwable

verify

public void verify()
Description copied from interface: Verifiable
Throw an AssertionFailedException if any expectations have not been met.

Specified by:
verify in interface Verifiable

addMatcher

public InvocationMocker addMatcher(InvocationMatcher matcher)

setStub

public void setStub(Stub stub)


Copyright © 2003 jMock.org. All Rights Reserved.