1 16 package org.apache.myfaces.cactus; 17 18 import javax.servlet.RequestDispatcher ; 19 20 import org.apache.cactus.ServletTestCase; 21 22 23 28 public class JspBasedTestCase extends ServletTestCase 29 { 30 31 public JspBasedTestCase(String string) 32 { 33 super(string); 34 } 35 36 37 public void testBug() throws Exception  38 { 39 String className = getClass().getName(); 40 int index = className.lastIndexOf('.'); 41 String jspName = className.substring(index + 1); 42 RequestDispatcher rd = config.getServletContext().getRequestDispatcher("/" + jspName + ".jsf"); 43 rd.forward(request, response); 45 } 46 } 47 | Popular Tags |