public abstract class BaseJDBCTestSetup extends BaseTestSetup
| Modifier and Type | Field and Description |
|---|---|
private java.sql.Connection |
conn
Maintain a single connection to the default
database, opened at the first call to getConnection.
|
| Constructor and Description |
|---|
BaseJDBCTestSetup(junit.framework.Test test) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
clearConnection()
Close the default connection and null out the reference to it.
|
java.sql.Connection |
getConnection()
Obtain the connection to the default database.
|
TestConfiguration |
getTestConfiguration()
Return the current configuration for the test.
|
void |
println(java.lang.String text)
Print debug string.
|
protected void |
tearDown()
Tear down this fixture, sub-classes should call
super.tearDown().
|
runbasicRun, countTestCases, getTest, toStringassertEquals, 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, formatprivate java.sql.Connection conn
getConnection()public final TestConfiguration getTestConfiguration()
public final java.sql.Connection getConnection()
throws java.sql.SQLException
The tearDown method will close the connection if it is open.
java.sql.SQLExceptionTestConfiguration.openDefaultConnection()public void println(java.lang.String text)
text - String to printprotected void tearDown()
throws java.lang.Exception
tearDown in class junit.extensions.TestSetupjava.lang.Exceptionvoid clearConnection()
throws java.sql.SQLException
tearDown().java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.