@Test public void testGetInitializedDropdownElement() { final Command onValueChanged = mock(Command.class); final HTMLElement expectedElement = mock(HTMLElement.class); doReturn(onValueChanged).when(modal).getOnValueChanged(); when(dropdown.getElement()).thenReturn(expectedElement); final HTMLElement actualElement = modal.getInitializedDropdownElement(); verify(dropdown).initialize(); verify(dropdown).registerOnChangeHandler(onValueChanged); assertEquals(expectedElement, actualElement); }
HTMLElement getInitializedDropdownElement() { getDropdown().initialize(); getDropdown().registerOnChangeHandler(getOnValueChanged()); return getDropdown().getElement(); }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { HTMLElement getInitializedDropdownElement() { getDropdown().initialize(); getDropdown().registerOnChangeHandler(getOnValueChanged()); return getDropdown().getElement(); } }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { HTMLElement getInitializedDropdownElement() { getDropdown().initialize(); getDropdown().registerOnChangeHandler(getOnValueChanged()); return getDropdown().getElement(); } @Inject  IncludedModelModal(final View view,
                              final DMNAssetsDropdown dropdown,
                              final ImportRecordEngine recordEngine,
                              final DMNIncludeModelsClient client,
                              final Event<RefreshDataTypesListEvent> refreshDataTypesListEvent,
                              final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { HTMLElement getInitializedDropdownElement() { getDropdown().initialize(); getDropdown().registerOnChangeHandler(getOnValueChanged()); return getDropdown().getElement(); } @Inject  IncludedModelModal(final View view,
                              final DMNAssetsDropdown dropdown,
                              final ImportRecordEngine recordEngine,
                              final DMNIncludeModelsClient client,
                              final Event<RefreshDataTypesListEvent> refreshDataTypesListEvent,
                              final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); @PostConstruct void setup(); void init(final IncludedModelsPagePresenter grid); @Override void show(); void include(); @Override void hide(); }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { HTMLElement getInitializedDropdownElement() { getDropdown().initialize(); getDropdown().registerOnChangeHandler(getOnValueChanged()); return getDropdown().getElement(); } @Inject  IncludedModelModal(final View view,
                              final DMNAssetsDropdown dropdown,
                              final ImportRecordEngine recordEngine,
                              final DMNIncludeModelsClient client,
                              final Event<RefreshDataTypesListEvent> refreshDataTypesListEvent,
                              final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); @PostConstruct void setup(); void init(final IncludedModelsPagePresenter grid); @Override void show(); void include(); @Override void hide();  }