Skip to content

Commit b2db379

Browse files
author
Dave Syer
committed
Improve test for JobLauncherCommandLineRunner (see gh-1125)
1 parent 9f464e9 commit b2db379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public RepeatStatus execute(StepContribution contribution,
136136
}
137137
}).build()).incrementer(new RunIdIncrementer()).build();
138138
JobParameters jobParameters = new JobParametersBuilder().addLong("id", 1L, false)
139-
.toJobParameters();
139+
.addLong("foo", 2L, false).toJobParameters();
140140
this.runner.execute(this.job, jobParameters);
141141
this.runner.execute(this.job, jobParameters);
142142
assertEquals(1, this.jobExplorer.getJobInstances("job", 0, 100).size());

0 commit comments

Comments
 (0)