Package org.jmock.api

Interface InvocationDispatcher

All Superinterfaces:
ExpectationCollector, org.hamcrest.SelfDescribing
All Known Implementing Classes:
SynchronisingInvocationDispatcherWrapper, UnsynchronisedInvocationDispatcher

public interface InvocationDispatcher extends org.hamcrest.SelfDescribing, ExpectationCollector
  • Method Details

    • newStateMachine

      StateMachine newStateMachine(String name)
    • add

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

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

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

      boolean isSatisfied()
    • dispatch

      Object dispatch(Invocation invocation) throws Throwable
      Throws:
      Throwable