@Test public void resolveAccessLevelForwardsCalls() throws ComponentLookupException { EntityPermissionsManager internal = this.mocker.getInstance(EntityPermissionsManager.class, "secure"); when(internal.resolveAccessLevel("edit")).thenReturn(this.edit); Assert.assertSame(this.edit, this.mocker.getComponentUnderTest().resolveAccessLevel("edit")); }
public AccessLevel resolveAccessLevel(String name) { return this.manager.resolveAccessLevel(name); }
EntityPermissionsManagerScriptService implements ScriptService { public AccessLevel resolveAccessLevel(String name) { return this.manager.resolveAccessLevel(name); } }
EntityPermissionsManagerScriptService implements ScriptService { public AccessLevel resolveAccessLevel(String name) { return this.manager.resolveAccessLevel(name); }  }
EntityPermissionsManagerScriptService implements ScriptService { public AccessLevel resolveAccessLevel(String name) { return this.manager.resolveAccessLevel(name); }  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 AccessLevel resolveAccessLevel(String name) { return this.manager.resolveAccessLevel(name); }  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);  }