| org.apache.derbyTesting.junit.BaseJDBCTestSetup
All known Subclasses: org.apache.derbyTesting.functionTests.tests.jdbc4.StatementTestSetup, org.apache.derbyTesting.functionTests.tests.jdbcapi.BLOBDataModelSetup, org.apache.derbyTesting.junit.DatabasePropertyTestSetup, org.apache.derbyTesting.junit.CleanDatabaseTestSetup, org.apache.derbyTesting.functionTests.tests.jdbcapi.SURDataModelSetup, org.apache.derbyTesting.functionTests.tests.jdbc4.BlobClobTestSetup, org.apache.derbyTesting.functionTests.tests.jdbc4.CallableStatementTestSetup,
BaseJDBCTestSetup | abstract public class BaseJDBCTestSetup extends TestSetup (Code) | | Base class for JDBC JUnit test decorators.
|
Method Summary | |
final public Connection | getConnection() Obtain the connection to the default database.
This class maintains a single connection returned
by this class, it is opened on the first call to
this method. | final public TestConfiguration | getTestConfiguration() Return the current configuration for the test. | public void | println(String text) Print debug string. | protected void | tearDown() Tear down this fixture, sub-classes should call
super.tearDown(). |
BaseJDBCTestSetup | public BaseJDBCTestSetup(Test test)(Code) | | |
getConnection | final public Connection getConnection() throws SQLException(Code) | | Obtain the connection to the default database.
This class maintains a single connection returned
by this class, it is opened on the first call to
this method. Subsequent calls will return the same
connection object unless it has been closed. In that
case a new connection object will be returned.
The tearDown method will close the connection if
it is open.
See Also: TestConfiguration.openDefaultConnection |
getTestConfiguration | final public TestConfiguration getTestConfiguration()(Code) | | Return the current configuration for the test.
|
println | public void println(String text)(Code) | | Print debug string.
Parameters: text - String to print |
tearDown | protected void tearDown() throws java.lang.Exception(Code) | | Tear down this fixture, sub-classes should call
super.tearDown(). This cleanups & closes the connection
if it is open.
|
|
|