LegacyReportingUtils
instead.@Deprecated
@API(status=DEPRECATED,
since="1.6")
public class LegacyReportingUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
LegacyReportingUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getClassName(TestPlan testPlan,
TestIdentifier testIdentifier)
Deprecated.
Get the class name for the supplied
TestIdentifier using the
supplied TestPlan . |
private static ClassSource |
getClassSource(TestIdentifier current)
Deprecated.
|
private static TestIdentifier |
getParent(TestPlan testPlan,
TestIdentifier testIdentifier)
Deprecated.
|
private static java.lang.String |
getParentLegacyReportingName(TestPlan testPlan,
TestIdentifier testIdentifier)
Deprecated.
|
public static java.lang.String getClassName(TestPlan testPlan, TestIdentifier testIdentifier)
TestIdentifier
using the
supplied TestPlan
.
This implementation attempts to find the closest test identifier with
a ClassSource
by traversing the hierarchy upwards towards the
root starting with the supplied test identifier. In case no such source
is found, it falls back to using the parent's
legacy reporting name.
testPlan
- the test plan that contains the TestIdentifier
;
never null
testIdentifier
- the identifier to determine the class name for;
never null
TestIdentifier.getLegacyReportingName()
private static TestIdentifier getParent(TestPlan testPlan, TestIdentifier testIdentifier)
private static ClassSource getClassSource(TestIdentifier current)
private static java.lang.String getParentLegacyReportingName(TestPlan testPlan, TestIdentifier testIdentifier)