Skip to content

Commit 2775862

Browse files
committed
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.
1 parent b3b1fe1 commit 2775862

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

src/reference/docbook/migration-3.2.xml

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
http://www.w3.org/1999/xlink http://www.docbook.org/xml/5.0/xsd/xlink.xsd">
1010
<title>Migrating to Spring Framework 3.2</title>
1111

12-
<para>In this appendix we discuss discuss what users will want to know when upgrading to
12+
<para>In this appendix we discuss what users will want to know when upgrading to
1313
Spring Framework 3.2. For a general overview of features, please see
1414
<xref linkend="new-in-3.2"/></para>
1515

@@ -124,6 +124,25 @@
124124
<xref linkend="spring-mvc-test-framework" /> for details.</para>
125125
</section>
126126

127+
<section xml:id="migration-3.2-compatibility-spring-test">
128+
<title>Spring Test Dependencies</title>
129+
130+
<para>The <literal>spring-test</literal> module has been upgraded to
131+
depend on JUnit 4.11 (<literal>junit:junit</literal>), TestNG 6.5.2
132+
(<literal>org.testng:testng</literal>), and Hamcrest Core 1.3
133+
(<literal>org.hamcrest:hamcrest-core</literal>). Each of these
134+
dependencies is declared as an <emphasis>optional</emphasis> dependency
135+
in the Maven POM. Furthermore, it is important to note that the JUnit
136+
team has stopped inlining Hamcrest Core within the
137+
<literal>junit:junit</literal> Maven artifact as of JUnit 4.11. Thus, if
138+
your existing JUnit-based tests make use of Hamcrest matchers that were
139+
previously available directly within the <literal>junit:junit</literal>
140+
JAR, you will now need to explicitly declare a dependency on
141+
<literal>org.hamcrest:hamcrest-core</literal>,
142+
<literal>org.hamcrest:hamcrest-library</literal>, or
143+
<literal>org.hamcrest:hamcrest-all</literal>.</para>
144+
</section>
145+
127146
<section xml:id="migration-3.2-changes">
128147
<title>Public API changes</title>
129148

@@ -265,20 +284,23 @@
265284
<listitem>
266285
<para>
267286
<link xl:href="http://static.springsource.org/spring-framework/docs/current/javadoc-api/org/springframework/test/context/junit4/AbstractTransactionalJUnit4SpringContextTests.html">
268-
org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests</link>
269-
</para>
287+
org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests</link>:
288+
use of the <varname>simpleJdbcTemplate</varname> instance variable has been deprecated
289+
in favor of the new <varname>jdbcTemplate</varname> instance variable.</para>
270290
</listitem>
271291
<listitem>
272292
<para>
273293
<link xl:href="http://static.springsource.org/spring-framework/docs/current/javadoc-api/org/springframework/test/context/testng/AbstractTransactionalTestNGSpringContextTests.html">
274-
org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests</link>
275-
</para>
294+
org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests</link>:
295+
use of the <varname>simpleJdbcTemplate</varname> instance variable has been deprecated
296+
in favor of the new <varname>jdbcTemplate</varname> instance variable.</para>
276297
</listitem>
277298
<listitem>
278299
<para>
279300
<link xl:href="http://static.springsource.org/spring-framework/docs/current/javadoc-api/org/springframework/test/jdbc/SimpleJdbcTestUtils.html">
280-
org.springframework.test.jdbc.SimpleJdbcTestUtils</link>
281-
</para>
301+
org.springframework.test.jdbc.SimpleJdbcTestUtils</link> has been deprecated in
302+
favor of <classname>JdbcTestUtils</classname> which now contains all of the
303+
functionality previously available in <classname>SimpleJdbcTestUtils</classname>.</para>
282304
</listitem>
283305
<listitem>
284306
<para>

0 commit comments

Comments
 (0)