Package org.testng.reporters.util
Class StackTraceTools
java.lang.Object
org.testng.reporters.util.StackTraceTools
Functionality to allow tools to analyse and subdivide stack traces.
- Since:
- 5.3
- Version:
- $Revision: 173 $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StackTraceElement[]
getTestNGInstrastructure
(StackTraceElement[] stack, ITestNGMethod method) static int
getTestRoot
(StackTraceElement[] stack, ITestNGMethod method)
-
Constructor Details
-
StackTraceTools
private StackTraceTools()
-
-
Method Details
-
getTestRoot
- 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.
-
getTestNGInstrastructure
public static StackTraceElement[] getTestNGInstrastructure(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.
-