RunnerApplicationStatusEvent extends Event<RunnerApplicationStatusEventHandler> { @Override protected void dispatch(RunnerApplicationStatusEventHandler handler) { handler.onRunnerStatusChanged(runner); } RunnerApplicationStatusEvent(@NotNull Runner runner); @Override Type<RunnerApplicationStatusEventHandler> getAssociatedType(); static final Type<RunnerApplicationStatusEventHandler> TYPE; }
@Test public void shouldDispatch() { runnerApplicationStatusEvent.dispatch(handler); verify(handler).onRunnerStatusChanged(runner); }