diff --git a/src/test/java/org/json/junit/XMLConfigurationTest.java b/src/test/java/org/json/junit/XMLConfigurationTest.java index 4ad06c1..ca1980c 100755 --- a/src/test/java/org/json/junit/XMLConfigurationTest.java +++ b/src/test/java/org/json/junit/XMLConfigurationTest.java @@ -775,8 +775,8 @@ public class XMLConfigurationTest { */ @Test public void testToJSONArray_jsonOutput_withKeepNumberAsString() { - final String originalXml = "011000True"; - final JSONObject expected = new JSONObject("{\"root\":{\"item\":{\"id\":\"01\"},\"id\":[\"01\",\"1\",\"00\",\"0\"],\"title\":true}}"); + final String originalXml = "011000nullTrue"; + final JSONObject expected = new JSONObject("{\"root\":{\"item\":{\"id\":\"01\"},\"id\":[\"01\",\"1\",\"00\",\"0\",null],\"title\":true}}"); final JSONObject actualJsonOutput = XML.toJSONObject(originalXml, new XMLParserConfiguration().withKeepNumberAsString(true)); Util.compareActualVsExpectedJsonObjects(actualJsonOutput,expected); @@ -787,8 +787,8 @@ public class XMLConfigurationTest { */ @Test public void testToJSONArray_jsonOutput_withKeepBooleanAsString() { - final String originalXml = "011000True"; - final JSONObject expected = new JSONObject("{\"root\":{\"item\":{\"id\":\"01\"},\"id\":[\"01\",1,\"00\",0],\"title\":\"True\"}}"); + final String originalXml = "011000nullTrue"; + final JSONObject expected = new JSONObject("{\"root\":{\"item\":{\"id\":\"01\"},\"id\":[\"01\",1,\"00\",0,null],\"title\":\"True\"}}"); final JSONObject actualJsonOutput = XML.toJSONObject(originalXml, new XMLParserConfiguration().withKeepBooleanAsString(true)); Util.compareActualVsExpectedJsonObjects(actualJsonOutput,expected);