it.openutils.testing.testng
Class DbUnitTestCase

java.lang.Object
  extended by it.openutils.testing.testng.SpringTestCase
      extended by it.openutils.testing.testng.DbUnitTestCase
Direct Known Subclasses:
GenericsDbUnitTestCase

Deprecated. use AbstractDbUnitTestNGSpringContextTests

@Deprecated
public class DbUnitTestCase
extends SpringTestCase

Version:
$Id: DbUnitTestCase.java 525 2008-01-12 10:46:12Z fgiust $
Author:
fgiust

Field Summary
protected static org.dbunit.dataset.IDataSet truncateDataSet
          Deprecated.  
 
Fields inherited from class it.openutils.testing.testng.SpringTestCase
ctx, DEFAULT_TEST_CONTEXT_FILE, log
 
Constructor Summary
DbUnitTestCase()
          Deprecated.  
 
Method Summary
protected  void exportDbToXls(java.lang.String fileName)
          Deprecated. Exports a database to an Excel file
protected  java.lang.String getSchema()
          Deprecated. Optional schema (needed for ORACLE).
protected  org.dbunit.dataset.filter.ITableFilter getTableFilter()
          Deprecated. Returns the table filter that will be used to exclude certain tables from sort/deletion.
protected  boolean mimicSessionFilter()
          Deprecated. Should use deferred close emulating the spring OpenSessionInView filter? Default is true
protected  void setUpDbUnit()
          Deprecated. Setup the Database before running the test method.
protected  void tearDownDbUnit()
          Deprecated. Cleans the database after we run the tests.
 
Methods inherited from class it.openutils.testing.testng.SpringTestCase
initAppContextBeanDefinitionReader, setUpSpring
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

truncateDataSet

protected static org.dbunit.dataset.IDataSet truncateDataSet
Deprecated. 
Constructor Detail

DbUnitTestCase

public DbUnitTestCase()
Deprecated. 
Method Detail

getSchema

protected java.lang.String getSchema()
Deprecated. 
Optional schema (needed for ORACLE).

Returns:
null

mimicSessionFilter

protected boolean mimicSessionFilter()
Deprecated. 
Should use deferred close emulating the spring OpenSessionInView filter? Default is true

Returns:
true if deferred close should be used

getTableFilter

protected org.dbunit.dataset.filter.ITableFilter getTableFilter()
Deprecated. 
Returns the table filter that will be used to exclude certain tables from sort/deletion. This may be overridden by subclasses, and is needed when tables have circular references (not handled by dbunit DatabaseSequenceFilter)

Returns:
an ITableFilter

setUpDbUnit

protected void setUpDbUnit()
                    throws java.lang.Exception
Deprecated. 
Setup the Database before running the test method.

Throws:
java.lang.Exception - Any exception.

exportDbToXls

protected void exportDbToXls(java.lang.String fileName)
                      throws java.io.IOException,
                             org.dbunit.dataset.DataSetException,
                             java.sql.SQLException
Deprecated. 
Exports a database to an Excel file

Parameters:
fileName - The file name we save the Excel dump to.
Throws:
java.io.IOException - An IO Exception.
org.dbunit.dataset.DataSetException - A dataset exception.
java.sql.SQLException - A SQL Exception.

tearDownDbUnit

protected void tearDownDbUnit()
                       throws java.lang.Exception
Deprecated. 
Cleans the database after we run the tests.

Throws:
java.lang.Exception - Any exception.


Copyright © 2008 Openmind. All Rights Reserved.