From: <bo...@us...> - 2013-02-03 10:20:13
|
Revision: 508 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=508&view=rev Author: bodewig Date: 2013-02-03 10:20:06 +0000 (Sun, 03 Feb 2013) Log Message: ----------- backport xsi:nil test Modified Paths: -------------- branches/xmlunit-1.x/tests/java/org/custommonkey/xmlunit/test_Diff.java Property Changed: ---------------- branches/xmlunit-1.x/tests/java/org/custommonkey/xmlunit/test_Diff.java Modified: branches/xmlunit-1.x/tests/java/org/custommonkey/xmlunit/test_Diff.java =================================================================== --- branches/xmlunit-1.x/tests/java/org/custommonkey/xmlunit/test_Diff.java 2013-02-03 10:17:50 UTC (rev 507) +++ branches/xmlunit-1.x/tests/java/org/custommonkey/xmlunit/test_Diff.java 2013-02-03 10:20:06 UTC (rev 508) @@ -975,5 +975,14 @@ Diff diff = new Diff(control, test); assertFalse(diff.toString(), diff.similar()); } + public void testXsiNil() throws Exception { + String test = "<foo xsi:nil=\"true\" " + + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"/>"; + + String control = "<foo xsi:nil=\"false\" " + + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"/>"; + Diff diff = new Diff(control, test); + assertFalse(diff.toString(), diff.similar()); + } } Property changes on: branches/xmlunit-1.x/tests/java/org/custommonkey/xmlunit/test_Diff.java ___________________________________________________________________ Added: svn:mergeinfo + /trunk/xmlunit/src/tests/java-legacy/org/custommonkey/xmlunit/test_Diff.java:507 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |