From 2775862c5083da345ea06ecaeed2875abc8e4c97 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 13 Dec 2012 01:05:15 +0100 Subject: [PATCH] Update migration guide regarding spring-test This commit adds information to the 3.2 migration guide regarding deprecations and Maven dependencies in the spring-test module. --- src/reference/docbook/migration-3.2.xml | 36 ++++++++++++++++++++----- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/src/reference/docbook/migration-3.2.xml b/src/reference/docbook/migration-3.2.xml index 52aa0fab2d..713699d1b8 100644 --- a/src/reference/docbook/migration-3.2.xml +++ b/src/reference/docbook/migration-3.2.xml @@ -9,7 +9,7 @@ http://www.w3.org/1999/xlink http://www.docbook.org/xml/5.0/xsd/xlink.xsd"> Migrating to Spring Framework 3.2 - In this appendix we discuss discuss what users will want to know when upgrading to + In this appendix we discuss what users will want to know when upgrading to Spring Framework 3.2. For a general overview of features, please see @@ -124,6 +124,25 @@ for details. +
+ Spring Test Dependencies + + The spring-test module has been upgraded to + depend on JUnit 4.11 (junit:junit), TestNG 6.5.2 + (org.testng:testng), and Hamcrest Core 1.3 + (org.hamcrest:hamcrest-core). Each of these + dependencies is declared as an optional dependency + in the Maven POM. Furthermore, it is important to note that the JUnit + team has stopped inlining Hamcrest Core within the + junit:junit Maven artifact as of JUnit 4.11. Thus, if + your existing JUnit-based tests make use of Hamcrest matchers that were + previously available directly within the junit:junit + JAR, you will now need to explicitly declare a dependency on + org.hamcrest:hamcrest-core, + org.hamcrest:hamcrest-library, or + org.hamcrest:hamcrest-all. +
+
Public API changes @@ -265,20 +284,23 @@ - org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests - + org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests: + use of the simpleJdbcTemplate instance variable has been deprecated + in favor of the new jdbcTemplate instance variable. - org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests - + org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests: + use of the simpleJdbcTemplate instance variable has been deprecated + in favor of the new jdbcTemplate instance variable. - org.springframework.test.jdbc.SimpleJdbcTestUtils - + org.springframework.test.jdbc.SimpleJdbcTestUtils has been deprecated in + favor of JdbcTestUtils which now contains all of the + functionality previously available in SimpleJdbcTestUtils.