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