Class DisplayNameUtils
- java.lang.Object
-
- com.github.robtimus.junit.support.util.DisplayNameUtils
-
public final class DisplayNameUtils extends Object
A utility class for creating display names forDynamicTest
orDynamicContainer
.- Author:
- Rob Spoor
- Since:
- 1.1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getMethodDisplayName(Method method)
Returns a display name for a method.static String
getMethodDisplayName(String name, Class<?>[] parameterTypes)
Returns a display name for a method.
-
-
-
Method Detail
-
getMethodDisplayName
public static String getMethodDisplayName(Method method)
Returns a display name for a method.- Parameters:
method
- The method.- Returns:
- A display name for the given method.
-
getMethodDisplayName
public static String getMethodDisplayName(String name, Class<?>[] parameterTypes)
Returns a display name for a method.- Parameters:
name
- The method name.parameterTypes
- The method parameter types.- Returns:
- A display name for the method with the given name and parameter types.
-
-