|
9 | 9 | http://www.w3.org/1999/xlink http://www.docbook.org/xml/5.0/xsd/xlink.xsd">
|
10 | 10 | <title>Migrating to Spring Framework 3.2</title>
|
11 | 11 |
|
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 |
13 | 13 | Spring Framework 3.2. For a general overview of features, please see
|
14 | 14 | <xref linkend="new-in-3.2"/></para>
|
15 | 15 |
|
|
124 | 124 | <xref linkend="spring-mvc-test-framework" /> for details.</para>
|
125 | 125 | </section>
|
126 | 126 |
|
| 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 | + |
127 | 146 | <section xml:id="migration-3.2-changes">
|
128 | 147 | <title>Public API changes</title>
|
129 | 148 |
|
|
265 | 284 | <listitem>
|
266 | 285 | <para>
|
267 | 286 | <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> |
270 | 290 | </listitem>
|
271 | 291 | <listitem>
|
272 | 292 | <para>
|
273 | 293 | <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> |
276 | 297 | </listitem>
|
277 | 298 | <listitem>
|
278 | 299 | <para>
|
279 | 300 | <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> |
282 | 304 | </listitem>
|
283 | 305 | <listitem>
|
284 | 306 | <para>
|
|
0 commit comments