|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.TestSuite
org.opensubsystems.core.persist.db.DatabaseTestSuite
public class DatabaseTestSuite
This test suite which should be used to group tests accessing database. It provides functionality necessary to run database tests, mainly it points all tests in the suite to the correct database.
| Field Summary | |
|---|---|
protected java.lang.String |
m_strDataSourceName
Data source which will be used by all tests in this suite |
| Constructor Summary | |
|---|---|
DatabaseTestSuite(java.lang.String strName)
Run all tests from |
|
DatabaseTestSuite(java.lang.String strName,
java.lang.String strDataSourceName,
java.lang.String strDriverName,
java.lang.String strUrl)
Run all tests from |
|
DatabaseTestSuite(java.lang.String strName,
java.lang.String strDataSourceName,
java.lang.String strDriverName,
java.lang.String strUrl,
java.lang.String strUser,
java.lang.String strPassword)
Run all tests from |
|
| Method Summary | |
|---|---|
void |
runTest(junit.framework.Test testToRun,
junit.framework.TestResult result)
|
protected void |
setTestDataSource(junit.framework.Test testToSet)
Set datasource for all database tests in specified test or test suite |
| Methods inherited from class junit.framework.TestSuite |
|---|
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, setName, testAt, testCount, tests, toString, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String m_strDataSourceName
| Constructor Detail |
|---|
public DatabaseTestSuite(java.lang.String strName)
strName - - name of the test suite
public DatabaseTestSuite(java.lang.String strName,
java.lang.String strDataSourceName,
java.lang.String strDriverName,
java.lang.String strUrl)
throws org.opensubsystems.core.error.OSSException
strName - - name of the test suitestrDataSourceName - - data source which will be used by all tests in this suitestrDriverName - - driver name which will be used by by all tests in this suitestrUrl - - url this test connects to the database
org.opensubsystems.core.error.OSSException - - an error has occured
public DatabaseTestSuite(java.lang.String strName,
java.lang.String strDataSourceName,
java.lang.String strDriverName,
java.lang.String strUrl,
java.lang.String strUser,
java.lang.String strPassword)
throws org.opensubsystems.core.error.OSSException
strName - - name of the test suitestrDataSourceName - - data source which will be used by all tests in this suitestrDriverName - - driver name which will be used by by all tests in this suitestrUrl - - url this test connects to the databasestrUser - - user name to connects to the databasestrPassword - - password to connects to the database
org.opensubsystems.core.error.OSSException - - an error has occured| Method Detail |
|---|
public void runTest(junit.framework.Test testToRun,
junit.framework.TestResult result)
runTest in class junit.framework.TestSuite
protected void setTestDataSource(junit.framework.Test testToSet)
throws org.opensubsystems.core.error.OSSException
testToSet - - test or test suite to set the data source for
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 | ||||||||