@Test public void testDateDisabled() { Date testDate = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S"); sdf.setTimeZone(TimeZone.getTimeZone("UTC")); Properties disableDate = new Properties(); disableDate.put("allowDates", false); assertTrue( StringToObject.convertStringToObject(sdf.format(testDate), disableDate) instanceof String); assertEquals( sdf.format(testDate), StringToObject.convertStringToObject(sdf.format(testDate), disableDate)); }
public static Object convertStringToObject(String s) { return convertStringToObject(s, new Properties()); }
StringToObject { public static Object convertStringToObject(String s) { return convertStringToObject(s, new Properties()); } }
StringToObject { public static Object convertStringToObject(String s) { return convertStringToObject(s, new Properties()); } private  StringToObject(); }
StringToObject { public static Object convertStringToObject(String s) { return convertStringToObject(s, new Properties()); } private  StringToObject(); static Object convertStringToObject(String s); static Object convertStringToObject(String s, Properties config); }
StringToObject { public static Object convertStringToObject(String s) { return convertStringToObject(s, new Properties()); } private  StringToObject(); static Object convertStringToObject(String s); static Object convertStringToObject(String s, Properties config);  }