@Test public void refreshTest() { doNothing().when(presenter).doRefresh(any(CountDownLatch.class)); final ArgumentCaptor<CountDownLatch> captor = ArgumentCaptor.forClass(CountDownLatch.class); final CountDownLatch latch = presenter.refresh(); verify(presenter).doRefresh(captor.capture()); assertThat(captor.getValue()).isSameAs(latch); }
@Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(1); doRefresh(latch); return latch; }
TreeDepthTabPresenter extends TabPresenter<TreeDepthTabView> { @Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(1); doRefresh(latch); return latch; } }
TreeDepthTabPresenter extends TabPresenter<TreeDepthTabView> { @Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(1); doRefresh(latch); return latch; } TreeDepthTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @VisibleForTesting  TreeDepthTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb,
        final TreeDepthInfo treeDepthInfo); }
TreeDepthTabPresenter extends TabPresenter<TreeDepthTabView> { @Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(1); doRefresh(latch); return latch; } TreeDepthTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @VisibleForTesting  TreeDepthTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb,
        final TreeDepthInfo treeDepthInfo); @Override CountDownLatch refresh(); @Override void load(); void handleChangeStartLine(final String input); void doChangeStartLine(final int startLine); void handlePreviousLines(); void handleNextLines(); void handleChangedDisplayedLines(final int displayedLines); }
TreeDepthTabPresenter extends TabPresenter<TreeDepthTabView> { @Override public CountDownLatch refresh() { final CountDownLatch latch = new CountDownLatch(1); doRefresh(latch); return latch; } TreeDepthTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @VisibleForTesting  TreeDepthTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb,
        final TreeDepthInfo treeDepthInfo); @Override CountDownLatch refresh(); @Override void load(); void handleChangeStartLine(final String input); void doChangeStartLine(final int startLine); void handlePreviousLines(); void handleNextLines(); void handleChangedDisplayedLines(final int displayedLines);  }