org.jete.validator
Class ValidationAction

java.lang.Object
  extended byorg.jete.cases.ValidatedTestAction
      extended byorg.jete.validator.ValidationAction
All Implemented Interfaces:
MethodResultAction, TestAction

public class ValidationAction
extends ValidatedTestAction
implements MethodResultAction

This allows testers to simply configure a result object and validate it in line with any action.

This comes in handy when an existing service or object is already configured and in Spring, and the state of that service or object is valuable to the test in question.

For example, if a DAO factory method is used to create an entity via Spring's factory methods, the resulting object could be set as a result to this action, allowing a validator to confirm that that entity is properly created.

Version:
$Id: ValidationAction.html,v 1.3 2006/03/12 02:47:07 tdeast Exp $

Constructor Summary
ValidationAction()
           
 
Method Summary
protected  void doAction()
           
 java.lang.Object getResult()
           
 void setResult(java.lang.Object result)
           
 
Methods inherited from class org.jete.cases.ValidatedTestAction
getValidators, runAction, setValidators
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationAction

public ValidationAction()
Method Detail

doAction

protected void doAction()
                 throws ActionException
Specified by:
doAction in class ValidatedTestAction
Throws:
ActionException

setResult

public void setResult(java.lang.Object result)

getResult

public java.lang.Object getResult()
Specified by:
getResult in interface MethodResultAction