it.openutils.testing.junit
Class GenericsDbUnitTestCase<D>

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
                  extended by it.openutils.testing.junit.GenericsDbUnitTestCase<D>
Type Parameters:
D - Spring-managed bean under test. Warning, this base class expect that the name of the bean is the non-qualified lowercase class name of the object. For example the bean name for org.something.MyNiceComponent is expected to be myNiceComponent. The bean obtained from Spring is made available through the instance protected field.
All Implemented Interfaces:
junit.framework.Test

Deprecated. use AbstractDbUnitJunitSpringContextTests

@Deprecated
public class GenericsDbUnitTestCase<D>
extends DbUnitTestCase

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

Field Summary
protected  D instance
          Deprecated. Test instance.
 
Fields inherited from class it.openutils.testing.junit.DbUnitTestCase
truncateDataSet
 
Fields inherited from class it.openutils.testing.junit.SpringTestCase
ctx, log
 
Constructor Summary
GenericsDbUnitTestCase()
          Deprecated.  
 
Method Summary
protected  void setUp()
          Deprecated. Load the tested bean from Spring application context.
 
Methods inherited from class it.openutils.testing.junit.DbUnitTestCase
createConnection, getName, getSessionFactory, getTableFilter, mimicSessionFilter, tearDown
 
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

instance

protected D instance
Deprecated. 
Test instance.

Constructor Detail

GenericsDbUnitTestCase

public GenericsDbUnitTestCase()
Deprecated. 
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Deprecated. 
Load the tested bean from Spring application context.

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


Copyright © 2008 Openmind. All Rights Reserved.