@Test public void initialize() { scenarioSimulationCreationPopupViewSpy.initialize(); verify(okButtonMock, times(1)).setEnabled(eq(false)); verify(cancelButtonMock, times(1)).setText(eq(ScenarioSimulationEditorConstants.INSTANCE.cancelButton())); verify(dmnAssetsDivElementMock, times(1)).setAttribute(eq(ConstantHolder.HIDDEN), eq("")); verify(dmnAssetsDivElementMock, times(1)).appendChild(eq(dmnAssetsLabelElementMock)); verify(infoRuleIconDivElementMock, times(1)).setAttribute(eq("title"), eq(ScenarioSimulationEditorConstants.INSTANCE.currentlyNotAvailable())); verify(scenarioSimulationCreationPopupViewSpy, times(1)).initializeDropdown(); }
protected void initialize() { okButton.setEnabled(false); cancelButton.setText(ScenarioSimulationEditorConstants.INSTANCE.cancelButton()); dmnAssetsDivElement.setAttribute(ConstantHolder.HIDDEN, ""); sourceTypeLabelElement.textContent = ScenarioSimulationEditorConstants.INSTANCE.sourceType(); ruleButton.checked = false; dmnButton.checked = false; dmnAssetsLabelElement.textContent = ScenarioSimulationEditorConstants.INSTANCE.chooseValidDMNAsset(); dmnAssetsDivElement.appendChild(dmnAssetsLabelElement); infoRuleIconDivElement.setAttribute("title", ScenarioSimulationEditorConstants.INSTANCE.currentlyNotAvailable()); initializeDropdown(); }
ScenarioSimulationKogitoCreationPopupView extends AbstractScenarioPopupView implements ScenarioSimulationKogitoCreationPopup { protected void initialize() { okButton.setEnabled(false); cancelButton.setText(ScenarioSimulationEditorConstants.INSTANCE.cancelButton()); dmnAssetsDivElement.setAttribute(ConstantHolder.HIDDEN, ""); sourceTypeLabelElement.textContent = ScenarioSimulationEditorConstants.INSTANCE.sourceType(); ruleButton.checked = false; dmnButton.checked = false; dmnAssetsLabelElement.textContent = ScenarioSimulationEditorConstants.INSTANCE.chooseValidDMNAsset(); dmnAssetsDivElement.appendChild(dmnAssetsLabelElement); infoRuleIconDivElement.setAttribute("title", ScenarioSimulationEditorConstants.INSTANCE.currentlyNotAvailable()); initializeDropdown(); } }
ScenarioSimulationKogitoCreationPopupView extends AbstractScenarioPopupView implements ScenarioSimulationKogitoCreationPopup { protected void initialize() { okButton.setEnabled(false); cancelButton.setText(ScenarioSimulationEditorConstants.INSTANCE.cancelButton()); dmnAssetsDivElement.setAttribute(ConstantHolder.HIDDEN, ""); sourceTypeLabelElement.textContent = ScenarioSimulationEditorConstants.INSTANCE.sourceType(); ruleButton.checked = false; dmnButton.checked = false; dmnAssetsLabelElement.textContent = ScenarioSimulationEditorConstants.INSTANCE.chooseValidDMNAsset(); dmnAssetsDivElement.appendChild(dmnAssetsLabelElement); infoRuleIconDivElement.setAttribute("title", ScenarioSimulationEditorConstants.INSTANCE.currentlyNotAvailable()); initializeDropdown(); }  }
ScenarioSimulationKogitoCreationPopupView extends AbstractScenarioPopupView implements ScenarioSimulationKogitoCreationPopup { protected void initialize() { okButton.setEnabled(false); cancelButton.setText(ScenarioSimulationEditorConstants.INSTANCE.cancelButton()); dmnAssetsDivElement.setAttribute(ConstantHolder.HIDDEN, ""); sourceTypeLabelElement.textContent = ScenarioSimulationEditorConstants.INSTANCE.sourceType(); ruleButton.checked = false; dmnButton.checked = false; dmnAssetsLabelElement.textContent = ScenarioSimulationEditorConstants.INSTANCE.chooseValidDMNAsset(); dmnAssetsDivElement.appendChild(dmnAssetsLabelElement); infoRuleIconDivElement.setAttribute("title", ScenarioSimulationEditorConstants.INSTANCE.currentlyNotAvailable()); initializeDropdown(); }  @Override void show(String mainTitleText, Command okCommand); @Override ScenarioSimulationModel.Type getSelectedType(); @Override String getSelectedPath(); @EventHandler("dmn-button") void onDmnClick(final ClickEvent event); @EventHandler("rule-button") void onRuleClick(final ClickEvent event); }
ScenarioSimulationKogitoCreationPopupView extends AbstractScenarioPopupView implements ScenarioSimulationKogitoCreationPopup { protected void initialize() { okButton.setEnabled(false); cancelButton.setText(ScenarioSimulationEditorConstants.INSTANCE.cancelButton()); dmnAssetsDivElement.setAttribute(ConstantHolder.HIDDEN, ""); sourceTypeLabelElement.textContent = ScenarioSimulationEditorConstants.INSTANCE.sourceType(); ruleButton.checked = false; dmnButton.checked = false; dmnAssetsLabelElement.textContent = ScenarioSimulationEditorConstants.INSTANCE.chooseValidDMNAsset(); dmnAssetsDivElement.appendChild(dmnAssetsLabelElement); infoRuleIconDivElement.setAttribute("title", ScenarioSimulationEditorConstants.INSTANCE.currentlyNotAvailable()); initializeDropdown(); }  @Override void show(String mainTitleText, Command okCommand); @Override ScenarioSimulationModel.Type getSelectedType(); @Override String getSelectedPath(); @EventHandler("dmn-button") void onDmnClick(final ClickEvent event); @EventHandler("rule-button") void onRuleClick(final ClickEvent event);  }