| | | 1 | void testTemplate2() throws Exception {↵
|
| | | 2 | templateSetup(extractor, "ABC");↵
|
| | | 3 | assertEquals("ABC", vars.get("regVal"));↵
|
| | | 4 | }↵
|
|
1 | void testTemplate3() throws Exception {↵ | | 5 | public void testTemplate3() throws Exception {↵
|
2 | templateSetup(extractor, "$2$");↵ | | 6 | templateSetup(extractor, "$2$");↵
|
3 | assertEquals("query", vars.get("regVal"));↵ | | 7 | assertEquals("query", vars.get("regVal"));↵
|
4 | }↵ | | 8 | }↵
|
|
5 | public void testTemplate4() throws Exception {↵ | | 9 | public void testTemplate4() throws Exception {↵
|
6 | templateSetup(extractor, "PRE$2$");↵ | | 10 | templateSetup(extractor, "PRE$2$");↵
|
7 | assertEquals("PREquery", vars.get("regVal"));↵ | | 11 | assertEquals("PREquery", vars.get("regVal"));↵
|
8 | }↵ | | 12 | }↵
|
|
9 | public void testTemplate5() throws Exception {↵ | | 13 | public void testTemplate5() throws Exception {↵
|
10 | templateSetup(extractor, "$2$POST");↵ | | 14 | templateSetup(extractor, "$2$POST");↵
|
11 | assertEquals("queryPOST", vars.get("regVal"));↵ | | 15 | assertEquals("queryPOST", vars.get("regVal"));↵
|
12 | }↵ | | 16 | }↵
|
|
13 | public void testTemplate6() throws Exception {↵ | | 17 | public void testTemplate6() throws Exception {↵
|
14 | templateSetup(extractor, "$2$$1$");↵ | | 18 | templateSetup(extractor, "$2$$1$");↵
|
15 | assertEquals("queryxmlext", vars.get("regVal"));↵ | | 19 | assertEquals("queryxmlext", vars.get("regVal"));↵
|
16 | }↵ | | 20 | }
|
|
17 | public void testTemplate7() throws Exception {↵ | | | |
18 | templateSetup(extractor, "$2$MID$1$");↵ | | | |
19 | assertEquals("queryMIDxmlext", vars.get("regVal"));↵ | | | |
20 | } | | | |