Skip to content

Commit

Permalink
Add support for negative date ranges in feeders
Browse files Browse the repository at this point in the history
Refactored `RandomDateRangeFeeder` to handle negative offset dates, added `negativeDateRange` feeder example, and updated related utilities and tests. This improves flexibility in generating dynamic date ranges.
  • Loading branch information
jigarkhwar committed Dec 11, 2024
1 parent 5dc726f commit 4747c87
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ class RandomFeedersSpec extends AnyFlatSpec with Matchers with ScalaCheckDrivenP
}
}

it should "produce IllegalArgumentException when RandomDateRangeFeeder creates with offset param =<1" in {
assertThrows[IllegalArgumentException] {
RandomDateRangeFeeder("paramNameFrom", "paramNameTo", 1, datePattern, dateFrom, unit, timezone).next()
}
}

it should "create RandomDigitFeeder" in {
forAll(rndString) { paramName =>
whenever(paramName.nonEmpty) {
Expand Down

0 comments on commit 4747c87

Please sign in to comment.