|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbunit.assertion.SimpleAssert
org.dbunit.AbstractDatabaseTester
org.dbunit.JdbcDatabaseTester
public class JdbcDatabaseTester
DatabaseTester that uses JDBC's Driver Manager to create connections.
| Constructor Summary | |
|---|---|
JdbcDatabaseTester(String driverClass,
String connectionUrl)
Creates a new JdbcDatabaseTester with the specified properties. Username and Password are set to null. |
|
JdbcDatabaseTester(String driverClass,
String connectionUrl,
String username,
String password)
Creates a new JdbcDatabaseTester with the specified properties. |
|
JdbcDatabaseTester(String driverClass,
String connectionUrl,
String username,
String password,
String schema)
Creates a new JdbcDatabaseTester with the specified properties. |
|
| Method Summary | |
|---|---|
IDatabaseConnection |
getConnection()
Returns the test database connection. |
String |
toString()
|
| Methods inherited from class org.dbunit.AbstractDatabaseTester |
|---|
closeConnection, getDataSet, getSchema, getSetUpOperation, getTearDownOperation, onSetup, onTearDown, setDataSet, setOperationListener, setSchema, setSetUpOperation, setTearDownOperation |
| Methods inherited from class org.dbunit.assertion.SimpleAssert |
|---|
assertNotNull, assertNotNull, assertNotNullNorEmpty, assertTrue, assertTrue, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcDatabaseTester(String driverClass,
String connectionUrl)
throws ClassNotFoundException
driverClass - the classname of the JDBC driver to useconnectionUrl - the connection url
ClassNotFoundException - If the given driverClass was not found
public JdbcDatabaseTester(String driverClass,
String connectionUrl,
String username,
String password)
throws ClassNotFoundException
driverClass - the classname of the JDBC driver to useconnectionUrl - the connection urlusername - a username that can has access to the databasepassword - the user's password
ClassNotFoundException - If the given driverClass was not found
public JdbcDatabaseTester(String driverClass,
String connectionUrl,
String username,
String password,
String schema)
throws ClassNotFoundException
driverClass - the classname of the JDBC driver to useconnectionUrl - the connection urlusername - a username that can has access to the database - can be nullpassword - the user's password - can be nullschema - the database schema to be tested - can be null
ClassNotFoundException - If the given driverClass was not found| Method Detail |
|---|
public IDatabaseConnection getConnection()
throws Exception
IDatabaseTester
Exceptionpublic String toString()
toString in class AbstractDatabaseTester
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||