JodaLocalDates

Returns a random LocalDate , optionally based on the current time but constrained by a Period .

The current time ('now') is obtained from the org.apache.causeway.applib.services.clock.ClockService .

API

JodaLocalDates.java
class JodaLocalDates {
  JodaLocalDates(FakeDataService fakeDataService)
  LocalDate around(Period period)     (1)
  org.joda.time.LocalDate before(Period period)     (2)
  org.joda.time.LocalDate after(Period period)     (3)
  LocalDate any()     (4)
}
1 around(Period)

Returns a random date either before or after 'now', within the specified java.time.Period .

2 before(Period)

Returns a random date some time before 'now', within the specified java.time.Period .

3 after(Period)

Returns a random date some time after 'now', within the specified java.time.Period .

4 any()

Returns a random date 5 years around 'now'.

Members

around(Period)

Returns a random date either before or after 'now', within the specified java.time.Period .

before(Period)

Returns a random date some time before 'now', within the specified java.time.Period .

after(Period)

Returns a random date some time after 'now', within the specified java.time.Period .

any()

Returns a random date 5 years around 'now'.