|
|||||||||
| 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.patterns.listdata.persist.db.ListDatabaseFactoryTest
org.opensubsystems.security.patterns.listdata.persist.db.SecureListDatabaseFactoryTest
org.opensubsystems.security.persist.db.RoleDatabaseFactoryTest1.RoleDatabaseFactoryTestInternal1
public static class RoleDatabaseFactoryTest1.RoleDatabaseFactoryTestInternal1
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.persist.DomainFactory |
m_domainFactory
Factory to manage domains. |
protected org.opensubsystems.security.persist.db.RoleDatabaseFactory |
m_roleFactory
Factory to manage roles. |
protected TestRoleDatabaseFactoryUtils |
m_roleFactoryUtils
Factory utilities to manage roles. |
protected org.opensubsystems.security.persist.db.RoleDatabaseSchema |
m_roleSchema
Schema for database dependent operations. |
protected org.opensubsystems.security.persist.db.UserDatabaseFactory |
m_userFactory
Factory to manage users. |
protected TestUserDatabaseFactoryUtils |
m_userFactoryUtils
Factory utilities to manage users. |
| Fields inherited from class org.opensubsystems.security.patterns.listdata.persist.db.SecureListDatabaseFactoryTest |
|---|
m_arrDomainIDs, m_bSecurityDataLoaded |
| Fields inherited from class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseFactoryTest |
|---|
DEFAULT_LOADTEST_LIST_SIZE, DEFAULT_LOADTEST_LOADTIME, DEFAULT_LOADTEST_PAGE_SIZE, m_listTestUtils, s_iLoadtestListSize, s_iLoadtestLoadTime, s_iLoadtestPageSize |
| 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 | |
|---|---|
RoleDatabaseFactoryTest1.RoleDatabaseFactoryTestInternal1(java.lang.String strTestName)
Constructor |
|
| Method Summary | |
|---|---|
void |
testGetActualCount()
test of getActualCount method |
void |
testGetAllForDomain()
test of getAllForDomain method |
void |
testGetAllForUser()
test of getAllForUser method |
void |
testGetAllRolesInDomain()
test of getAllRolesInDomain method |
void |
testGetById()
Test of getRole method by unique ID |
void |
testGetByIncorrectId()
Test of get method using incorrect ID |
void |
testGetList()
Test of get methods in factory |
void |
testGetPersonalById()
Test of getPersonalRole method by unique ID |
void |
testGetPersonalByIncorrectId()
Test of getPersonalRole method by incorrect ID |
void |
testGetRoleByNewId()
Test of getRole method by default NEW_ID |
void |
testIsAnyOfSpecifiedPersonalRoleNegative()
Test of isAnyOfSpecifiedPersonalRole method where roles are only non personal |
void |
testIsAnyOfSpecifiedPersonalRolePositive()
Test of isAnyOfSpecifiedPersonalRole method where one role is personal |
void |
testLoadRole()
Test of loadRole utility |
| Methods inherited from class org.opensubsystems.security.patterns.listdata.persist.db.SecureListDatabaseFactoryTest |
|---|
setUp, tearDown, testLoadPagesFromFirstToLastForMultipleDomains, testLoadPagesFromLastToFirstForMultipleDomains, testLoadPagesRandomForMultipleDomains |
| Methods inherited from class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseFactoryTest |
|---|
doLoadTestGet, doTestGet, doTestGetColumns, doTestLoadPagesFromFirstToLast, doTestLoadPagesFromLastToFirst, doTestLoadPagesRandom, testGet, testGetColumns, testGetColumnsUsingId, testLoadPagesFromFirstToLast, testLoadPagesFromLastToFirst, testLoadPagesFromLastToFirstMoreSortableColumns, testLoadPagesRandom |
| 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.persist.DomainFactory m_domainFactory
protected org.opensubsystems.security.persist.db.RoleDatabaseSchema m_roleSchema
protected org.opensubsystems.security.persist.db.RoleDatabaseFactory m_roleFactory
protected org.opensubsystems.security.persist.db.UserDatabaseFactory m_userFactory
protected TestRoleDatabaseFactoryUtils m_roleFactoryUtils
protected TestUserDatabaseFactoryUtils m_userFactoryUtils
| Constructor Detail |
|---|
public RoleDatabaseFactoryTest1.RoleDatabaseFactoryTestInternal1(java.lang.String strTestName)
throws java.lang.Exception
strTestName - - name of the test
java.lang.Exception - - an error has occured| Method Detail |
|---|
public void testGetById()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetPersonalById()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetByIncorrectId()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetPersonalByIncorrectId()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testIsAnyOfSpecifiedPersonalRoleNegative()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testIsAnyOfSpecifiedPersonalRolePositive()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetRoleByNewId()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testLoadRole()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
public void testGetList()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetActualCount()
throws java.lang.Exception
java.lang.Exception - - error during test
public void testGetAllForUser()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetAllForDomain()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetAllRolesInDomain()
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 | ||||||||