AbstractScenarioSimulationDocksHandler extends AbstractWorkbenchDocksHandler { public void resetDocks() { getSettingsPresenter().ifPresent(SubDockView.Presenter::reset); getCheatSheetPresenter().ifPresent(SubDockView.Presenter::reset); getTestToolsPresenter().ifPresent(SubDockView.Presenter::reset); }  @Override Collection<UberfireDock> provideDocks(final String perspectiveIdentifier); void addDocks(); void removeDocks(); void expandToolsDock(); abstract void expandTestResultsDock(); void resetDocks(); void setScesimEditorId(String scesimEditorId); Optional<CheatSheetView.Presenter> getCheatSheetPresenter(); Optional<TestToolsView.Presenter> getTestToolsPresenter(); Optional<SettingsView.Presenter> getSettingsPresenter(); static final String SCESIMEDITOR_ID; }
@Test public void resetDocks() { abstractScenarioSimulationDocksHandlerSpy.resetDocks(); verify(testToolsPresenterMock, times(1)).reset(); verify(settingsPresenterMock, times(1)).reset(); verify(cheatSheetPresenterMock, times(1)).reset(); }