Methods Summary |
---|
protected java.lang.String | getConnectionURL()
if (connectionURL.equals("empty")) {
String tmp = System.getProperty("java.io.tmpdir");
File tmpDir = new File(tmp);
if (tmpDir.isDirectory()) {
try {
dbFile = File.createTempFile("JDBCDriverFunctionalTest",
".db", tmpDir);
} catch (IOException e) {
System.err.println("error creating temporary DB file.");
}
dbFile.deleteOnExit();
} else {
System.err.println("java.io.tmpdir does not exist");
}
connectionURL = "jdbc:sqlite:/" + dbFile.getPath();
}
return connectionURL;
|
protected java.lang.String | getDriverClassName()
return "SQLite.JDBCDriver";
|
protected int | getTransactionIsolation()
return Connection.TRANSACTION_SERIALIZABLE;
|
public void | setUp()Sets up an unit test by loading the SQLite.JDBCDriver, getting two
connections and calling the setUp method of the super class.
// the Exception class needs to be fully
// qualified since there is an Exception
// class in the SQLite package.
super.setUp();
|
protected void | tearDown()Tears down an unit test by calling the tearDown method of the super class
and deleting the SQLite test db file.
super.tearDown();
dbFile.delete();
|