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