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