Skip to content

Commit 0dfa737

Browse files
committed
Remove unused job parameters in samples
1 parent 9883cbc commit 0dfa737

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-batch-samples/src/test/java/org/springframework/batch/sample/JobStepFunctionalTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@ void testJobLaunch() throws Exception {
5757

5858
jobLauncherTestUtils
5959
.launchJob(new DefaultJobParametersConverter().getJobParameters(PropertiesConverter.stringToProperties(
60-
"run.id(long)=1,parameter=true,run.date=20070122,input.file=classpath:data/fixedLengthImportJob/input/20070122.teststream.ImportTradeDataStep.txt")));
60+
"input.file=classpath:data/fixedLengthImportJob/input/20070122.teststream.ImportTradeDataStep.txt")));
6161

6262
int after = JdbcTestUtils.countRowsInTable(jdbcTemplate, "TRADE");
6363
assertEquals(5, after);

spring-batch-samples/src/test/java/org/springframework/batch/sample/RestartFunctionalTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -94,7 +94,7 @@ void testLaunchJob() throws Exception {
9494
private JobExecution runJobForRestartTest() throws Exception {
9595
return jobLauncherTestUtils
9696
.launchJob(new DefaultJobParametersConverter().getJobParameters(PropertiesConverter.stringToProperties(
97-
"run.id(long)=1,parameter=true,run.date=20070122,input.file=classpath:data/fixedLengthImportJob/input/20070122.teststream.ImportTradeDataStep.txt")));
97+
"input.file=classpath:data/fixedLengthImportJob/input/20070122.teststream.ImportTradeDataStep.txt")));
9898
}
9999

100100
}

0 commit comments

Comments
 (0)