1 | void tearDown() {↵ | | 1 | void testFTPURL() throws Exception {↵
|
2 | executeTarget("teardown");↵ | | 2 | executeTarget("testFTPURL");↵
|
3 | }↵ | | 3 | }↵
|
|
|
|
4 | /**↵ | | |
|
5 | * A unit test for JUnit↵ | | |
|
6 | */↵ | | |
|
7 | public void testNoParams() throws Exception {↵ | | 4 | public void testBoth() throws Exception {↵
|
8 | expectBuildExceptionContaining("testNoParams",↵ | | 5 | expectBuildExceptionContaining("testBoth",↵
|
9 | "expected failure",↵ | | 6 | "error on two targets",↵
|
10 | WsdlToDotnet.ERROR_NO_DEST_FILE);↵ | | 7 | ↵
|
11 | }↵ | | |
|
|
12 | /**↵ | | |
|
13 | * A unit test for JUnit↵ | | |
|
14 | */↵ | | 8 | IsReachable.ERROR_BOTH_TARGETS);↵
|
| | | 9 | }↵
|
|
15 | public void testNoSrc() throws Exception {↵ | | 10 | public void testNoTargets() throws Exception {↵
|
16 | expectBuildExceptionContaining("testNoSrc",↵ | | 11 | expectBuildExceptionContaining("testNoTargets",↵
|
17 | "expected failure",↵ | | 12 | "no params",↵
|
18 | WsdlToDotnet.Schema.ERROR_NONE_DECLARED);↵ | | 13 | ↵
|
19 | }↵ | | |
|
|
20 | /**↵ | | |
|
21 | * A unit test for JUnit↵ | | |
|
22 | */↵ | | 14 | IsReachable.ERROR_NO_HOSTNAME);↵
|
| | | 15 | }↵
|
|
23 | public void testDestIsDir() throws Exception {↵ | | 16 | public void testBadTimeout() throws Exception {↵
|
24 | expectBuildExceptionContaining("testDestIsDir",↵ | | 17 | expectBuildExceptionContaining("testBadTimeout",↵
|
25 | "expected failure",↵ | | 18 | "error on -ve timeout",↵
|
26 | WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);↵ | | 19 | IsReachable.ERROR_BAD_TIMEOUT);↵
|
27 | | | 20 |
|