@Test public void parseDate() throws ParseException { String source = new SimpleDateFormat(SyncopeConstants.DEFAULT_DATE_PATTERN).format(date); assertEquals(DateUtils.parseDate(source, SyncopeConstants.DATE_PATTERNS), FormatUtils.parseDate(source)); conversionPattern = "dd-MM-yyyy"; source = new SimpleDateFormat(conversionPattern).format(date); assertEquals(DateUtils.parseDate(source, conversionPattern), FormatUtils.parseDate(source, conversionPattern)); }
public static Date parseDate(final String source) throws ParseException { return DateUtils.parseDate(source, SyncopeConstants.DATE_PATTERNS); }
FormatUtils { public static Date parseDate(final String source) throws ParseException { return DateUtils.parseDate(source, SyncopeConstants.DATE_PATTERNS); } }
FormatUtils { public static Date parseDate(final String source) throws ParseException { return DateUtils.parseDate(source, SyncopeConstants.DATE_PATTERNS); } private  FormatUtils(); }
FormatUtils { public static Date parseDate(final String source) throws ParseException { return DateUtils.parseDate(source, SyncopeConstants.DATE_PATTERNS); } private  FormatUtils(); static String format(final Date date); static String format(final Date date, final boolean lenient); static String format(final Date date, final boolean lenient, final String conversionPattern); static String format(final long number); static String format(final long number, final String conversionPattern); static String format(final double number); static String format(final double number, final String conversionPattern); static Date parseDate(final String source); static Date parseDate(final String source, final String conversionPattern); static Number parseNumber(final String source, final String conversionPattern); static void clear(); }
FormatUtils { public static Date parseDate(final String source) throws ParseException { return DateUtils.parseDate(source, SyncopeConstants.DATE_PATTERNS); } private  FormatUtils(); static String format(final Date date); static String format(final Date date, final boolean lenient); static String format(final Date date, final boolean lenient, final String conversionPattern); static String format(final long number); static String format(final long number, final String conversionPattern); static String format(final double number); static String format(final double number, final String conversionPattern); static Date parseDate(final String source); static Date parseDate(final String source, final String conversionPattern); static Number parseNumber(final String source, final String conversionPattern); static void clear();  }