org.apache.jetspeed.security.util.test
Class AbstractSecurityTestcase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.jetspeed.components.test.AbstractSpringTestCase
              extended by org.apache.jetspeed.components.util.DatasourceEnabledSpringTestCase
                  extended by org.apache.jetspeed.prefs.util.test.AbstractPrefsSupportedTestCase
                      extended by org.apache.jetspeed.security.util.test.AbstractSecurityTestcase
All Implemented Interfaces:
junit.framework.Test

public class AbstractSecurityTestcase
extends org.apache.jetspeed.prefs.util.test.AbstractPrefsSupportedTestCase

Version:
$Id: AbstractSecurityTestcase.java 516448 2007-03-09 16:25:47Z ate $
Author:
Scott T. Weaver , David Le Strat

Field Summary
protected  org.apache.jetspeed.security.spi.CredentialHandler ch
          SPI Default Credential Handler.
protected  org.apache.jetspeed.security.GroupManager gms
          The group manager.
protected  org.apache.jetspeed.security.spi.GroupSecurityHandler gsh
          SPI Default Group Security Handler.
protected  org.apache.jetspeed.security.PermissionManager pms
          The permission manager.
protected  org.apache.jetspeed.security.RoleManager rms
          The role manager.
protected  org.apache.jetspeed.security.spi.RoleSecurityHandler rsh
          SPI Default Role Security Handler.
protected  org.apache.jetspeed.security.spi.SecurityAccess securityAccess
          SPI Common Queries.
protected  org.apache.jetspeed.security.SecurityProvider securityProvider
          The security provider.
protected  org.apache.jetspeed.security.spi.SecurityMappingHandler smh
          SPI Default Security Mapping Handler.
protected  org.apache.jetspeed.security.UserManager ums
          The user manager.
protected  org.apache.jetspeed.security.spi.UserSecurityHandler ush
          SPI Default User Security Handler.
 
Fields inherited from class org.apache.jetspeed.prefs.util.test.AbstractPrefsSupportedTestCase
prefsProvider
 
Fields inherited from class org.apache.jetspeed.components.util.DatasourceEnabledSpringTestCase
jndiDS
 
Fields inherited from class org.apache.jetspeed.components.test.AbstractSpringTestCase
ctx
 
Constructor Summary
AbstractSecurityTestcase()
           
 
Method Summary
protected  String[] getConfigurations()
           
protected  Collection getPrincipals(Subject subject, Class claz)
          Returns subject's principals of type claz
protected  void setUp()
           
 
Methods inherited from class org.apache.jetspeed.prefs.util.test.AbstractPrefsSupportedTestCase
getBootConfigurations
 
Methods inherited from class org.apache.jetspeed.components.util.DatasourceEnabledSpringTestCase
tearDown
 
Methods inherited from class org.apache.jetspeed.components.test.AbstractSpringTestCase
getPostProcessProperties
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

securityAccess

protected org.apache.jetspeed.security.spi.SecurityAccess securityAccess
SPI Common Queries.


ch

protected org.apache.jetspeed.security.spi.CredentialHandler ch
SPI Default Credential Handler.


ush

protected org.apache.jetspeed.security.spi.UserSecurityHandler ush
SPI Default User Security Handler.


rsh

protected org.apache.jetspeed.security.spi.RoleSecurityHandler rsh
SPI Default Role Security Handler.


gsh

protected org.apache.jetspeed.security.spi.GroupSecurityHandler gsh
SPI Default Group Security Handler.


smh

protected org.apache.jetspeed.security.spi.SecurityMappingHandler smh
SPI Default Security Mapping Handler.


securityProvider

protected org.apache.jetspeed.security.SecurityProvider securityProvider
The security provider.


ums

protected org.apache.jetspeed.security.UserManager ums
The user manager.


gms

protected org.apache.jetspeed.security.GroupManager gms
The group manager.


rms

protected org.apache.jetspeed.security.RoleManager rms
The role manager.


pms

protected org.apache.jetspeed.security.PermissionManager pms
The permission manager.

Constructor Detail

AbstractSecurityTestcase

public AbstractSecurityTestcase()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class org.apache.jetspeed.prefs.util.test.AbstractPrefsSupportedTestCase
Throws:
Exception
See Also:
TestCase.setUp()

getPrincipals

protected Collection getPrincipals(Subject subject,
                                   Class claz)
Returns subject's principals of type claz

Parameters:
subject -
claz -
Returns:
Returns subject's principals of type claz

getConfigurations

protected String[] getConfigurations()
Overrides:
getConfigurations in class org.apache.jetspeed.prefs.util.test.AbstractPrefsSupportedTestCase


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.