@Test public void toStringTest() { Patient p = mock(Patient.class); PatientAccess pa = new DefaultPatientAccess(p, null, null, null); when(p.getDocumentReference()).thenReturn(new DocumentReference("xwiki", "data", "P123")); Assert.assertEquals("Access rules for xwiki:data.P123", pa.toString()); }
@Override public String toString() { return "Access rules for " + (this.patient != null ? this.patient.getDocumentReference() : "<unknown patient>"); }
DefaultPatientAccess extends DefaultEntityAccess implements PatientAccess { @Override public String toString() { return "Access rules for " + (this.patient != null ? this.patient.getDocumentReference() : "<unknown patient>"); } }
DefaultPatientAccess extends DefaultEntityAccess implements PatientAccess { @Override public String toString() { return "Access rules for " + (this.patient != null ? this.patient.getDocumentReference() : "<unknown patient>"); } DefaultPatientAccess(Patient patient, EntityAccessHelper helper, EntityAccessManager accessManager,
        EntityVisibilityManager visibilityManager); }
DefaultPatientAccess extends DefaultEntityAccess implements PatientAccess { @Override public String toString() { return "Access rules for " + (this.patient != null ? this.patient.getDocumentReference() : "<unknown patient>"); } DefaultPatientAccess(Patient patient, EntityAccessHelper helper, EntityAccessManager accessManager,
        EntityVisibilityManager visibilityManager); @Override Patient getPatient(); @Override String toString(); }
DefaultPatientAccess extends DefaultEntityAccess implements PatientAccess { @Override public String toString() { return "Access rules for " + (this.patient != null ? this.patient.getDocumentReference() : "<unknown patient>"); } DefaultPatientAccess(Patient patient, EntityAccessHelper helper, EntityAccessManager accessManager,
        EntityVisibilityManager visibilityManager); @Override Patient getPatient(); @Override String toString();  }