@Test public void doRefreshTest() { final CountDownLatch latch = mock(CountDownLatch.class); presenter.doRefresh(latch); verify(presenter).doUpdate(any(Runnable.class)); final InOrder inOrder = inOrder(treeDepthInfo, latch); inOrder.verify(treeDepthInfo).update(); inOrder.verify(latch).countDown(); }
@VisibleForTesting void doRefresh(final CountDownLatch latch) { final Runnable runnable = () -> { try { treeDepthInfo.update(); } finally { latch.countDown(); } }; doUpdate(runnable); }
TreeDepthTabPresenter extends TabPresenter<TreeDepthTabView> { @VisibleForTesting void doRefresh(final CountDownLatch latch) { final Runnable runnable = () -> { try { treeDepthInfo.update(); } finally { latch.countDown(); } }; doUpdate(runnable); } }
TreeDepthTabPresenter extends TabPresenter<TreeDepthTabView> { @VisibleForTesting void doRefresh(final CountDownLatch latch) { final Runnable runnable = () -> { try { treeDepthInfo.update(); } finally { latch.countDown(); } }; doUpdate(runnable); } 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> { @VisibleForTesting void doRefresh(final CountDownLatch latch) { final Runnable runnable = () -> { try { treeDepthInfo.update(); } finally { latch.countDown(); } }; doUpdate(runnable); } 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> { @VisibleForTesting void doRefresh(final CountDownLatch latch) { final Runnable runnable = () -> { try { treeDepthInfo.update(); } finally { latch.countDown(); } }; doUpdate(runnable); } 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);  }