Package de.bmiag.tapir.variant.filter
Class FeatureBasedParameterFilter
- java.lang.Object
-
- de.bmiag.tapir.variant.filter.FeatureBasedParameterFilter
-
- All Implemented Interfaces:
ExecutionFilter
@Component("tapirFeatureBasedParameterFilter") public class FeatureBasedParameterFilter extends java.lang.Object implements ExecutionFilter
Execution filter which is aware of data objects which implementFeatureBased
. The filter invokesFeatureBased.getActivateByFeatureExpression()
and evaluates the returned expression. If the expression evaluates to true, the data object is processed otherwise it is skipped.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description FeatureBasedParameterFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
_evaluate(ActivatedFeatureExpression activatedFeatureExpression)
Deprecated.protected boolean
_evaluate(AllOfFeatureExpression allOfFeatureExpression)
Deprecated.protected boolean
_evaluate(AnyOfFeatureExpression anyOfFeatureExpression)
Deprecated.protected boolean
_evaluate(NotFeatureExpression notFeatureExpression)
Deprecated.protected boolean
evaluate(FeatureExpression activatedFeatureExpression)
boolean
shouldFilter(Parameterized parameterized)
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
-
shouldFilter
public boolean shouldFilter(Parameterized parameterized)
-
_evaluate
@Deprecated protected boolean _evaluate(ActivatedFeatureExpression activatedFeatureExpression)
Deprecated.
-
_evaluate
@Deprecated protected boolean _evaluate(NotFeatureExpression notFeatureExpression)
Deprecated.
-
_evaluate
@Deprecated protected boolean _evaluate(AnyOfFeatureExpression anyOfFeatureExpression)
Deprecated.
-
_evaluate
@Deprecated protected boolean _evaluate(AllOfFeatureExpression allOfFeatureExpression)
Deprecated.
-
evaluate
protected boolean evaluate(FeatureExpression activatedFeatureExpression)
-
-