Class LegacyReportingUtils
- java.lang.Object
-
- org.junit.platform.launcher.listeners.LegacyReportingUtils
-
@Deprecated @API(status=DEPRECATED, since="1.6") public class LegacyReportingUtils extends java.lang.ObjectDeprecated.Useorg.junit.platform.reporting.legacy.LegacyReportingUtilsinstead.Utility methods for dealing with legacy reporting infrastructure, such as reporting systems built on the Ant-based XML reporting format for JUnit 4.- Since:
- 1.0.3
-
-
Constructor Summary
Constructors Modifier Constructor Description privateLegacyReportingUtils()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.StringgetClassName(TestPlan testPlan, TestIdentifier testIdentifier)Deprecated.Get the class name for the suppliedTestIdentifierusing the suppliedTestPlan.private static ClassSourcegetClassSource(TestIdentifier current)Deprecated.private static TestIdentifiergetParent(TestPlan testPlan, TestIdentifier testIdentifier)Deprecated.private static java.lang.StringgetParentLegacyReportingName(TestPlan testPlan, TestIdentifier testIdentifier)Deprecated.
-
-
-
Method Detail
-
getClassName
public static java.lang.String getClassName(TestPlan testPlan, TestIdentifier testIdentifier)
Deprecated.Get the class name for the suppliedTestIdentifierusing the suppliedTestPlan.This implementation attempts to find the closest test identifier with a
ClassSourceby 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.- Parameters:
testPlan- the test plan that contains theTestIdentifier; nevernulltestIdentifier- the identifier to determine the class name for; nevernull- See Also:
TestIdentifier.getLegacyReportingName()
-
getParent
private static TestIdentifier getParent(TestPlan testPlan, TestIdentifier testIdentifier)
Deprecated.
-
getClassSource
private static ClassSource getClassSource(TestIdentifier current)
Deprecated.
-
getParentLegacyReportingName
private static java.lang.String getParentLegacyReportingName(TestPlan testPlan, TestIdentifier testIdentifier)
Deprecated.
-
-