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