JodaPeriods

Returns random Period s constrained to last a certain number number of days, months and/or years.

API

JodaPeriods.java
class JodaPeriods {
  JodaPeriods(FakeDataService fakeDataService)
  Period daysBetween(int minDays, int maxDays)
  Period daysUpTo(int maxDays)
  Period monthsBetween(int minMonths, int maxMonths)
  Period monthsUpTo(int months)
  Period yearsBetween(int minYears, int maxYears)
  Period yearsUpTo(int years)
  Period within(Period period)
}