Package hudson.tasks.junit
Class TestNameTransformer
- java.lang.Object
-
- hudson.tasks.junit.TestNameTransformer
-
- All Implemented Interfaces:
ExtensionPoint
public abstract class TestNameTransformer extends Object implements ExtensionPoint
Allow extensions to transform the class/package/method name for JUnit test cases which will be displayed on the test result page. This is useful for alternative JVM languages like Scala that allow identifiers with invalid characters by encoding them: an extension can decode the identifier so it is displayed correctly.- Since:
- 1.515
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description TestNameTransformer()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionList<TestNameTransformer>
all()
static String
getTransformedName(String name)
abstract String
transformName(String name)
Transform the class/package/method name.
-
-
-
Method Detail
-
transformName
public abstract String transformName(String name)
Transform the class/package/method name.- Parameters:
name
- Class name (may be simple or fully qualified), package name, or method name from a JUnit test.- Returns:
- The transformed name, or the name that was passed in if it doesn't need to be changed.
-
all
public static ExtensionList<TestNameTransformer> all()
-
-