java.lang.Object
org.apache.cactus.extension.jsp.JspTagLifecycle.Interceptor
- Direct Known Subclasses:
- JspTagLifecycle.ExpectBodyEvaluatedInterceptor, JspTagLifecycle.ExpectBodySkippedInterceptor, JspTagLifecycle.ExpectScopedVariableExposedInterceptor, JspTagLifecycle.NestedTagInterceptor, JspTagLifecycle.NestedTextInterceptor
- Enclosing class:
- JspTagLifecycle
- public abstract static class JspTagLifecycle.Interceptor
- extends java.lang.Object
Abstract class for intercepting the tag lifecycle. You can override any
of the methods to insert expectations about the tag's behaviour while it
is being executed.
- Since:
- Cactus 1.5
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JspTagLifecycle.Interceptor
public JspTagLifecycle.Interceptor()
evalBody
public void evalBody(int theIteration,
javax.servlet.jsp.tagext.BodyContent theBody)
throws javax.servlet.jsp.JspException,
java.io.IOException
- Method called when the body of the tag would be evaluated. Can be
used in specific test cases to perform assertions.
Please note that if you're testing a
BodyTag, you
should not write content to the
JspTestCase.out>JspTestCase.out 55 instance variable while
the body is being evaluated. This is because the actual implicit
object out in JSP pages gets replaced by the current
nested BodyContent, whereas in JspTestCase
the out variable always refers to the top level
JspWriter. Instead, simply use the
BodyContent parameter passed into the
evalBody() 55 method or
the JspWriter retrieved by a call to
{javax.servlet.jsp.PageContext#getOut pageContext.getOut()}.
skipBody
public void skipBody()
- Method called when the body of the tag would be skipped. Can be used
in specific test cases to perform assertions.