@Test public void testInit() { tested.init(); verify(view, times(1)).init(eq(tested)); }
@PostConstruct public void init() { view.init(this); this.valueProvider = Object::toString; this.textProvider = Object::toString; this.valueChangedCommand = () -> { }; }
SelectorImpl implements Selector<T> { @PostConstruct public void init() { view.init(this); this.valueProvider = Object::toString; this.textProvider = Object::toString; this.valueChangedCommand = () -> { }; } }
SelectorImpl implements Selector<T> { @PostConstruct public void init() { view.init(this); this.valueProvider = Object::toString; this.textProvider = Object::toString; this.valueChangedCommand = () -> { }; } @Inject  SelectorImpl(final SelectorView view); }
SelectorImpl implements Selector<T> { @PostConstruct public void init() { view.init(this); this.valueProvider = Object::toString; this.textProvider = Object::toString; this.valueChangedCommand = () -> { }; } @Inject  SelectorImpl(final SelectorView view); @PostConstruct void init(); SelectorImpl<T> setTextProvider(final Function<T, String> textProvider); SelectorImpl<T> setValueProvider(final Function<T, String> valueProvider); SelectorImpl<T> setItemProvider(final Function<String, T> itemProvider); SelectorImpl<T> setValueChangedCommand(final Command valueChangedCommand); @Override Selector<T> addItem(final T item); @Override Selector<T> setSelectedItem(final T item); @Override T getSelectedItem(); @Override Selector<T> clear(); @Override void onValueChanged(); @PreDestroy void destroy(); @Override SelectorView getView(); }
SelectorImpl implements Selector<T> { @PostConstruct public void init() { view.init(this); this.valueProvider = Object::toString; this.textProvider = Object::toString; this.valueChangedCommand = () -> { }; } @Inject  SelectorImpl(final SelectorView view); @PostConstruct void init(); SelectorImpl<T> setTextProvider(final Function<T, String> textProvider); SelectorImpl<T> setValueProvider(final Function<T, String> valueProvider); SelectorImpl<T> setItemProvider(final Function<String, T> itemProvider); SelectorImpl<T> setValueChangedCommand(final Command valueChangedCommand); @Override Selector<T> addItem(final T item); @Override Selector<T> setSelectedItem(final T item); @Override T getSelectedItem(); @Override Selector<T> clear(); @Override void onValueChanged(); @PreDestroy void destroy(); @Override SelectorView getView();  }