AbstractScenarioSimulationDocksHandler extends AbstractWorkbenchDocksHandler { protected PlaceRequest getCurrentRightDockPlaceRequest(String identifier) { PlaceRequest toReturn = new DefaultPlaceRequest(identifier); toReturn.addParameter(SCESIMEDITOR_ID, String.valueOf(currentScesimEditorId)); return toReturn; }  @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 getCurrentRightDockPlaceRequest() { PlaceRequest placeRequest = abstractScenarioSimulationDocksHandlerSpy.getCurrentRightDockPlaceRequest("identifier"); assertNotNull(placeRequest); assertEquals("identifier", placeRequest.getIdentifier()); assertNotNull(placeRequest.getParameter(SCESIMEDITOR_ID, "")); }