add testcase for previous change

git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@448269 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Matthew Jason Benson 2006-09-20 17:10:17 +00:00
parent 3063581238
commit c51e64f868
2 changed files with 11 additions and 1 deletions

View File

@ -35,6 +35,12 @@ under the License.
<au:antunit/>
</target>
<target name="emptyTests">
<au:antunit>
<resources />
</au:antunit>
</target>
<target name="nonFile">
<au:antunit>
<url url="http://ant.apache.org/"/>
@ -91,4 +97,4 @@ under the License.
</junitreport>
<fail if="antunit-failure">At least one test has failed</fail>
</target>
</project>
</project>

View File

@ -68,6 +68,10 @@ public class AntUnitTest extends BuildFileTest {
AntUnit.ERROR_NO_TESTS);
}
public void testEmptyTests() {
executeTarget("emptyTests");
}
public void testNonFile() {
expectSpecificBuildException("nonFile",
"URL has been specified",