Polishing (backported from 3.2.x)

This commit is contained in:
Juergen Hoeller 2013-12-03 01:37:01 +01:00
parent 2a52decbbc
commit f5a310ad57
1 changed files with 1 additions and 4 deletions

View File

@ -40,7 +40,6 @@ import static org.springframework.test.util.MatcherAssertionErrors.*;
*/
public class XmlExpectationsHelper {
/**
* Parse the content as {@link Node} and apply a {@link Matcher}.
*/
@ -54,8 +53,7 @@ public class XmlExpectationsHelper {
factory.setNamespaceAware(true);
DocumentBuilder documentBuilder = factory.newDocumentBuilder();
InputSource inputSource = new InputSource(new StringReader(xml));
Document document = documentBuilder.parse(inputSource);
return document;
return documentBuilder.parse(inputSource);
}
/**
@ -79,7 +77,6 @@ public class XmlExpectationsHelper {
* @see org.springframework.test.web.servlet.result.MockMvcResultMatchers#xpath(String, Map, Object...)
*/
public void assertXmlEqual(String expected, String actual) throws Exception {
XMLUnit.setIgnoreWhitespace(true);
XMLUnit.setIgnoreComments(true);
XMLUnit.setIgnoreAttributeOrder(true);