@Test public void doUpdateTest() { final Runnable runnable = mock(Runnable.class); presenter.doUpdate(runnable); final InOrder inOrder = inOrder(view, runnable); inOrder.verify(view).disableTreeDepthToolbar(); inOrder.verify(runnable).run(); inOrder.verify(view).displayTreeDepthInfo(same(treeDepthInfo)); }
@VisibleForTesting void doUpdate(final Runnable runnable) { taskRunner.run( view::disableTreeDepthToolbar, runnable, () -> view.displayTreeDepthInfo(treeDepthInfo) ); }
TreeDepthTabPresenter extends TabPresenter<TreeDepthTabView> { @VisibleForTesting void doUpdate(final Runnable runnable) { taskRunner.run( view::disableTreeDepthToolbar, runnable, () -> view.displayTreeDepthInfo(treeDepthInfo) ); } }
TreeDepthTabPresenter extends TabPresenter<TreeDepthTabView> { @VisibleForTesting void doUpdate(final Runnable runnable) { taskRunner.run( view::disableTreeDepthToolbar, runnable, () -> view.displayTreeDepthInfo(treeDepthInfo) ); } 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 doUpdate(final Runnable runnable) { taskRunner.run( view::disableTreeDepthToolbar, runnable, () -> view.displayTreeDepthInfo(treeDepthInfo) ); } 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 doUpdate(final Runnable runnable) { taskRunner.run( view::disableTreeDepthToolbar, runnable, () -> view.displayTreeDepthInfo(treeDepthInfo) ); } 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);  }