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