@Test public void toStringTest() throws ComponentLookupException { Collaborator c = new DefaultCollaborator(COLLABORATOR, this.access, this.helper); Mockito.when(this.access.toString()).thenReturn("edit"); Assert.assertEquals("[xwiki:XWiki.hmccoy, edit]", c.toString()); }
@Override public String toString() { return "[" + getUser() + ", " + getAccessLevel() + "]"; }
DefaultCollaborator implements Collaborator { @Override public String toString() { return "[" + getUser() + ", " + getAccessLevel() + "]"; } }
DefaultCollaborator implements Collaborator { @Override public String toString() { return "[" + getUser() + ", " + getAccessLevel() + "]"; } DefaultCollaborator(EntityReference user, AccessLevel access, EntityAccessHelper helper); }
DefaultCollaborator implements Collaborator { @Override public String toString() { return "[" + getUser() + ", " + getAccessLevel() + "]"; } DefaultCollaborator(EntityReference user, AccessLevel access, EntityAccessHelper helper); @Override String getType(); @Override boolean isUser(); @Override boolean isGroup(); @Override EntityReference getUser(); @Override String getUsername(); @Override AccessLevel getAccessLevel(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
DefaultCollaborator implements Collaborator { @Override public String toString() { return "[" + getUser() + ", " + getAccessLevel() + "]"; } DefaultCollaborator(EntityReference user, AccessLevel access, EntityAccessHelper helper); @Override String getType(); @Override boolean isUser(); @Override boolean isGroup(); @Override EntityReference getUser(); @Override String getUsername(); @Override AccessLevel getAccessLevel(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }