org.dbunit
Class DataSourceBasedDBTestCase

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.DataSourceBasedDBTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class DataSourceBasedDBTestCase
extends DBTestCase

TestCase that uses a DataSourceDatabaseTester.

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), Felipe Leme (dbunit@felipeal.net), Last changed by: $Author: gommma $

Constructor Summary
DataSourceBasedDBTestCase()
           
DataSourceBasedDBTestCase(java.lang.String name)
           
 
Method Summary
protected abstract  javax.sql.DataSource getDataSource()
          Returns 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

DataSourceBasedDBTestCase

public DataSourceBasedDBTestCase()

DataSourceBasedDBTestCase

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

newDatabaseTester

protected IDatabaseTester newDatabaseTester()
Creates a new IDatabaseTester.
Default implementation returns a DataSourceDatabaseTester configured with the value returned from getDataSource().

Overrides:
newDatabaseTester in class DBTestCase

getDataSource

protected abstract javax.sql.DataSource getDataSource()
Returns the test DataSource.



Copyright © 2002-2008. All Rights Reserved.