@Test public void setRuleSettings() { settingsPresenterSpy.setRuleSettings(settingsSpy); verify(dmnSettingsStyleMock, times(1)).setDisplay(eq(Style.Display.NONE)); verify(ruleSettingsStyleMock, times(1)).setDisplay(eq(Style.Display.INLINE)); verify(dmoSessionMock, times(1)).setValue(eq(DMO_SESSION)); verify(ruleFlowGroupMock, times(1)).setValue(eq(RULE_FLOW_GROUP)); verify(statelessMock, times(1)).setChecked(eq(settingsSpy.isStateless())); }
protected void setRuleSettings(Settings settings) { view.getDmnSettings().getStyle().setDisplay(Style.Display.NONE); view.getRuleSettings().getStyle().setDisplay(Style.Display.INLINE); view.getDmoSession().setValue(Optional.ofNullable(settings.getDmoSession()).orElse("")); view.getRuleFlowGroup().setValue(Optional.ofNullable(settings.getRuleFlowGroup()).orElse("")); view.getStateless().setChecked(settings.isStateless()); }
SettingsPresenter extends AbstractSubDockPresenter<SettingsView> implements SettingsView.Presenter { protected void setRuleSettings(Settings settings) { view.getDmnSettings().getStyle().setDisplay(Style.Display.NONE); view.getRuleSettings().getStyle().setDisplay(Style.Display.INLINE); view.getDmoSession().setValue(Optional.ofNullable(settings.getDmoSession()).orElse("")); view.getRuleFlowGroup().setValue(Optional.ofNullable(settings.getRuleFlowGroup()).orElse("")); view.getStateless().setChecked(settings.isStateless()); } }
SettingsPresenter extends AbstractSubDockPresenter<SettingsView> implements SettingsView.Presenter { protected void setRuleSettings(Settings settings) { view.getDmnSettings().getStyle().setDisplay(Style.Display.NONE); view.getRuleSettings().getStyle().setDisplay(Style.Display.INLINE); view.getDmoSession().setValue(Optional.ofNullable(settings.getDmoSession()).orElse("")); view.getRuleFlowGroup().setValue(Optional.ofNullable(settings.getRuleFlowGroup()).orElse("")); view.getStateless().setChecked(settings.isStateless()); } SettingsPresenter(); @Inject  SettingsPresenter(@Named(SettingsScenarioSimulationDropdown.BEAN_NAME) SettingsScenarioSimulationDropdown settingsScenarioSimulationDropdown,
                             SettingsView view); }
SettingsPresenter extends AbstractSubDockPresenter<SettingsView> implements SettingsView.Presenter { protected void setRuleSettings(Settings settings) { view.getDmnSettings().getStyle().setDisplay(Style.Display.NONE); view.getRuleSettings().getStyle().setDisplay(Style.Display.INLINE); view.getDmoSession().setValue(Optional.ofNullable(settings.getDmoSession()).orElse("")); view.getRuleFlowGroup().setValue(Optional.ofNullable(settings.getRuleFlowGroup()).orElse("")); view.getStateless().setChecked(settings.isStateless()); } 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(); }
SettingsPresenter extends AbstractSubDockPresenter<SettingsView> implements SettingsView.Presenter { protected void setRuleSettings(Settings settings) { view.getDmnSettings().getStyle().setDisplay(Style.Display.NONE); view.getRuleSettings().getStyle().setDisplay(Style.Display.INLINE); view.getDmoSession().setValue(Optional.ofNullable(settings.getDmoSession()).orElse("")); view.getRuleFlowGroup().setValue(Optional.ofNullable(settings.getRuleFlowGroup()).orElse("")); view.getStateless().setChecked(settings.isStateless()); } 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; }