@Test public void listVisibilityOptionsForwardsCalls() throws ComponentLookupException { EntityPermissionsManager internal = this.mocker.getInstance(EntityPermissionsManager.class); List<Visibility> visibilities = new ArrayList<>(); when(internal.listVisibilityOptions()).thenReturn(visibilities); Collection<Visibility> returnedVisibilities = this.mocker.getComponentUnderTest().listVisibilityOptions(); Assert.assertSame(visibilities, returnedVisibilities); }
@Override public Collection<Visibility> listVisibilityOptions() { return this.internalService.listVisibilityOptions(); }
SecurePermissionsManager implements PermissionsManager { @Override public Collection<Visibility> listVisibilityOptions() { return this.internalService.listVisibilityOptions(); } }
SecurePermissionsManager implements PermissionsManager { @Override public Collection<Visibility> listVisibilityOptions() { return this.internalService.listVisibilityOptions(); }  }
SecurePermissionsManager implements PermissionsManager { @Override public Collection<Visibility> listVisibilityOptions() { return this.internalService.listVisibilityOptions(); }  @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<Visibility> listVisibilityOptions() { return this.internalService.listVisibilityOptions(); }  @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);  }