1 | void testNoCVSRoot() {↵ | | 1 | void testSubant() {↵
|
2 | try{↵ | | 2 | try {↵
|
3 | executeTarget("test1");↵ | | 3 | configureProject("src/etc/testcases/taskdefs/toplevelsubant.xml");↵
|
4 | fail("BuildException not thrown");↵ | | 4 | fail("no exception thrown");↵
|
5 | }catch(BuildException e){↵ | | 5 | } catch (BuildException e) {↵
|
6 | assertEquals("cvsroot is required↵ | | 6 | assertEquals("subant task at the top level must not invoke its own"↵
|
7 | ", e.getMessage());↵ | | 7 | + " build file.", e.getMessage());↵
|
8 | }↵ | | 8 | }↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public void testNoPassword() {↵ | | 10 | public void testAntcall() {↵
|
11 | try{↵ | | 11 | try {↵
|
12 | executeTarget("test2");↵ | | 12 | configureProject("src/etc/testcases/taskdefs/toplevelantcall.xml");↵
|
13 | fail("BuildException not thrown");↵ | | 13 | fail("no exception thrown");↵
|
14 | }catch(BuildException e){↵ | | 14 | } catch (BuildException e) {↵
|
15 | assertEquals("password is required",↵ | | 15 | assertEquals("antcall must not be used at the top level.",↵
|
16 | e.getMessage());↵ | | 16 | e.getMessage());↵
|
17 | }↵ | | 17 | }↵
|
18 | | | 18 |
|