SettingsScenarioSimulationDropdown extends ScenarioSimulationDropdown { protected boolean isValuePresentInKieAssets(String value) { return kieAssets.stream().anyMatch(asset -> asset.getValue().equals(value)); } @Inject  SettingsScenarioSimulationDropdown(@Named(SettingsScenarioSimulationDropdownView.BEAN_NAME) SettingsScenarioSimulationDropdownView view,
                                              ScenarioSimulationAssetsDropdownProvider dataProvider); void loadAssets(String currentValue); void registerOnMissingValueHandler(final Command onMissingValueHandler); final static String BEAN_NAME; }
@Test public void isValuePresentInKieAssets_Present() { assertTrue(((SettingsScenarioSimulationDropdown) assetsDropdown).isValuePresentInKieAssets(DEFAULT_VALUE)); }
@Test public void isValuePresentInKieAssets_NotPresent() { assertFalse(((SettingsScenarioSimulationDropdown) assetsDropdown).isValuePresentInKieAssets("ANOTHER_VALUE")); }