|
|||||||||
| 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.opensubsystems.core.persist.db.DatabaseTest
org.opensubsystems.security.persist.db.SecureDatabaseTest
org.opensubsystems.security.logic.AuthorizationControllerTest.AuthorizationControllerTestInternal
public static class AuthorizationControllerTest.AuthorizationControllerTestInternal
Internal class which can be included in other test suites directly without including the above suite. This allows us to group multiple tests together and the execute the DatabaseTestSetup only once
| Field Summary | |
|---|---|
protected org.opensubsystems.security.logic.AuthorizationController |
m_authorizeControl
Controller to perform authorization. |
protected org.opensubsystems.security.persist.db.AccessRightDatabaseFactory |
m_rightFactory
Factory to manage access rights. |
protected org.opensubsystems.security.persist.db.RoleDatabaseFactory |
m_roleFactory
Factory to manage roles. |
protected TestRoleDatabaseFactoryUtils |
m_roleFactoryUtils
Factory utilities to manage roles. |
| Fields inherited from class org.opensubsystems.core.persist.db.DatabaseTest |
|---|
DEFAULT_DB_PASSWORD, DEFAULT_DB_USER, DEFAULT_PROPERTY_FILE, m_connection, m_iRequestedConnectionCount, m_transaction |
| Constructor Summary | |
|---|---|
AuthorizationControllerTest.AuthorizationControllerTestInternal(java.lang.String strTestName)
Constructor |
|
| Method Summary | |
|---|---|
void |
testCheckAccessWithIntInt()
Test of checkAccess(int, int) method. |
void |
testCheckAccessWithIntIntInt()
Test of checkAccess(int, int, int) method. |
void |
testCheckAccessWithIntIntIntIntArray()
Test of checkAccess(int, int, int, int[][]) method. |
void |
testGetRightsForDataType()
Test of getRightsForDataType method. |
| Methods inherited from class org.opensubsystems.security.persist.db.SecureDatabaseTest |
|---|
setUp, tearDown |
| Methods inherited from class org.opensubsystems.core.persist.db.DatabaseTest |
|---|
addDataSource, addDataSource, getDataSourceName, setDataSourceName |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.opensubsystems.security.logic.AuthorizationController m_authorizeControl
protected org.opensubsystems.security.persist.db.RoleDatabaseFactory m_roleFactory
protected org.opensubsystems.security.persist.db.AccessRightDatabaseFactory m_rightFactory
protected TestRoleDatabaseFactoryUtils m_roleFactoryUtils
| Constructor Detail |
|---|
public AuthorizationControllerTest.AuthorizationControllerTestInternal(java.lang.String strTestName)
throws java.lang.Exception
strTestName - - name of the test
java.lang.Exception - - an error has occured| Method Detail |
|---|
public void testCheckAccessWithIntInt()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testCheckAccessWithIntIntInt()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testCheckAccessWithIntIntIntIntArray()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetRightsForDataType()
throws java.lang.Exception
java.lang.Exception - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||