You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2009/01/28 10:55:10 UTC
svn commit: r738426 -
/ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml
Author: bodewig
Date: Wed Jan 28 09:55:10 2009
New Revision: 738426
URL: http://svn.apache.org/viewvc?rev=738426&view=rev
Log:
make assertResource(Doesnt)Contain(s) casesensitive flag do something useful
Modified:
ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml
Modified: ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml
URL: http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml?rev=738426&r1=738425&r2=738426&view=diff
==============================================================================
--- ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml (original)
+++ ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/antlib.xml Wed Jan 28 09:55:10 2009
@@ -140,7 +140,8 @@
default="Expected resource '@{resource}' to contain value '@{value}' but was '${@{resource}}'"/>
<sequential>
<au:assertTrue message="@{message}">
- <resourcecontains resource="@{resource}" substring="@{value}"/>
+ <resourcecontains resource="@{resource}" substring="@{value}"
+ casesensitive="@{casesensitive}"/>
</au:assertTrue>
</sequential>
</macrodef>
@@ -153,7 +154,8 @@
default="Didn't expect resource '@{resource}' to contain value '@{value}' but was '${@{resource}}'"/>
<sequential>
<au:assertFalse message="@{message}">
- <resourcecontains resource="@{resource}" substring="@{value}"/>
+ <resourcecontains resource="@{resource}" substring="@{value}"
+ casesensitive="@{casesensitive}"/>
</au:assertFalse>
</sequential>
</macrodef>