net.sourceforge.sqlunit.handlers
Class PrepareHandler

java.lang.Object
  extended by net.sourceforge.sqlunit.handlers.PrepareHandler
All Implemented Interfaces:
IHandler

public class PrepareHandler
extends java.lang.Object
implements IHandler

The PrepareHandler class takes care of setting up data within a test block.

Version:
$Revision: 1.3 $
Author:
Andrey Grigoriev (agrigoriev@users.sourceforge.net)

Constructor Summary
PrepareHandler()
           
 
Method Summary
 java.lang.Object process(org.jdom.Element elPrepare)
          Processes the prepare tag and carries out the sql statements specified inside the tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrepareHandler

public PrepareHandler()
Method Detail

process

public final java.lang.Object process(org.jdom.Element elPrepare)
                               throws java.lang.Exception
Processes the prepare tag and carries out the sql statements specified inside the tag. Prepare is an optional and used to prepare data inside each test block. It may be useful when a test run changes data created by setup or when each test run requires its own specific data

Specified by:
process in interface IHandler
Parameters:
elPrepare - the JDOM Element representing the prepare element.
Returns:
returns a null, but needed to satisfy the interface.
Throws:
java.lang.Exception - if there was a problem running the prepare.