How can i inject servletcontext in spring
- by M.R.
I need to write a junit test for a rather complex application which runs in a tomcat.
I wrote a class which builds up my spring context.
private static ApplicationContext
springContext = null;
springContext = new
ClassPathXmlApplicationContext(
new String[] {"beans"....});
In the application there is a call:
…