@Test public void onDmnClick() { dmnButtonMock.checked = true; scenarioSimulationCreationPopupViewSpy.onDmnClick(clickEventMock); verify(dmnAssetsDivElementMock, times(1)).removeAttribute(eq(ConstantHolder.HIDDEN)); verify(scenarioSimulationCreationPopupViewSpy, times(1)).enableCreateButtonForDMNScenario(); assertEquals(ScenarioSimulationModel.Type.DMN, scenarioSimulationCreationPopupViewSpy.getSelectedType()); }
@EventHandler("dmn-button") public void onDmnClick(final ClickEvent event) { if (dmnButton.checked) { selectedType = ScenarioSimulationModel.Type.DMN; dmnAssetsDivElement.removeAttribute(ConstantHolder.HIDDEN); enableCreateButtonForDMNScenario(); } }
ScenarioSimulationKogitoCreationPopupView extends AbstractScenarioPopupView implements ScenarioSimulationKogitoCreationPopup { @EventHandler("dmn-button") public void onDmnClick(final ClickEvent event) { if (dmnButton.checked) { selectedType = ScenarioSimulationModel.Type.DMN; dmnAssetsDivElement.removeAttribute(ConstantHolder.HIDDEN); enableCreateButtonForDMNScenario(); } } }
ScenarioSimulationKogitoCreationPopupView extends AbstractScenarioPopupView implements ScenarioSimulationKogitoCreationPopup { @EventHandler("dmn-button") public void onDmnClick(final ClickEvent event) { if (dmnButton.checked) { selectedType = ScenarioSimulationModel.Type.DMN; dmnAssetsDivElement.removeAttribute(ConstantHolder.HIDDEN); enableCreateButtonForDMNScenario(); } }  }
ScenarioSimulationKogitoCreationPopupView extends AbstractScenarioPopupView implements ScenarioSimulationKogitoCreationPopup { @EventHandler("dmn-button") public void onDmnClick(final ClickEvent event) { if (dmnButton.checked) { selectedType = ScenarioSimulationModel.Type.DMN; dmnAssetsDivElement.removeAttribute(ConstantHolder.HIDDEN); enableCreateButtonForDMNScenario(); } }  @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 { @EventHandler("dmn-button") public void onDmnClick(final ClickEvent event) { if (dmnButton.checked) { selectedType = ScenarioSimulationModel.Type.DMN; dmnAssetsDivElement.removeAttribute(ConstantHolder.HIDDEN); enableCreateButtonForDMNScenario(); } }  @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);  }