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