@Test public void testGetJspContext() { PageContext pageContext = createMock(PageContext.class); ASTBlock block = createMock(ASTBlock.class); InternalContextAdapter context = createMock(InternalContextAdapter.class); replay(pageContext, block, context); VelocityJspFragment fragment = new VelocityJspFragment(pageContext, block, context); assertSame(pageContext, fragment.getJspContext()); verify(pageContext, block, context); }
@Override public JspContext getJspContext() { return pageContext; }
VelocityJspFragment extends JspFragment { @Override public JspContext getJspContext() { return pageContext; } }
VelocityJspFragment extends JspFragment { @Override public JspContext getJspContext() { return pageContext; } VelocityJspFragment(PageContext pageContext, ASTBlock block,
            InternalContextAdapter context); }
VelocityJspFragment extends JspFragment { @Override public JspContext getJspContext() { return pageContext; } VelocityJspFragment(PageContext pageContext, ASTBlock block,
            InternalContextAdapter context); @Override void invoke(Writer out); @Override JspContext getJspContext(); }
VelocityJspFragment extends JspFragment { @Override public JspContext getJspContext() { return pageContext; } VelocityJspFragment(PageContext pageContext, ASTBlock block,
            InternalContextAdapter context); @Override void invoke(Writer out); @Override JspContext getJspContext();  }