@Test public void onDropdownChangeHandlerMethod() { JQuerySelectPickerTarget targetMock = mock(JQuerySelectPickerTarget.class); targetMock.value = DEFAULT_VALUE; JQuerySelectPickerEvent eventMock = mock(JQuerySelectPickerEvent.class); eventMock.target = targetMock; kieAssetsDropdownView.onDropdownChangeHandlerMethod(eventMock); verify(presenterMock, times(1)).onValueChanged(); }
protected void onDropdownChangeHandlerMethod(JQuerySelectPickerEvent event) { presenter.onValueChanged(); }
KieAssetsDropdownView implements KieAssetsDropdown.View { protected void onDropdownChangeHandlerMethod(JQuerySelectPickerEvent event) { presenter.onValueChanged(); } }
KieAssetsDropdownView implements KieAssetsDropdown.View { protected void onDropdownChangeHandlerMethod(JQuerySelectPickerEvent event) { presenter.onValueChanged(); } @Inject  KieAssetsDropdownView(final HTMLSelectElement nativeSelect,
                                 final HTMLOptionElement htmlOptionElement,
                                 final TranslationService translationService); }
KieAssetsDropdownView implements KieAssetsDropdown.View { protected void onDropdownChangeHandlerMethod(JQuerySelectPickerEvent event) { presenter.onValueChanged(); } @Inject  KieAssetsDropdownView(final HTMLSelectElement nativeSelect,
                                 final HTMLOptionElement htmlOptionElement,
                                 final TranslationService translationService); @Override void init(final KieAssetsDropdown presenter); @PostConstruct void init(); @Override void addValue(final KieAssetsDropdownItem entry); @Override void clear(); @Override void initialize(); @Override void refreshSelectPicker(); @Override String getValue(); }
KieAssetsDropdownView implements KieAssetsDropdown.View { protected void onDropdownChangeHandlerMethod(JQuerySelectPickerEvent event) { presenter.onValueChanged(); } @Inject  KieAssetsDropdownView(final HTMLSelectElement nativeSelect,
                                 final HTMLOptionElement htmlOptionElement,
                                 final TranslationService translationService); @Override void init(final KieAssetsDropdown presenter); @PostConstruct void init(); @Override void addValue(final KieAssetsDropdownItem entry); @Override void clear(); @Override void initialize(); @Override void refreshSelectPicker(); @Override String getValue(); static final String HIDDEN_CSS_CLASS; static final String SELECT_PICKER_SUBTEXT_ATTRIBUTE; }