Author: mbenson
Date: Mon May 14 08:33:05 2007
New Revision: 537881
URL: http://svn.apache.org/viewvc?view=rev&rev=537881
Log:
add test
Modified:
ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml
Modified:
ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml
URL:
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml?view=diff&rev=537881&r1=537880&r2=537881
==============================================================================
---
ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml
(original)
+++
ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml
Mon May 14 08:33:05 2007
@@ -39,6 +39,14 @@
</au:assertTrue>
</target>
+ <target name="testContainsEmptyProperty">
+ <property name="testContainsEmptyProperty" value="" />
+ <au:assertTrue message="Should have found the text in the resource">
+ <resourcecontains resource="${file}"
+ substring="${testContainsEmptyProperty}" />
+ </au:assertTrue>
+ </target>
+
<target name="testwithemptyfile">
<truncate file="${file}"/>
<au:assertFalse message="Should have found nothing as file is empty">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]