@Test void generatedDateShouldNotBeNull() { assertThat(randomizer.getRandomValue()).isNotNull(); }
@Override public Date getRandomValue() { long minDateTime = min.getTime(); long maxDateTime = max.getTime(); long randomDateTime = (long) nextDouble((double) minDateTime, (double) maxDateTime); return new Date(randomDateTime); }
DateRangeRandomizer extends AbstractRangeRandomizer<Date> { @Override public Date getRandomValue() { long minDateTime = min.getTime(); long maxDateTime = max.getTime(); long randomDateTime = (long) nextDouble((double) minDateTime, (double) maxDateTime); return new Date(randomDateTime); } }
DateRangeRandomizer extends AbstractRangeRandomizer<Date> { @Override public Date getRandomValue() { long minDateTime = min.getTime(); long maxDateTime = max.getTime(); long randomDateTime = (long) nextDouble((double) minDateTime, (double) maxDateTime); return new Date(randomDateTime); } DateRangeRandomizer(final Date min, final Date max);  DateRangeRandomizer(final Date min, final Date max, final long seed); }
DateRangeRandomizer extends AbstractRangeRandomizer<Date> { @Override public Date getRandomValue() { long minDateTime = min.getTime(); long maxDateTime = max.getTime(); long randomDateTime = (long) nextDouble((double) minDateTime, (double) maxDateTime); return new Date(randomDateTime); } DateRangeRandomizer(final Date min, final Date max);  DateRangeRandomizer(final Date min, final Date max, final long seed); static DateRangeRandomizer aNewDateRangeRandomizer(final Date min, final Date max); static DateRangeRandomizer aNewDateRangeRandomizer(final Date min, final Date max, final long seed); @Override Date getRandomValue(); }
DateRangeRandomizer extends AbstractRangeRandomizer<Date> { @Override public Date getRandomValue() { long minDateTime = min.getTime(); long maxDateTime = max.getTime(); long randomDateTime = (long) nextDouble((double) minDateTime, (double) maxDateTime); return new Date(randomDateTime); } DateRangeRandomizer(final Date min, final Date max);  DateRangeRandomizer(final Date min, final Date max, final long seed); static DateRangeRandomizer aNewDateRangeRandomizer(final Date min, final Date max); static DateRangeRandomizer aNewDateRangeRandomizer(final Date min, final Date max, final long seed); @Override Date getRandomValue();  }