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, waitparameterTypesAsStringpublic String generateDisplayNameForClass(Class<?> testClass)
DisplayNameGeneratorstatic nested test class.generateDisplayNameForClass in interface DisplayNameGeneratortestClass - the class generate a name for; never nullnull or blankpublic String generateDisplayNameForNestedClass(Class<?> nestedClass)
DisplayNameGenerator@Nested inner test class.generateDisplayNameForNestedClass in interface DisplayNameGeneratornestedClass - the class generate a name for; never nullnull or blankpublic String generateDisplayNameForMethod(Class<?> testClass, Method testMethod)
DisplayNameGeneratorgenerateDisplayNameForMethod in interface DisplayNameGeneratortestClass - the class the test method is invoked on; never nulltestMethod - method to generate a display name for; never nullnull or blankCopyright © 2024. All rights reserved.