public class JdbcDatabaseTester extends AbstractDatabaseTester
| Constructor and Description |
|---|
JdbcDatabaseTester(java.lang.String driverClass,
java.lang.String connectionUrl)
Creates a new JdbcDatabaseTester with the specified properties.
Username and Password are set to null. |
JdbcDatabaseTester(java.lang.String driverClass,
java.lang.String connectionUrl,
java.lang.String username,
java.lang.String password)
Creates a new JdbcDatabaseTester with the specified properties.
|
JdbcDatabaseTester(java.lang.String driverClass,
java.lang.String connectionUrl,
java.lang.String username,
java.lang.String password,
java.lang.String schema)
Creates a new JdbcDatabaseTester with the specified properties.
|
| Modifier and Type | Method and Description |
|---|---|
IDatabaseConnection |
getConnection()
Returns the test database connection.
|
java.lang.String |
toString() |
closeConnection, getDataSet, getSchema, getSetUpOperation, getTearDownOperation, onSetup, onTearDown, setDataSet, setOperationListener, setSchema, setSetUpOperation, setTearDownOperationassertNotNull, assertNotNull, assertNotNullNorEmpty, assertTrue, assertTrue, failpublic JdbcDatabaseTester(java.lang.String driverClass,
java.lang.String connectionUrl)
throws java.lang.ClassNotFoundException
driverClass - the classname of the JDBC driver to useconnectionUrl - the connection urljava.lang.ClassNotFoundException - If the given driverClass was not foundpublic JdbcDatabaseTester(java.lang.String driverClass,
java.lang.String connectionUrl,
java.lang.String username,
java.lang.String password)
throws java.lang.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 passwordjava.lang.ClassNotFoundException - If the given driverClass was not foundpublic JdbcDatabaseTester(java.lang.String driverClass,
java.lang.String connectionUrl,
java.lang.String username,
java.lang.String password,
java.lang.String schema)
throws java.lang.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 nulljava.lang.ClassNotFoundException - If the given driverClass was not foundpublic IDatabaseConnection getConnection() throws java.lang.Exception
IDatabaseTesterjava.lang.Exceptionpublic java.lang.String toString()
toString in class AbstractDatabaseTesterCopyright © 2002-2018. All Rights Reserved.