From 8a598dc8300873fee55421b9dac5bc7cc0c9a8d3 Mon Sep 17 00:00:00 2001 From: mugeon Date: Sun, 26 Oct 2025 16:01:26 +0900 Subject: [PATCH] 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 --- .../org/springframework/batch/test/JobOperatorTestUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-batch-test/src/main/java/org/springframework/batch/test/JobOperatorTestUtils.java b/spring-batch-test/src/main/java/org/springframework/batch/test/JobOperatorTestUtils.java index bbdc234193..8fa19e10da 100644 --- a/spring-batch-test/src/main/java/org/springframework/batch/test/JobOperatorTestUtils.java +++ b/spring-batch-test/src/main/java/org/springframework/batch/test/JobOperatorTestUtils.java @@ -86,7 +86,7 @@ public class JobOperatorTestUtils extends JobLauncherTestUtils { * @param jobRepository to use to access job metadata */ public JobOperatorTestUtils(JobOperator jobOperator, JobRepository jobRepository) { - Assert.notNull(jobOperator, "JobRepository must not be null"); + Assert.notNull(jobOperator, "JobOperator must not be null"); Assert.notNull(jobRepository, "JobRepository must not be null"); this.jobOperator = jobOperator; this.jobRepository = jobRepository;