Package org.junit.jupiter.params.converter
ArgumentConverter
implementations and the corresponding
@ConvertWith annotation.-
Interface Summary Interface Description ArgumentConverter ArgumentConverteris an abstraction that allows an input object to be converted to an instance of a different class.DefaultArgumentConverter.StringToObjectConverter -
Class Summary Class Description DefaultArgumentConverter DefaultArgumentConverteris the default implementation of theArgumentConverterAPI.DefaultArgumentConverter.StringToBooleanAndCharPrimitiveConverter DefaultArgumentConverter.StringToCommonJavaTypesConverter DefaultArgumentConverter.StringToEnumConverter DefaultArgumentConverter.StringToJavaTimeConverter DefaultArgumentConverter.StringToNumericPrimitiveConverter FallbackStringToObjectConverter FallbackStringToObjectConverteris aDefaultArgumentConverter.StringToObjectConverterthat provides a fallback conversion strategy for converting from aStringto a given target type by invoking a static factory method or factory constructor defined in the target type.FallbackStringToObjectConverter.IsFactoryConstructor Predicatethat determines if theConstructorsupplied toFallbackStringToObjectConverter.IsFactoryConstructor.test(Constructor)is a non-private factory constructor for the suppliedFallbackStringToObjectConverter.IsFactoryConstructor.targetType.FallbackStringToObjectConverter.IsFactoryMethod Predicatethat determines if theMethodsupplied toFallbackStringToObjectConverter.IsFactoryMethod.test(Method)is a non-private static factory method for the suppliedFallbackStringToObjectConverter.IsFactoryMethod.targetType.JavaTimeArgumentConverter SimpleArgumentConverter SimpleArgumentConverteris an abstract base class forArgumentConverterimplementations that only need to know the target type and do not need access to theParameterContextto perform the conversion.TypedArgumentConverter<S,T> TypedArgumentConverteris an abstract base class forArgumentConverterimplementations that always convert objects of a given source type into a given target type. -
Exception Summary Exception Description ArgumentConversionException ArgumentConversionExceptionis an exception that can occur when an object is converted to another object by an implementation of anArgumentConverter. -
Annotation Types Summary Annotation Type Description ConvertWith @ConvertWithis an annotation that allows one to specify an explicitArgumentConverter.JavaTimeConversionPattern @JavaTimeConversionPatternis an annotation that allows a date/time conversion pattern to be specified on a parameter of a@ParameterizedTestmethod.