1 | void testNoEmptySchemaLocation() throws Exception {↵ | | 1 | void testSchemaFileMustExist() throws Exception {↵
|
2 | expectBuildExceptionContaining("testNoEmptySchemaLocation",↵ | | 2 | expectBuildExceptionContaining("testSchemaFileMustExist",↵
|
3 | "empty schema location",↵ | | 3 | "e↵
|
4 | SchemaValidate.SchemaLocation.ERROR_NO_LOCATION);↵ | | |
|
5 | }↵ | | |
|
|
6 | public void testNoFile↵ | | 4 | xpected failure",↵
|
| | | 5 | WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);↵
|
| | | 6 | }↵
|
|
| | | 7 | /**↵
|
| | | 8 | * A unit test for JUnit↵
|
| | | 9 | */↵
|
7 | () throws Exception {↵ | | 10 | public void testSchemaFileMustHaveOneOptionOnly() throws Exception {↵
|
8 | expectBuildExceptionContaining("testNoFile",↵ | | 11 | expectBuildExceptionContaining("test↵
|
9 | "no file at file attribute",↵ | | |
|
10 | SchemaValidate.SchemaLocation.ERROR_NO_FILE);↵ | | |
|
11 | }↵ | | |
|
| | | 12 | SchemaFileMustHaveOneOptionOnly",↵
|
| | | 13 | "expected failure",↵
|
| | | 14 | WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);↵
|
| | | 15 | }↵
|
|
| | | 16 | /**↵
|
| | | 17 | * A unit test for JUnit↵
|
| | | 18 | */↵
|
12 | public void testNoDoubleSchemaLocation() throws Exception {↵ | | 19 | public void testSchemaMustBeSet() throws Exception {↵
|
13 | expectBuildExceptionContaining("testNoDoubleSchemaLocation",↵ | | 20 | expectBuildExceptionContaining("test↵
|
14 | "two locations for schemas",↵ | | |
|
15 | SchemaValidate.SchemaLocation.ERROR_TWO_LOCATIONS↵ | | 21 | SchemaMustBeSet",↵
|
| | | 22 | "expected failure",↵
|
16 | );↵ | | 23 | WsdlToDotnet.Schema.ERROR_NONE_DECLARED);↵
|
17 | } | | 24 | }
|