1 | void test1() {↵ | | 1 | void testUriroot() throws Exception {↵
|
2 | expectBuildException("test1", "required argument missing");↵ | | 2 | executeJspCompile("testUriroot", "uriroot_jsp.java");↵
|
| | | 3 | }↵
|
|
|
| | | 4 | /**↵
|
| | | 5 | * A unit test for JUnit↵
|
3 | }↵ | | 6 | ↵
|
| | | 7 | */↵
|
4 | public void test2() {↵ | | 8 | public void testXml() throws Exception {↵
|
5 | expectBuildException("test2", "required argument missing");↵ | | 9 | executeJspCompile("testXml", "xml_jsp.java");↵
|
| | | 10 | }↵
|
|
|
| | | 11 | /**↵
|
| | | 12 | * try a keyword in a file↵
|
6 | }↵ | | 13 | ↵
|
| | | 14 | */↵
|
7 | public void test3() {↵ | | 15 | public void testKeyword() throws Exception {↵
|
8 | expectBuildException("test3", "required argument missing");↵ | | 16 | exec↵
|
| | | 17 | uteJspCompile("testKeyword", "default_jsp.java");↵
|
| | | 18 | }↵
|
|
|
| | | 19 | /**↵
|
| | | 20 | * what happens to 1nvalid-classname↵
|
9 | }↵ | | 21 | ↵
|
| | | 22 | */↵
|
10 | public void test4() {↵ | | 23 | public void testInvalidClassname() throws Exception {↵
|
11 | expectBuildException("test4", "src invalid↵ | | 24 | executeJspCompile("testInvalidClassname",↵
|
12 | ");↵ | | 25 | "_1nvalid_0002dclassname_jsp.java");↵
|
13 | | | 26 |
|