ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r640099 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/DOMUtilTest.java
Date Sat, 22 Mar 2008 22:23:45 GMT
Author: peterreilly
Date: Sat Mar 22 15:23:44 2008
New Revision: 640099

URL: http://svn.apache.org/viewvc?rev=640099&view=rev
Log:
fix unit test

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/DOMUtilTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/DOMUtilTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/DOMUtilTest.java?rev=640099&r1=640098&r2=640099&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/DOMUtilTest.java
(original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/DOMUtilTest.java
Sat Mar 22 15:23:44 2008
@@ -35,8 +35,9 @@
         DocumentBuilder db = JAXPUtils.getDocumentBuilder();
         InputStream is = this.getClass().getClassLoader().getResourceAsStream("taskdefs/optional/junit/matches.xml");
         Document doc = db.parse(is);
-        NodeList nl = DOMUtil.listChildNodes(doc.getFirstChild(), new FooNodeFilter(), true);
-        assertEquals(nl.getLength(), 3);
+        // First child is now a LICENSE comment
+        NodeList nl = DOMUtil.listChildNodes(doc.getFirstChild().getNextSibling(), new FooNodeFilter(),
true);
+        assertEquals("expecting 3", 3, nl.getLength());
     }
     public class FooNodeFilter implements DOMUtil.NodeFilter {
         public boolean accept(Node node) {



Mime
View raw message