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