@WebAppConfiguration pre Spring 3.2.x

I'm writing a bunch of spring-mvc tests, but I'm using Spring 3.1, there are problems updating to post 3.1 now, so I'm not trying to do that at this time.

My question is that I have a Spring controller test, but I am trying to inject a WebApplicationContext into a test, and wherever I have looked, this is done using the @WebAppConfiguration annotation. This annotation doesn't exist in Spring 3.1, how was it done before 3.2?

Thank! Alessandro Ferrucci

+3
spring spring-mvc


source to share


No one has answered this question yet

Check out similar questions:

2480
How do I send JSON data using Curl from terminal / command line to Test Spring REST?
1873
What's the difference between @Component, @Repository and @Service annotations in Spring?
101
How to version control REST API using spring?
46
Testing Spring MVC @ExceptionHandler Method with Spring MVC Test
29
Spring 3.1 Date format in JSON format
nine
HttpMediaTypeNotAcceptableException after upgrade to Spring 3.2
8
Is the new Spring MVC test framework released in Spring 3.2 validating web.xml configuration?
3
Set ServletContext Attributes in Spring 3.2 MVC Configuration
2
Spring-Test-Mvc Controller Tests
2
Get WebApplicationContext in Spring 3.1. Junit test



All Articles
Loading...
X
Show
Funny
Dev
Pics