Class DisplayNameGenerator.Simple

    • Constructor Detail

      • Simple

        public Simple()
    • Method Detail

      • generateDisplayNameForMethod

        public java.lang.String generateDisplayNameForMethod​(java.lang.Class<?> testClass,
                                                             java.lang.reflect.Method testMethod)
        Description copied from interface: DisplayNameGenerator
        Generate a display name for the given method.

        If it returns null, the default display name generator will be used instead.

        Specified by:
        generateDisplayNameForMethod in interface DisplayNameGenerator
        Overrides:
        generateDisplayNameForMethod in class DisplayNameGenerator.Standard
        Parameters:
        testClass - the class the test method is invoked on; never null
        testMethod - method to generate a display name for; never null
        Returns:
        the display name for the test; never blank