Top Description Methods
org.junit.jupiter.params.converter

public @Interface JavaTimeConversionPattern

extends Annotation
Annotations
@Target:ANNOTATION_TYPE, PARAMETER, FIELD
@Retention:RUNTIME
@Documented
@API
status:STABLE
since:5.7
@ConvertWith:JavaTimeArgumentConverter
@SuppressWarnings:exports
Static Imports
org.apiguardian.api.API.Status.MAINTAINED, .API.Status.STABLE

@JavaTimeConversionPattern is an annotation that allows a date/time conversion pattern to be specified on a parameter of a @ParameterizedClass or @ParameterizedTest.
Since
5.0
See Also
ConvertWith, org.junit.jupiter.params.ParameterizedClass, org.junit.jupiter.params.ParameterizedTest, java.time.format.DateTimeFormatterBuilder#appendPattern(String)

Method Summary

Modifier and TypeMethod and Description
public boolean
nullable()

Whether null argument values are allowed.

public String
value()

The date/time conversion pattern.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

nullableback to summary
public boolean nullable()

Whether null argument values are allowed.

Defaults to false, in which case a null value will result in an exception.

Annotations
@API
status:MAINTAINED
since:5.13.3
Since
5.12
valueback to summary
public String value()

The date/time conversion pattern.

See Also
java.time.format.DateTimeFormatterBuilder#appendPattern(String)