|
|||||||||
| 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
public abstract class SecureDatabaseTest
Base class for database factories that do not support list operations or for which list operations should be tested separately and which needs to have setup call context before they are called. This class allows to write tests for database factories which do not implement ListDatabaseFactory and still need to have secure context. It also allows to write test for factories, which do implement ListDatabaseFactory but we want to separately tests for list operations in test derived from SecureListDatabaseFactory and other nonlist operations in test derived from this class.
| Field Summary |
|---|
| 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 | |
|---|---|
SecureDatabaseTest(java.lang.String strTestName)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
protected void |
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 |
| Constructor Detail |
|---|
public SecureDatabaseTest(java.lang.String strTestName)
throws java.lang.Exception
strTestName - - name of the test
java.lang.Exception - - an error has occured| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class org.opensubsystems.core.persist.db.DatabaseTestjava.lang.Exception
protected void tearDown()
throws java.lang.Exception
tearDown in class org.opensubsystems.core.persist.db.DatabaseTestjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||