ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r537874 - /ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml
Date Mon, 14 May 2007 15:20:55 GMT
Author: mbenson
Date: Mon May 14 08:20:55 2007
New Revision: 537874

URL: http://svn.apache.org/viewvc?view=rev&rev=537874
Log:
add a test

Modified:
    ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml

Modified: ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml?view=diff&rev=537874&r1=537873&r2=537874
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml Mon May
14 08:20:55 2007
@@ -18,6 +18,14 @@
     </au:assertTrue>
   </target>
 
+  <target name="testContainsLowerNonCS">
+    <echo file="${file}" message="LOADS OF TEXT!"/>
+    <au:assertTrue message="Should have found the text in the resource">
+      <resourcecontains resource="${file}" substring="text"
+                        casesensitive="false"/>
+    </au:assertTrue>
+  </target>
+
   <target name="testwithemptyfile">
     <truncate file="${file}"/>
     <au:assertFalse message="Should have found nothing as file is empty">



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message