Top Description Constructors Methods
org.testng.reporters.util

public final Class StackTraceTools

extends Object
Class Inheritance
Imports
org.testng.ITestNGMethod

Functionality to allow tools to analyse and subdivide stack traces.
Author
Paul Mendelson
Since
5.3
Version
$Revision: 173 $

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static StackTraceElement[]

Returns:

topmost position of the test method in the stack, or top of stack if method is not in it.
getTestNGInfrastructure
(StackTraceElement[]
The stacktrace
stack
,
ITestNGMethod
The test method
method
)

public static int

Returns:

topmost position of the test method in the stack, or top of stack if method is not in it.
getTestRoot
(StackTraceElement[]
The stack trace
stack
,
ITestNGMethod
The test method
method
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StackTraceToolsback to summary
private StackTraceTools()

Method Detail

getTestNGInfrastructureback to summary
public static StackTraceElement[] getTestNGInfrastructure(StackTraceElement[] stack, ITestNGMethod method)
Parameters
stack:StackTraceElement[]

The stacktrace

method:ITestNGMethod

The test method

Returns:StackTraceElement[]

topmost position of the test method in the stack, or top of stack if method is not in it.

getTestRootback to summary
public static int getTestRoot(StackTraceElement[] stack, ITestNGMethod method)
Parameters
stack:StackTraceElement[]

The stack trace

method:ITestNGMethod

The test method

Returns:int

topmost position of the test method in the stack, or top of stack if method is not in it.