@Test public void assetListConsumerMethod() { ((AbstractKieAssetsDropdown) getDropdown()).assetListConsumerMethod(assetList); assetList.forEach(asset -> verify(getDropdown(), times(1)).addValue(eq(asset))); verify(getViewMock(), times(1)).refreshSelectPicker(); verify(getViewMock(), times(1)).initialize(); }
protected void assetListConsumerMethod(final List<KieAssetsDropdownItem> assetList) { assetList.forEach(this::addValue); view.refreshSelectPicker(); view.initialize(); }
AbstractKieAssetsDropdown implements KieAssetsDropdown { protected void assetListConsumerMethod(final List<KieAssetsDropdownItem> assetList) { assetList.forEach(this::addValue); view.refreshSelectPicker(); view.initialize(); } }
AbstractKieAssetsDropdown implements KieAssetsDropdown { protected void assetListConsumerMethod(final List<KieAssetsDropdownItem> assetList) { assetList.forEach(this::addValue); view.refreshSelectPicker(); view.initialize(); } AbstractKieAssetsDropdown(final View view,
                                     final KieAssetsDropdownItemsProvider dataProvider); }
AbstractKieAssetsDropdown implements KieAssetsDropdown { protected void assetListConsumerMethod(final List<KieAssetsDropdownItem> assetList) { assetList.forEach(this::addValue); view.refreshSelectPicker(); view.initialize(); } AbstractKieAssetsDropdown(final View view,
                                     final KieAssetsDropdownItemsProvider dataProvider); @Override @PostConstruct void init(); @Override void registerOnChangeHandler(final Command onChangeHandler); @Override void loadAssets(); @Override void initialize(); @Override void clear(); @Override HTMLElement getElement(); @Override Optional<KieAssetsDropdownItem> getValue(); @Override void onValueChanged(); @Override void initializeDropdown(); @Override void addValue(final KieAssetsDropdownItem kieAsset); }
AbstractKieAssetsDropdown implements KieAssetsDropdown { protected void assetListConsumerMethod(final List<KieAssetsDropdownItem> assetList) { assetList.forEach(this::addValue); view.refreshSelectPicker(); view.initialize(); } AbstractKieAssetsDropdown(final View view,
                                     final KieAssetsDropdownItemsProvider dataProvider); @Override @PostConstruct void init(); @Override void registerOnChangeHandler(final Command onChangeHandler); @Override void loadAssets(); @Override void initialize(); @Override void clear(); @Override HTMLElement getElement(); @Override Optional<KieAssetsDropdownItem> getValue(); @Override void onValueChanged(); @Override void initializeDropdown(); @Override void addValue(final KieAssetsDropdownItem kieAsset);  }