@Test public void testBoolean() { assertTrue(StringToObject.convertStringToObject("true") instanceof Boolean); assertTrue((Boolean) StringToObject.convertStringToObject("true")); assertFalse((Boolean) StringToObject.convertStringToObject("false")); assertTrue((Boolean) StringToObject.convertStringToObject("True")); assertFalse((Boolean) StringToObject.convertStringToObject("False")); assertTrue((Boolean) StringToObject.convertStringToObject("TRUE")); assertFalse((Boolean) StringToObject.convertStringToObject("FALSE")); assertFalse(StringToObject.convertStringToObject("something") instanceof Boolean); }
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);  }