Class LegacyReportingUtils
- java.lang.Object
-
- org.junit.platform.launcher.listeners.LegacyReportingUtils
-
@API(status=MAINTAINED, since="1.0.3") public class LegacyReportingUtils extends Object
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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getClassName(TestPlan testPlan, TestIdentifier testIdentifier)
Get the class name for the suppliedTestIdentifier
using the suppliedTestPlan
.
-
-
-
Method Detail
-
getClassName
public static String getClassName(TestPlan testPlan, TestIdentifier testIdentifier)
Get the class name for the suppliedTestIdentifier
using the suppliedTestPlan
.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.- Parameters:
testPlan
- the test plan that contains theTestIdentifier
; nevernull
testIdentifier
- the identifier to determine the class name for; nevernull
- See Also:
TestIdentifier.getLegacyReportingName()
-
-