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