vars );
// add all context variables, just in case
vars.putAll( context );
// add the static imports for hamcrest matchers
ParserConfiguration pconf = new ParserConfiguration();
addStaticImports( pconf,
CoreMatchers.class );
addStaticImports( pconf,
JUnitMatchers.class );
try {
pconf.addImport( "isTuple", IsTuple.class.getMethod( "isTuple", List.class ) );
} catch ( Exception e1 ) {
e1.printStackTrace();
}
// add import for JUnit assert class
pconf.addImport( "Assert",
Assert.class );
// compile MVEL expression
ParserContext mvelctx = new ParserContext( pconf );
String expression = cmd[3].replaceAll( "h(\\d+)",