@Test public void toStringTest() { DocumentReference a = new DocumentReference("xwiki", "Groups", "Group A"); Assert.assertTrue(new DefaultGroup(a).toString().contains("Group A")); }
@Override public String toString() { return "Group " + getReference().getName(); }
DefaultGroup implements Group { @Override public String toString() { return "Group " + getReference().getName(); } }
DefaultGroup implements Group { @Override public String toString() { return "Group " + getReference().getName(); } DefaultGroup(DocumentReference reference); }
DefaultGroup implements Group { @Override public String toString() { return "Group " + getReference().getName(); } DefaultGroup(DocumentReference reference); @Override DocumentReference getReference(); @Override String toString(); }
DefaultGroup implements Group { @Override public String toString() { return "Group " + getReference().getName(); } DefaultGroup(DocumentReference reference); @Override DocumentReference getReference(); @Override String toString();  }