org.springframework.mock.web
Class MockExpressionEvaluator
java.lang.Object
javax.servlet.jsp.el.ExpressionEvaluator
org.springframework.mock.web.MockExpressionEvaluator
- public class MockExpressionEvaluator
- extends ExpressionEvaluator
Mock implementation of the JSP 2.0 ExpressionEvaluator,
delegating to the Jakarta JSTL ExpressionEvaluatorManager.
Used for testing the web framework; only necessary for
testing applications when testing custom JSP tags.
Note that the Jakarta JSTL implementation (jstl.jar, standard.jar)
has to be available on the class path to use this expression evaluator.
- Since:
- 1.1.5
- Author:
- Juergen Hoeller
- See Also:
ExpressionEvaluatorManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockExpressionEvaluator
public MockExpressionEvaluator(PageContext pageContext)
parseExpression
public Expression parseExpression(String expression,
Class expectedType,
FunctionMapper functionMapper)
throws ELException
- Throws:
ELException
evaluate
public Object evaluate(String expression,
Class expectedType,
VariableResolver variableResolver,
FunctionMapper functionMapper)
throws ELException
- Throws:
ELException
doEvaluate
protected Object doEvaluate(String expression,
Class expectedType,
FunctionMapper functionMapper)
throws ELException
- Throws:
ELException
Copyright (C) 2003-2004 The Spring Framework Project.