1 | void test10() {↵ | | 1 | void testTransferParameterEmpty() throws Exception {↵
|
2 | expectBuildExceptionContaining("test10", "Attribute has no name",↵ | | 2 | expectFileContains("testTransferParameterEmpty",↵
|
3 | "Attributes must have name and value");↵ | | 3 | ↵
|
| | | 4 | "out/out.xml",↵
|
4 | }↵ | | 5 | ↵
|
|
5 | /**↵ | | 6 | ↵
|
6 | * Inline manifest - Invalid attribute without value↵ | | |
|
7 | */↵ | | |
|
8 | public void test11()↵ | | 7 | "empty=''");↵
|
| | | 8 | }↵
|
|
9 | {↵ | | 9 | public void testTransferParameterUnset() throws Exception {↵
|
10 | expectBuildExceptionContaining("test11", "Attribute has no value",↵ | | 10 | expectFileContains("testTransferParameterUnset",↵
|
11 | "Attributes must have name and value");↵ | | 11 | ↵
|
| | | 12 | "out/out.xml",↵
|
12 | }↵ | | 13 | ↵
|
|
13 | /**↵ | | 14 | ↵
|
14 | * Inline manifest - Invalid attribute without value↵ | | 15 | "undefined='${value}'");↵
|
15 | */↵ | | 16 | }↵
|
|
16 | public void test12() {↵ | | 17 | public void testTransferParameterUnsetWithIf() throws Exception {↵
|
17 | expectBuildExceptionContaining("test12", "Section with no name",↵ | | 18 | expectFileContains("testTransferParameterUnsetWithIf",↵
|
18 | "Sections must have a name");↵ | | 19 | ↵
|
| | | 20 | "out/out.xml",↵
|
19 | }↵ | | 21 | ↵
|
|
20 | /**↵ | | 22 | ↵
|
21 | * Inline manifest - Duplicate attribute↵ | | 23 | "undefined='undefined default value'");↵
|
22 | */↵ | | 24 | }↵
|
|
23 | public void test13() {↵ | | 25 | public void testNewerStylesheet() throws Exception {↵
|
24 | expectBuildExceptionContaining("test13", "Duplicate Attribute",↵ | | 26 | expectFileContains("testNewerStylesheet",↵
|
25 | "The attribute \"Test\" may not occur more than once in the same section↵ | | 27 | "out/out.xml",↵
|
26 | ");↵ | | 28 | "new-value");↵
|
27 | } | | 29 | }
|