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

public class GenericsDbUnitTestCase<D>
extends DbUnitTestCase

Version:
$Id: GenericsDbUnitTestCase.java 58 2006-10-07 20:47:56Z fgiust $
Author:
fgiust

Field Summary
protected  D instance
          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()
           
 
Method Summary
protected  void setUp()
          Load the tested bean from Spring application context.
 
Methods inherited from class it.openutils.testing.junit.DbUnitTestCase
getName, getSessionFactory, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

instance

protected D instance
Test instance.

Constructor Detail

GenericsDbUnitTestCase

public GenericsDbUnitTestCase()
Method Detail

setUp

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

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


Copyright © 2007 Openmind. All Rights Reserved.