@Test public void loadRulesTabTest() { final RulesTabPresenter tabPresenter = mock(RulesTabPresenter.class); doReturn(tabPresenter).when(presenter).createRulesTabPresenter(); final InOrder inOrder = inOrder(tabPresenter, view); presenter.loadRulesTab(); inOrder.verify(view).loadRulesTab(tabPresenter); inOrder.verify(tabPresenter).load(); assertThat(presenter.tabs).contains(tabPresenter); }
public void loadRulesTab() { final RulesTabPresenter tabPresenter = createRulesTabPresenter(); view.loadRulesTab(tabPresenter); tabPresenter.load(); tabs.add(tabPresenter); }
TracePresenter extends BasePresenter<TraceView> { public void loadRulesTab() { final RulesTabPresenter tabPresenter = createRulesTabPresenter(); view.loadRulesTab(tabPresenter); tabPresenter.load(); tabs.add(tabPresenter); } }
TracePresenter extends BasePresenter<TraceView> { public void loadRulesTab() { final RulesTabPresenter tabPresenter = createRulesTabPresenter(); view.loadRulesTab(tabPresenter); tabPresenter.load(); tabs.add(tabPresenter); } TracePresenter(final MainWindowView mainView,
        final GuiTaskRunner taskRunner, final TraceDb traceDb); }
TracePresenter extends BasePresenter<TraceView> { public void loadRulesTab() { final RulesTabPresenter tabPresenter = createRulesTabPresenter(); view.loadRulesTab(tabPresenter); tabPresenter.load(); tabs.add(tabPresenter); } 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> { public void loadRulesTab() { final RulesTabPresenter tabPresenter = createRulesTabPresenter(); view.loadRulesTab(tabPresenter); tabPresenter.load(); tabs.add(tabPresenter); } 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();  }