@Test public void filterCollectionByVisibilityForwardsCalls() throws ComponentLookupException { EntityPermissionsManager internal = this.mocker.getInstance(EntityPermissionsManager.class); Collection<Patient> input = new ArrayList<>(); doReturn(input).when(internal).filterByVisibility(input, this.publicVisibility); Collection<Patient> result = this.mocker.getComponentUnderTest().filterByVisibility(input, this.publicVisibility); Mockito.verify(internal).filterByVisibility(input, this.publicVisibility); Assert.assertSame(input, result); }
@Override public Collection<Patient> filterByVisibility(Collection<Patient> patients, Visibility requiredVisibility) { return (Collection<Patient>) this.internalService.filterByVisibility(patients, requiredVisibility); }
SecurePermissionsManager implements PermissionsManager { @Override public Collection<Patient> filterByVisibility(Collection<Patient> patients, Visibility requiredVisibility) { return (Collection<Patient>) this.internalService.filterByVisibility(patients, requiredVisibility); } }
SecurePermissionsManager implements PermissionsManager { @Override public Collection<Patient> filterByVisibility(Collection<Patient> patients, Visibility requiredVisibility) { return (Collection<Patient>) this.internalService.filterByVisibility(patients, requiredVisibility); }  }
SecurePermissionsManager implements PermissionsManager { @Override public Collection<Patient> filterByVisibility(Collection<Patient> patients, Visibility requiredVisibility) { return (Collection<Patient>) this.internalService.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); @Override void fireRightsUpdateEvent(String patientId); }
SecurePermissionsManager implements PermissionsManager { @Override public Collection<Patient> filterByVisibility(Collection<Patient> patients, Visibility requiredVisibility) { return (Collection<Patient>) this.internalService.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); @Override void fireRightsUpdateEvent(String patientId);  }