@SuppressWarnings("AutoBoxing") @Test public void postTabsRefreshNotReadyTest() { final TraceDbLoadStatus status = mock(TraceDbLoadStatus.class); when(status.isReady()).thenReturn(false); when(traceDb.getLoadStatus()).thenReturn(status); presenter.postTabsRefresh(); verify(view, only()).enableTabRefresh(); }
@VisibleForTesting @OnUiThread void postTabsRefresh() { final TraceDbLoadStatus status = traceDb.getLoadStatus(); final Runnable runnable = status.isReady() ? view::hideLoadToolbar : view::enableTabRefresh; runnable.run(); }
TracePresenter extends BasePresenter<TraceView> { @VisibleForTesting @OnUiThread void postTabsRefresh() { final TraceDbLoadStatus status = traceDb.getLoadStatus(); final Runnable runnable = status.isReady() ? view::hideLoadToolbar : view::enableTabRefresh; runnable.run(); } }
TracePresenter extends BasePresenter<TraceView> { @VisibleForTesting @OnUiThread void postTabsRefresh() { final TraceDbLoadStatus status = traceDb.getLoadStatus(); final Runnable runnable = status.isReady() ? view::hideLoadToolbar : view::enableTabRefresh; runnable.run(); } TracePresenter(final MainWindowView mainView,
        final GuiTaskRunner taskRunner, final TraceDb traceDb); }
TracePresenter extends BasePresenter<TraceView> { @VisibleForTesting @OnUiThread void postTabsRefresh() { final TraceDbLoadStatus status = traceDb.getLoadStatus(); final Runnable runnable = status.isReady() ? view::hideLoadToolbar : view::enableTabRefresh; runnable.run(); } TracePresenter(final MainWindowView mainView,
        final GuiTaskRunner taskRunner, final TraceDb traceDb); @Override void load(); void loadRulesTab(); @OnUiThread @VisibleForTesting RulesTabPresenter createRulesTabPresenter(); void loadTreeDepthTab(); void handleTabsRefreshEvent(); void close(); @Override @Nonnull String toString(); }
TracePresenter extends BasePresenter<TraceView> { @VisibleForTesting @OnUiThread void postTabsRefresh() { final TraceDbLoadStatus status = traceDb.getLoadStatus(); final Runnable runnable = status.isReady() ? view::hideLoadToolbar : view::enableTabRefresh; runnable.run(); } TracePresenter(final MainWindowView mainView,
        final GuiTaskRunner taskRunner, final TraceDb traceDb); @Override void load(); void loadRulesTab(); @OnUiThread @VisibleForTesting RulesTabPresenter createRulesTabPresenter(); void loadTreeDepthTab(); void handleTabsRefreshEvent(); void close(); @Override @Nonnull String toString();  }