Class TestNgTestWrapper


  • public class TestNgTestWrapper
    extends Object
    Wrapper for TestNG tests supporting both regular and disabled test contexts.
    • Constructor Detail

      • TestNgTestWrapper

        public TestNgTestWrapper​(org.testng.ITestResult testResult)
        Creates wrapper for regular executed test.
      • TestNgTestWrapper

        public TestNgTestWrapper​(Method method,
                                 Class<?> testClass)
        Creates wrapper for disabled test discovered via reflection.
    • Method Detail

      • getTestResult

        public org.testng.ITestResult getTestResult()
      • getMethod

        public Method getMethod()
      • getTestClass

        public Class<?> getTestClass()
      • isRegularTest

        public boolean isRegularTest()
      • forRegularTest

        public static TestNgTestWrapper forRegularTest​(org.testng.ITestResult testResult)
        Factory method for regular test.
      • forDisabledTest

        public static TestNgTestWrapper forDisabledTest​(Method method,
                                                        Class<?> testClass)
        Factory method for disabled test.