]> source.dussan.org Git - gitblit.git/commitdiff
Fixed Json pretty print unit test failure
authorJames Moger <james.moger@gitblit.com>
Tue, 2 Jul 2013 18:52:11 +0000 (14:52 -0400)
committerJames Moger <james.moger@gitblit.com>
Tue, 2 Jul 2013 18:52:11 +0000 (14:52 -0400)
src/test/java/com/gitblit/tests/JsonUtilsTest.java

index cf058441caf81ceacfcce1ed351ace135093c62b..40e8f97545d505a142b4870002d1470f029231b5 100644 (file)
@@ -39,7 +39,7 @@ public class JsonUtilsTest {
                map.put("e", "eagle");\r
                String json = JsonUtils.toJsonString(map);\r
                assertEquals(\r
-                               "{\n  \"d\": \"dingo\",\n  \"e\": \"eagle\",\n  \"b\": \"bear\",\n  \"c\": \"caterpillar\",\n  \"a\": \"alligator\"\n}",\r
+                               "{\"d\":\"dingo\",\"e\":\"eagle\",\"b\":\"bear\",\"c\":\"caterpillar\",\"a\":\"alligator\"}",\r
                                json);\r
                Map<String, String> map2 = JsonUtils.fromJsonString(json,\r
                                new TypeToken<Map<String, String>>() {\r