All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.gatling.feeders.CurrentDateFeeder.scala Maven / Gradle / Ivy

The newest version!
package ru.tinkoff.gatling.feeders

import io.gatling.core.feeder.Feeder
import ru.tinkoff.gatling.utils.RandomDataGenerators

import java.time.ZoneId
import java.time.format.DateTimeFormatter

object CurrentDateFeeder {

  def apply(paramName: String, datePattern: DateTimeFormatter, timezone: ZoneId = ZoneId.systemDefault()): Feeder[String] =
    feeder[String](paramName)(RandomDataGenerators.currentDate(datePattern, timezone))

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy