@@ -14,6 +14,7 @@ Spring Batch 5.0 has the following major themes:
1414* Java 17 Requirement
1515* Dependencies Re-baseline
1616* Batch infrastructure configuration updates
17+ * Batch testing configuration updates
1718* New features
1819* Pruning
1920
@@ -77,6 +78,34 @@ transaction manager of type `org.springframework.jdbc.datasource.DataSourceTrans
7778`JobRepository` when a `DataSource` bean is defined in the application context. In this release, the type of the
7879default transaction manager has changed to `org.springframework.jdbc.support.JdbcTransactionManager`.
7980
81+ [[batch-testing-configuration-updates]]
82+ === Batch Testing Configuration Updates
83+
84+ Spring Batch 5 includes the following testing configuration updates:
85+
86+ * <<removal-of-autowiring-from-test-utilities>>
87+ * <<migration-to-junit-jupiter>>
88+
89+ [[removal-of-autowiring-from-test-utilities]]
90+ ==== Removal of autowiring from test utilities
91+
92+ Up to version 4.3, the `JobLauncherTestUtils` and `JobRepositoryTestUtils` used
93+ to autowire the job under test as well as the test datasource to facilitate the
94+ testing infrastructure setup. While this was convenient for most use cases, it
95+ turned out to cause several issues for test contexts where multiple jobs or
96+ multiple datasources are defined.
97+
98+ In this release, we introduced a few changes to remove the autowiring of such
99+ dependencies in order to avoid any issues while importing those utilities either
100+ manually or through the `@SpringBatchTest` annotation.
101+
102+ [[migration-to-junit-jupiter]]
103+ ==== Migration to JUnit Jupiter
104+
105+ In this relese, the entire test suite of Spring Batch has been migrated to JUnit 5.
106+ While this does not impact end users directly, it helps the Batch team as well as
107+ community contributors to use the next generation of JUnit to write better tests.
108+
80109=== New features
81110
82111==== Improved Java records support
@@ -132,6 +161,13 @@ using the GraalVM native-image compiler has started in v4.2 and was shipped as e
132161
133162In this release, the native support has been improved significantly and is now considered out of beta.
134163
164+ ==== Improved documentation
165+
166+ In this release, the documentation was updated to use the Spring Asciidoctor Backend.
167+ This backend ensures that all projects from the portfolio follow the same documentation style.
168+ For consistency with other projects, the reference documentation of Spring Batch was updated
169+ to use this backend in this release.
170+
135171=== Pruning
136172
137173Spring Batch 5 removes a number of items that are no longer needed, including:
0 commit comments