|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.opencms.test.OpenCmsTestCase
org.opencms.security.TestOrganizationalUnits
public class TestOrganizationalUnits
Unit tests for operations with organizational units.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.opencms.test.OpenCmsTestCase |
|---|
OpenCmsTestCase.ConnectionData |
| Field Summary |
|---|
| Fields inherited from class org.opencms.test.OpenCmsTestCase |
|---|
ARTICLE_TYPEID, DB_MYSQL, DB_ORACLE, m_additionalConnection, m_configuration, m_currentResourceStrorage, m_defaultConnection, m_defaultTablespace, m_indexTablespace, m_resourceStorages, m_setupConnection, m_tempTablespace |
| Constructor Summary | |
|---|---|
TestOrganizationalUnits(String arg0)
Default JUnit constructor. |
|
| Method Summary | |
|---|---|
static List |
getOuRoles(String ouFqn)
Returns all organizational unit dependent roles. |
static junit.framework.Test |
suite()
Test suite for this test class. |
void |
testBadName()
Tests ou creation with illegal name. |
void |
testDeeperLevelOu()
Tests handling with a deeper level ou. |
void |
testDeeperLevelRoles()
Tests system roles in a deeper level ou. |
void |
testDelete()
Tests deleting organizational units. |
void |
testFirstLevelOu()
Tests handling with a first level ou. |
void |
testFirstLevelRoles()
Tests system roles in first level ou. |
void |
testMembership()
Tests user/group membership. |
void |
testOuNotFound()
Tests exception when ou not found. |
void |
testParallelRoles()
Tests roles on parallel ous. |
void |
testPersistence()
Tests organizational units persistence. |
void |
testPrincipalAssociations()
Tests handling with a deeper level ou. |
void |
testResourceAssociations()
Tests handling with resource associations. |
void |
testRoleCacheIssue()
Tests role cache issue after creating a new ou. |
void |
testRoleInheritance()
Tests the inheritance of role memberships. |
void |
testRootOu()
Tests the root ou automatic creation. |
void |
testRootRoles()
Tests system roles in root ou. |
void |
testUserLogin()
Tests login. |
void |
testWebuserOU()
Tests webuser ou behavior. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
| Constructor Detail |
|---|
public TestOrganizationalUnits(String arg0)
arg0 - JUnit parameters| Method Detail |
|---|
public static List getOuRoles(String ouFqn)
ouFqn - the organizational unit
public static junit.framework.Test suite()
public void testBadName()
throws Throwable
Throwable - if something goes wrong
public void testDeeperLevelOu()
throws Throwable
Throwable - if something goes wrong
public void testDeeperLevelRoles()
throws Throwable
Throwable - if something goes wrong
public void testDelete()
throws Throwable
Throwable - if something goes wrong
public void testFirstLevelOu()
throws Throwable
Throwable - if something goes wrong
public void testFirstLevelRoles()
throws Throwable
Throwable - if something goes wrong
public void testMembership()
throws Throwable
Throwable - if something goes wrong
public void testOuNotFound()
throws Throwable
Throwable - if something goes wrong
public void testParallelRoles()
throws Throwable
Throwable - if something goes wrong
public void testPersistence()
throws Throwable
Throwable - if something goes wrong
public void testPrincipalAssociations()
throws Throwable
Throwable - if something goes wrong
public void testResourceAssociations()
throws Throwable
Throwable - if something goes wrong
public void testRoleCacheIssue()
throws Throwable
Throwable - if something goes wrong
public void testRoleInheritance()
throws Throwable
Throwable - if something goes wrong
public void testRootOu()
throws Throwable
Throwable - if something goes wrong
public void testRootRoles()
throws Throwable
Throwable - if something goes wrong
public void testUserLogin()
throws Throwable
Throwable - if something goes wrong
public void testWebuserOU()
throws Throwable
Throwable - if something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||