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