@Test public void allows_runs_to_be_visited_individually() { toDemuxer.onRunStarted(new RunId(1), TEST_FILE_1); toDemuxer.onRunStarted(new RunId(2), TEST_FILE_2); RunVisitor visitor = mock(RunVisitor.class); demuxer.visitRun(new RunId(1), visitor); verify(visitor).onRunStarted(new RunId(1), TEST_FILE_1); verifyNoMoreInteractions(visitor); }
public void visitRun(RunId runId, RunVisitor visitor) { visitRun(runId, new RunEventDenormalizer(visitor)); }
SuiteEventDemuxer implements MessageSender<Event<SuiteListener>> { public void visitRun(RunId runId, RunVisitor visitor) { visitRun(runId, new RunEventDenormalizer(visitor)); } }
SuiteEventDemuxer implements MessageSender<Event<SuiteListener>> { public void visitRun(RunId runId, RunVisitor visitor) { visitRun(runId, new RunEventDenormalizer(visitor)); }  }
SuiteEventDemuxer implements MessageSender<Event<SuiteListener>> { public void visitRun(RunId runId, RunVisitor visitor) { visitRun(runId, new RunEventDenormalizer(visitor)); }  @Override void send(Event<SuiteListener> message); boolean isSuiteFinished(); void visitAllRuns(RunVisitor visitor); void visitAllRuns(SuiteListener visitor); void visitRun(RunId runId, RunVisitor visitor); void visitRun(RunId runId, SuiteListener visitor); String getTestName(TestFile testFile, TestId testId); }
SuiteEventDemuxer implements MessageSender<Event<SuiteListener>> { public void visitRun(RunId runId, RunVisitor visitor) { visitRun(runId, new RunEventDenormalizer(visitor)); }  @Override void send(Event<SuiteListener> message); boolean isSuiteFinished(); void visitAllRuns(RunVisitor visitor); void visitAllRuns(SuiteListener visitor); void visitRun(RunId runId, RunVisitor visitor); void visitRun(RunId runId, SuiteListener visitor); String getTestName(TestFile testFile, TestId testId);  }