}
public void testProcessRequestCatchesErrors()
throws IOException, ServletException
{
KFM_PropertyServlet2 tServlet = new KFM_PropertyServlet2() {
public void doInit(ServletConfig aServletConfig)
throws ServletException
{
}
public void processRequest2(HttpServletRequest aReq, HttpServletResponse aRes)
throws ServletException, IOException
{
throw new Error();
}
};
try {
tServlet.processRequest(new MockHttpServletRequest(), new MockHttpServletResponse());
} catch(Error e) {
fail("Expected processRequest to catch the Error.");
}
}