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