org.dbunit
Class JndiDatabaseTester
java.lang.Object
org.dbunit.AbstractDatabaseTester
org.dbunit.JndiDatabaseTester
- All Implemented Interfaces:
- IDatabaseTester
public class JndiDatabaseTester
- extends AbstractDatabaseTester
DatabaseTester that pulls a DataSource from a JNDI location.
- Author:
- Andres Almiray
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 |
JndiDatabaseTester
public JndiDatabaseTester(Properties environment,
String lookupName)
- Creates a JndiDatabaseTester with specific JNDI properties.
- Parameters:
environment
- A Properties object with JNDI propertieslookupName
- the name of the resource in the JNDI context
JndiDatabaseTester
public JndiDatabaseTester(String lookupName)
- Creates a JndiDatabaseTester with default JNDI properties.
- Parameters:
lookupName
- the name of the resource in the JNDI context
getConnection
public IDatabaseConnection getConnection()
throws Exception
- Description copied from interface:
IDatabaseTester
- Returns the test database connection.
- Throws:
Exception
Copyright © 2002-2011. All Rights Reserved.