@Test public void testDouble() { assertTrue(StringToObject.convertStringToObject("1.0") instanceof Double); assertEquals(new Double(1.0), StringToObject.convertStringToObject("1.0")); assertTrue(StringToObject.convertStringToObject("-1.0") instanceof Double); assertEquals(new Double(-1.0), StringToObject.convertStringToObject("-1.0")); assertTrue(StringToObject.convertStringToObject("43.5") instanceof Double); assertEquals(new Double(43.5), StringToObject.convertStringToObject("43.5")); }
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);  }