You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2005/11/07 00:55:30 UTC

svn commit: r331165 - /ant/sandbox/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml

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