1 | void testSchemaFileMustExist() throws Exception {↵ | | 1 | void testNoFile() throws Exception {↵
|
2 | expectBuildExceptionContaining("testSchemaFileMustExist",↵ | | 2 | expectBuildExceptionContaining("testNoFile",↵
|
3 | "expected failure",↵ | | 3 | "no file at file attribute",↵
|
4 | WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);↵ | | 4 | SchemaValidate.SchemaLocation.ERROR_NO_FILE);↵
|
5 | }↵ | | 5 | }↵
|
|
6 | /**↵ | | 6 | ↵
|
7 | * A unit test for JUnit↵ | | |
|
8 | */↵ | | |
|
9 | public void testSchemaFileMustHaveOneOptionOnly() throws Exception {↵ | | 7 | public void testNoDoubleSchemaLocation() throws Exception {↵
|
10 | expectBuildExceptionContaining("testSchemaFileMustHaveOneOptionOnly",↵ | | 8 | expectBuildExceptionContaining("test↵
|
11 | "expected failure",↵ | | |
|
12 | WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);↵ | | |
|
13 | }↵ | | |
|
|
14 | /**↵ | | |
|
15 | * A unit test for JUnit↵ | | |
|
16 | */↵ | | 9 | NoDoubleSchemaLocation",↵
|
| | | 10 | "two locations for schemas",↵
|
| | | 11 | SchemaValidate.SchemaLocation.ERROR_TWO_LOCATIONS);↵
|
| | | 12 | }↵
|
17 | public void testSchemaMustBeSet() throws Exception {↵ | | 13 | public void testNoDuplicateSchema() throws Exception {↵
|
18 | expectBuildExceptionContaining("testSchemaMustBeSet",↵ | | 14 | expectBuildExceptionContaining("testNoDuplicateSchema",↵
|
19 | "expected failure",↵ | | 15 | "↵
|
20 | WsdlToDotnet.Schema.ERROR_NONE_DECLARED↵ | | 16 | duplicate schemas with different values",↵
|
21 | );↵ | | 17 | SchemaValidate.ERROR_DUPLICATE_SCHEMA);↵
|
22 | | | 18 |
|