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