Package org.testng.reporters.util
Class StackTraceTools
- java.lang.Object
-
- org.testng.reporters.util.StackTraceTools
-
public class StackTraceTools extends java.lang.Object
Functionality to allow tools to analyse and subdivide stack traces.- Since:
- 5.3
- Version:
- $Revision: 173 $
-
-
Constructor Summary
Constructors Constructor Description StackTraceTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StackTraceElement[]
getTestNGInstrastructure(java.lang.StackTraceElement[] stack, ITestNGMethod method)
Finds topmost position of the test method in the stack, or top of stack ifmethod
is not in it.static int
getTestRoot(java.lang.StackTraceElement[] stack, ITestNGMethod method)
Finds topmost position of the test method in the stack, or top of stack ifmethod
is not in it.
-
-
-
Method Detail
-
getTestRoot
public static int getTestRoot(java.lang.StackTraceElement[] stack, ITestNGMethod method)
Finds topmost position of the test method in the stack, or top of stack ifmethod
is not in it.
-
getTestNGInstrastructure
public static java.lang.StackTraceElement[] getTestNGInstrastructure(java.lang.StackTraceElement[] stack, ITestNGMethod method)
Finds topmost position of the test method in the stack, or top of stack ifmethod
is not in it.
-
-