org.jete.cases
Class ValidatedTestAction

java.lang.Object
  extended byorg.jete.cases.ValidatedTestAction
All Implemented Interfaces:
TestAction
Direct Known Subclasses:
DBSetupAction, MethodInvocationAction, ValidationAction, WebSessionValidatedAction

public abstract class ValidatedTestAction
extends java.lang.Object
implements TestAction

Run the cases's doAction method, and perform the configured validators, submitting the action to the Validator validate() interface. Each configured validator is done in order.

Exceptions should be validated by a ThrowableValidator. This validator will expect an Exception class name and a message.

Validators should throw a JUnit AssertionFailedError when something is incorrect, allowing the ant junitreport mechanism to appropriately show a test failure instead of an error.

Version:
$Id: ValidatedTestAction.html,v 1.3 2006/03/12 02:46:52 tdeast Exp $

Constructor Summary
ValidatedTestAction()
           
 
Method Summary
protected abstract  void doAction()
           
 java.util.List getValidators()
           
 void runAction()
           
 void setValidators(java.util.List validators)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatedTestAction

public ValidatedTestAction()
Method Detail

doAction

protected abstract void doAction()
                          throws ActionException
Throws:
ActionException

runAction

public void runAction()
               throws ActionException
Specified by:
runAction in interface TestAction
Throws:
ActionException

getValidators

public java.util.List getValidators()

setValidators

public void setValidators(java.util.List validators)