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().
|
run
basicRun, countTestCases, getTest, toString
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, format
private 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.SQLException
TestConfiguration.openDefaultConnection()
public void println(java.lang.String text)
text
- String to printprotected void tearDown() throws java.lang.Exception
tearDown
in class junit.extensions.TestSetup
java.lang.Exception
void clearConnection() throws java.sql.SQLException
tearDown()
.java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.