DateTimeValueProvider

class DateTimeValueProvider(val timeSuffixTemplate: String = DEFAULT_TIME_SUFFIX_TEMPLATE, val startDateString: String = DEFAULT_START_DATE_STRING) : SchemaValueProvider

Provides date-time values for string schemas with format "date-time".

Generates varied date-times based on variationIndex, incrementing days from start date.

Constructors

Link copied to clipboard
constructor(timeSuffixTemplate: String = DEFAULT_TIME_SUFFIX_TEMPLATE, startDateString: String = DEFAULT_START_DATE_STRING)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun provide(schema: Schema<*>, variationIndex: Int): Any?

Attempts to provide an example value for the given schema.