1 | void testKeyword() throws Exception {↵ | | 1 | void testConditionTask() {↵
|
2 | executeJspCompile("testKeyword", "default_jsp.java");↵ | | 2 | expec↵
|
3 | }↵ | | |
|
|
|
4 | /**↵ | | |
|
5 | * what happens to 1nvalid-classname↵ | | |
|
6 | */↵ | | |
|
7 | public void testInvalidClassname() throws Exception↵ | | 3 | tLogContaining("condition.task", "My Condition execution");↵
|
| | | 4 | }↵
|
8 | {↵ | | 5 | public void testConditionConditionType() {↵
|
9 | executeJspCompile("testInvalidClassname",↵ | | 6 | expec↵
|
10 | "_1nvalid_0002dclassname_jsp.java");↵ | | 7 | tLogContaining("condition.condition.type", "My Condition eval");↵
|
11 | }↵ | | 8 | }↵
|
|
|
12 | /**↵ | | |
|
13 | * A unit test for JUnit↵ | | |
|
14 | */↵ | | |
|
15 | public void testNoTld() throws Exception {↵ | | |
|
16 | // ↵ | | 9 | public void testConditionConditionTask() {↵
|
17 | expectBuildExceptionContaining("testNoTld",↵ | | 10 | expectBuildExceptionContaining(↵
|
18 | // "Jasper found an error in a file",↵ | | |
|
19 | // "Java returned: 9");↵ | | |
|
20 | expectBuildExceptionContaining("testNoTld↵ | | |
|
21 | ",↵ | | 11 | "condition.condition.task", "task masking condition",↵
|
22 | "not found",↵ | | 12 | ↵
|
23 | "Java returned: 9");↵ | | 13 | "doesn't support the nested");↵
|
24 | | | 14 |
|