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