org.osesb.utilities.junit
Class DBUnitDataSetFileGenerator

java.lang.Object
  extended by org.osesb.utilities.junit.DBUnitDataSetFileGenerator

public class DBUnitDataSetFileGenerator
extends java.lang.Object

Utility for generating DbUnit dataset files from a database. DbUnit dataset files are used by the DbUnit API to setUp(), tearDown(), and assert results for tests that involve databases. Typically, a DbUnit dataset file is specified in the XML configuration file for descendants of OSESBDBUnitTestCase.

This utility loads a configuration that specifies:

Since:
Version .9

Field Summary
protected static org.apache.commons.logging.Log log
          The logging implementation for this class.
 
Constructor Summary
DBUnitDataSetFileGenerator()
           
 
Method Summary
static void main(java.lang.String[] args)
          Generates a DbUnit data set file from a database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
The logging implementation for this class.

Constructor Detail

DBUnitDataSetFileGenerator

public DBUnitDataSetFileGenerator()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Generates a DbUnit data set file from a database.

Parameters:
args - commandline arguments
Throws:
java.lang.Exception