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