@Test public void filterCollectionByVisibilityWithNullInputReturnsEmptyCollection() throws ComponentLookupException { Collection<Patient> result = this.mocker.getComponentUnderTest() .filterByVisibility((Collection<Patient>) null, new PrivateVisibility()); Assert.assertNotNull(result); Assert.assertTrue(result.isEmpty()); }
@Override public Collection<Patient> filterByVisibility(Collection<Patient> patients, Visibility requiredVisibility) { return (Collection<Patient>) this.entityPermissionsManager.filterByVisibility(patients, requiredVisibility); }
DefaultPermissionsManager implements PermissionsManager { @Override public Collection<Patient> filterByVisibility(Collection<Patient> patients, Visibility requiredVisibility) { return (Collection<Patient>) this.entityPermissionsManager.filterByVisibility(patients, requiredVisibility); } }
DefaultPermissionsManager implements PermissionsManager { @Override public Collection<Patient> filterByVisibility(Collection<Patient> patients, Visibility requiredVisibility) { return (Collection<Patient>) this.entityPermissionsManager.filterByVisibility(patients, requiredVisibility); }  }
DefaultPermissionsManager implements PermissionsManager { @Override public Collection<Patient> filterByVisibility(Collection<Patient> patients, Visibility requiredVisibility) { return (Collection<Patient>) this.entityPermissionsManager.filterByVisibility(patients, requiredVisibility); }  @Override Collection<Visibility> listVisibilityOptions(); @Override Collection<Visibility> listAllVisibilityOptions(); @Override Visibility getDefaultVisibility(); @Override Visibility resolveVisibility(String name); @Override Collection<AccessLevel> listAccessLevels(); @Override AccessLevel resolveAccessLevel(String name); @Override PatientAccess getPatientAccess(Patient targetPatient); @Override Collection<Patient> filterByVisibility(Collection<Patient> patients, Visibility requiredVisibility); @Override Iterator<Patient> filterByVisibility(Iterator<Patient> patients, Visibility requiredVisibility); void fireRightsUpdateEvent(String patientId); }
DefaultPermissionsManager implements PermissionsManager { @Override public Collection<Patient> filterByVisibility(Collection<Patient> patients, Visibility requiredVisibility) { return (Collection<Patient>) this.entityPermissionsManager.filterByVisibility(patients, requiredVisibility); }  @Override Collection<Visibility> listVisibilityOptions(); @Override Collection<Visibility> listAllVisibilityOptions(); @Override Visibility getDefaultVisibility(); @Override Visibility resolveVisibility(String name); @Override Collection<AccessLevel> listAccessLevels(); @Override AccessLevel resolveAccessLevel(String name); @Override PatientAccess getPatientAccess(Patient targetPatient); @Override Collection<Patient> filterByVisibility(Collection<Patient> patients, Visibility requiredVisibility); @Override Iterator<Patient> filterByVisibility(Iterator<Patient> patients, Visibility requiredVisibility); void fireRightsUpdateEvent(String patientId);  }