@Test public void loadInputBufferTest() { final InputBuffer buffer = mock(InputBuffer.class); when(traceDb.getInputBuffer()).thenReturn(buffer); presenter.loadInputBuffer(); verify(traceDb).getInputBuffer(); verify(view).loadInputBuffer(same(buffer)); }
@VisibleForTesting void loadInputBuffer() { taskRunner.compute(traceDb::getInputBuffer, view::loadInputBuffer); }
TreeTabPresenter extends TabPresenter<TreeTabView> { @VisibleForTesting void loadInputBuffer() { taskRunner.compute(traceDb::getInputBuffer, view::loadInputBuffer); } }
TreeTabPresenter extends TabPresenter<TreeTabView> { @VisibleForTesting void loadInputBuffer() { taskRunner.compute(traceDb::getInputBuffer, view::loadInputBuffer); } TreeTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); }
TreeTabPresenter extends TabPresenter<TreeTabView> { @VisibleForTesting void loadInputBuffer() { taskRunner.compute(traceDb::getInputBuffer, view::loadInputBuffer); } TreeTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load(); void handleParseTreeNodeShow(final ParseTreeNode node); void handleNeedChildren(final ParseTreeNode value); }
TreeTabPresenter extends TabPresenter<TreeTabView> { @VisibleForTesting void loadInputBuffer() { taskRunner.compute(traceDb::getInputBuffer, view::loadInputBuffer); } TreeTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load(); void handleParseTreeNodeShow(final ParseTreeNode node); void handleNeedChildren(final ParseTreeNode value);  }