1 | void setUp() {↵ | | 1 | void setUp() {↵
|
2 | configureProject("src/etc/testcases/taskdefs/loadfile.xml");↵ | | 2 | configureProject("src/etc/testcases/taskdefs/ant.xml");↵
|
3 | }↵ | | 3 | }↵
|
|
|
4 | /**↵ | | |
|
5 | * The teardown method for JUnit↵ | | |
|
6 | */↵ | | |
|
7 | public void tearDown() {↵ | | 4 | public void tearDown() {↵
|
8 | executeTarget("cleanup");↵ | | 5 | executeTarget("cleanup");↵
|
9 | }↵ | | 6 | }↵
|
|
|
10 | /**↵ | | |
|
11 | * A unit test for JUnit↵ | | |
|
12 | */↵ | | |
|
13 | public void testNoSourcefileDefined() {↵ | | 7 | public void test1() {↵
|
14 | expectBuildException("testNoSourcefileDefined",↵ | | 8 | expectBuildException("test↵
|
15 | "source file not defined");↵ | | 9 | 1", "recursive call");↵
|
16 | }↵ | | 10 | }↵
|
|
|
17 | /**↵ | | 11 | /↵
|
18 | * A unit test for JUnit↵ | | |
|
19 | */↵ | | 12 | / target must be specified↵
|
20 | public void testNoPropertyDefined() {↵ | | 13 | public void test2() {↵
|
21 | expectBuildException("testNoPropertyDefined",↵ | | 14 | expectBuildException("test↵
|
22 | "output property not defined");↵ | | 15 | 2", "required argument not specified");↵
|
23 | | | 16 |
|