assertNull(vars.getObject("OUTVAR"));
}
public void testVariableExtractionFromVariable() throws Exception {
params = new LinkedList();
params.add(new CompoundVariable("(\\d+)\\s+(\\w+)"));
params.add(new CompoundVariable("$2$")); // template
params.add(new CompoundVariable("1")); // match number
params.add(new CompoundVariable("-")); // ALL separator
params.add(new CompoundVariable("default"));
params.add(new CompoundVariable("OUTVAR"));
params.add(new CompoundVariable(INPUT_VARIABLE_NAME));
variable.setParameters(params);
String match = variable.execute(result, null);
assertEquals("1", vars.getObject("OUTVAR_matchNr"));
assertEquals("times", match);
assertEquals("times", vars.getObject("OUTVAR"));