ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r331165 - /ant/sandbox/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml
Date Sun, 06 Nov 2005 23:55:30 GMT
Author: stevel
Date: Sun Nov  6 15:55:23 2005
New Revision: 331165

URL: http://svn.apache.org/viewcvs?rev=331165&view=rev
Log:
an extra test

Modified:
    ant/sandbox/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml

Modified: ant/sandbox/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml
URL: http://svn.apache.org/viewcvs/ant/sandbox/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml?rev=331165&r1=331164&r2=331165&view=diff
==============================================================================
--- ant/sandbox/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml (original)
+++ ant/sandbox/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml Sun Nov 
6 15:55:23 2005
@@ -80,6 +80,20 @@
     </sequential>
   </macrodef>
 
+  <macrodef name="assertPropertyContains">
+    <attribute name="name"/>
+    <attribute name="value"/>
+    <attribute name="casesensitive" default="true"/>
+    <attribute name="message"
+               default="Expected property '@{name}' to contain value '@{value}' but was '${@{name}}'"/>
+    <sequential>
+      <au:assertPropertySet message="@{message}" name="@{name}"/>
+      <au:assertTrue message="@{message}">
+        <contains string="@{name}" substring="@{value}"/>
+      </au:assertTrue>
+    </sequential>
+  </macrodef>
+  
   <macrodef name="assertFileExists">
     <attribute name="file"/>
     <attribute name="message"



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


Mime
View raw message