@Test(expected = IllegalArgumentException.class) public void testToDateString_nullInstant() { DateUtil.toDateString(null); }
public static String toDateString(Instant instant) { notNull(instant, "instant can't be null"); val date = new Date(instant.getEpochSecond() * 1000); return buildDateFormat().format(date); }
DateUtil { public static String toDateString(Instant instant) { notNull(instant, "instant can't be null"); val date = new Date(instant.getEpochSecond() * 1000); return buildDateFormat().format(date); } }
DateUtil { public static String toDateString(Instant instant) { notNull(instant, "instant can't be null"); val date = new Date(instant.getEpochSecond() * 1000); return buildDateFormat().format(date); }  }
DateUtil { public static String toDateString(Instant instant) { notNull(instant, "instant can't be null"); val date = new Date(instant.getEpochSecond() * 1000); return buildDateFormat().format(date); }  static Date toUtcDate(String dateStr); static String toDateString(Instant instant); static String toUtcDateString(Instant instant); static Date now(); }
DateUtil { public static String toDateString(Instant instant) { notNull(instant, "instant can't be null"); val date = new Date(instant.getEpochSecond() * 1000); return buildDateFormat().format(date); }  static Date toUtcDate(String dateStr); static String toDateString(Instant instant); static String toUtcDateString(Instant instant); static Date now();  }