@Test public void loadTableTest() { @SuppressWarnings("unchecked") final List<PerClassStatistics> list = mock(List.class); when(model.getRulesByClass()).thenReturn(list); presenter.loadTable(); verify(model).getRulesByClass(); verify(view).displayTable(same(list)); }
@VisibleForTesting void loadTable() { taskRunner.compute( model::getRulesByClass, view::displayTable ); }
RulesTabPresenter extends TabPresenter<RulesTabView> { @VisibleForTesting void loadTable() { taskRunner.compute( model::getRulesByClass, view::displayTable ); } }
RulesTabPresenter extends TabPresenter<RulesTabView> { @VisibleForTesting void loadTable() { taskRunner.compute( model::getRulesByClass, view::displayTable ); } RulesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); }
RulesTabPresenter extends TabPresenter<RulesTabView> { @VisibleForTesting void loadTable() { taskRunner.compute( model::getRulesByClass, view::displayTable ); } RulesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load(); }
RulesTabPresenter extends TabPresenter<RulesTabView> { @VisibleForTesting void loadTable() { taskRunner.compute( model::getRulesByClass, view::displayTable ); } RulesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load();  }