From: <bo...@us...> - 2007-08-23 10:59:48
|
Revision: 230 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=230&view=rev Author: bodewig Date: 2007-08-23 03:59:48 -0700 (Thu, 23 Aug 2007) Log Message: ----------- Add test for whitespace handling in the presence of namespaces. Bug report 1779701 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 2007-08-10 07:30:53 UTC (rev 229) +++ trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java 2007-08-23 10:59:48 UTC (rev 230) @@ -706,4 +706,26 @@ assertTrue(d.toString(), d.similar()); } + /** + * Bug Report 1779701 + * @see http://sourceforge.net/tracker/index.php?func=detail&aid=1779701&group_id=23187&atid=377768 + */ + public void testWhitespaceAndNamespaces() throws Exception { + String control = + "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" + + "\r\n <env:Header/>" + + "\r\n </env:Envelope>"; + String test = + "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" + + "<env:Header/>" + + "</env:Envelope>"; + XMLUnit.setIgnoreWhitespace(true); + try { + Diff diff = XMLUnit.compareXML(control, test); + assertTrue(diff.toString(), diff.identical()); + } finally { + XMLUnit.setIgnoreWhitespace(false); + } + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bo...@us...> - 2008-01-04 09:39:27
|
Revision: 234 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=234&view=rev Author: bodewig Date: 2008-01-04 01:39:29 -0800 (Fri, 04 Jan 2008) Log Message: ----------- Add testcase for bug report 1833632 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 2007-11-27 12:27:27 UTC (rev 233) +++ trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java 2008-01-04 09:39:29 UTC (rev 234) @@ -728,4 +728,20 @@ } } + /** + * Bug Report 1863632 + * @see http://sourceforge.net/tracker/index.php?func=detail&aid=1863632&group_id=23187&atid=377768 + */ + public void testBasicWhitespaceHandling() throws Exception { + String control = "<a><b/></a>"; + String test = "<a>\r\n <b/>\r\n</a>"; + XMLUnit.setIgnoreWhitespace(true); + try { + Diff diff = XMLUnit.compareXML(control, test); + assertTrue(diff.toString(), diff.identical()); + } finally { + XMLUnit.setIgnoreWhitespace(false); + } + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bo...@us...> - 2008-01-04 09:45:24
|
Revision: 235 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=235&view=rev Author: bodewig Date: 2008-01-04 01:45:17 -0800 (Fri, 04 Jan 2008) Log Message: ----------- happy new year 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-01-04 09:39:29 UTC (rev 234) +++ trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java 2008-01-04 09:45:17 UTC (rev 235) @@ -1,6 +1,6 @@ /* ****************************************************************** -Copyright (c) 2001-2007, Jeff Martin, Tim Bacon +Copyright (c) 2001-2008, Jeff Martin, Tim Bacon All rights reserved. Redistribution and use in source and binary forms, with or without This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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. |
From: <bo...@us...> - 2008-03-18 05:10:18
|
Revision: 252 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=252&view=rev Author: bodewig Date: 2008-03-17 22:10:22 -0700 (Mon, 17 Mar 2008) Log Message: ----------- disable failing test 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-18 05:02:30 UTC (rev 251) +++ trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java 2008-03-18 05:10:22 UTC (rev 252) @@ -747,7 +747,7 @@ /** * @see https://sourceforge.net/forum/message.php?msg_id=4843316 */ - public void testNormalizeWhiteSpaceDoesntStripLeadingSpace() + public void XtestNormalizeWhiteSpaceDoesntStripLeadingSpace() throws Exception { String control = "<name>value</name>"; String test = "<name> value</name>"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bo...@us...> - 2008-03-26 20:49:38
|
Revision: 255 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=255&view=rev Author: bodewig Date: 2008-03-26 13:49:12 -0700 (Wed, 26 Mar 2008) Log Message: ----------- Test DetailedDiff in subclass 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-26 05:02:03 UTC (rev 254) +++ trunk/xmlunit/tests/java/org/custommonkey/xmlunit/test_Diff.java 2008-03-26 20:49:12 UTC (rev 255) @@ -721,7 +721,7 @@ + "</env:Envelope>"; XMLUnit.setIgnoreWhitespace(true); try { - Diff diff = XMLUnit.compareXML(control, test); + Diff diff = buildDiff(control, test); assertTrue(diff.toString(), diff.identical()); } finally { XMLUnit.setIgnoreWhitespace(false); @@ -737,10 +737,11 @@ String test = "<a>\r\n <b/>\r\n</a>"; XMLUnit.setIgnoreWhitespace(true); try { - Diff diff = XMLUnit.compareXML(control, test); + Diff diff = buildDiff(control, test); assertTrue(diff.toString(), diff.identical()); } finally { XMLUnit.setIgnoreWhitespace(false); } } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |