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:
1 parent
41215bebdb
commit
bcd052b123
1 file changed
+2
-2
@@ -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>
|
||||
|
||||
|
||||
Reference in new issue
Block a user