Browse Source

add a basic resources test, plus a failing test demonstrating that propertysets with mappers don't function properly wrt returning resource iterators

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1090350 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 14 years ago
parent
commit
5909b77dc4
1 changed files with 25 additions and 0 deletions
  1. +25
    -0
      src/tests/antunit/types/propertyset-test.xml

+ 25
- 0
src/tests/antunit/types/propertyset-test.xml View File

@@ -97,4 +97,29 @@
got="${toString:nested-mapped-mapped}"/> got="${toString:nested-mapped-mapped}"/>
</target> </target>


<target name="testResources">
<au:assertTrue>
<resourcecount count="2">
<restrict>
<exists />
<resources refid="my-set" />
</restrict>
</resourcecount>
</au:assertTrue>
</target>

<target name="testMappedResources">
<au:assertTrue>
<resourcecount count="2">
<restrict>
<exists />
<propertyset>
<propertyset refid="my-set" />
<globmapper from="bar*" to="far*" />
</propertyset>
</restrict>
</resourcecount>
</au:assertTrue>
</target>

</project> </project>

Loading…
Cancel
Save