|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.dbunit.AbstractDatabaseTester |
|---|
AbstractDatabaseTester.AssertionFailedError |
| Field Summary | |
|---|---|
static java.lang.String |
DBUNIT_CONNECTION_URL
A key for property that defines the connection url |
static java.lang.String |
DBUNIT_DRIVER_CLASS
A key for property that defines the driver classname |
static java.lang.String |
DBUNIT_PASSWORD
A key for property that defines the user's password |
static java.lang.String |
DBUNIT_SCHEMA
A key for property that defines the database schema |
static java.lang.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 getConnection if the tester has not been
initialized yet. |
| Methods inherited from class org.dbunit.JdbcDatabaseTester |
|---|
getConnection, setConnectionUrl, setDriverClass, setPassword, setUsername |
| Methods inherited from class org.dbunit.AbstractDatabaseTester |
|---|
assertNotNullNorEmpty, assertTrue, closeConnection, getDataSet, getSchema, getSetUpOperation, getTearDownOperation, onSetup, onTearDown, setDataSet, setSchema, setSetUpOperation, setTearDownOperation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DBUNIT_CONNECTION_URL
public static final java.lang.String DBUNIT_DRIVER_CLASS
public static final java.lang.String DBUNIT_PASSWORD
public static final java.lang.String DBUNIT_USERNAME
public static final java.lang.String DBUNIT_SCHEMA
| Constructor Detail |
|---|
public PropertiesBasedJdbcDatabaseTester()
| Method Detail |
|---|
protected void initialize()
throws java.lang.Exception
JdbcDatabaseTestergetConnection if the tester has not been
initialized yet.
initialize in class JdbcDatabaseTesterjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||