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