@Test public void resolveAccessLevelWithNoAccess() throws ComponentLookupException { when(this.entityPermissionsManager.resolveAccessLevel(null)).thenReturn(null); when(this.entityPermissionsManager.resolveAccessLevel("")).thenReturn(null); when(this.entityPermissionsManager.resolveAccessLevel(" ")).thenReturn(null); Assert.assertNull(this.mocker.getComponentUnderTest().resolveAccessLevel(null)); Assert.assertNull(this.mocker.getComponentUnderTest().resolveAccessLevel("")); Assert.assertNull(this.mocker.getComponentUnderTest().resolveAccessLevel(" ")); }
@Override public AccessLevel resolveAccessLevel(String name) { return this.entityPermissionsManager.resolveAccessLevel(name); }
DefaultPermissionsManager implements PermissionsManager { @Override public AccessLevel resolveAccessLevel(String name) { return this.entityPermissionsManager.resolveAccessLevel(name); } }
DefaultPermissionsManager implements PermissionsManager { @Override public AccessLevel resolveAccessLevel(String name) { return this.entityPermissionsManager.resolveAccessLevel(name); }  }
DefaultPermissionsManager implements PermissionsManager { @Override public AccessLevel resolveAccessLevel(String name) { return this.entityPermissionsManager.resolveAccessLevel(name); }  @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 AccessLevel resolveAccessLevel(String name) { return this.entityPermissionsManager.resolveAccessLevel(name); }  @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);  }