From 0f5afe02ab17b7a6b3466fe78365b618c9d1c13f Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Mon, 27 May 2013 14:03:25 +0200 Subject: [PATCH] #69 - Removed formatted output from VndError tests. Turned off JAXB output formatting as it creates OS-specific line-breaks which cause the assertions to fail. --- .../hateoas/VndErrorsMarshallingTests.java | 1 - src/test/resources/vnderror.xml | 19 +------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/src/test/java/org/springframework/hateoas/VndErrorsMarshallingTests.java b/src/test/java/org/springframework/hateoas/VndErrorsMarshallingTests.java index f98e3a86..9c119a2b 100644 --- a/src/test/java/org/springframework/hateoas/VndErrorsMarshallingTests.java +++ b/src/test/java/org/springframework/hateoas/VndErrorsMarshallingTests.java @@ -74,7 +74,6 @@ public class VndErrorsMarshallingTests { JAXBContext context = JAXBContext.newInstance(VndErrors.class); marshaller = context.createMarshaller(); - marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); VndError error = new VndError("42", "Validation failed!", // new Link("http://...", "help"), new Link("http://...", "describes")); diff --git a/src/test/resources/vnderror.xml b/src/test/resources/vnderror.xml index 94f69a39..4e3ba221 100644 --- a/src/test/resources/vnderror.xml +++ b/src/test/resources/vnderror.xml @@ -1,18 +1 @@ - - - - - - Validation failed! - - - - - Validation failed! - - - - - Validation failed! - - +Validation failed!Validation failed!Validation failed! \ No newline at end of file