org.jmock.internal
Class InvocationDispatcher

java.lang.Object
  extended by org.jmock.internal.InvocationDispatcher
All Implemented Interfaces:
org.hamcrest.SelfDescribing, ExpectationCollector

public class InvocationDispatcher
extends Object
implements ExpectationCollector, org.hamcrest.SelfDescribing


Constructor Summary
InvocationDispatcher()
           
 
Method Summary
 void add(Expectation expectation)
           
 void describeMismatch(Invocation invocation, org.hamcrest.Description description)
           
 void describeTo(org.hamcrest.Description description)
           
 Object dispatch(Invocation invocation)
           
 boolean isSatisfied()
           
 StateMachine newStateMachine(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationDispatcher

public InvocationDispatcher()
Method Detail

newStateMachine

public StateMachine newStateMachine(String name)

add

public void add(Expectation expectation)
Specified by:
add in interface ExpectationCollector

describeTo

public void describeTo(org.hamcrest.Description description)
Specified by:
describeTo in interface org.hamcrest.SelfDescribing

describeMismatch

public void describeMismatch(Invocation invocation,
                             org.hamcrest.Description description)

isSatisfied

public boolean isSatisfied()

dispatch

public Object dispatch(Invocation invocation)
                throws Throwable
Throws:
Throwable


Copyright © 2003-2012 jMock. All Rights Reserved.