NewUserAttributeEditor implements IsWidget,
                                               HasRestrictedValues<Collection<String>> { @Override public void setRestrictedValues(final Collection<String> value) { this.restrictedAttributeNames = value; } @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 testSetRestrictedValues() { Collection<String> values = new ArrayList<String>(); presenter.setRestrictedValues(values); assertEquals(values, presenter.restrictedAttributeNames); }