|
|||||||||
| 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.DomainDatabaseFactoryTest.DomainDatabaseFactoryTestInternal
public static class DomainDatabaseFactoryTest.DomainDatabaseFactoryTestInternal
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.db.DomainDatabaseFactory |
m_domainFactory
Factory to manage domains. |
protected org.opensubsystems.security.persist.db.DomainDatabaseSchema |
m_domainSchema
Schema to manage domains. |
| 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 | |
|---|---|
DomainDatabaseFactoryTest.DomainDatabaseFactoryTestInternal(java.lang.String strTestName)
Constructor |
|
| Method Summary | |
|---|---|
void |
testCheckUniqueConstraint()
Test for checking if there will be thrown unique constraint exception |
void |
testCreate()
Test for creating of the domain |
void |
testCreateCollection()
Test for creating collection of domains |
void |
testDelete()
Test for deleting of the domain |
void |
testDeleteByIds()
Test for deleting domains knowing array of their IDs |
void |
testExistDomain()
Test for getting flag signaling existence of an domain within the database |
void |
testGetActualIds()
Test for getting actual domain IDs |
void |
testGetById()
Test for getting of the domain by id |
void |
testGetByIncorrectID()
Test of get method using incorrect ID |
void |
testGetByName()
Test for getting of the domain by name |
void |
testGetMultipleDomains()
Test for getting multiple domains by IDs |
void |
testSave()
Test for modifying of the domain |
void |
testUpdateEnable()
Test of updateEnable method |
| 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.db.DomainDatabaseSchema m_domainSchema
protected org.opensubsystems.security.persist.db.DomainDatabaseFactory m_domainFactory
| Constructor Detail |
|---|
public DomainDatabaseFactoryTest.DomainDatabaseFactoryTestInternal(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 - - error occured during getting of the domain
public void testGetByIncorrectID()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetByName()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetMultipleDomains()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testExistDomain()
throws java.lang.Exception
java.lang.Exception - - error occured during getting domain
public void testCreate()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testCreateCollection()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testCheckUniqueConstraint()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testSave()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testDelete()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetActualIds()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testDeleteByIds()
throws java.lang.Exception
java.lang.Exception - - error occured while deleting more domains
public void testUpdateEnable()
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 | ||||||||