org.jete.model
Class MethodResultValidator
java.lang.Object
org.jete.model.MethodResultValidator
- All Implemented Interfaces:
- IgnorableValidatorError, Validator
- public class MethodResultValidator
- extends java.lang.Object
- implements Validator, IgnorableValidatorError
Use this validator to validate actions that have result objects. An action that uses this validator must be an
instance of a MethodResultAction, as this validator will retrieve the results via the getResult() method.
Functionality:
If the instantiated result is null, then the properties values must be null.
If properties values is not null, then each value is checked against the result object. The PropertyValue object
is used to retrieve the value from the result. This is a Spring class to leverage existing Spring functionality
for retrieving object values.
- Version:
- $Id: MethodResultValidator.html,v 1.3 2006/03/12 02:46:59 tdeast Exp $
- See Also:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodResultValidator
public MethodResultValidator()
validate
public void validate(TestAction action)
- Specified by:
validate
in interface Validator
getPropertyValues
public java.util.List getPropertyValues()
setPropertyValues
public void setPropertyValues(java.util.List propertyValues)
isIgnoreValidatorError
public boolean isIgnoreValidatorError()
- Specified by:
isIgnoreValidatorError
in interface IgnorableValidatorError
setIgnoreValidatorError
public void setIgnoreValidatorError(boolean ignoreValidatorError)