@Test public void testFormatDate() { String tpl = "${d?string('yyyy-MM-dd HH:mm:ss')}"; Map<String, Object> args = new HashMap<String, Object>(); args.put("d", DateUtils.getDate("2012-01-01 12:10:05")); Assert.assertEquals("2012-01-01 12:10:05", FreeMarkerUtils.format(tpl, args)); }
public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); }
FreeMarkerUtils { public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); } }
FreeMarkerUtils { public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); } private  FreeMarkerUtils(); }
FreeMarkerUtils { public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); } private  FreeMarkerUtils(); static String format(String tpl, Map<String, Object> args); static String format(String tpl, Object args); }
FreeMarkerUtils { public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); } private  FreeMarkerUtils(); static String format(String tpl, Map<String, Object> args); static String format(String tpl, Object args);  }