Adapt to latest change in Spring Batch snapshots

See https://github.com/spring-projects/spring-batch/issues/4971
This commit is contained in:
Stéphane Nicoll 2025-09-09 10:36:55 +02:00
parent 5da4913122
commit 5ca904c17a
1 changed files with 0 additions and 2 deletions

View File

@ -119,8 +119,6 @@ class BatchAutoConfigurationTests {
this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class).run((context) -> { this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class).run((context) -> {
assertThat(context).hasSingleBean(JobRepository.class); assertThat(context).hasSingleBean(JobRepository.class);
assertThat(context).hasSingleBean(JobOperator.class); assertThat(context).hasSingleBean(JobOperator.class);
assertThat(context).hasSingleBean(JobRegistry.class);
assertThat(context).hasSingleBean(JobOperator.class);
assertThat(context.getBean(BatchProperties.class).getJdbc().getInitializeSchema()) assertThat(context.getBean(BatchProperties.class).getJdbc().getInitializeSchema())
.isEqualTo(DatabaseInitializationMode.EMBEDDED); .isEqualTo(DatabaseInitializationMode.EMBEDDED);
assertThat(new JdbcTemplate(context.getBean(DataSource.class)) assertThat(new JdbcTemplate(context.getBean(DataSource.class))