@Test public void refreshTest() { final CountDownLatch latch = presenter.refresh(); verify(presenter).doRefresh(same(latch)); assertThat(latch.getCount()).isEqualTo(0); }
@Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(1); doRefresh(latch); return latch; }
MatchesTabPresenter extends TabPresenter<MatchesTabView> { @Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(1); doRefresh(latch); return latch; } }
MatchesTabPresenter extends TabPresenter<MatchesTabView> { @Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(1); doRefresh(latch); return latch; } MatchesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); }
MatchesTabPresenter extends TabPresenter<MatchesTabView> { @Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(1); doRefresh(latch); return latch; } MatchesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load(); void displayMatches(); @OnUiThread void loadError(final Throwable throwable); @OnBackgroundThread void doRefresh(final CountDownLatch latch); }
MatchesTabPresenter extends TabPresenter<MatchesTabView> { @Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(1); doRefresh(latch); return latch; } MatchesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load(); void displayMatches(); @OnUiThread void loadError(final Throwable throwable); @OnBackgroundThread void doRefresh(final CountDownLatch latch);  }