1 7 package com.inversoft.junit.internal.http; 8 9 10 import javax.servlet.Servlet ; 11 import javax.servlet.ServletRequest ; 12 import javax.servlet.ServletResponse ; 13 import javax.servlet.jsp.JspEngineInfo ; 14 import javax.servlet.jsp.JspFactory ; 15 import javax.servlet.jsp.PageContext ; 16 17 18 27 public class MockJspFactory extends JspFactory { 28 29 32 public MockJspFactory() { 33 super(); 34 } 35 36 37 40 public PageContext getPageContext(Servlet servlet, ServletRequest request, 41 ServletResponse response, String errorURL, boolean needsSession, 42 int buffer, boolean autoFlush) { 43 return new MockPageContext(servlet.getServletConfig(), request, response); 44 } 45 46 49 public void releasePageContext(PageContext pageContext) { 50 } 51 52 55 public JspEngineInfo getEngineInfo() { 56 return new MockJspEngineInfo(); 57 } 58 } | Popular Tags |