Skip to content

Commit 548b44f

Browse files
committed
Re-enable incrementExistingExecution test
Closes gh-46459
1 parent e798924 commit 548b44f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

module/spring-boot-batch/src/test/java/org/springframework/boot/batch/autoconfigure/JobLauncherApplicationRunnerTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import javax.sql.DataSource;
2323

24-
import org.junit.jupiter.api.Disabled;
2524
import org.junit.jupiter.api.Test;
2625

2726
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
@@ -83,12 +82,11 @@ void basicExecution() {
8382
}
8483

8584
@Test
86-
@Disabled
8785
void incrementExistingExecution() {
8886
this.contextRunner.run((context) -> {
8987
JobLauncherApplicationRunnerContext jobLauncherContext = new JobLauncherApplicationRunnerContext(context);
9088
Job job = jobLauncherContext.configureJob().incrementer(new RunIdIncrementer()).build();
91-
JobParameters jobParameters = new JobParametersBuilder().addString("name", "foo").toJobParameters();
89+
JobParameters jobParameters = new JobParameters();
9290
jobLauncherContext.runner.execute(job, jobParameters);
9391
jobLauncherContext.runner.execute(job, jobParameters);
9492
assertThat(jobLauncherContext.jobInstances()).hasSize(2);

0 commit comments

Comments
 (0)