1 | void testNoEmptySchemaNamespace() throws Exception {↵ | | 1 | void testMapperNoDest() {↵
|
2 | expectBuildExceptionContaining("testNoEmptySchemaNamespace",↵ | | 2 | expectBuildExceptionContaining("test↵
|
3 | "empty namespace URI",SchemaValidate.SchemaLocation.ERROR_NO_URI);↵ | | |
|
4 | }↵ | | |
|
|
5 | public void testNoEmptySchemaLocation() throws Exception↵ | | 3 | MapperNoDest",↵
|
| | | 4 | "two mappers",↵
|
| | | 5 | SignJar.ERROR_MAPPER_WITHOUT_DEST);↵
|
| | | 6 | }↵
|
|
6 | {↵ | | 7 | public void testTwoMappers() {↵
|
7 | expectBuildExceptionContaining("testNoEmptySchemaLocation",↵ | | 8 | expectBuildExceptionContaining("test↵
|
8 | "empty schema location",↵ | | |
|
9 | SchemaValidate.SchemaLocation.ERROR_NO_LOCATION↵ | | 9 | TwoMappers",↵
|
| | | 10 | "two mappers",↵
|
10 | );↵ | | 11 | SignJar.ERROR_TOO_MANY_MAPPERS);↵
|
11 | }↵ | | 12 | }↵
|
|
12 | public void testNoFile() throws Exception {↵ | | 13 | public void testNoAlias() {↵
|
13 | expectBuildExceptionContaining("testNoFile",↵ | | 14 | expectBuildExceptionContaining("testNoAlias",↵
|
14 | "no file at file attribute",↵ | | 15 | "no ↵
|
15 | SchemaValidate.SchemaLocation↵ | | 16 | alias",↵
|
16 | .ERROR_NO_FILE);↵ | | 17 | SignJar.ERROR_NO_ALIAS);↵
|
17 | }↵ | | 18 | }↵
|
|
18 | public void testNoDoubleSchemaLocation() throws Exception {↵ | | 19 | public void testNoFiles() {↵
|
19 | expectBuildExceptionContaining("testNoDoubleSchemaLocation",↵ | | 20 | expectBuildExceptionContaining("testNo↵
|
20 | "two locations for schemas",↵ | | |
|
21 | SchemaValidate.SchemaLocation↵ | | 21 | Files",↵
|
| | | 22 | "no files",↵
|
22 | .ERROR_TWO_LOCATIONS);↵ | | 23 | SignJar.ERROR_NO_SOURCE);↵
|
23 | | | 24 |
|