Package org.testng.reporters.util
Class StackTraceTools
- java.lang.Object
-
- org.testng.reporters.util.StackTraceTools
-
public final class StackTraceTools extends java.lang.Object
Functionality to allow tools to analyse and subdivide stack traces.- Since:
- 5.3
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StackTraceElement[]
getTestNGInfrastructure(java.lang.StackTraceElement[] stack, ITestNGMethod method)
static int
getTestRoot(java.lang.StackTraceElement[] stack, ITestNGMethod method)
-
-
-
Method Detail
-
getTestRoot
public static int getTestRoot(java.lang.StackTraceElement[] stack, ITestNGMethod method)
- Parameters:
stack
- The stack tracemethod
- The test method- Returns:
- topmost position of the test method in the stack, or top of stack if
method
is not in it.
-
getTestNGInfrastructure
public static java.lang.StackTraceElement[] getTestNGInfrastructure(java.lang.StackTraceElement[] stack, ITestNGMethod method)
- Parameters:
stack
- The stacktracemethod
- The test method- Returns:
- topmost position of the test method in the stack, or top of stack if
method
is not in it.
-
-