Spring: I wish to create a junit test for a web application - WebApplicationContext needed
- by Yaneeve
Hi all,
I am writing a junit test in order to (surprisingly) test a part of my app as a standalone.
Thing is I execute the following line in a constructor being invoked in the unit test:
WebApplicationContext webApplicationContext = ContextLoader.getCurrentWebApplicationContext();
How would I go about to set up a web context when running a simple unit test?
Thanks