@Test public void testNumberPrecedingZero() { Properties precedingZero = new Properties(); precedingZero.put("precedingZeroIsntNumber", false); assertTrue(StringToObject.convertStringToObject("01234") instanceof String); assertTrue(StringToObject.convertStringToObject("01234", precedingZero) instanceof Integer); assertTrue(StringToObject.convertStringToObject("0.1234") instanceof Double); assertTrue(StringToObject.convertStringToObject("0.1234", precedingZero) instanceof Double); }
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);  }