Examples of KFM_PropertyServlet2


Examples of KFM.ServletFramework.KFM_PropertyServlet2

    }

    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.");
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.