@Component(value="tapirFeatureBasedParameterFilter") public class FeatureBasedParameterFilter extends Object implements ExecutionFilter
FeatureBased
. The filter invokes
FeatureBased.getActivateByFeatureExpression()
and evaluates the returned expression. If the expression evaluates to
true, the data object is processed otherwise it is skipped.Constructor and Description |
---|
FeatureBasedParameterFilter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_evaluate(ActivatedFeatureExpression activatedFeatureExpression) |
protected boolean |
_evaluate(AllOfFeatureExpression allOfFeatureExpression) |
protected boolean |
_evaluate(AnyOfFeatureExpression anyOfFeatureExpression) |
protected boolean |
_evaluate(NotFeatureExpression notFeatureExpression) |
protected boolean |
evaluate(FeatureExpression activatedFeatureExpression) |
boolean |
shouldFilter(Parameterized parameterized) |
boolean |
shouldFilterClass(TestClass testClass,
Object testInstance)
Checks if the given testClass should be filtered.
|
boolean |
shouldFilterStep(TestStep testStep,
Object testInstance)
Checks if the given testStep should be filtered.
|
boolean |
shouldFilterSuite(TestSuite testSuite,
Object testInstance)
Checks if the given testSuite should be filtered.
|
public boolean shouldFilterClass(TestClass testClass, Object testInstance)
ExecutionFilter
shouldFilterClass
in interface ExecutionFilter
testClass
- the test class which might be filteredtestInstance
- the test class instancepublic boolean shouldFilterStep(TestStep testStep, Object testInstance)
ExecutionFilter
shouldFilterStep
in interface ExecutionFilter
testStep
- the test step which might be filteredtestInstance
- the test class instancepublic boolean shouldFilterSuite(TestSuite testSuite, Object testInstance)
ExecutionFilter
shouldFilterSuite
in interface ExecutionFilter
testSuite
- the test suite which might be filteredtestInstance
- the test suite instancepublic boolean shouldFilter(Parameterized parameterized)
protected boolean _evaluate(ActivatedFeatureExpression activatedFeatureExpression)
protected boolean _evaluate(NotFeatureExpression notFeatureExpression)
protected boolean _evaluate(AnyOfFeatureExpression anyOfFeatureExpression)
protected boolean _evaluate(AllOfFeatureExpression allOfFeatureExpression)
protected boolean evaluate(FeatureExpression activatedFeatureExpression)
Copyright © 2018 b+m Informatik AG. All rights reserved.