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.Exception
public void tearDown() throws java.lang.Exception
java.lang.Exception
public java.sql.Connection getConnection() throws java.lang.Exception
java.lang.Exception
public java.sql.Connection getConnection(java.util.Properties override) throws java.lang.Exception
java.lang.Exception
private void disconnect() throws java.lang.Exception
java.lang.Exception
protected void connect() throws java.lang.Exception
java.lang.Exception
public 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.SQLException
public void dumpKeys(java.sql.Statement statement) throws java.sql.SQLException
java.sql.SQLException
public void dump(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
public void dump(java.sql.ResultSet rs, boolean silent) throws java.sql.SQLException
java.sql.SQLException
public void dumpRow(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
public void dumpRow(java.sql.ResultSet rs, boolean silent) throws java.sql.SQLException
java.sql.SQLException
private static java.util.Properties loadProperties(java.lang.String fileName)
protected void makeTestTables(java.sql.Statement stmt) throws java.sql.SQLException
java.sql.SQLException
public void makeObjects(java.sql.Statement stmt, int count) throws java.sql.SQLException
java.sql.SQLException
public void compareInputStreams(java.io.InputStream is1, java.io.InputStream is2) throws java.io.IOException
java.io.IOException
public void compareReaders(java.io.Reader r1, java.io.Reader r2) throws java.io.IOException
java.io.IOException
public void dropDatabase(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public void dropTable(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public void dropView(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public void dropTrigger(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public void dropFunction(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public void dropProcedure(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public void dropType(java.lang.String name) throws java.lang.Exception
java.lang.Exception
Generated on June 8 2013