@Test public void test_validateUTCString_utcdate_true() throws ParseException{ String dateString = "2015-01-22T17:30:00Z"; assertEquals(true, DateUtil.validateUTCString(dateString)); }
public static boolean validateUTCString(String utcDateString) { if (StringUtils.isBlank(utcDateString)) { return false; } Date date = parse(utcDateString, FORMAT_UTC); return null != date; }
DateUtil { public static boolean validateUTCString(String utcDateString) { if (StringUtils.isBlank(utcDateString)) { return false; } Date date = parse(utcDateString, FORMAT_UTC); return null != date; } }
DateUtil { public static boolean validateUTCString(String utcDateString) { if (StringUtils.isBlank(utcDateString)) { return false; } Date date = parse(utcDateString, FORMAT_UTC); return null != date; } private  DateUtil(); }
DateUtil { public static boolean validateUTCString(String utcDateString) { if (StringUtils.isBlank(utcDateString)) { return false; } Date date = parse(utcDateString, FORMAT_UTC); return null != date; } private  DateUtil(); static Date parseUTC(String dateString); static boolean validateUTCString(String utcDateString); static String formatUTC(Date date); static Date parse(String dateString, String format); }
DateUtil { public static boolean validateUTCString(String utcDateString) { if (StringUtils.isBlank(utcDateString)) { return false; } Date date = parse(utcDateString, FORMAT_UTC); return null != date; } private  DateUtil(); static Date parseUTC(String dateString); static boolean validateUTCString(String utcDateString); static String formatUTC(Date date); static Date parse(String dateString, String format);  }