@Test public void toStringTest() throws ComponentLookupException { Owner o = new DefaultOwner(OWNER, this.helper); Assert.assertEquals("[xwiki:XWiki.hmccoy]", o.toString()); }
@Override public String toString() { return "[" + (this.user != null ? getUser() : "nobody") + "]"; }
DefaultOwner implements Owner { @Override public String toString() { return "[" + (this.user != null ? getUser() : "nobody") + "]"; } }
DefaultOwner implements Owner { @Override public String toString() { return "[" + (this.user != null ? getUser() : "nobody") + "]"; } DefaultOwner(EntityReference user, EntityAccessHelper helper); }
DefaultOwner implements Owner { @Override public String toString() { return "[" + (this.user != null ? getUser() : "nobody") + "]"; } DefaultOwner(EntityReference user, EntityAccessHelper helper); @Override String getType(); @Override boolean isUser(); @Override boolean isGroup(); @Override EntityReference getUser(); @Override String getUsername(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
DefaultOwner implements Owner { @Override public String toString() { return "[" + (this.user != null ? getUser() : "nobody") + "]"; } DefaultOwner(EntityReference user, EntityAccessHelper helper); @Override String getType(); @Override boolean isUser(); @Override boolean isGroup(); @Override EntityReference getUser(); @Override String getUsername(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }