From: Stefan B. <bo...@us...> - 2003-01-20 16:21:41
|
Update of /cvsroot/ant-contrib/ant-contrib/test/src/net/sf/antcontrib/logic In directory sc8-pr-cvs1:/tmp/cvs-serv26998/test/src/net/sf/antcontrib/logic Modified Files: ForeachTaskTest.java Log Message: Add checking for insufficient parameters, change wording Index: ForeachTaskTest.java =================================================================== RCS file: /cvsroot/ant-contrib/ant-contrib/test/src/net/sf/antcontrib/logic/ForeachTaskTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ForeachTaskTest.java 20 Jan 2003 16:11:40 -0000 1.2 --- ForeachTaskTest.java 20 Jan 2003 16:21:35 -0000 1.3 *************** *** 86,89 **** --- 86,104 ---- } + public void testNoList() { + expectSpecificBuildException("noList", "neither list nor fileset", + "You must have a list or fileset to iterate through"); + } + + public void testNoTarget() { + expectSpecificBuildException("noTarget", "no target", + "You must supply a target to perform"); + } + + public void testNoParam() { + expectSpecificBuildException("noParam", "no param", + "You must supply a property name to set on each iteration in param"); + } + private void simpleTest(String target) { executeTarget(target); |