|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.extensions.TestDecorator
junit.extensions.TestSetup
org.apache.derbyTesting.junit.BaseTestSetup
org.apache.derbyTesting.junit.BaseJDBCTestSetup
public abstract class BaseJDBCTestSetup
Base class for JDBC JUnit test decorators.
| Field Summary | |
|---|---|
private java.sql.Connection |
conn
Maintain a single connection to the default database, opened at the first call to getConnection. |
| Fields inherited from class junit.extensions.TestDecorator |
|---|
fTest |
| Constructor Summary | |
|---|---|
BaseJDBCTestSetup(junit.framework.Test test)
|
|
| Method Summary | |
|---|---|
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(). |
| Methods inherited from class org.apache.derbyTesting.junit.BaseTestSetup |
|---|
run |
| Methods inherited from class junit.extensions.TestSetup |
|---|
setUp |
| Methods inherited from class junit.extensions.TestDecorator |
|---|
basicRun, countTestCases, getTest, 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 |
| Field Detail |
|---|
private java.sql.Connection conn
getConnection()| Constructor Detail |
|---|
public BaseJDBCTestSetup(junit.framework.Test test)
| Method Detail |
|---|
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 print
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.extensions.TestSetupjava.lang.Exception
|
Built on Thu 2009-11-26 18:42:53-0800, from revision 884739 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||