Annotation Type ConvertWith


  • @Target({ANNOTATION_TYPE,PARAMETER,FIELD})
    @Retention(RUNTIME)
    @Documented
    @API(status=STABLE,
         since="5.7")
    public @interface ConvertWith
    @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:
    ParameterizedTest, ArgumentConverter