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