@Test public void testIsValidValuesWhenDropDownIsNotPresent() { when(view.getModelNameInput()).thenReturn("name"); when(dropdown.getValue()).thenReturn(Optional.empty()); assertFalse(modal.isValidValues()); }
boolean isValidValues() { return !isEmpty(getView().getModelNameInput()) && getDropdown().getValue().isPresent(); }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { boolean isValidValues() { return !isEmpty(getView().getModelNameInput()) && getDropdown().getValue().isPresent(); } }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { boolean isValidValues() { return !isEmpty(getView().getModelNameInput()) && getDropdown().getValue().isPresent(); } @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> { boolean isValidValues() { return !isEmpty(getView().getModelNameInput()) && getDropdown().getValue().isPresent(); } @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> { boolean isValidValues() { return !isEmpty(getView().getModelNameInput()) && getDropdown().getValue().isPresent(); } @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();  }