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