org.apache.anteater.test.meta
Class ValueChecker
java.lang.Object
|
+--org.apache.anteater.test.meta.AbstractChecker
|
+--org.apache.anteater.test.meta.ExistenceChecker
|
+--org.apache.anteater.test.meta.ValueChecker
- All Implemented Interfaces:
- FeatureChecker
- public class ValueChecker
- extends ExistenceChecker
A FeatureChecker
that checks if a feature property has a certain value.
- Version:
- $Revision: 1.2 $ $Date: 2002/10/17 13:17:41 $
- Author:
- Jeff Turner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueChecker
public ValueChecker()
getCheckedFeatures
public String[] getCheckedFeatures()
- Description copied from interface:
FeatureChecker
- Gets an array of names of features that the implementing FeatureChecker
can process.
- Specified by:
getCheckedFeatures
in interface FeatureChecker
- Overrides:
getCheckedFeatures
in class ExistenceChecker
checkFeature
public String checkFeature(Feature f)
- Check if the
anteater.[feature.name]
property has value
[feature.value].
- Specified by:
checkFeature
in interface FeatureChecker
- Overrides:
checkFeature
in class ExistenceChecker
- Parameters:
f
- The feature we require.
- Returns:
- A String error message if the feature is missing, or
null
if the feature is present.
Ant Functional Tester -- see Project home page for details