classes.
These utilities are intended solely for usage within the JUnit framework itself. Any usage by external parties is not supported. Use at your own risk!
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the fully qualified class name or"null" if the supplied
class reference is nullthe class whose name should be retrieved, potentially
clazz)nullGet the fully qualified name of the supplied class. |
| public static String | Returns: a comma-separated list of fully qualified class names, or an empty string if the supplied class array isnull or emptythe classes whose names should be included in the
generated string classes)Generate a comma-separated list of fully qualified class names for the supplied classes. |
| public static String | Returns: a comma-separated list of mapped values, or an empty string if the supplied class array isnull or emptythe mapper to use; never mapper, @Nullable @Nullable Class<?>... nullthe classes to map classes)Generate a comma-separated list of mapped values for the supplied classes. |
| ClassUtils | back to summary |
|---|---|
| private ClassUtils() | |
| nullSafeToString | back to summary |
|---|---|
| public static String nullSafeToString(@Nullable Class<?> clazz) Get the fully qualified name of the supplied class. This is a null-safe variant of
| |
| nullSafeToString | back to summary |
|---|---|
| public static String nullSafeToString(@Nullable @Nullable Class<?>... classes) Generate a comma-separated list of fully qualified class names for the supplied classes.
| |
| nullSafeToString | back to summary |
|---|---|
| public static String nullSafeToString(Function<? super Class<?>, ? extends String> mapper, @Nullable @Nullable Class<?>... classes) Generate a comma-separated list of mapped values for the supplied classes. The values are generated by the supplied
| |