@Test public void loadPieCharTest() { @SuppressWarnings("unchecked") final Map<MatcherType, Integer> map = mock(Map.class); when(model.getMatchersByType()).thenReturn(map); presenter.loadPieChart(); verify(model).getMatchersByType(); verify(view).displayPieChart(same(map)); }
@VisibleForTesting void loadPieChart() { taskRunner.compute(model::getMatchersByType, view::displayPieChart); }
RulesTabPresenter extends TabPresenter<RulesTabView> { @VisibleForTesting void loadPieChart() { taskRunner.compute(model::getMatchersByType, view::displayPieChart); } }
RulesTabPresenter extends TabPresenter<RulesTabView> { @VisibleForTesting void loadPieChart() { taskRunner.compute(model::getMatchersByType, view::displayPieChart); } RulesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); }
RulesTabPresenter extends TabPresenter<RulesTabView> { @VisibleForTesting void loadPieChart() { taskRunner.compute(model::getMatchersByType, view::displayPieChart); } RulesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load(); }
RulesTabPresenter extends TabPresenter<RulesTabView> { @VisibleForTesting void loadPieChart() { taskRunner.compute(model::getMatchersByType, view::displayPieChart); } RulesTabPresenter(final GuiTaskRunner taskRunner,
        final MainWindowView mainView, final TraceDb traceDb); @Override CountDownLatch refresh(); @Override void load();  }