Package org.dbunit

Class PropertiesBasedJdbcDatabaseTester

All Implemented Interfaces:
IDatabaseTester

public class PropertiesBasedJdbcDatabaseTester extends JdbcDatabaseTester
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: System.setProperty( PropertiesBasedJdbcDatabaseTester.DBUNIT_DRIVER_CLASS, "com.mycompany.myDriver" ); System.setProperty( PropertiesBasedJdbcDatabaseTester.DBUNIT_CONNECTION_URL, "jdbc:mydb://host/dbname" ); System.setProperty( PropertiesBasedJdbcDatabaseTester.DBUNIT_USERNAME, "myuser" ); System.setProperty( PropertiesBasedJdbcDatabaseTester.DBUNIT_PASSWORD, "mypasswd" ); System.setProperty( PropertiesBasedJdbcDatabaseTester.DBUNIT_SCHEMA, "myschema" );
Since:
2.2.0
Version:
$Revision$ $Date$
Author:
Andres Almiray(aalmiray@users.sourceforge.net), Felipe Leme (dbunit@felipeal.net), Last changed by: $Author$
  • Field Details

    • DBUNIT_CONNECTION_URL

      public static final String DBUNIT_CONNECTION_URL
      A key for property that defines the connection url
      See Also:
    • DBUNIT_DRIVER_CLASS

      public static final String DBUNIT_DRIVER_CLASS
      A key for property that defines the driver classname
      See Also:
    • DBUNIT_PASSWORD

      public static final String DBUNIT_PASSWORD
      A key for property that defines the user's password
      See Also:
    • DBUNIT_USERNAME

      public static final String DBUNIT_USERNAME
      A key for property that defines the username
      See Also:
    • DBUNIT_SCHEMA

      public static final String DBUNIT_SCHEMA
      A key for property that defines the database schema
      See Also:
  • Constructor Details