public static class DisplayNameGenerator.Standard extends Object implements DisplayNameGenerator
The implementation matches the published behaviour when Jupiter 5.0.0 was released.
DisplayNameGenerator.ReplaceUnderscores, DisplayNameGenerator.Standard
Constructor and Description |
---|
Standard() |
Modifier and Type | Method and Description |
---|---|
String |
generateDisplayNameForClass(Class<?> testClass)
Generate a display name for the given top-level or
static nested test class. |
String |
generateDisplayNameForMethod(Class<?> testClass,
Method testMethod)
Generate a display name for the given method.
|
String |
generateDisplayNameForNestedClass(Class<?> nestedClass)
Generate a display name for the given
@Nested inner test class. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parameterTypesAsString
public String generateDisplayNameForClass(Class<?> testClass)
DisplayNameGenerator
static
nested test class.generateDisplayNameForClass
in interface DisplayNameGenerator
testClass
- the class generate a name for; never null
null
or blankpublic String generateDisplayNameForNestedClass(Class<?> nestedClass)
DisplayNameGenerator
@Nested
inner test class.generateDisplayNameForNestedClass
in interface DisplayNameGenerator
nestedClass
- the class generate a name for; never null
null
or blankpublic String generateDisplayNameForMethod(Class<?> testClass, Method testMethod)
DisplayNameGenerator
generateDisplayNameForMethod
in interface DisplayNameGenerator
testClass
- the class the test method is invoked on; never null
testMethod
- method to generate a display name for; never null
null
or blankCopyright © 2024. All rights reserved.