I am trying to unit test a webapp that I am developing in Maven/Eclipse. It is a Spring MVC webapp, and I need some unit tests to test my model controller.
To do thi
You can achieve this using maven-surefire-plugin as below:
org.apache.maven.plugins maven-surefire-plugin src\main\webapp\
Now you can access your web.xml in this way for example:
getClass().getClassLoader().getResourceAsStream("classpath:webapp/WEB-INF/web.xml")