From 001e972f46ff99ecaf6c0ba8826a0700c1f1cee0 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Wed, 15 Aug 2012 10:10:38 +0000 Subject: [PATCH] SWS-786 - SOAP envelope Matcher / MessageCreator --- .../ws/test/support/matcher/SoapEnvelopeDiffMatcher.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/src/main/java/org/springframework/ws/test/support/matcher/SoapEnvelopeDiffMatcher.java b/test/src/main/java/org/springframework/ws/test/support/matcher/SoapEnvelopeDiffMatcher.java index b2bc9ef1d..ccdc163e8 100644 --- a/test/src/main/java/org/springframework/ws/test/support/matcher/SoapEnvelopeDiffMatcher.java +++ b/test/src/main/java/org/springframework/ws/test/support/matcher/SoapEnvelopeDiffMatcher.java @@ -26,6 +26,7 @@ import org.springframework.xml.transform.TransformerHelper; import org.custommonkey.xmlunit.Diff; +import org.custommonkey.xmlunit.XMLUnit; import org.w3c.dom.Document; import static org.springframework.ws.test.support.AssertionErrors.assertTrue; @@ -43,6 +44,10 @@ public class SoapEnvelopeDiffMatcher extends AbstractSoapMessageMatcher { private final TransformerHelper transformerHelper = new TransformerHelper(); + static { + XMLUnit.setIgnoreWhitespace(true); + } + public SoapEnvelopeDiffMatcher(Source expected) { Assert.notNull(expected, "'expected' must not be null"); this.expected = expected;