Class ExecutionFilterManager


  • @Component("tapirExecutionFilterManager")
    public class ExecutionFilterManager
    extends java.lang.Object
    The ExecutionFilterManager asks each registered ExecutionFilter if a test suite, class or step should be filtered. If any execution filter answers true, the other execution filters are not asked anymore.
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>
    • Constructor Detail

      • ExecutionFilterManager

        public ExecutionFilterManager()
    • Method Detail

      • shouldFilterSuite

        public boolean shouldFilterSuite​(TestSuite testSuite,
                                         java.lang.Object testInstance)
        Asks the registered execution filters if the given testSuite should be filtered.
        Parameters:
        testSuite - the test suite which might be filtered
        testInstance - the test suite instance
        Returns:
        true, if any filter returns true, otherwise false
        Since:
        2.0.0
      • shouldFilterClass

        public boolean shouldFilterClass​(TestClass testClass,
                                         java.lang.Object testInstance)
        Asks the registered execution filters if the given testClass should be filtered.
        Parameters:
        testClass - the test class which might be filtered
        testInstance - the test class instance
        Returns:
        true, if any filter returns true, otherwise false
        Since:
        2.0.0
      • shouldFilterStep

        public boolean shouldFilterStep​(TestStep testStep,
                                        java.lang.Object testInstance)
        Asks the registered execution filters if the given testStep should be filtered.
        Parameters:
        testStep - the test step which might be filtered
        testInstance - the test class instance
        Returns:
        true, if any filter returns true, otherwise false
        Since:
        2.0.0