HistoryPresenter implements HistoryPanel, RunnerWidget.ActionDelegate, HistoryView.ActionDelegate { @Override public void clear() { view.clear(); runnerWidgets.clear(); } @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 viewShouldBeCleared() { historyPresenter.clear(); verify(view).clear(); }