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