From 280ce7128586d6418b2319a491cdec4d5e9327b9 Mon Sep 17 00:00:00 2001 From: stleary Date: Fri, 1 Jan 2016 13:54:47 -0600 Subject: [PATCH] tabs to spaces --- XMLTest.java | 72 ++++++++++++++++++++++++++-------------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/XMLTest.java b/XMLTest.java index 8069f70..d35c8ac 100644 --- a/XMLTest.java +++ b/XMLTest.java @@ -391,16 +391,16 @@ public class XMLTest { */ @Test public void shouldHandleEmptyArray(){ - final JSONObject jo1 = new JSONObject(); - jo1.put("array",new Object[]{}); - final JSONObject jo2 = new JSONObject(); - jo2.put("array",new JSONArray()); + final JSONObject jo1 = new JSONObject(); + jo1.put("array",new Object[]{}); + final JSONObject jo2 = new JSONObject(); + jo2.put("array",new JSONArray()); - final String expected = ""; - String output1 = XML.toString(jo1,"jo"); - assertTrue("Expected an empty root tag", expected.equals(output1)); - String output2 = XML.toString(jo2,"jo"); - assertTrue("Expected an empty root tag", expected.equals(output2)); + final String expected = ""; + String output1 = XML.toString(jo1,"jo"); + assertTrue("Expected an empty root tag", expected.equals(output1)); + String output2 = XML.toString(jo2,"jo"); + assertTrue("Expected an empty root tag", expected.equals(output2)); } /** @@ -408,16 +408,16 @@ public class XMLTest { */ @Test public void shouldHandleEmptyMultiArray(){ - final JSONObject jo1 = new JSONObject(); - jo1.put("arr",new Object[]{"One", new String[]{}, "Four"}); - final JSONObject jo2 = new JSONObject(); - jo2.put("arr",new JSONArray(new Object[]{"One", new JSONArray(new String[]{}), "Four"})); + final JSONObject jo1 = new JSONObject(); + jo1.put("arr",new Object[]{"One", new String[]{}, "Four"}); + final JSONObject jo2 = new JSONObject(); + jo2.put("arr",new JSONArray(new Object[]{"One", new JSONArray(new String[]{}), "Four"})); - final String expected = "OneFour"; - String output1 = XML.toString(jo1,"jo"); - assertTrue("Expected a matching array", expected.equals(output1)); - String output2 = XML.toString(jo2,"jo"); - assertTrue("Expected a matching array", expected.equals(output2)); + final String expected = "OneFour"; + String output1 = XML.toString(jo1,"jo"); + assertTrue("Expected a matching array", expected.equals(output1)); + String output2 = XML.toString(jo2,"jo"); + assertTrue("Expected a matching array", expected.equals(output2)); } /** @@ -425,16 +425,16 @@ public class XMLTest { */ @Test public void shouldHandleNonEmptyArray(){ - final JSONObject jo1 = new JSONObject(); - jo1.put("arr",new String[]{"One", "Two", "Three"}); - final JSONObject jo2 = new JSONObject(); - jo2.put("arr",new JSONArray(new String[]{"One", "Two", "Three"})); + final JSONObject jo1 = new JSONObject(); + jo1.put("arr",new String[]{"One", "Two", "Three"}); + final JSONObject jo2 = new JSONObject(); + jo2.put("arr",new JSONArray(new String[]{"One", "Two", "Three"})); - final String expected = "OneTwoThree"; - String output1 = XML.toString(jo1,"jo"); - assertTrue("Expected a non empty root tag", expected.equals(output1)); - String output2 = XML.toString(jo2,"jo"); - assertTrue("Expected a non empty root tag", expected.equals(output2)); + final String expected = "OneTwoThree"; + String output1 = XML.toString(jo1,"jo"); + assertTrue("Expected a non empty root tag", expected.equals(output1)); + String output2 = XML.toString(jo2,"jo"); + assertTrue("Expected a non empty root tag", expected.equals(output2)); } /** @@ -442,16 +442,16 @@ public class XMLTest { */ @Test public void shouldHandleMultiArray(){ - final JSONObject jo1 = new JSONObject(); - jo1.put("arr",new Object[]{"One", new String[]{"Two", "Three"}, "Four"}); - final JSONObject jo2 = new JSONObject(); - jo2.put("arr",new JSONArray(new Object[]{"One", new JSONArray(new String[]{"Two", "Three"}), "Four"})); + final JSONObject jo1 = new JSONObject(); + jo1.put("arr",new Object[]{"One", new String[]{"Two", "Three"}, "Four"}); + final JSONObject jo2 = new JSONObject(); + jo2.put("arr",new JSONArray(new Object[]{"One", new JSONArray(new String[]{"Two", "Three"}), "Four"})); - final String expected = "OneTwoThreeFour"; - String output1 = XML.toString(jo1,"jo"); - assertTrue("Expected a matching array", expected.equals(output1)); - String output2 = XML.toString(jo2,"jo"); - assertTrue("Expected a matching array", expected.equals(output2)); + final String expected = "OneTwoThreeFour"; + String output1 = XML.toString(jo1,"jo"); + assertTrue("Expected a matching array", expected.equals(output1)); + String output2 = XML.toString(jo2,"jo"); + assertTrue("Expected a matching array", expected.equals(output2)); } /**