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);