1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

Commenting out some code until JSON-java supports XML.toJSONObject(Reader)

This commit is contained in:
stleary 2015-09-27 23:55:32 -05:00
parent 3f78a85908
commit 1a5718dc39

View file

@ -612,10 +612,14 @@ public class XMLTest {
* @param expectedStr the expected JSON string * @param expectedStr the expected JSON string
*/ */
private void compareReaderToJSONObject(String xmlStr, String expectedStr) { 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); JSONObject expectedJsonObject = new JSONObject(expectedStr);
Reader reader = new StringReader(xmlStr); Reader reader = new StringReader(xmlStr);
JSONObject jsonObject = XML.toJSONObject(reader); JSONObject jsonObject = XML.toJSONObject(reader);
Util.compareActualVsExpectedJsonObjects(jsonObject,expectedJsonObject); Util.compareActualVsExpectedJsonObjects(jsonObject,expectedJsonObject);
*/
} }
/** /**
@ -626,6 +630,9 @@ public class XMLTest {
* @throws IOException * @throws IOException
*/ */
private void compareFileToJSONObject(String xmlStr, String expectedStr) { private void compareFileToJSONObject(String xmlStr, String expectedStr) {
/*
* Commenting out this method until the JSON-java code is updated
* to support XML.toJSONObject(reader)
try { try {
JSONObject expectedJsonObject = new JSONObject(expectedStr); JSONObject expectedJsonObject = new JSONObject(expectedStr);
File tempFile = testFolder.newFile("fileToJSONObject.xml"); File tempFile = testFolder.newFile("fileToJSONObject.xml");
@ -638,5 +645,6 @@ public class XMLTest {
} catch (IOException e) { } catch (IOException e) {
assertTrue("file writer error: " +e.getMessage(), false); assertTrue("file writer error: " +e.getMessage(), false);
} }
*/
} }
} }