1 | void testSimple() {↵ | | 1 | void testUriroot() throws Exception {↵
|
2 | expectLog("simple", "Hello world");↵ | | 2 | executeJspCompile("testUriroot", "uriroot_jsp.java");↵
|
3 | }↵ | | 3 | }↵
|
|
|
4 | public void testText()↵ | | 4 | /**↵
|
| | | 5 | * A unit test for JUnit↵
|
| | | 6 | */↵
|
5 | {↵ | | 7 | public void testXml() throws Exception {↵
|
6 | expectLog("text", "Inner Text");↵ | | 8 | exec↵
|
7 | }↵ | | |
|
|
8 | public void testUri()↵ | | 9 | uteJspCompile("testXml", "xml_jsp.java");↵
|
| | | 10 | }↵
|
|
|
| | | 11 | /**↵
|
| | | 12 | * try a keyword in a file↵
|
| | | 13 | */↵
|
9 | {↵ | | 14 | public void testKeyword() throws Exception {↵
|
10 | expectLog("uri", "Hello world");↵ | | 15 | executeJspCompile("testKeyword", "default_jsp.java");↵
|
| | | 16 | }↵
|
|
|
| | | 17 | /**↵
|
| | | 18 | * what happens to 1nvalid-classname↵
|
11 | }↵ | | 19 | ↵
|
| | | 20 | */↵
|
12 | public void testDefaultTest() {↵ | | 21 | public void testInvalidClassname() throws Exception {↵
|
13 | expectLog("defaulttest", "attribute is false↵ | | 22 | executeJspCompile("testInvalidClassname",↵
|
14 | ");↵ | | 23 | "_1nvalid_0002dclassname_jsp.java");↵
|
15 | | | 24 |
|