org.apache.archiva.redback.tests
Class AbstractRbacManagerTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.archiva.redback.tests.AbstractRbacManagerTestCase
- All Implemented Interfaces:
- junit.framework.Test
@ContextConfiguration(locations={"classpath*:/META-INF/spring-context.xml","classpath*:/spring-context.xml"})
@DirtiesContext(classMode=AFTER_EACH_TEST_METHOD)
public abstract class AbstractRbacManagerTestCase- extends junit.framework.TestCase
AbstractRbacManagerTestCase
- Author:
- Joakim Erdfelt
| 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, failNotEquals, failNotSame, failSame, format |
eventTracker
protected RbacManagerEventTracker eventTracker
AbstractRbacManagerTestCase
public AbstractRbacManagerTestCase()
setRbacManager
public void setRbacManager(org.apache.archiva.redback.rbac.RBACManager store)
getRbacManager
public org.apache.archiva.redback.rbac.RBACManager getRbacManager()
setUp
public void setUp()
throws Exception
- Overrides:
setUp in class junit.framework.TestCase
- Throws:
Exception
tearDown
public void tearDown()
throws Exception
- Overrides:
tearDown in class junit.framework.TestCase
- Throws:
Exception
assertEventCount
public abstract void assertEventCount()
testStoreInitialization
public void testStoreInitialization()
throws Exception
- Throws:
Exception
testResources
public void testResources()
throws Exception
- Throws:
Exception
testAddGetPermission
public void testAddGetPermission()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testAddGetRole
public void testAddGetRole()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testAllowRoleWithoutPermissions
public void testAllowRoleWithoutPermissions()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testAddGetChildRole
public void testAddGetChildRole()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testAddGetChildRoleViaName
public void testAddGetChildRoleViaName()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testUserAssignmentAddRole
public void testUserAssignmentAddRole()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testUserAssignmentWithChildRoles
public void testUserAssignmentWithChildRoles()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testGetAssignedPermissionsNoChildRoles
public void testGetAssignedPermissionsNoChildRoles()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testGlobalResource
public void testGlobalResource()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testGlobalResourceOneLiner
public void testGlobalResourceOneLiner()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testUserAssignmentAddRemoveSecondRole
public void testUserAssignmentAddRemoveSecondRole()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testUserAssignmentMultipleRoles
public void testUserAssignmentMultipleRoles()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testUserAssignmentMultipleRolesWithChildRoles
public void testUserAssignmentMultipleRolesWithChildRoles()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testGetAssignedRoles
public void testGetAssignedRoles()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testGetAssignedPermissions
public void testGetAssignedPermissions()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
getChildRole
public org.apache.archiva.redback.rbac.Role getChildRole(org.apache.archiva.redback.rbac.RBACManager manager,
org.apache.archiva.redback.rbac.Role role,
String expectedChildRoleName,
int childRoleCount)
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testAddRemovePermanentRole
public void testAddRemovePermanentRole()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testGetRolesDeep
public void testGetRolesDeep()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testGetAssignedPermissionsDeep
public void testGetAssignedPermissionsDeep()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testLargeApplicationInit
public void testLargeApplicationInit()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testAddRemovePermanentPermission
public void testAddRemovePermanentPermission()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
testAddRemovePermanentOperation
public void testAddRemovePermanentOperation()
throws org.apache.archiva.redback.rbac.RbacManagerException
- Throws:
org.apache.archiva.redback.rbac.RbacManagerException
afterSetup
protected void afterSetup()
- Allows subclasses to hook code after a test case has finished it's setup
Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved.