@Test public void setNow() throws Exception { TimeContext.setTime(Instant.ofEpochMilli(0L)); assertEquals(0L, TimeContext.getTime().toEpochMilli()); assertEquals(0L, TimeContext.getMillis()); final Instant now = Instant.now(); TimeContext.setNow(); assertTrue(!now.isAfter(TimeContext.getTime())); TimeContext.clear(); }
public static void setNow() { setTime(Instant.now()); }
TimeContext { public static void setNow() { setTime(Instant.now()); } }
TimeContext { public static void setNow() { setTime(Instant.now()); } private  TimeContext(); }
TimeContext { public static void setNow() { setTime(Instant.now()); } private  TimeContext(); static ZoneId getZone(); static long getMillis(); static Instant getTime(); static LocalDate getLocalDate(); static LocalDateTime getLocalDateTime(); static ZonedDateTime getZonedDateTime(); static void setTime(final Instant time); static void setNow(); static void setZone(final ZoneId zoneId); static void clear(); static void destroy(); }
TimeContext { public static void setNow() { setTime(Instant.now()); } private  TimeContext(); static ZoneId getZone(); static long getMillis(); static Instant getTime(); static LocalDate getLocalDate(); static LocalDateTime getLocalDateTime(); static ZonedDateTime getZonedDateTime(); static void setTime(final Instant time); static void setNow(); static void setZone(final ZoneId zoneId); static void clear(); static void destroy();  }