Package org.dbunit

Class JndiDatabaseTester

All Implemented Interfaces:
IDatabaseTester

public class JndiDatabaseTester extends AbstractDatabaseTester
DatabaseTester that pulls a DataSource from a JNDI location.
Since:
2.2.0
Version:
$Revision$ $Date$
Author:
Andres Almiray (aalmiray@users.sourceforge.net), Last changed by: $Author$
  • Constructor Details

    • JndiDatabaseTester

      public JndiDatabaseTester(String lookupName)
      Creates a JndiDatabaseTester with default JNDI properties.
      Parameters:
      lookupName - the name of the resource in the JNDI context
    • JndiDatabaseTester

      public JndiDatabaseTester(Properties environment, String lookupName)
      Creates a JndiDatabaseTester with specific JNDI properties.
      Parameters:
      environment - A Properties object with JNDI properties. Can be null
      lookupName - the name of the resource in the JNDI context
    • JndiDatabaseTester

      public JndiDatabaseTester(Properties environment, String lookupName, String schema)
      Creates a JndiDatabaseTester with specific JNDI properties.
      Parameters:
      environment - A Properties object with JNDI properties. Can be null
      lookupName - the name of the resource in the JNDI context
      schema - The schema name to be used for new dbunit connections. Can be null
      Since:
      2.4.5
  • Method Details