public class PropertiesBasedJdbcDatabaseTester extends JdbcDatabaseTester
Modifier and Type | Field and Description |
---|---|
static String |
DBUNIT_CONNECTION_URL
A key for property that defines the connection url
|
static String |
DBUNIT_DRIVER_CLASS
A key for property that defines the driver classname
|
static String |
DBUNIT_PASSWORD
A key for property that defines the user's password
|
static String |
DBUNIT_SCHEMA
A key for property that defines the database schema
|
static String |
DBUNIT_USERNAME
A key for property that defines the username
|
Constructor and Description |
---|
PropertiesBasedJdbcDatabaseTester()
A key for property that defines the connection url
|
Modifier and Type | Method and Description |
---|---|
protected void |
initialize()
Verifies the configured properties and initializes the driver.
This method is called by JdbcDatabaseTester.getConnection() if the tester has not been
initialized yet. |
getConnection, setConnectionUrl, setDriverClass, setPassword, setUsername, toString
closeConnection, getDataSet, getSchema, getSetUpOperation, getTearDownOperation, onSetup, onTearDown, setDataSet, setSchema, setSetUpOperation, setTearDownOperation
assertNotNull, assertNotNull, assertNotNullNorEmpty, assertTrue, assertTrue, fail
public static final String DBUNIT_CONNECTION_URL
public static final String DBUNIT_DRIVER_CLASS
public static final String DBUNIT_PASSWORD
public static final String DBUNIT_USERNAME
public static final String DBUNIT_SCHEMA
public PropertiesBasedJdbcDatabaseTester()
protected void initialize() throws Exception
JdbcDatabaseTester
JdbcDatabaseTester.getConnection()
if the tester has not been
initialized yet.initialize
in class JdbcDatabaseTester
Exception
Copyright © 2002-2012. All Rights Reserved.