1 | void testLocalhost() throws Exception {↵ | | 1 | void testDestDirFileset() {↵
|
2 | executeTarget("testLocalhost");↵ | | 2 | executeTarget("testDestDirFileset");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void testLocalhostURL() throws Exception {↵ | | 4 | public void testMapperFileset() {↵
|
5 | executeTarget("testLocalhostURL");↵ | | 5 | executeTarget("testMapperFileset");↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public void testIpv4localhost() throws Exception {↵ | | 7 | public void testDestDirPath() {↵
|
8 | executeTarget("testIpv4localhost");↵ | | 8 | executeTarget("testDestDirPath");↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public void testFTPURL() throws Exception {↵ | | 10 | public void testMapperPath() {↵
|
11 | executeTarget("testFTPURL");↵ | | 11 | executeTarget("testMapperPath");↵
|
12 | }↵ | | 12 | }↵
|
|
13 | public void testBoth() throws Exception {↵ | | 13 | public void testMapperNoDest() {↵
|
14 | expectBuildExceptionContaining("testBoth",↵ | | 14 | expectBuildExceptionContaining("testMapperNoDest",↵
|
15 | "error on two targets",↵ | | 15 | "two mappers",↵
|
16 | IsReachable.ERROR_BOTH_TARGETS);↵ | | 16 | SignJar.ERROR_MAPPER_WITHOUT_DEST);↵
|
17 | }↵ | | 17 | }↵
|
|
18 | public void testNoTargets() throws Exception {↵ | | 18 | public void testTwoMappers() {↵
|
19 | expectBuildExceptionContaining("testNoTargets",↵ | | 19 | expectBuildExceptionContaining("testTwoMappers",↵
|
20 | "no params",↵ | | 20 | "two mappers",↵
|
21 | IsReachable.ERROR_NO_HOSTNAME);↵ | | 21 | ↵
|
22 | }↵ | | |
|
|
23 | public void testBadTimeout() throws Exception↵ | | 22 | SignJar.ERROR_TOO_MANY_MAPPERS);↵
|
| | | 23 | }↵
|
|
24 | {↵ | | 24 | public void testNoAlias() {↵
|
25 | expectBuildExceptionContaining("testBadTimeout",↵ | | 25 | expectBuildExceptionContaining("testNoAlias",↵
|
26 | "error on -ve timeout",↵ | | 26 | "no alias",↵
|
27 | IsReachable.ERROR_BAD_TIMEOUT);↵ | | 27 | SignJar.ERROR_NO_ALIAS);↵
|
28 | }↵ | | 28 | }↵
|
|
29 | public void NotestFile() throws Exception {↵ | | 29 | public void testNoFiles() {↵
|
30 | expectBuildExceptionContaining("testFile",↵ | | 30 | expectBuildExceptionContaining("testNoFiles",↵
|
31 | "error on file URL",↵ | | 31 | "no files",↵
|
32 | IsReachable.ERROR_NO_HOST_IN_URL);↵ | | 32 | SignJar.ERROR_NO_SOURCE);↵
|
33 | }↵ | | 33 | }↵
|
|
34 | public void testBadURL() throws Exception {↵ | | 34 | public void testNoStorePass() {↵
|
35 | expectBuildExceptionContaining("testBadURL",↵ | | 35 | expectBuildExceptionContaining("testNoStorePass",↵
|
36 | "error in URL",↵ | | 36 | "no password",↵
|
37 | IsReachable.ERROR_BAD_URL);↵ | | 37 | SignJar.ERROR_NO_STOREPASS);↵
|
38 | } | | 38 | }
|