ClassSupport
provides static utility methods for common tasks
regarding classes — for example, generating a
comma-separated list of fully qualified class names for a set of supplied
classes.
TestEngine
and extension
authors are encouraged to use these supported methods in order to align with
the behavior of the JUnit Platform.
AnnotationSupport
, ModifierSupport
, ReflectionSupport
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
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, Class<?>... null the classes to map classes)Generate a comma-separated list of mapped values for the supplied classes. |
ClassSupport | back to summary |
---|---|
private ClassSupport() |
nullSafeToString | back to summary |
---|---|
public static String nullSafeToString(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, Class<?>... classes) Generate a comma-separated list of mapped values for the supplied classes. The values are generated by the supplied |