public abstract class TestBase
extends TestCase
| Modifier and Type | Field and Description |
|---|---|
(package private) java.sql.Connection |
con |
private static java.lang.String |
CONNECTION_PROPERTIES |
static java.util.Properties |
props |
| Constructor and Description |
|---|
TestBase(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
compareInputStreams(java.io.InputStream is1,
java.io.InputStream is2) |
void |
compareReaders(java.io.Reader r1,
java.io.Reader r2) |
protected void |
connect() |
private void |
disconnect() |
void |
dropDatabase(java.lang.String name) |
void |
dropFunction(java.lang.String name) |
void |
dropProcedure(java.lang.String name) |
void |
dropTable(java.lang.String name) |
void |
dropTrigger(java.lang.String name) |
void |
dropType(java.lang.String name) |
void |
dropView(java.lang.String name) |
void |
dump(java.sql.ResultSet rs) |
void |
dump(java.sql.ResultSet rs,
boolean silent) |
void |
dumpAll(java.sql.Statement statement)
Dump all results produced by the execution of a statement, including
update counts, resultsets and generated keys if the statement has been
executed using one of the
Statement#execute() that directs the
driver to return generated keys. |
void |
dumpKeys(java.sql.Statement statement) |
void |
dumpRow(java.sql.ResultSet rs) |
void |
dumpRow(java.sql.ResultSet rs,
boolean silent) |
java.sql.Connection |
getConnection() |
java.sql.Connection |
getConnection(java.util.Properties override) |
private static java.util.Properties |
loadProperties(java.lang.String fileName) |
void |
makeObjects(java.sql.Statement stmt,
int count) |
protected void |
makeTestTables(java.sql.Statement stmt) |
void |
setUp() |
void |
tearDown() |
private static final java.lang.String CONNECTION_PROPERTIES
public static final java.util.Properties props
java.sql.Connection con
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic java.sql.Connection getConnection()
throws java.lang.Exception
java.lang.Exceptionpublic java.sql.Connection getConnection(java.util.Properties override)
throws java.lang.Exception
java.lang.Exceptionprivate void disconnect()
throws java.lang.Exception
java.lang.Exceptionprotected void connect()
throws java.lang.Exception
java.lang.Exceptionpublic void dumpAll(java.sql.Statement statement)
throws java.sql.SQLException
Dump all results produced by the execution of a statement, including
update counts, resultsets and generated keys if the statement has been
executed using one of the Statement#execute() that directs the
driver to return generated keys.
statement - Statement object used for executionjava.sql.SQLExceptionpublic void dumpKeys(java.sql.Statement statement)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dump(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dump(java.sql.ResultSet rs,
boolean silent)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dumpRow(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dumpRow(java.sql.ResultSet rs,
boolean silent)
throws java.sql.SQLException
java.sql.SQLExceptionprivate static java.util.Properties loadProperties(java.lang.String fileName)
protected void makeTestTables(java.sql.Statement stmt)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void makeObjects(java.sql.Statement stmt,
int count)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void compareInputStreams(java.io.InputStream is1,
java.io.InputStream is2)
throws java.io.IOException
java.io.IOExceptionpublic void compareReaders(java.io.Reader r1,
java.io.Reader r2)
throws java.io.IOException
java.io.IOExceptionpublic void dropDatabase(java.lang.String name)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dropTable(java.lang.String name)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dropView(java.lang.String name)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dropTrigger(java.lang.String name)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dropFunction(java.lang.String name)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dropProcedure(java.lang.String name)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dropType(java.lang.String name)
throws java.lang.Exception
java.lang.ExceptionGenerated on June 8 2013