com.googlecode.lightest.core.filter
Class AnnotationFilter
java.lang.Object
com.googlecode.lightest.core.filter.ComparisonFilter
com.googlecode.lightest.core.filter.AnnotationFilter
- All Implemented Interfaces:
- ITestFilter, groovy.lang.GroovyObject
- Direct Known Subclasses:
- AnnotationContainsFilter, AnnotationEqualsFilter
public abstract class AnnotationFilter
- extends ComparisonFilter
- implements groovy.lang.GroovyObject
Filters based on annotations declared on the test method.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationFilter
public AnnotationFilter()
setField
public void setField(Object field)
- Overrides:
setField in class ComparisonFilter
getAttributeValue
public Object getAttributeValue(Object field,
Method m)
- The name is keyed off the UNQUALIFIED class name of an annotation type
present on the method. If the annotation is not present, this method
returns null. If the member of the annotation field is specified, that
member value (which must be a String) is used. Otherwise, value() (which
also must be a String) will be used.
This method may return a String or String[].
- Specified by:
getAttributeValue in class ComparisonFilter
- Parameters:
field - m -
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass in interface groovy.lang.GroovyObject- Overrides:
getMetaClass in class ComparisonFilter
setMetaClass
public void setMetaClass(groovy.lang.MetaClass metaClass)
- Specified by:
setMetaClass in interface groovy.lang.GroovyObject- Overrides:
setMetaClass in class ComparisonFilter
invokeMethod
public Object invokeMethod(String name,
Object args)
- Specified by:
invokeMethod in interface groovy.lang.GroovyObject- Overrides:
invokeMethod in class ComparisonFilter
getProperty
public Object getProperty(String name)
- Specified by:
getProperty in interface groovy.lang.GroovyObject- Overrides:
getProperty in class ComparisonFilter
setProperty
public void setProperty(String name,
Object value)
- Specified by:
setProperty in interface groovy.lang.GroovyObject- Overrides:
setProperty in class ComparisonFilter
Copyright © 2009. All Rights Reserved.