ValueBoxEditor implements IsWidget, LeafAttributeEditor<T> { @PostConstruct public void init() { view.init(this); } @Inject  ValueBoxEditor(final View<T> view,
                          final Event<org.dashbuilder.common.client.event.ValueChangeEvent<T>> valueChangeEvent); @PostConstruct void init(); void addHelpContent(final String title, final String content, final Placement placement); @Override void showErrors(List<EditorError> errors); @Override Widget asWidget(); @Override void setValue(T value); @Override T getValue(); public View<T> view; }
@Test public void testInit() throws Exception { presenter.init(); verify(view, times(1)).init(presenter); verify(view, times(0)).clearError(); verify(view, times(0)).showError(any(SafeHtml.class)); verify(view, times(0)).setValue(anyString()); }