@SuppressWarnings("AutoBoxing") @Test public void loadParseTimeTest() throws InterruptedException { final long value = 42L; doReturn(value).when(presenter).getParseTime(); presenter.loadParseTime(); verify(presenter).getParseTime(); verify(view).displayParseTime(value); }
@VisibleForTesting void loadParseTime() { taskRunner.computeOrFail( this::getParseTime, view::displayParseTime, this::loadError ); }
RulesTabPresenter extends TabPresenter<RulesTabView> { @VisibleForTesting void loadParseTime() { taskRunner.computeOrFail( this::getParseTime, view::displayParseTime, this::loadError ); } }
RulesTabPresenter extends TabPresenter<RulesTabView> { @VisibleForTesting void loadParseTime() { taskRunner.computeOrFail( this::getParseTime, view::displayParseTime, this::loadError ); } RulesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); }
RulesTabPresenter extends TabPresenter<RulesTabView> { @VisibleForTesting void loadParseTime() { taskRunner.computeOrFail( this::getParseTime, view::displayParseTime, this::loadError ); } RulesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load(); }
RulesTabPresenter extends TabPresenter<RulesTabView> { @VisibleForTesting void loadParseTime() { taskRunner.computeOrFail( this::getParseTime, view::displayParseTime, this::loadError ); } RulesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load();  }