it.openutils.testing.junit
Class DbUnitTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by it.openutils.testing.junit.SpringTestCase
              extended by it.openutils.testing.junit.DbUnitTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
GenericsDbUnitTestCase

Deprecated. use AbstractDbUnitJunitSpringContextTests

@Deprecated
public abstract class DbUnitTestCase
extends SpringTestCase

Base class for running DAO tests.

Version:
$Revision $ ($Author $)
Author:
fgiust

Field Summary
protected static org.dbunit.dataset.IDataSet truncateDataSet
          Deprecated.  
 
Fields inherited from class it.openutils.testing.junit.SpringTestCase
ctx, log
 
Constructor Summary
DbUnitTestCase()
          Deprecated.  
 
Method Summary
protected  org.dbunit.database.IDatabaseConnection createConnection()
          Deprecated.  
 java.lang.String getName()
          Deprecated. Returns the full test name.
protected  org.hibernate.SessionFactory getSessionFactory()
          Deprecated. return the current Hibernate SessionFactory
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 setUp()
          Deprecated. 
protected  void tearDown()
          Deprecated. 
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

truncateDataSet

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

DbUnitTestCase

public DbUnitTestCase()
Deprecated. 
Method Detail

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

setUp

protected void setUp()
              throws java.lang.Exception
Deprecated. 

Overrides:
setUp in class SpringTestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Deprecated. 

Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

getName

public java.lang.String getName()
Deprecated. 
Returns the full test name.

Overrides:
getName in class junit.framework.TestCase
See Also:
TestCase.getName()

createConnection

protected org.dbunit.database.IDatabaseConnection createConnection()
                                                            throws java.sql.SQLException
Deprecated. 
Returns:
The IDatabase connection to use to insert data
Throws:
java.sql.SQLException - Thrown on any database connection error

getSessionFactory

protected org.hibernate.SessionFactory getSessionFactory()
Deprecated. 
return the current Hibernate SessionFactory

Returns:
SessionFactory object


Copyright © 2008 Openmind. All Rights Reserved.