1 | void testElementOrder2() {↵ | | 1 | void testKeyword() throws Exception {↵
|
2 | expectLog("element.order2", "Line 1Line 2Line 3");↵ | | 2 | executeJspCompile("testKeyword", "default_jsp.java");↵
|
| | | 3 | }↵
|
|
|
| | | 4 | /**↵
|
| | | 5 | * what happens to 1nvalid-classname↵
|
3 | }↵ | | 6 | ↵
|
| | | 7 | */↵
|
4 | public void testAntTypeTest() {↵ | | 8 | public void testInvalidClassname() throws Exception {↵
|
5 | expectLog("antTypeTest", "");↵ | | 9 | exec↵
|
6 | }↵ | | |
|
|
7 | public void testCorrectTaskNameBadAttr() {↵ | | |
|
| | | 10 | uteJspCompile("testInvalidClassname",↵
|
| | | 11 | "_1nvalid_0002dclassname_jsp.java");↵
|
| | | 12 | }↵
|
|
|
| | | 13 | /**↵
|
| | | 14 | * A unit test for JUnit↵
|
| | | 15 | */↵
|
| | | 16 | public void testNoTld() throws Exception {↵
|
8 | expectBuildExceptionContaining(↵ | | 17 | // expectBuildExceptionContaining(↵
|
9 | "correct_taskname_badattr", "attribute message", "javac doesn't support the↵ | | 18 | "testNoTld",↵
|
| | | 19 | // "Jasper found an error in a file",↵
|
| | | 20 | // "Java returned: 9");↵
|
| | | 21 | expectBuildExceptionContaining("testNoTld",↵
|
| | | 22 | "not found",↵
|
10 | ");↵ | | 23 | "Java returned: 9");↵
|
11 | } | | 24 | }
|