I am testing spring batch job in junit.
public void testJob() {
JobExecution jobExecution = jobLauncherTestUtils.launchStep("processFileStep", params2, executionContext);
JobParameters params3 = new JobParameters(setJobParams());
jobLauncherTestUtils.launchStep("downloadResultsFile", params3, executionContext);
Collection<StepExecution> actualStepExecutions = jobExecution.getStepExecutions();
assertThat(actualStepExecutions.size(), is(1));
assertThat(jobExecution.getJobInstance().getJobName(), is("TestJob"));// where is it set to TestJob?
}
I dont understand how the job name is set to TestJob. ?Thanks for your time.