mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-25 19:09:03 +00:00
Improve test for JobLauncherCommandLineRunner (see gh-1125)
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ public class JobLauncherCommandLineRunnerTests {
|
||||
}
|
||||
}).build()).incrementer(new RunIdIncrementer()).build();
|
||||
JobParameters jobParameters = new JobParametersBuilder().addLong("id", 1L, false)
|
||||
.toJobParameters();
|
||||
.addLong("foo", 2L, false).toJobParameters();
|
||||
this.runner.execute(this.job, jobParameters);
|
||||
this.runner.execute(this.job, jobParameters);
|
||||
assertEquals(1, this.jobExplorer.getJobInstances("job", 0, 100).size());
|
||||
|
||||
Reference in New Issue
Block a user