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