@Test void returnsNanosUpToMaxIfMinBoundaryIsSmaller() { ZonedDateTime to = ZonedDateTime.now(); ZonedDateTime from = to.minusSeconds(1).plusNanos(upTo(999_999_999L).Long()); assertThat(between(from.plusNanos(1), to).instant(), greaterThanOrEqualTo(from.toInstant())); assertThat(between(from.plusNanos(1), to).instant(), lessThanOrEqualTo(to.toInstant())); }
public static Instant instant() { return new RandomDate().instant(); }
Java8RandomShortApi { public static Instant instant() { return new RandomDate().instant(); } }
Java8RandomShortApi { public static Instant instant() { return new RandomDate().instant(); }  }
Java8RandomShortApi { public static Instant instant() { return new RandomDate().instant(); }  static Instant instant(); static List<Instant> instants(int n); static LocalDateTime localDateTime(); static List<LocalDateTime> localDateTimes(int nOfTimes); static ZonedDateTime zonedDateTime(); static List<ZonedDateTime> zonedDateTimes(int nOfTimes); static OffsetDateTime offsetDateTime(); static List<OffsetDateTime> offsetDateTimes(int nOfTimes); static LocalDate localDate(); static List<LocalDate> localDates(int nOfTimes); }
Java8RandomShortApi { public static Instant instant() { return new RandomDate().instant(); }  static Instant instant(); static List<Instant> instants(int n); static LocalDateTime localDateTime(); static List<LocalDateTime> localDateTimes(int nOfTimes); static ZonedDateTime zonedDateTime(); static List<ZonedDateTime> zonedDateTimes(int nOfTimes); static OffsetDateTime offsetDateTime(); static List<OffsetDateTime> offsetDateTimes(int nOfTimes); static LocalDate localDate(); static List<LocalDate> localDates(int nOfTimes);  }