Browse Source

add test

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@537881 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
d46731bc2c
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/tests/antunit/taskdefs/condition/resourcecontains-test.xml

+ 8
- 0
src/tests/antunit/taskdefs/condition/resourcecontains-test.xml View File

@@ -39,6 +39,14 @@
</au:assertTrue> </au:assertTrue>
</target> </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"> <target name="testwithemptyfile">
<truncate file="${file}"/> <truncate file="${file}"/>
<au:assertFalse message="Should have found nothing as file is empty"> <au:assertFalse message="Should have found nothing as file is empty">


Loading…
Cancel
Save