Module org.junit.jupiter.params
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.StringToObjectConverter Internal API for converting arguments of typeString
to a specified target type. -
Class Summary Class Description AnnotationBasedArgumentConverter<A extends java.lang.annotation.Annotation> AnnotationBasedArgumentConverter
is an abstract base class forArgumentConverter
implementations that also need to consume an annotation in order to perform the conversion.DefaultArgumentConverter DefaultArgumentConverter
is the default implementation of theArgumentConverter
API.FallbackStringToObjectConverter FallbackStringToObjectConverter
is aStringToObjectConverter
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.StringToBooleanConverter StringToCharacterConverter StringToClassConverter StringToCommonJavaTypesConverter StringToEnumConverter StringToJavaTimeConverter StringToNumberConverter 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.