Class ConditionalFilter
- java.lang.Object
-
- de.bmiag.tapir.conditional.filter.ConditionalFilter
-
- All Implemented Interfaces:
ExecutionFilter
@Component("tapirConditionalFilter") public class ConditionalFilter extends java.lang.Object implements ExecutionFilter
TheConditionalFilter
filters test suites, classes and steps from the tapir execution model based onConditional
annotations. The elements, whose conditions are tested negative, are filtered out.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description ConditionalFilter()
-
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
-
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
-
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
-
-