Top Description Methods
org.junit.jupiter.params.converter

public @Interface ConvertWith

extends Annotation
Annotations
@Target:ANNOTATION_TYPE, PARAMETER, FIELD
@Retention:RUNTIME
@Documented
@API
status:STABLE
since:5.7
Static Imports
org.apiguardian.api.API.Status.STABLE

@ConvertWith is an annotation that allows one to specify an explicit ArgumentConverter.

This annotation may be applied to parameters of a @ParameterizedClass constructor or its @Parameter-annotated fields, or to parameters of a @ParameterizedTest method which need to have their Arguments converted before consuming them.

Since
5.0
See Also
org.junit.jupiter.params.ParameterizedTest, org.junit.jupiter.params.converter.ArgumentConverter

Method Summary

Modifier and TypeMethod and Description
public Class<? extends ArgumentConverter>
value()

The type of ArgumentConverter to use.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Class<? extends ArgumentConverter> value()

The type of ArgumentConverter to use.