@Test void invoke_continueContext_callsContinueHandler() throws InvocationTargetException, IllegalAccessException { sut = sutWithSameMessageHandler(); SameMessageHandlers saga = new SameMessageHandlers(); saga.createNewState(); sut.invoke(createContext(saga, "message", InvocationHandlerType.CONTINUE)); assertThat("Expected the continue handler to be executed.", saga.isContinueHandlerCalled(), is(true)); }
@Override public void invoke(final Saga saga, final Object message) { }
ReflectionInvoker implements HandlerInvoker { @Override public void invoke(final Saga saga, final Object message) { } }
ReflectionInvoker implements HandlerInvoker { @Override public void invoke(final Saga saga, final Object message) { } @Inject  ReflectionInvoker(final SagaAnalyzer analyzer); }
ReflectionInvoker implements HandlerInvoker { @Override public void invoke(final Saga saga, final Object message) { } @Inject  ReflectionInvoker(final SagaAnalyzer analyzer); @Override void invoke(final Saga saga, final Object message); @Override void invoke(final InvocationContext invocationContext); }
ReflectionInvoker implements HandlerInvoker { @Override public void invoke(final Saga saga, final Object message) { } @Inject  ReflectionInvoker(final SagaAnalyzer analyzer); @Override void invoke(final Saga saga, final Object message); @Override void invoke(final InvocationContext invocationContext);  }