Class InvocationDispatcher

    • Field Detail

      • expectations

        private java.util.List<Expectation> expectations
      • stateMachines

        private java.util.List<StateMachine> stateMachines
    • Constructor Detail

      • InvocationDispatcher

        public InvocationDispatcher()
    • Method Detail

      • newStateMachine

        public StateMachine newStateMachine​(java.lang.String name)
      • 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)
      • describedWith

        private java.lang.Iterable<org.hamcrest.SelfDescribing> describedWith​(java.util.List<Expectation> expectations,
                                                                              Invocation invocation)
      • describe

        private void describe​(org.hamcrest.Description description,
                              java.lang.Iterable<? extends org.hamcrest.SelfDescribing> selfDescribingExpectations)
      • isSatisfied

        public boolean isSatisfied()
      • dispatch

        public java.lang.Object dispatch​(Invocation invocation)
                                  throws java.lang.Throwable
        Throws:
        java.lang.Throwable