From: <bo...@us...> - 2010-09-12 06:12:26
|
Revision: 464 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=464&view=rev Author: bodewig Date: 2010-09-12 06:12:20 +0000 (Sun, 12 Sep 2010) Log Message: ----------- yes, the XPath is different, but it is more correct now. XPath for missing element uses the element's XPath and not the one of its parent as well Modified Paths: -------------- trunk/xmlunit/src/tests/java-legacy/org/custommonkey/xmlunit/test_Difference.java Modified: trunk/xmlunit/src/tests/java-legacy/org/custommonkey/xmlunit/test_Difference.java =================================================================== --- trunk/xmlunit/src/tests/java-legacy/org/custommonkey/xmlunit/test_Difference.java 2010-09-12 06:07:29 UTC (rev 463) +++ trunk/xmlunit/src/tests/java-legacy/org/custommonkey/xmlunit/test_Difference.java 2010-09-12 06:12:20 UTC (rev 464) @@ -99,7 +99,7 @@ } // bug 2386807 - public void NOtestXpathOfMissingAttribute() throws Exception { + public void testXpathOfMissingAttribute() throws Exception { Diff d = new Diff("<foo><bar a=\"x\" y=\"z\"/></foo>", "<foo><bar a=\"x\"/></foo>"); DetailedDiff dd = new DetailedDiff(d); @@ -115,7 +115,7 @@ Difference d2 = (Difference) diffs.get(1); assertEquals(DifferenceConstants.ATTR_NAME_NOT_FOUND_ID, d2.getId()); - assertEquals("/foo[1]/bar[1]", + assertEquals("/foo[1]/bar[1]/@y", d2.getControlNodeDetail().getXpathLocation()); assertEquals("/foo[1]/bar[1]", d2.getTestNodeDetail().getXpathLocation()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |