1 | void setUp() {↵ | | 1 | void setUp() {↵
|
2 | configureProject("src/etc/testcases/taskdefs/loadfile.xml");↵ | | 2 | configureProject("src/etc/testcases/taskdefs/concat.xml");↵
|
3 | }↵ | | 3 | }↵
|
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * The teardown method for JUnit↵ | | 5 | * Test tear down, called by the unit test framework prior to each↵
|
| | | 6 | * test.↵
|
6 | */↵ | | 7 | */↵
|
7 | public void tearDown() {↵ | | 8 | public void tearDown() {↵
|
8 | executeTarget("cleanup");↵ | | 9 | executeTarget("cleanup");↵
|
9 | }↵ | | 10 | }↵
|
|
|
10 | /**↵ | | 11 | /**↵
|
11 | * A unit test for JUnit↵ | | 12 | * Expect an exception when insufficient information is provided.↵
|
12 | */↵ | | 13 | */↵
|
13 | public void testNoSourcefileDefined() {↵ | | 14 | public void test1() {↵
|
14 | expectBuildException("testNoSourcefileDefined",↵ | | 15 | expectBuildException("test↵
|
15 | "source file not defined");↵ | | 16 | 1", "Insufficient information.");↵
|
16 | }↵ | | 17 | }↵
|
|
|
17 | /**↵ | | 18 | /**↵
|
18 | * A unit test for JUnit↵ | | 19 | * Expect an exception when the destination file is invalid.↵
|
19 | */↵ | | 20 | */↵
|
20 | public void testNoPropertyDefined() {↵ | | 21 | public void test2() {↵
|
21 | expectBuildException("testNoPropertyDefined",↵ | | 22 | expectBuildException("test↵
|
22 | "output property not defined");↵ | | 23 | 2", "Invalid destination file.");↵
|
23 | | | 24 |
|