JavaSqlDates

Returns a random Date , 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

JavaSqlDates.java
class JavaSqlDates {
  JavaSqlDates(FakeDataService fakeDataService)
  Date around(Period period)     (1)
  Date before(Period period)     (2)
  java.sql.Date after(Period period)     (3)
  java.sql.Date any()     (4)
}
1 around(Period)

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

2 before(Period)

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

3 after(Period)

Returns a random date some time after 'now', within the specified 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 Period .

before(Period)

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

after(Period)

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

any()

Returns a random date 5 years around 'now'.