@@ -14,6 +14,7 @@ Spring Batch 5.0 has the following major themes:
14
14
* Java 17 Requirement
15
15
* Dependencies Re-baseline
16
16
* Batch infrastructure configuration updates
17
+ * Batch testing configuration updates
17
18
* New features
18
19
* Pruning
19
20
@@ -77,6 +78,34 @@ transaction manager of type `org.springframework.jdbc.datasource.DataSourceTrans
77
78
`JobRepository` when a `DataSource` bean is defined in the application context. In this release, the type of the
78
79
default transaction manager has changed to `org.springframework.jdbc.support.JdbcTransactionManager`.
79
80
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
+
80
109
=== New features
81
110
82
111
==== Improved Java records support
@@ -132,6 +161,13 @@ using the GraalVM native-image compiler has started in v4.2 and was shipped as e
132
161
133
162
In this release, the native support has been improved significantly and is now considered out of beta.
134
163
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
+
135
171
=== Pruning
136
172
137
173
Spring Batch 5 removes a number of items that are no longer needed, including:
0 commit comments