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:
parent
3063581238
commit
c51e64f868
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue