public boolean containsKey(Object key) { return get(key) != null; }
public boolean containsKey(Object key) { return get(key) != null; }
@Override public Object getValue(TemplateContext context, Token arg1, List<String> arg2, String expression) { // First look in model map. Needed for dot-separated properties Object value = context.model.get(expression); if (value != null) { return value; } else { return super.getValue(context, arg1, arg2, expression); } }
@Override public String eval(AnnotationToken token, TemplateContext context) { String[] args = token.getArguments().split("\\s+"); TestCase testCase = (TestCase) context.model.get(args[1]); CommandResultList cresultList = testCase.getResultList(); ICommand command = (ICommand) context.model.get(args[2]); List<CommandResult> results = cresultList.getResults(command); context.model.put(args[0], results); return null; } }