|
|||||||||
| 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
public abstract class SecureListDatabaseFactoryTest
Base class for classes that test functionality of classes that implement ListDatabaseFactory interface and ListDatabaseFactoryImpl class and at the same time they need to have setup SecureCallContext to provide security related functionality. This class implements tests for all list related functionality provided by the mentioned interface. Once you derive your test from this class, just add test that tests the functionality you have implemented in your derived database factory class, the base class functionality will be tested automatically.
| Field Summary | |
|---|---|
protected int[] |
m_arrDomainIDs
List of all extra domain IDs |
protected boolean |
m_bSecurityDataLoaded
This flag tells us if security test data were loaded |
| 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 | |
|---|---|
SecureListDatabaseFactoryTest(java.lang.String strTestName,
SecureListDatabaseTestUtils listTestUtils)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testLoadPagesFromFirstToLastForMultipleDomains()
Test loading pages by browsing through the whole list page by page from the first to the last therefore retrieving every page of the list in sequential order. |
void |
testLoadPagesFromLastToFirstForMultipleDomains()
Test loading pages by browsing through the whole list page by page from the last to the first therefore retrieving every page of the list in sequential order and testing the retrieved data to make sure that we have retrieved the correct data. |
void |
testLoadPagesRandomForMultipleDomains()
Test loading pages from the list by randomly selecting a page and then retrieving it. |
| 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 boolean m_bSecurityDataLoaded
protected int[] m_arrDomainIDs
| Constructor Detail |
|---|
public SecureListDatabaseFactoryTest(java.lang.String strTestName,
SecureListDatabaseTestUtils listTestUtils)
throws java.lang.Exception
strTestName - - name of the testlistTestUtils - - test utils used for test
java.lang.Exception - - an error has occured| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseFactoryTestjava.lang.Exception
protected void tearDown()
throws java.lang.Exception
tearDown in class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseFactoryTestjava.lang.Exception
public void testLoadPagesFromFirstToLastForMultipleDomains()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testLoadPagesFromLastToFirstForMultipleDomains()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testLoadPagesRandomForMultipleDomains()
throws java.lang.Exception
java.lang.Exception - - an error has occured during test
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||