@Test void returnsSameValueIfFromAndToAreEqual() { ZonedDateTime dateTime = ZonedDateTime.now(); assertThat(between(dateTime, dateTime).instant(), equalTo(dateTime.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);  }