@@ -19138,7 +19138,7 @@ respective Javadoc.
19138
19138
19139
19139
[[testcontext-ctx-management-web]]
19140
19140
====== Loading a WebApplicationContext
19141
- Spring 3.2 introduces support for loading a `WebApplicationContext` in integration
19141
+ Spring 3.2 introduced support for loading a `WebApplicationContext` in integration
19142
19142
tests. To instruct the TestContext framework to load a `WebApplicationContext` instead
19143
19143
of a standard `ApplicationContext`, simply annotate the respective test class with
19144
19144
`@WebAppConfiguration`.
@@ -19239,7 +19239,7 @@ example with the previous example.
19239
19239
19240
19240
.[[testcontext-ctx-management-web-mocks]]Working with Web Mocks
19241
19241
--
19242
- To provide comprehensive web testing support, Spring 3.2 introduces a new
19242
+ To provide comprehensive web testing support, Spring 3.2 introduced a
19243
19243
`ServletTestExecutionListener` that is enabled by default. When testing against a
19244
19244
`WebApplicationContext` this <<testcontext-key-abstractions,TestExecutionListener>> sets
19245
19245
up default thread-local state via Spring Web's `RequestContextHolder` before each test
@@ -19667,7 +19667,7 @@ bean by name there (as shown above, assuming that "myDataSource" is the bean id)
19667
19667
19668
19668
<<beans-factory-scopes-other,Request and session scoped beans>> have been supported by
19669
19669
Spring for several years now, but it's always been a bit non-trivial to test them. As of
19670
- Spring 3.2 it's now a breeze to test your request-scoped and session-scoped beans by
19670
+ Spring 3.2 it's a breeze to test your request-scoped and session-scoped beans by
19671
19671
following these steps.
19672
19672
19673
19673
* Ensure that a `WebApplicationContext` is loaded for your test by annotating your test
@@ -20058,13 +20058,13 @@ feedback, and the contribution of many.
20058
20058
20059
20059
The standalone https://github.com/SpringSource/spring-test-mvc[spring-test-mvc project]
20060
20060
is still available on GitHub and can be used in conjunction with Spring Framework 3.1.x.
20061
- Applications upgrading to 3.2 should replace the `spring-test-mvc` dependency with a
20061
+ Applications upgrading to 3.2 or later should replace the `spring-test-mvc` dependency with a
20062
20062
dependency on `spring-test`.
20063
20063
20064
20064
The `spring-test` module uses a different package `org.springframework.test.web` but
20065
20065
otherwise is nearly identical with two exceptions. One is support for features new in
20066
20066
3.2 (e.g. asynchronous web requests). The other relates to the options for creating a
20067
- `MockMvc` instance. In Spring Framework 3.2, this can only be done through the
20067
+ `MockMvc` instance. In Spring Framework 3.2 and later , this can only be done through the
20068
20068
TestContext framework, which provides caching benefits for the loaded configuration.
20069
20069
****
20070
20070
0 commit comments