1 package servletunit.struts.tests; 17 18 import org.apache.struts.action.*; 19 import javax.servlet.http.*; 20 21 27 public class NullPointerAction extends Action { 28 29 32 public NullPointerAction() { } 33 34 35 39 public ActionForward execute(ActionMapping mapping, 40 ActionForm form, 41 HttpServletRequest request, 42 HttpServletResponse response) 43 throws Exception { 44 throw new NullPointerException ("simulates null pointer from misbehaving action"); 45 } 46 } 47 | Popular Tags |