3

I'm writing a bunch of spring-mvc tests, but I'm using Spring 3.1, there are some issues right now with upgrading to post 3.1 so I'm not attempting that at this time.

My question is, I have a spring controller test but I'm trying to inject a WebApplicationContext into the test, and everywhere I've looked this is done through @WebAppConfiguration annotation. This annotation doesn't exist in Spring 3.1, how was this done pre 3.2?

Thanks! Alessandro Ferrucci

alessandro ferrucci
  • 1,261
  • 2
  • 24
  • 48
  • If I am not mistaken, there was a separate Spring MVC test project that you could use – geoand Aug 02 '14 at 16:57
  • Yeah this is it https://github.com/spring-projects/spring-test-mvc however I don't know what the equivalent to the @WebApplicationContext was in that project (there is no such annotation in that project). – alessandro ferrucci Aug 02 '14 at 18:12

0 Answers0