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 | "undefined='${value}'");↵ | | 13 | "Attributes must have name and value");↵
|
| | | 14 | }↵
|
|
| | | 15 | /**↵
|
| | | 16 | * Inline manifest - Invalid attribute without value↵
|
12 | }↵ | | 17 | ↵
|
| | | 18 | */↵
|
13 | public void testTransferParameterUnsetWithIf() throws Exception {↵ | | 19 | public void test11() {↵
|
14 | expectFileContains("testTransferParameterUnsetWithIf",↵ | | 20 | expectBuildExceptionContaining("test↵
|
15 | "out/out.xml",↵ | | |
|
16 | "undefined='undefined default↵ | | 21 | 11", "Attribute has no value",↵
|
17 | value'");↵ | | 22 | "Attributes must have name and value");↵
|
18 | } | | 23 | }
|