1 | void testNested6() {↵ | | 1 | void testNested3() {↵
|
2 | expectSpecificBuildException("testNested6",↵ | | 2 | expectSpecificBuildException("testNested3",↵
|
3 | "it is required to fail :-)",↵ | | 3 | "it is required to fail :-)",↵
|
4 | "testNested6\ntestNested6\ntestNested6");↵ | | 4 | "testNested3");↵
|
5 | }↵ | | 5 | }↵
|
|
6 | public void testNested7() {↵ | | 6 | public void testNested4() {↵
|
7 | String specificMessage = "A single nested condition is required.↵ | | 7 | String specificMessage = "Nested conditions "↵
|
8 | ";↵ | | 8 | + "not permitted in conjunction with if/unless attributes";↵
|
|
9 | char[] c = {'a', 'b'};↵ | | 9 | char[] c = {'a', 'b', 'c'};↵
|
10 | StringBuffer target = new StringBuffer("testNested7x");↵ | | 10 | StringBuffer target = new StringBuffer("testNested4x");↵
|
|
11 | for (int i = 0; i < c.length; i++) {↵ | | 11 | for (int i = 0; i < c.length; i++) {↵
|
12 | target.setCharAt(target.length() - 1, c[i]);↵ | | 12 | target.setCharAt(target.length() - 1, c[i]);↵
|
13 | expectSpecificBuildException(target.toString(),↵ | | 13 | expectSpecificBuildException(target.toString(),↵
|
14 | "it is required to fail :-)", specificMessage);↵ | | 14 | "it is required to fail :-)", specificMessage);↵
|
15 | }↵ | | 15 | }↵
|
16 | | | 16 |
|