java.lang.Object
org.junit.jupiter.api.DisplayNameGenerator.Standard
org.junit.jupiter.api.DisplayNameGenerator.Simple
- All Implemented Interfaces:
DisplayNameGenerator
- Direct Known Subclasses:
DisplayNameGenerator.ReplaceUnderscores
- Enclosing interface:
- DisplayNameGenerator
Simple
DisplayNameGenerator that removes trailing parentheses
for methods with no parameters.
This generator extends the functionality of DisplayNameGenerator.Standard by
removing parentheses ('()') found at the end of method names
with no parameters.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.jupiter.api.DisplayNameGenerator
DisplayNameGenerator.IndicativeSentences, DisplayNameGenerator.ReplaceUnderscores, DisplayNameGenerator.Simple, DisplayNameGenerator.Standard -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateDisplayNameForMethod(Class<?> testClass, Method testMethod)Generate a display name for the given method.Methods inherited from class org.junit.jupiter.api.DisplayNameGenerator.Standard
generateDisplayNameForClass, generateDisplayNameForNestedClass
-
Constructor Details
-
Simple
public Simple()
-
-
Method Details
-
generateDisplayNameForMethod
Description copied from interface:DisplayNameGeneratorGenerate a display name for the given method.- Specified by:
generateDisplayNameForMethodin interfaceDisplayNameGenerator- Overrides:
generateDisplayNameForMethodin classDisplayNameGenerator.Standard- Parameters:
testClass- the class the test method is invoked on; nevernulltestMethod- method to generate a display name for; nevernull- Returns:
- the display name for the test; never
nullor blank
-