Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…s on my box".
  • Loading branch information...
commit 063d5b4212c9eaa8748ff886679ee0423d6b339b 1 parent 07dfe20
steveg103 authored
View
8 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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.