From 1a5718dc396e4cb841aed023c1d059d636d3463e Mon Sep 17 00:00:00 2001 From: stleary Date: Sun, 27 Sep 2015 23:55:32 -0500 Subject: [PATCH] Commenting out some code until JSON-java supports XML.toJSONObject(Reader) --- XMLTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/XMLTest.java b/XMLTest.java index b7d7477..2f770ef 100644 --- a/XMLTest.java +++ b/XMLTest.java @@ -612,10 +612,14 @@ public class XMLTest { * @param expectedStr the expected JSON string */ private void compareReaderToJSONObject(String xmlStr, String expectedStr) { + /* + * Commenting out this method until the JSON-java code is updated + * to support XML.toJSONObject(reader) JSONObject expectedJsonObject = new JSONObject(expectedStr); Reader reader = new StringReader(xmlStr); JSONObject jsonObject = XML.toJSONObject(reader); Util.compareActualVsExpectedJsonObjects(jsonObject,expectedJsonObject); + */ } /** @@ -626,6 +630,9 @@ public class XMLTest { * @throws IOException */ private void compareFileToJSONObject(String xmlStr, String expectedStr) { + /* + * Commenting out this method until the JSON-java code is updated + * to support XML.toJSONObject(reader) try { JSONObject expectedJsonObject = new JSONObject(expectedStr); File tempFile = testFolder.newFile("fileToJSONObject.xml"); @@ -638,5 +645,6 @@ public class XMLTest { } catch (IOException e) { assertTrue("file writer error: " +e.getMessage(), false); } + */ } } \ No newline at end of file