public class JndiDatabaseTester extends AbstractDatabaseTester
Constructor and Description |
---|
JndiDatabaseTester(Properties environment,
String lookupName)
Creates a JndiDatabaseTester with specific JNDI properties.
|
JndiDatabaseTester(String lookupName)
Creates a JndiDatabaseTester with default JNDI properties.
|
Modifier and Type | Method and Description |
---|---|
IDatabaseConnection |
getConnection()
Returns the test database connection.
|
closeConnection, getDataSet, getSchema, getSetUpOperation, getTearDownOperation, onSetup, onTearDown, setDataSet, setSchema, setSetUpOperation, setTearDownOperation, toString
assertNotNull, assertNotNull, assertNotNullNorEmpty, assertTrue, assertTrue, fail
public JndiDatabaseTester(Properties environment, String lookupName)
environment
- A Properties object with JNDI propertieslookupName
- the name of the resource in the JNDI contextpublic JndiDatabaseTester(String lookupName)
lookupName
- the name of the resource in the JNDI contextpublic IDatabaseConnection getConnection() throws Exception
IDatabaseTester
Exception
Copyright © 2002-2012. All Rights Reserved.