@Test public void refreshTest() { doNothing().when(presenter).refreshPieChart(any(CountDownLatch.class)); doNothing().when(presenter).refreshTable(any(CountDownLatch.class)); final ArgumentCaptor<CountDownLatch> latch1 = ArgumentCaptor.forClass(CountDownLatch.class); final ArgumentCaptor<CountDownLatch> latch2 = ArgumentCaptor.forClass(CountDownLatch.class); final CountDownLatch latch = presenter.refresh(); verify(presenter).refreshPieChart(latch1.capture()); verify(presenter).refreshTable(latch2.capture()); assertThat(latch1.getValue()).isSameAs(latch); assertThat(latch2.getValue()).isSameAs(latch); }
@Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(2); refreshPieChart(latch); refreshTable(latch); return latch; }
RulesTabPresenter extends TabPresenter<RulesTabView> { @Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(2); refreshPieChart(latch); refreshTable(latch); return latch; } }
RulesTabPresenter extends TabPresenter<RulesTabView> { @Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(2); refreshPieChart(latch); refreshTable(latch); return latch; } RulesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); }
RulesTabPresenter extends TabPresenter<RulesTabView> { @Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(2); refreshPieChart(latch); refreshTable(latch); return latch; } RulesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load(); }
RulesTabPresenter extends TabPresenter<RulesTabView> { @Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(2); refreshPieChart(latch); refreshTable(latch); return latch; } RulesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load();  }