|
||||||||||
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
org.dbunit.PropertiesBasedJdbcDatabaseTester
public class PropertiesBasedJdbcDatabaseTester
DatabaseTester that configures a DriverManager from environment properties.
This class defines a set of keys for system properties that need to be
present in the environment before using it. Example:
Field Summary | |
---|---|
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 Summary | |
---|---|
PropertiesBasedJdbcDatabaseTester()
A key for property that defines the connection url |
Method Summary | |
---|---|
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. |
Methods inherited from class org.dbunit.JdbcDatabaseTester |
---|
getConnection, setConnectionUrl, setDriverClass, setPassword, setUsername, toString |
Methods inherited from class org.dbunit.AbstractDatabaseTester |
---|
closeConnection, getDataSet, getSchema, getSetUpOperation, getTearDownOperation, onSetup, onTearDown, setDataSet, 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 |
Field Detail |
---|
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
Constructor Detail |
---|
public PropertiesBasedJdbcDatabaseTester()
Method Detail |
---|
protected void initialize() throws Exception
JdbcDatabaseTester
JdbcDatabaseTester.getConnection()
if the tester has not been
initialized yet.
initialize
in class JdbcDatabaseTester
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |