@Test public void getDefaultVisibilityForwardsCalls() throws ComponentLookupException { EntityPermissionsManager internal = this.mocker.getInstance(EntityPermissionsManager.class); when(internal.getDefaultVisibility()).thenReturn(this.publicVisibility); Visibility result = this.mocker.getComponentUnderTest().getDefaultVisibility(); Assert.assertSame(this.publicVisibility, result); }
@Override public Visibility getDefaultVisibility() { return this.internalService.getDefaultVisibility(); }
SecurePermissionsManager implements PermissionsManager { @Override public Visibility getDefaultVisibility() { return this.internalService.getDefaultVisibility(); } }
SecurePermissionsManager implements PermissionsManager { @Override public Visibility getDefaultVisibility() { return this.internalService.getDefaultVisibility(); }  }
SecurePermissionsManager implements PermissionsManager { @Override public Visibility getDefaultVisibility() { return this.internalService.getDefaultVisibility(); }  @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 Visibility getDefaultVisibility() { return this.internalService.getDefaultVisibility(); }  @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);  }