@Test public void listVisibilityOptionsForwardsCalls() throws ComponentLookupException { EntityPermissionsManager internal = this.mocker.getInstance(EntityPermissionsManager.class, "secure"); List<Visibility> visibilities = new ArrayList<>(); when(internal.listVisibilityOptions()).thenReturn(visibilities); Collection<Visibility> returnedVisibilities = this.mocker.getComponentUnderTest().listVisibilityOptions(); Assert.assertSame(visibilities, returnedVisibilities); }
public Collection<Visibility> listVisibilityOptions() { return this.manager.listVisibilityOptions(); }
EntityPermissionsManagerScriptService implements ScriptService { public Collection<Visibility> listVisibilityOptions() { return this.manager.listVisibilityOptions(); } }
EntityPermissionsManagerScriptService implements ScriptService { public Collection<Visibility> listVisibilityOptions() { return this.manager.listVisibilityOptions(); }  }
EntityPermissionsManagerScriptService implements ScriptService { public Collection<Visibility> listVisibilityOptions() { return this.manager.listVisibilityOptions(); }  Collection<Visibility> listVisibilityOptions(); Collection<Visibility> listAllVisibilityOptions(); Visibility getDefaultVisibility(); Visibility resolveVisibility(String name); Collection<AccessLevel> listAccessLevels(); AccessLevel resolveAccessLevel(String name); EntityAccess getEntityAccess(PrimaryEntity entity); EntityAccess getEntityAccess(String entityId); void fireRightsUpdateEvent(String targetEntityId); }
EntityPermissionsManagerScriptService implements ScriptService { public Collection<Visibility> listVisibilityOptions() { return this.manager.listVisibilityOptions(); }  Collection<Visibility> listVisibilityOptions(); Collection<Visibility> listAllVisibilityOptions(); Visibility getDefaultVisibility(); Visibility resolveVisibility(String name); Collection<AccessLevel> listAccessLevels(); AccessLevel resolveAccessLevel(String name); EntityAccess getEntityAccess(PrimaryEntity entity); EntityAccess getEntityAccess(String entityId); void fireRightsUpdateEvent(String targetEntityId);  }