Package de.bmiag.tapir.variant.filter
Class FeatureActivatedAnnotationFilter
- java.lang.Object
-
- de.bmiag.tapir.variant.filter.FeatureActivatedAnnotationFilter
-
- All Implemented Interfaces:
ExecutionFilter
@Component("tapirFeatureActivatedAnnotationFilter") public class FeatureActivatedAnnotationFilter extends java.lang.Object implements ExecutionFilter
Execution filter which is aware of test suites, classes and steps which are annotated byFeatureActivated
orFeatureNotActivated
. It evaluates the annotations according to their specifications and decides, if the annotated element is proceeded or skipped.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description FeatureActivatedAnnotationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldFilterClass(TestClass testClass, java.lang.Object testInstance)
Checks if the given testClass should be filtered.boolean
shouldFilterStep(TestStep testStep, java.lang.Object testInstance)
Checks if the given testStep should be filtered.boolean
shouldFilterSuite(TestSuite testSuite, java.lang.Object testInstance)
Checks if the given testSuite should be filtered.
-
-
-
Method Detail
-
shouldFilterClass
public boolean shouldFilterClass(TestClass testClass, java.lang.Object testInstance)
Description copied from interface:ExecutionFilter
Checks if the given testClass should be filtered.- Specified by:
shouldFilterClass
in interfaceExecutionFilter
- Parameters:
testClass
- the test class which might be filteredtestInstance
- the test class instance- Returns:
- true, if the test class should be excluded from the execution plan, otherwise false
-
shouldFilterStep
public boolean shouldFilterStep(TestStep testStep, java.lang.Object testInstance)
Description copied from interface:ExecutionFilter
Checks if the given testStep should be filtered.- Specified by:
shouldFilterStep
in interfaceExecutionFilter
- Parameters:
testStep
- the test step which might be filteredtestInstance
- the test class instance- Returns:
- true, if the test step should be excluded from the execution plan, otherwise false
-
shouldFilterSuite
public boolean shouldFilterSuite(TestSuite testSuite, java.lang.Object testInstance)
Description copied from interface:ExecutionFilter
Checks if the given testSuite should be filtered.- Specified by:
shouldFilterSuite
in interfaceExecutionFilter
- Parameters:
testSuite
- the test suite which might be filteredtestInstance
- the test suite instance- Returns:
- true, if the test suite should be excluded from the execution plan, otherwise false
-
-