SettingsPresenter extends AbstractSubDockPresenter<SettingsView> implements SettingsView.Presenter { protected void setDmnErrorPath() { view.getDmnFilePathErrorLabel().getStyle().setDisplay(Style.Display.INLINE); view.getDmnFilePathErrorLabel().setInnerText( ScenarioSimulationEditorConstants.INSTANCE.dmnPathErrorLabel(settings.getDmnFilePath())); } SettingsPresenter(); @Inject  SettingsPresenter(@Named(SettingsScenarioSimulationDropdown.BEAN_NAME) SettingsScenarioSimulationDropdown settingsScenarioSimulationDropdown,
                             SettingsView view); @PostConstruct void init(); @Override void setScenarioType(ScenarioSimulationModel.Type scenarioType, Settings settings, String fileName); @Override void reset(); @Override void setEventBus(EventBus eventBus); SettingsView getView(); @Override void syncDmoSession(); @Override void syncRuleFlowGroup(); @Override void syncStateless(); @Override void syncDmnFilePath(); @Override void syncSkipFromBuild(); static final int DEFAULT_PREFERRED_WIDHT; static final String IDENTIFIER; }
@Test public void setDmnErrorPath() { settingsPresenterSpy.setDmnErrorPath(); verify(dmnFilePathErrorLabelStyleMock, times(1)).setDisplay(eq(Style.Display.INLINE)); verify(dmnFilePathErrorLabelMock, times(1)).setInnerText( eq(ScenarioSimulationEditorConstants.INSTANCE.dmnPathErrorLabel(settingsSpy.getDmnFilePath()))); }