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