net.sourceforge.sqlunit.handlers
Class SkipHandler

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

public class SkipHandler
extends java.lang.Object
implements IHandler

The SkipHandler class processes the contents of a Skip tag in the input SQLUnit XML file. It decides whether to skip the current test based on the content of value attribute (true/false) of the skip tag. If the content is true, the test is skipped and reported as skip for the reason given in the body of the skip tag; otherwise the test is executed.

Version:
$Revision: 1.3 $
Author:
Ivan Ivanov

Constructor Summary
SkipHandler()
           
 
Method Summary
 java.lang.Object process(org.jdom.Element elSkip)
          Returns a Boolean.TRUE or FALSE based on whether the value of the value attribute is set to "true" or "false".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkipHandler

public SkipHandler()
Method Detail

process

public java.lang.Object process(org.jdom.Element elSkip)
                         throws java.lang.Exception
Returns a Boolean.TRUE or FALSE based on whether the value of the value attribute is set to "true" or "false". If a reason is provided, then the reason is logged else a default message is provided.

Specified by:
process in interface IHandler
Parameters:
elSkip - the JDOM Element representing the skip tag.
Returns:
Boolean.TRUE or FALSE.
Throws:
java.lang.Exception - if there was a problem processing the tag.