Use better focused xpath query to make tests less brittle!

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115940 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
epugh committed 2004-08-09 14:31:13 +00:00
1 parent 41215bebdb
commit bcd052b123
1 file changed
+2 -2
+2 -2
View File
@@ -109,8 +109,8 @@
<u:file var="classpathFile" name="${dotClasspath}"/>
<x:parse var="classpathDoc" xml="${classpathFile.toURL()}" />
<!-- FIXME. This should filter where kind="src" -->
<x:set var="count" select="count($classpathDoc/classpath/classpathentry)"/>
<assert:assertEquals expected="5" value="${count.intValue().toString()}"/>
<x:set var="count" select="count($classpathDoc/classpath/classpathentry[contains(@kind,'src')])"/>
<assert:assertEquals expected="2" value="${count.intValue().toString()}"/>
</goal>