1 | void testParseableErrorsIgnoredWhenFalse() throws Exception {↵ | | 1 | void testMapperPath() {↵
|
2 | executeTarget("testLocalWsdl");↵ | | 2 | executeTarget("testMapperPath");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | ↵
|
5 | * A unit test for JUnit↵ | | |
|
6 | */↵ | | |
|
7 | public void testSchemaFileMustExist() throws Exception {↵ | | 5 | public void testMapperNoDest() {↵
|
8 | expectBuildExceptionContaining("testSchemaFileMustExist",↵ | | 6 | expectBuildExceptionContaining("testMapperNoDest",↵
|
9 | "expected failure",↵ | | 7 | "two mappers",↵
|
10 | WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);↵ | | 8 | ↵
|
11 | }↵ | | |
|
|
12 | /**↵ | | |
|
13 | * A unit test for JUnit↵ | | |
|
14 | */↵ | | |
|
15 | public void testSchemaFileMustHaveOneOptionOnly() throws Exception↵ | | 9 | SignJar.ERROR_MAPPER_WITHOUT_DEST);↵
|
| | | 10 | }↵
|
|
16 | {↵ | | 11 | public void testTwoMappers() {↵
|
17 | expectBuildExceptionContaining("testSchemaFileMustHaveOneOptionOnly",↵ | | 12 | expectBuildExceptionContaining("testTwoMappers",↵
|
18 | "expected failure",↵ | | 13 | "two mappers",↵
|
19 | WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);↵ | | 14 | ↵
|
20 | }↵ | | |
|
|
21 | /**↵ | | |
|
22 | * A unit test for JUnit↵ | | |
|
23 | */↵ | | |
|
24 | public void testSchemaMustBeSet() throws Exception↵ | | 15 | SignJar.ERROR_TOO_MANY_MAPPERS);↵
|
| | | 16 | }↵
|
|
25 | {↵ | | 17 | public void testNoAlias() {↵
|
26 | expectBuildExceptionContaining("testSchemaMustBeSet",↵ | | 18 | expectBuildExceptionContaining("testNoAlias",↵
|
27 | "expected failure",↵ | | 19 | "no alias",↵
|
28 | WsdlToDotnet.Schema.ERROR_NONE_DECLARED);↵ | | 20 | SignJar.ERROR_NO_ALIAS);↵
|
29 | | | 21 |
|