1 | void testTwoMappers() {↵ | | 1 | void testNoEmptySchemaLocation() throws Exception {↵
|
2 | expectBuildExceptionContaining("testTwoMappers",↵ | | 2 | expectBuildExceptionContaining("test↵
|
3 | "two mappers",↵ | | |
|
4 | SignJar.ERROR_TOO_MANY_MAPPERS↵ | | 3 | NoEmptySchemaLocation",↵
|
| | | 4 | "empty schema location",↵
|
5 | );↵ | | 5 | SchemaValidate.SchemaLocation.ERROR_NO_LOCATION);↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public void testNoAlias() {↵ | | 7 | public void testNoFile() throws Exception {↵
|
8 | expectBuildExceptionContaining("testNoAlias",↵ | | 8 | expectBuildExceptionContaining("testNoFile",↵
|
9 | "no alias",↵ | | 9 | "no ↵
|
10 | SignJar↵ | | 10 | file at file attribute",↵
|
11 | .ERROR_NO_ALIAS);↵ | | 11 | SchemaValidate.SchemaLocation.ERROR_NO_FILE);↵
|
12 | }↵ | | 12 | }↵
|
|
13 | public void testNoFiles() {↵ | | 13 | public void testNoDoubleSchemaLocation() throws Exception {↵
|
14 | expectBuildExceptionContaining("testNoFiles",↵ | | 14 | expectBuildExceptionContaining("testNo↵
|
15 | "no files",↵ | | |
|
16 | SignJar↵ | | 15 | DoubleSchemaLocation",↵
|
| | | 16 | "two locations for schemas",↵
|
17 | .ERROR_NO_SOURCE);↵ | | 17 | SchemaValidate.SchemaLocation.ERROR_TWO_LOCATIONS);↵
|
18 | }↵ | | 18 | }↵
|
|
19 | public void testNoStorePass() {↵ | | 19 | public void testNoDuplicateSchema() throws Exception {↵
|
20 | expectBuildExceptionContaining("testNoStorePass",↵ | | 20 | expectBuildExceptionContaining("testNoDuplicateSchema",↵
|
21 | "no password",↵ | | 21 | "↵
|
22 | SignJar.ERROR_NO_STOREPASS↵ | | 22 | duplicate schemas with different values",↵
|
23 | );↵ | | 23 | SchemaValidate.ERROR_DUPLICATE_SCHEMA);↵
|
24 | | | 24 |
|