1 | params.add(new CompoundVariable("$1$"));↵ | | 1 | params.add(new CompoundVariable("<value field=\"(pinposition\\d+)\">(\\d+)</value>"));↵
|
2 | params.add(new CompoundVariable("ALL"));↵ | | 2 | params.add(new CompoundVariable("$1$"));↵
|
3 | params.add(new CompoundVariable("_"));↵ | | 3 | params.add(new CompoundVariable("3"));↵
|
4 | variable.setParameters(params);↵ | | 4 | variable.setParameters(params);↵
|
5 | String match = variable.execute(result, null);↵ | | 5 | String match = variable.execute(result, null);↵
|
6 | assertEquals("pinposition1_pinposition2_pinposition3", match);↵ | | 6 | assertEquals("pinposition3", match);↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public void testVariableExtraction6() throws Exception {↵ | | 8 | public void testVariableExtraction5() throws Exception {↵
|
9 | params = new LinkedList();↵ | | 9 | params = new LinkedList();↵
|
10 | params.add(new CompoundVariable("<value field=\"(pinposition\\d+)\">(\\d+)</value>"));↵ | | 10 | params.add(new CompoundVariable("<value field=\"(pinposition\\d+)\">(\\d+)</value>"));↵
|
11 | params.add(new CompoundVariable("$2$"));↵ | | 11 | params.add(new CompoundVariable("$1$"));↵
|
12 | params.add(new CompoundVariable("4"));↵ | | 12 | params.add(new CompoundVariable("ALL"));↵
|
13 | params.add(new CompoundVariable("")); | | 13 | params.add(new CompoundVariable("_"));
|