Class TestNgTestWrapper
- java.lang.Object
-
- com.testomatio.reporter.core.extractor.wrapper.TestNgTestWrapper
-
public class TestNgTestWrapper extends Object
Wrapper for TestNG tests supporting both regular and disabled test contexts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestNgTestWrapper.TestType
-
Constructor Summary
Constructors Constructor Description TestNgTestWrapper(Method method, Class<?> testClass)Creates wrapper for disabled test discovered via reflection.TestNgTestWrapper(org.testng.ITestResult testResult)Creates wrapper for regular executed test.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestNgTestWrapperforDisabledTest(Method method, Class<?> testClass)Factory method for disabled test.static TestNgTestWrapperforRegularTest(org.testng.ITestResult testResult)Factory method for regular test.MethodgetMethod()Class<?>getTestClass()org.testng.ITestResultgetTestResult()booleanisRegularTest()StringtoString()
-
-
-
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.
-
-