@Test void invoke_startupMessage_invokesSagaStartupMessage() throws InvocationTargetException, IllegalAccessException { String startMessage = "any string"; TestSaga saga = new TestSaga(); saga.createNewState(); sut.invoke(createContext(saga, startMessage)); assertThat("Expected saga start method to be called.", saga.startupCalled(), equalTo(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);  }