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