From 548b44f75e51557b1df79e6bc8c1659988dc5e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Tue, 22 Jul 2025 16:42:36 +0200 Subject: [PATCH] Re-enable incrementExistingExecution test Closes gh-46459 --- .../autoconfigure/JobLauncherApplicationRunnerTests.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module/spring-boot-batch/src/test/java/org/springframework/boot/batch/autoconfigure/JobLauncherApplicationRunnerTests.java b/module/spring-boot-batch/src/test/java/org/springframework/boot/batch/autoconfigure/JobLauncherApplicationRunnerTests.java index 234efe284d8..b378d83b4ca 100644 --- a/module/spring-boot-batch/src/test/java/org/springframework/boot/batch/autoconfigure/JobLauncherApplicationRunnerTests.java +++ b/module/spring-boot-batch/src/test/java/org/springframework/boot/batch/autoconfigure/JobLauncherApplicationRunnerTests.java @@ -21,7 +21,6 @@ import java.util.List; import javax.sql.DataSource; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing; @@ -83,12 +82,11 @@ class JobLauncherApplicationRunnerTests { } @Test - @Disabled void incrementExistingExecution() { this.contextRunner.run((context) -> { JobLauncherApplicationRunnerContext jobLauncherContext = new JobLauncherApplicationRunnerContext(context); Job job = jobLauncherContext.configureJob().incrementer(new RunIdIncrementer()).build(); - JobParameters jobParameters = new JobParametersBuilder().addString("name", "foo").toJobParameters(); + JobParameters jobParameters = new JobParameters(); jobLauncherContext.runner.execute(job, jobParameters); jobLauncherContext.runner.execute(job, jobParameters); assertThat(jobLauncherContext.jobInstances()).hasSize(2);