Package org.junit.jupiter.params.converter
ArgumentConverter
implementations and the corresponding
@ConvertWith
annotation.-
Interface Summary Interface Description ArgumentConverter ArgumentConverter
is an abstraction that allows an input object to be converted to an instance of a different class.DefaultArgumentConverter.StringToObjectConverter -
Class Summary Class Description DefaultArgumentConverter DefaultArgumentConverter
is the default implementation of theArgumentConverter
API.DefaultArgumentConverter.StringToBooleanAndCharPrimitiveConverter DefaultArgumentConverter.StringToCommonJavaTypesConverter DefaultArgumentConverter.StringToEnumConverter DefaultArgumentConverter.StringToJavaTimeConverter DefaultArgumentConverter.StringToNumericPrimitiveConverter FallbackStringToObjectConverter FallbackStringToObjectConverter
is aDefaultArgumentConverter.StringToObjectConverter
that provides a fallback conversion strategy for converting from aString
to a given target type by invoking a static factory method or factory constructor defined in the target type.FallbackStringToObjectConverter.IsFactoryConstructor Predicate
that determines if theConstructor
supplied toFallbackStringToObjectConverter.IsFactoryConstructor.test(Constructor)
is a non-private factory constructor for the suppliedFallbackStringToObjectConverter.IsFactoryConstructor.targetType
.FallbackStringToObjectConverter.IsFactoryMethod Predicate
that determines if theMethod
supplied toFallbackStringToObjectConverter.IsFactoryMethod.test(Method)
is a non-private static factory method for the suppliedFallbackStringToObjectConverter.IsFactoryMethod.targetType
.JavaTimeArgumentConverter SimpleArgumentConverter SimpleArgumentConverter
is an abstract base class forArgumentConverter
implementations that only need to know the target type and do not need access to theParameterContext
to perform the conversion.TypedArgumentConverter<S,T> TypedArgumentConverter
is an abstract base class forArgumentConverter
implementations that always convert objects of a given source type into a given target type. -
Exception Summary Exception Description ArgumentConversionException ArgumentConversionException
is 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 @ConvertWith
is an annotation that allows one to specify an explicitArgumentConverter
.JavaTimeConversionPattern @JavaTimeConversionPattern
is an annotation that allows a date/time conversion pattern to be specified on a parameter of a@ParameterizedTest
method.