NewUserAttributeEditor implements IsWidget,
                                               HasRestrictedValues<Collection<String>> { @PostConstruct public void init() { view.init(this); view.configure(attributeNameValidator, attributeValueValidator); } @Inject  NewUserAttributeEditor(final View view,
                                  final Event<CreateUserAttributeEvent> createUserAttributeEventEvent); @Override Widget asWidget(); @PostConstruct void init(); NewUserAttributeEditor showAddButton(); NewUserAttributeEditor showForm(); NewUserAttributeEditor clear(); @Override void setRestrictedValues(final Collection<String> value); public View view; }
@Test public void testInit() { presenter.init(); verify(view, times(1)).init(presenter); verify(view, times(1)).configure(any(Validator.class), any(Validator.class)); verify(view, times(0)).reset(); verify(view, times(0)).setShowAddButton(any(Boolean.class)); verify(view, times(0)).setShowForm(any(Boolean.class)); verify(view, times(0)).createAttributeNameError(anyString(), anyString()); verify(view, times(0)).createAttributeValueError(anyString(), anyString()); }