ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1090350 - /ant/core/trunk/src/tests/antunit/types/propertyset-test.xml
Date Fri, 08 Apr 2011 16:53:49 GMT
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>



Mime
View raw message