Package org.int4.dirk.test.util
Class ReplaceCamelCaseDisplayNameGenerator
- java.lang.Object
-
- org.int4.dirk.test.util.ReplaceCamelCaseDisplayNameGenerator
-
- All Implemented Interfaces:
org.junit.jupiter.api.DisplayNameGenerator
public class ReplaceCamelCaseDisplayNameGenerator extends java.lang.Object implements org.junit.jupiter.api.DisplayNameGeneratorADisplayNameGeneratorwhich converts camel case test names to normal text. Test names can use underscores to quote parts of the name that should be kept exactly as written.For example: "When_getName_IsCalled" becomes "When getName is called"
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.junit.jupiter.api.DisplayNameGenerator
org.junit.jupiter.api.DisplayNameGenerator.IndicativeSentences, org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores, org.junit.jupiter.api.DisplayNameGenerator.Simple, org.junit.jupiter.api.DisplayNameGenerator.Standard
-
-
Constructor Summary
Constructors Constructor Description ReplaceCamelCaseDisplayNameGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgenerateDisplayNameForClass(java.lang.Class<?> testClass)java.lang.StringgenerateDisplayNameForMethod(java.lang.Class<?> testClass, java.lang.reflect.Method testMethod)java.lang.StringgenerateDisplayNameForNestedClass(java.lang.Class<?> nestedClass)
-
-
-
Method Detail
-
generateDisplayNameForClass
public java.lang.String generateDisplayNameForClass(java.lang.Class<?> testClass)
- Specified by:
generateDisplayNameForClassin interfaceorg.junit.jupiter.api.DisplayNameGenerator
-
generateDisplayNameForNestedClass
public java.lang.String generateDisplayNameForNestedClass(java.lang.Class<?> nestedClass)
- Specified by:
generateDisplayNameForNestedClassin interfaceorg.junit.jupiter.api.DisplayNameGenerator
-
generateDisplayNameForMethod
public java.lang.String generateDisplayNameForMethod(java.lang.Class<?> testClass, java.lang.reflect.Method testMethod)- Specified by:
generateDisplayNameForMethodin interfaceorg.junit.jupiter.api.DisplayNameGenerator
-
-