Skip to content

Commit 341854f

Browse files
committed
Revised wording around “new in 3.2”
1 parent 48ecf0a commit 341854f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/asciidoc/index.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19138,7 +19138,7 @@ respective Javadoc.
1913819138

1913919139
[[testcontext-ctx-management-web]]
1914019140
====== 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
1914219142
tests. To instruct the TestContext framework to load a `WebApplicationContext` instead
1914319143
of a standard `ApplicationContext`, simply annotate the respective test class with
1914419144
`@WebAppConfiguration`.
@@ -19239,7 +19239,7 @@ example with the previous example.
1923919239

1924019240
.[[testcontext-ctx-management-web-mocks]]Working with Web Mocks
1924119241
--
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
1924319243
`ServletTestExecutionListener` that is enabled by default. When testing against a
1924419244
`WebApplicationContext` this <<testcontext-key-abstractions,TestExecutionListener>> sets
1924519245
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)
1966719667

1966819668
<<beans-factory-scopes-other,Request and session scoped beans>> have been supported by
1966919669
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
1967119671
following these steps.
1967219672

1967319673
* Ensure that a `WebApplicationContext` is loaded for your test by annotating your test
@@ -20058,13 +20058,13 @@ feedback, and the contribution of many.
2005820058

2005920059
The standalone https://github.com/SpringSource/spring-test-mvc[spring-test-mvc project]
2006020060
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
2006220062
dependency on `spring-test`.
2006320063

2006420064
The `spring-test` module uses a different package `org.springframework.test.web` but
2006520065
otherwise is nearly identical with two exceptions. One is support for features new in
2006620066
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
2006820068
TestContext framework, which provides caching benefits for the loaded configuration.
2006920069
****
2007020070

0 commit comments

Comments
 (0)