Package org.impalaframework.web.servlet.invoker

Examples of org.impalaframework.web.servlet.invoker.ThreadContextClassLoaderHttpServiceInvoker.invoke()


                contextClassLoader = Thread.currentThread().getContextClassLoader();
            }
        };
        ThreadContextClassLoaderHttpServiceInvoker invoker = new ThreadContextClassLoaderHttpServiceInvoker(servlet, true, classLoader);
       
        invoker.invoke(EasyMock.createMock(HttpServletRequest.class), EasyMock.createMock(HttpServletResponse.class), null);
       
        //check that the context class loader was correctly set in
        assertSame(contextClassLoader, classLoader);
       
        //assert that the current thread now has the original class loader
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.