Configuration of Spring Batch tests with JUnit 5

Configuration of Spring Batch tests with JUnit 5

Similar to how many Spring Boot test annotations are meta-annotated with @ExtendWith(SpringExtension.class) (like @SpringBootTest, @WebMvcTest, and others), we updated @SpringBatchTest to be meta-annotated with @ExtendWith(SpringExtension.class).

This simplifies the configuration when writing tests with JUnit Jupiter.

Please note that this feature does not affect JUnit 4 users, it only concerns JUnit 5 based tests.

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation