Class PrepareTestNGMethodInterceptor

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

    public class PrepareTestNGMethodInterceptor
    extends Object
    implements org.testng.IMethodInterceptor
    TestNG method interceptor duplicates method instances for each package scan test and test name in Citrus annotated test method. So TestNG test is executed multiple times respectively for each Citrus test constructed by method annotation.
    Since:
    1.3.1
    Author:
    Christoph Deppisch
    • Constructor Detail

      • PrepareTestNGMethodInterceptor

        public PrepareTestNGMethodInterceptor()
    • 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