Class DisplayNameGenerator.Standard

    • Constructor Detail

      • Standard

        public Standard()
    • Method Detail

      • generateDisplayNameForClass

        public String generateDisplayNameForClass​(Class<?> testClass)
        Description copied from interface: DisplayNameGenerator
        Generate a display name for the given top-level or static nested test class.
        Specified by:
        generateDisplayNameForClass in interface DisplayNameGenerator
        Parameters:
        testClass - the class generate a name for; never null
        Returns:
        the display name of the container; never null or blank
      • generateDisplayNameForMethod

        public String generateDisplayNameForMethod​(Class<?> testClass,
                                                   Method testMethod)
        Description copied from interface: DisplayNameGenerator
        Generate a display name for the given method.
        Specified by:
        generateDisplayNameForMethod in interface DisplayNameGenerator
        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 of the test; never null or blank