Class JavaTimeArgumentConverter
java.lang.Object
org.junit.jupiter.params.converter.AnnotationBasedArgumentConverter<JavaTimeConversionPattern>
org.junit.jupiter.params.converter.JavaTimeArgumentConverter
- All Implemented Interfaces:
Consumer<JavaTimeConversionPattern>
,ArgumentConverter
,AnnotationConsumer<JavaTimeConversionPattern>
- Since:
- 5.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
convert
(Object input, Class<?> targetClass, JavaTimeConversionPattern annotation) Convert the suppliedsource
object into the suppliedtargetType
, based on metadata in the provided annotation.Methods inherited from class org.junit.jupiter.params.converter.AnnotationBasedArgumentConverter
accept, convert
-
Field Details
-
TEMPORAL_QUERIES
-
-
Constructor Details
-
JavaTimeArgumentConverter
JavaTimeArgumentConverter()
-
-
Method Details
-
convert
Description copied from class:AnnotationBasedArgumentConverter
Convert the suppliedsource
object into the suppliedtargetType
, based on metadata in the provided annotation.- Specified by:
convert
in classAnnotationBasedArgumentConverter<JavaTimeConversionPattern>
- Parameters:
input
- the source object to convert; may benull
targetClass
- the target type the source object should be converted into; nevernull
annotation
- the annotation to process; nevernull
- Returns:
- the converted object; may be
null
but only if the target type is a reference type
-