add a resourceDoesntContain assertion
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@688099 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7d90c2b1a0
commit
b015abd416
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue