1 | void testTransferParameterEmpty() throws Exception {↵ | | 1 | void test9() {↵
|
2 | expectFileContains("testTransferParameterEmpty",↵ | | 2 | expectBuildExceptionContaining("test↵
|
3 | ↵ | | 3 | 9", "Construction is invalid - Name attribute should not be used",↵
|
4 | "out/out.xml",↵ | | 4 | ↵
|
5 | "empty=''");↵ | | |
|
6 | }↵ | | |
|
|
7 | public void testTransferParameterUnset() throws Exception↵ | | 5 | "Specify the section name using the \"name\" attribute of the <section> element");↵
|
| | | 6 | }↵
|
|
| | | 7 | /**↵
|
| | | 8 | * Inline manifest - Invalid attribute without name↵
|
| | | 9 | */↵
|
8 | {↵ | | 10 | public void test10() {↵
|
9 | expectFileContains("testTransferParameterUnset",↵ | | 11 | expectBuildExceptionContaining("test10", "Attribute has no name",↵
|
10 | "out/out.xml",↵ | | 12 | ↵
|
11 | ↵ | | 13 | "Attributes must have name and value");↵
|
12 | ↵ | | 14 | }↵
|
|
13 | "undefined='${value}'");↵ | | 15 | /**↵
|
| | | 16 | * Inline manifest - Invalid attribute without value↵
|
14 | }↵ | | 17 | ↵
|
| | | 18 | */↵
|
15 | public void testTransferParameterUnsetWithIf() throws Exception {↵ | | 19 | public void test11() {↵
|
16 | expectFileContains("testTransferParameterUnsetWithIf",↵ | | 20 | expectBuildExceptionContaining("test11", "Attribute has no value",↵
|
17 | "out/out.xml",↵ | | 21 | ↵
|
18 | ↵ | | 22 | "Attributes must have name and value");↵
|
19 | ↵ | | 23 | }↵
|
|
20 | "undefined='undefined defaul↵ | | 24 | /**↵
|
21 | t value'");↵ | | 25 | * Inline manifest - Invalid attribute without value↵
|
22 | }↵ | | 26 | ↵
|
| | | 27 | */↵
|
23 | public void testNewerStylesheet() throws Exception {↵ | | 28 | public void test12() {↵
|
24 | expectFileContains("testNewerStylesheet",↵ | | 29 | expectBuildExceptionContaining("test12", "Section with no name",↵
|
25 | "out/out.xml",↵ | | 30 | ↵
|
26 | "new-value");↵ | | 31 | "Sections must have a name");↵
|
27 | } | | 32 | }
|