1 | LoadFileTest(String name) {↵ | | 1 | GUnzipTest(String name) {↵
|
2 | super(name);↵ | | 2 | super(name);↵
|
3 | }↵ | | 3 | }↵
|
|
|
4 | /**↵ | | |
|
5 | * The JUnit setup method↵ | | |
|
6 | */↵ | | |
|
7 | public void setUp() {↵ | | 4 | public void setUp() {↵
|
8 | configureProject("src/etc/testcases/taskdefs/loadfile.xml");↵ | | 5 | configureProject("src/etc/testcases/taskdefs/gunzip.xml");↵
|
9 | }↵ | | 6 | }↵
|
|
|
10 | /**↵ | | |
|
11 | * The teardown method for JUnit↵ | | |
|
12 | */↵ | | |
|
13 | public void tearDown() {↵ | | 7 | public void tearDown() {↵
|
14 | executeTarget("cleanup");↵ | | 8 | executeTarget("cleanup");↵
|
15 | }↵ | | 9 | }↵
|
|
|
16 | /**↵ | | |
|
17 | * A unit test for JUnit↵ | | |
|
18 | */↵ | | |
|
19 | public void testNoSourcefileDefined() {↵ | | 10 | public void test1() {↵
|
20 | expectBuildException("testNoSourcefileDefined",↵ | | 11 | expectBuildException("test↵
|
21 | "source file not defined");↵ | | |
|
22 | }↵ | | |
|
|
|
23 | /**↵ | | |
|
24 | * A unit test for JUnit↵ | | |
|
25 | */↵ | | 12 | 1", "required argument missing");↵
|
| | | 13 | }↵
|
|
26 | public void testNoPropertyDefined() {↵ | | 14 | public void test2() {↵
|
27 | expectBuildException("testNoPropertyDefined",↵ | | 15 | expectBuildException("test↵
|
28 | "output property not defined");↵ | | 16 | 2", "attribute src invalid");↵
|
29 | | | 17 |
|