|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--org.webdocwf.util.loader.test.LoaderTestCase
Basic class for using Loader as a test case (extends Junit Test class)
Constructor Summary | |
LoaderTestCase(java.lang.String name)
|
Method Summary | |
protected void |
closeConnection(java.sql.Connection connection)
Close the specified connection. |
protected abstract java.sql.Connection |
getConnection()
Returns the test database connection. |
protected java.lang.String |
getDatabaseName()
Returns the name of test database. |
protected abstract Loader |
getLoader()
Returns the test Loader class (loaderjob). |
protected DatabaseOperation[] |
getSetUpOperation()
Returns the database operations executed in test setup. |
protected DatabaseOperation[] |
getTearDownOperation()
Returns the database operation executed in test cleanup. |
protected void |
setUp()
|
protected void |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LoaderTestCase(java.lang.String name)
Method Detail |
protected abstract java.sql.Connection getConnection() throws java.lang.Exception
java.lang.Exception
protected java.lang.String getDatabaseName() throws java.lang.Exception
java.lang.Exception
protected abstract Loader getLoader() throws java.lang.Exception
java.lang.Exception
protected void closeConnection(java.sql.Connection connection) throws java.lang.Exception
java.lang.Exception
protected DatabaseOperation[] getSetUpOperation() throws java.lang.Exception
java.lang.Exception
protected DatabaseOperation[] getTearDownOperation() throws java.lang.Exception
java.lang.Exception
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |