@Test(enabled=true, expectedExceptions=DataAccessException.class) public void testError() { final String s1 = "2017/01/01"; DateMath.parse(s1); fail("Expected exception for " + s1); }
public static Date parse(String str) { DateFormat df = new SimpleDateFormat(FORMAT); try { return df.parse(str); } catch (ParseException e) { throw new DataAccessException(e); } }
DateMath { public static Date parse(String str) { DateFormat df = new SimpleDateFormat(FORMAT); try { return df.parse(str); } catch (ParseException e) { throw new DataAccessException(e); } } }
DateMath { public static Date parse(String str) { DateFormat df = new SimpleDateFormat(FORMAT); try { return df.parse(str); } catch (ParseException e) { throw new DataAccessException(e); } }  }
DateMath { public static Date parse(String str) { DateFormat df = new SimpleDateFormat(FORMAT); try { return df.parse(str); } catch (ParseException e) { throw new DataAccessException(e); } }  static Date addDays(Date d, int howMany); static Date addMonths(Date d, int howMany); static Date parse(String str); static String format(Date d); static String format2(Date d); static Date truncateToMonth(Date d); static Date truncateToDay(Date d); static Date addSeconds(Date d, int howMany); static Date max(Date d1, Date d2); }
DateMath { public static Date parse(String str) { DateFormat df = new SimpleDateFormat(FORMAT); try { return df.parse(str); } catch (ParseException e) { throw new DataAccessException(e); } }  static Date addDays(Date d, int howMany); static Date addMonths(Date d, int howMany); static Date parse(String str); static String format(Date d); static String format2(Date d); static Date truncateToMonth(Date d); static Date truncateToDay(Date d); static Date addSeconds(Date d, int howMany); static Date max(Date d1, Date d2);  }