Class TestFilterer

  • All Implemented Interfaces:
    org.testng.IMethodInterceptor, org.testng.ITestNGListener

    public class TestFilterer
    extends Object
    implements org.testng.IMethodInterceptor
    TestNG attempts to run default methods from inherited interfaces when there is class @Test annotation. Only methods returning void are treated as "tests". This filterer makes sure end user never sees this weird behaviour.
    • Constructor Detail

      • TestFilterer

        public TestFilterer()
    • Method Detail

      • intercept

        public List<org.testng.IMethodInstance> intercept​(List<org.testng.IMethodInstance> methods,
                                                          org.testng.ITestContext context)
        Specified by:
        intercept in interface org.testng.IMethodInterceptor