|
From: <bo...@us...> - 2008-03-18 05:02:28
|
Revision: 251
http://xmlunit.svn.sourceforge.net/xmlunit/?rev=251&view=rev
Author: bodewig
Date: 2008-03-17 22:02:30 -0700 (Mon, 17 Mar 2008)
Log Message:
-----------
Add test for forum thread 1973067
Modified Paths:
--------------
trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java
Modified: trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java
===================================================================
--- trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java 2008-03-14 15:48:26 UTC (rev 250)
+++ trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java 2008-03-18 05:02:30 UTC (rev 251)
@@ -744,4 +744,20 @@
}
}
+ /**
+ * @see https://sourceforge.net/forum/message.php?msg_id=4843316
+ */
+ public void testNormalizeWhiteSpaceDoesntStripLeadingSpace()
+ throws Exception {
+ String control = "<name>value</name>";
+ String test = "<name> value</name>";
+ XMLUnit.setNormalizeWhitespace(true);
+ try {
+ Diff diff = XMLUnit.compareXML(control, test);
+ assertFalse(diff.toString(), diff.similar());
+ } finally {
+ XMLUnit.setNormalizeWhitespace(false);
+ }
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|