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