Skip to content

Commit b848638

Browse files
KMGeonfmbenhassine
authored andcommitted
Fix incorrect error message in JobOperatorTestUtils constructor
The first Assert.notNull statement was incorrectly referencing 'JobRepository' when it should reference 'JobOperator' for the jobOperator parameter validation. Fixes gh-5051 Signed-off-by: mugeon <pos04167@kakao.com>
1 parent a4c9525 commit b848638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-batch-test/src/main/java/org/springframework/batch/test/JobOperatorTestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class JobOperatorTestUtils extends JobLauncherTestUtils {
8686
* @param jobRepository to use to access job metadata
8787
*/
8888
public JobOperatorTestUtils(JobOperator jobOperator, JobRepository jobRepository) {
89-
Assert.notNull(jobOperator, "JobRepository must not be null");
89+
Assert.notNull(jobOperator, "JobOperator must not be null");
9090
Assert.notNull(jobRepository, "JobRepository must not be null");
9191
this.jobOperator = jobOperator;
9292
this.jobRepository = jobRepository;

0 commit comments

Comments
 (0)