You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by mb...@apache.org on 2011/04/08 18:53:49 UTC

svn commit: r1090350 - /ant/core/trunk/src/tests/antunit/types/propertyset-test.xml

Author: mbenson
Date: Fri Apr  8 16:53:48 2011
New Revision: 1090350

URL: http://svn.apache.org/viewvc?rev=1090350&view=rev
Log:
add a basic resources test, plus a failing test demonstrating that propertysets with mappers don't function properly wrt returning resource iterators

Modified:
    ant/core/trunk/src/tests/antunit/types/propertyset-test.xml

Modified: ant/core/trunk/src/tests/antunit/types/propertyset-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/types/propertyset-test.xml?rev=1090350&r1=1090349&r2=1090350&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/types/propertyset-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/types/propertyset-test.xml Fri Apr  8 16:53:48 2011
@@ -97,4 +97,29 @@
       got="${toString:nested-mapped-mapped}"/>
   </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>