org.dbunit
Class JndiBasedDBTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.DatabaseTestCase
              extended by org.dbunit.DBTestCase
                  extended by org.dbunit.JndiBasedDBTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class JndiBasedDBTestCase
extends DBTestCase

TestCase that uses a JndiDatabaseTester.

Since:
2.2.0
Version:
$Revision: 766 $ $Date: 2008-08-01 13:05:20 +0200 (ven, 01 ago 2008) $
Author:
Andres Almiray (aalmiray@users.sourceforge.net), Last changed by: $Author: gommma $

Constructor Summary
JndiBasedDBTestCase()
           
JndiBasedDBTestCase(java.lang.String name)
           
 
Method Summary
protected  java.util.Properties getJNDIProperties()
          Returns the JNDI properties to use.
protected abstract  java.lang.String getLookupName()
          Returns the JNDI lookup name for the test DataSource.
protected  IDatabaseTester newDatabaseTester()
          Creates a new IDatabaseTester.
 
Methods inherited from class org.dbunit.DBTestCase
getConnection
 
Methods inherited from class org.dbunit.DatabaseTestCase
closeConnection, getDatabaseTester, getDataSet, getSetUpOperation, getTearDownOperation, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JndiBasedDBTestCase

public JndiBasedDBTestCase()

JndiBasedDBTestCase

public JndiBasedDBTestCase(java.lang.String name)
Method Detail

newDatabaseTester

protected IDatabaseTester newDatabaseTester()
Creates a new IDatabaseTester.
Default implementation returns a JndiDatabaseTester configured with the values returned from getJNDIProperties() and getLookupName().

Overrides:
newDatabaseTester in class DBTestCase

getLookupName

protected abstract java.lang.String getLookupName()
Returns the JNDI lookup name for the test DataSource.


getJNDIProperties

protected java.util.Properties getJNDIProperties()
Returns the JNDI properties to use.
Subclasses must override this method to provide customized JNDI properties. Default implementation returns an empty Properties object.



Copyright © 2002-2008. All Rights Reserved.