| java.lang.Object org.dbunit.AbstractDatabaseTester org.dbunit.JdbcDatabaseTester
All known Subclasses: org.dbunit.PropertiesBasedJdbcDatabaseTester,
JdbcDatabaseTester | public class JdbcDatabaseTester extends AbstractDatabaseTester (Code) | | DatabaseTester that uses JDBC's Driver Manager to create connections.
author: Andres Almiray author: Felipe Leme |
JdbcDatabaseTester | public JdbcDatabaseTester(String driverClass, String connectionUrl)(Code) | | Creates a new JdbcDatabaseTester with the specified properties.
Username and Password are set to null.
Parameters: driverClass - the classname of the JDBC driver to use Parameters: connectionUrl - the connection url |
JdbcDatabaseTester | public JdbcDatabaseTester(String driverClass, String connectionUrl, String username, String password)(Code) | | Creates a new JdbcDatabaseTester with the specified properties.
Parameters: driverClass - the classname of the JDBC driver to use Parameters: connectionUrl - the connection url Parameters: username - a username that can has access to the database Parameters: password - the user's password |
initialize | protected void initialize() throws Exception(Code) | | Verifies the configured properties and initializes the driver.
This method is called by
getConnection if the tester has not been
initialized yet.
|
setConnectionUrl | protected void setConnectionUrl(String connectionUrl)(Code) | | Sets the value of the connection url.
|
setDriverClass | protected void setDriverClass(String driverClass)(Code) | | Sets the value of the JDBC driver classname.
|
setPassword | public void setPassword(String password)(Code) | | Sets the value of the user's password.
|
setUsername | public void setUsername(String username)(Code) | | Sets the value of the username from the connection.
|
|
|