Author: bodewig
Date: Fri Aug 22 08:33:21 2008
New Revision: 688099

URL: http://svn.apache.org/viewvc?rev=688099&view=rev
Log:
add a resourceDoesntContain assertion

Modified:
    ant/antlibs/antunit/trunk/changes.xml
    ant/antlibs/antunit/trunk/docs/assertions.html

Modified: ant/antlibs/antunit/trunk/changes.xml
URL: 
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/changes.xml?rev=688099&r1=688098&r2=688099&view=diff
==============================================================================
--- ant/antlibs/antunit/trunk/changes.xml (original)
+++ ant/antlibs/antunit/trunk/changes.xml Fri Aug 22 08:33:21 2008
@@ -62,6 +62,10 @@
       xmllistener will now log the properties of the project under
       test
     </action>
+    <action type="add">
+      added new assertResourceContains and assertResourceDoesntContain
+      assertion
+    </action>
   </release>
 
 </document>

Modified: ant/antlibs/antunit/trunk/docs/assertions.html
URL: 
http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/docs/assertions.html?rev=688099&r1=688098&r2=688099&view=diff
==============================================================================
--- ant/antlibs/antunit/trunk/docs/assertions.html (original)
+++ ant/antlibs/antunit/trunk/docs/assertions.html Fri Aug 22 08:33:21 2008
@@ -671,6 +671,44 @@
       </tr>
     </table>
 
+    <h2><a 
name="assertResourceDoesntContain">assertResourceDoesntContain</a></h2>
+
+    <p>Asserts that a resource's content doesn't include a given string.</p>
+
+    <table border="1" cellpadding="2" cellspacing="0">
+      <tr>
+        <td valign="top"><b>Attribute</b></td>
+        <td valign="top"><b>Description</b></td>
+        <td align="center" valign="top"><b>Required</b></td>
+      </tr>
+      <tr>
+        <td valign="top">resource</td>
+        <td valign="top">Location of the resource to load.</td>
+        <td valign="top" align="center">Yes</td>
+      </tr>
+      <tr>
+        <td valign="top">value</td>
+        <td valign="top">The text to search for.</td>
+        <td valign="top" align="center">Yes</td>
+      </tr>
+        <tr>
+          <td valign="top">casesensitive</td>
+          <td valign="top">
+            Perform a case sensitive match.
+            Default is true.
+          </td>
+          <td align="center">No.</td>
+        </tr>
+      <tr>
+        <td valign="top">message</td>
+        <td valign="top">Message for the exception if the condition
+          doesn't hold true.  Defaults to "Didn't expect resource
+          '<em>resource</em>' to contain value '<em>value</em>' but
+          was '<em>content of resource</em>'".</td>
+        <td align="center">No.</td>
+      </tr>
+    </table>
+
     <hr/>
   </body>
 </html>


Reply via email to