diff --git a/src/asciidoc/index.adoc b/src/asciidoc/index.adoc index 01a5d9367d..db04c82a91 100644 --- a/src/asciidoc/index.adoc +++ b/src/asciidoc/index.adoc @@ -984,6 +984,39 @@ Framework 4.0 introduces several new features for use in unit and integration te +[[new-in-4.1]] +== New Features and Enhancements in Spring Framework 4.1 + + +=== Testing Improvements + +* Groovy scripts can now be used to configure the `ApplicationContext` loaded for + integration tests in the TestContext framework. +** See <> for details. +* Test-managed transactions can now be programmatically started and ended within + transactional test methods via the new `TestTransaction` API. +** See <> for details. +* SQL script execution can now be configured declaratively via the new `@Sql` and + `@SqlConfig` annotations on a per-class or per-method basis. +** See <> for details. +* Test property sources which automatically override system and application property + sources can be configured via the new `@TestPropertySource` annotation. +** See <> for details. +* Default ++TestExecutionListener++s can now be automatically discovered. +** See <> for details. +* Custom ++TestExecutionListener++s can now be automatically merged with the default + listeners. +** See <> for details. +* The documentation for transactional testing support in the TestContext framework has + been improved with more thorough explanations and additional examples. +** See <> for details. +* Various improvements to `MockServletContext`, `MockHttpServletRequest`, and other + Servlet API mocks. +* `AssertThrows` has been refactored to support `Throwable` instead of `Exception`. + + + + [[spring-core]] = Core Technologies