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