The main theme of this milestone is improving Spring Batch’s testing support.

Test tool configuration update

As of version 4.3, JobLauncherTestUtils It is used to automatically connect to the job under test, in order to facilitate the test setup. But what if multiple Jobs are defined in the test context? What if there are no Job beans defined at all? So, while this auto-routing is convenient in most cases, it has proven to cause some problems in the above-mentioned cases.In this release, based on community feedback, we have decided to remove JobLauncherTestUtils Automatic wiring for any job in .

Migrating to JUnit Jupiter

In this milestone release, Spring Batch’s entire test suite has been migrated to JUnit 5. While this doesn’t directly affect end users, it helps the Batch team as well as community contributors to write better tests using the next generation of JUnit.

improved documentation

In this milestone release, the documentation was updated to use the Spring Asciidoctor backend. For consistency with other projects, in this release, Spring Batch’s reference documentation has also been updated to use this backend.

Deprecations and API Changes

This release includes some deprecations and API changes.


This milestone release introduces the following deprecations.

  • Hibernate project reader and project writer are deprecated in favor of JPA based projects
  • org.springframework.batch.test.AssertFile Utility classes are deprecated in favor of similar utilities provided by modern testing libraries

API changes

In this version, in ItemWriter A breaking change has been introduced in the interface.

public interface ItemWriter<T> {

-- void write(List<? extends T> items) throws Exception;
++ void write(Chunk<? extends T> items) throws Exception;


Dependency upgrade

The main dependencies have been upgraded to the following versions:

  • Upgrade to Spring Framework 6.0.0-M5
  • Upgrade to Spring Data 2022.0.0-M5
  • Upgrade to Spring Integration 6.0.0-M4
  • Upgrade to Spring AMQP 3.0.0-M3
  • Upgrade to Spring for Apache Kafka 3.0.0-M5
  • Upgrade to Micrometer 1.10.0-M4
  • Upgrade to Hibernate 6.1.2.Final

For more details, please check:

#Spring #Batch #500M5 #Released #News Fast Delivery

Leave a Comment

Your email address will not be published. Required fields are marked *