@Test public void testOnChange() { final AtomicInteger i = new AtomicInteger(0); doReturn("Test").when(kieSelectElement).getValue(); kieSelectElement.onChange = value -> { assertEquals("Test", value); i.incrementAndGet(); }; kieSelectElement.onChange(); assertEquals(1, i.get()); }
public void onChange() { this.onChange.accept(getValue()); }
KieSelectElement implements KieSelectElementBase,
                                         IsElement { public void onChange() { this.onChange.accept(getValue()); } }
KieSelectElement implements KieSelectElementBase,
                                         IsElement { public void onChange() { this.onChange.accept(getValue()); } @Inject  KieSelectElement(final View view,
                            final KieSelectOptionsListPresenter optionsListPresenter); }
KieSelectElement implements KieSelectElementBase,
                                         IsElement { public void onChange() { this.onChange.accept(getValue()); } @Inject  KieSelectElement(final View view,
                            final KieSelectOptionsListPresenter optionsListPresenter); @PostConstruct void init(); void setup(final List<KieSelectOption> options,
                      final String initialValue,
                      final Consumer<String> onChange); void clear(); void onChange(); void setValue(final String value); String getValue(); @Override HTMLElement getElement(); }
KieSelectElement implements KieSelectElementBase,
                                         IsElement { public void onChange() { this.onChange.accept(getValue()); } @Inject  KieSelectElement(final View view,
                            final KieSelectOptionsListPresenter optionsListPresenter); @PostConstruct void init(); void setup(final List<KieSelectOption> options,
                      final String initialValue,
                      final Consumer<String> onChange); void clear(); void onChange(); void setValue(final String value); String getValue(); @Override HTMLElement getElement();  }