HistoryPresenter implements HistoryPanel, RunnerWidget.ActionDelegate, HistoryView.ActionDelegate { @Override public void setVisible(boolean visible) { view.setVisible(visible); } @Inject  HistoryPresenter(HistoryView view,
                            WidgetFactory widgetFactory,
                            SelectionManager selectionManager,
                            RunnerManagerView runnerManager,
                            ConsoleContainer consolePresenter,
                            TerminalContainer terminalContainer); @Override void addRunner(@NotNull Runner runner); @Override void update(@NotNull Runner runner); @Override void selectRunner(@NotNull Runner runner); @Override void clear(); @NotNull @Override IsWidget getView(); @Override void setVisible(boolean visible); @Override void go(@NotNull AcceptsOneWidget container); @Override boolean isRunnerExist(@NotNull Runner runner); @Override void removeRunnerWidget(@NotNull Runner runner); @Override void cleanInactiveRunners();  }
@Test public void shouldSetVisibleTrue() { historyPresenter.setVisible(true); verify(view).setVisible(true); }
@Test public void shouldSetVisibleFalse() { historyPresenter.setVisible(false); verify(view).setVisible(false); }