Permalink
Browse files

Removing trim/newline stuff from JSON representations - classic "work…

…s on my box".
  • Loading branch information...
1 parent 07dfe20 commit 063d5b4212c9eaa8748ff886679ee0423d6b339b steveg103 committed Apr 26, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/test/java/com/theoryinpractise/halbuilder/RenderingTest.java
@@ -38,19 +38,19 @@ public void setup() throws IOException {
exampleXml = Resources.toString(RenderingTest.class.getResource("example.xml"), Charsets.UTF_8)
.trim().replaceAll("\n", "\r\n");
exampleJson = Resources.toString(RenderingTest.class.getResource("example.json"), Charsets.UTF_8)
- .trim().replaceAll("\n", "\r\n");
+ .trim();
exampleWithSubresourceXml = Resources.toString(RenderingTest.class.getResource("exampleWithSubresource.xml"), Charsets.UTF_8)
.trim().replaceAll("\n", "\r\n");
exampleWithSubresourceJson = Resources.toString(RenderingTest.class.getResource("exampleWithSubresource.json"), Charsets.UTF_8)
- .trim().replaceAll("\n", "\r\n");
+ .trim();
exampleWithMultipleSubresourcesXml = Resources.toString(RenderingTest.class.getResource("exampleWithMultipleSubresources.xml"), Charsets.UTF_8)
.trim().replaceAll("\n", "\r\n");
exampleWithMultipleSubresourcesJson = Resources.toString(RenderingTest.class.getResource("exampleWithMultipleSubresources.json"), Charsets.UTF_8)
- .trim().replaceAll("\n", "\r\n");
+ .trim();
exampleWithNullPropertyXml = Resources.toString(RenderingTest.class.getResource("exampleWithNullProperty.xml"), Charsets.UTF_8)
.trim().replaceAll("\n", "\r\n");
exampleWithNullPropertyJson = Resources.toString(RenderingTest.class.getResource("exampleWithNullProperty.json"), Charsets.UTF_8)
- .trim().replaceAll("\n", "\r\n");
+ .trim();
}

0 comments on commit 063d5b4

Please sign in to comment.