|
|||||||||
| 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.logic.ListControllerTest
public abstract class ListControllerTest
Generic list controller tests that should apply to any data objects that implement the list data patter and are be accesible by pages. When you implement new data object, which needs to be accessible by pages, derive new class from this class and just pass the list test utilities specific to your data object. Then using your new class you can execute all list tests for your new data object.
| Field Summary | |
|---|---|
protected ListDatabaseTestUtils |
m_listTestUtils
Utility class used to generate data for controller test. |
| 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 | |
|---|---|
ListControllerTest(java.lang.String strTestName,
ListDatabaseTestUtils listTestUtils)
Constructor. |
|
| Method Summary | |
|---|---|
protected org.opensubsystems.patterns.listdata.logic.ListController |
getListController()
Get list controller to use during this test. |
void |
testGetExactPage()
Test of method getExactPage |
void |
testGetExactPageKeepSelected()
Test of method getExactPage with keeping selected items |
void |
testGetNextPage()
Test of method getNextPage |
void |
testGetNextPageKeepSelected()
Test of method getNextPage with keeping selected items |
void |
testGetOrderAsc()
Test of method getOrder - ascending order |
void |
testGetOrderAscKeepSelected()
Test of method getOrder - ascending order keeping selected items |
void |
testGetOrderDesc()
Test of method getOrder - descending order |
void |
testGetOrderDescKeepSelected()
Test of method getOrder - descending order keeping selected items |
void |
testGetPrevPage()
Test of method getPrevPage |
void |
testGetSetFilter()
Test of method getSetFilter |
void |
testGetSetPageSize()
Test of method getSetPageSize |
void |
testGetSetPageSizeKeepSelected()
Test of method getSetPageSize keeping selected items |
void |
testGetShowList()
Test of method getShowList |
void |
testGetShowListKeepSelected()
Test of method getShowList keeping selected items |
void |
testGetShowListWithPresetSize()
Test of method getShowList |
void |
testGetShowListWithPresetSizeKeepSelected()
Test of method getShowList keeping selected items |
| Methods inherited from class org.opensubsystems.core.persist.db.DatabaseTest |
|---|
addDataSource, addDataSource, getDataSourceName, setDataSourceName, setUp, tearDown |
| 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 ListDatabaseTestUtils m_listTestUtils
| Constructor Detail |
|---|
public ListControllerTest(java.lang.String strTestName,
ListDatabaseTestUtils listTestUtils)
strTestName - - name of the testlistTestUtils - - utilities used during test| Method Detail |
|---|
public void testGetNextPage()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetNextPageKeepSelected()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetPrevPage()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetExactPage()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetExactPageKeepSelected()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetSetFilter()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetOrderDesc()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetOrderDescKeepSelected()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetOrderAsc()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetOrderAscKeepSelected()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetSetPageSize()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetSetPageSizeKeepSelected()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetShowList()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetShowListKeepSelected()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetShowListWithPresetSize()
throws java.lang.Exception
java.lang.Exception - - an error has occured
public void testGetShowListWithPresetSizeKeepSelected()
throws java.lang.Exception
java.lang.Exception - - an error has occured
protected org.opensubsystems.patterns.listdata.logic.ListController getListController()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||