1 | void testAntlibFile() {↵ | | 1 | void testXml() throws Exception {↵
|
2 | expectLog("antlib.file", "MyTask called");↵ | | 2 | executeJspCompile("testXml", "xml_jsp.java");↵
|
3 | }↵ | | 3 | }↵
|
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Confirms that all matching resources will be used, so that you↵ | | 5 | * ↵
|
6 | * can collect several antlibs in one Definer call.↵ | | |
|
7 | * @see "http://issues.apache.org/bugzilla/show_bug.cgi?id=24024"↵ | | 6 | try a keyword in a file↵
|
8 | */↵ | | 7 | */↵
|
9 | public void testAntlibResource() {↵ | | 8 | public void testKeyword() throws Exception {↵
|
10 | expectLog("antlib.resource", "MyTask called-and-then-MyTask2 called");↵ | | 9 | executeJspCompile("testKeyword", "default_jsp.java");↵
|
| | | 10 | }↵
|
|
|
| | | 11 | /**↵
|
| | | 12 | * what happens to 1nvalid-classname↵
|
11 | }↵ | | 13 | ↵
|
| | | 14 | */↵
|
12 | public void testNsCurrent() {↵ | | 15 | public void testInvalidClassname() throws Exception {↵
|
13 | expectLog("ns.current", "Echo2 inside a macroHello from x:p↵ | | 16 | executeJspCompile("testInvalidClassname",↵
|
14 | ");↵ | | 17 | "_1nvalid_0002dclassname_jsp.java");↵
|
15 | | | 18 |
|