Package KFM.ServletFramework

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

Related Classes of KFM.ServletFramework.KFM_PropertyServlet2

Copyright © 2018 www.massapicom. 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.