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