File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
spring-batch-db-examples/src/test/java/com/io/example/controller
spring-batch-file-examples/src
test/java/com/io/example/controller Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ void shouldReturnJobStatusForAllBatchStatuses(BatchStatus status) throws Excepti
5757 }
5858
5959 @ Test
60- @ DisplayName ("GET /job/{jobId}/status → should return 404 when job ID is invalid" )
61- void shouldReturn404WhenJobIdIsInvalid () throws Exception {
60+ @ DisplayName ("GET /job/{jobId}/status → should return 400 when job ID is invalid" )
61+ void shouldReturn400WhenJobIdIsInvalid () throws Exception {
6262
6363 when (DBBatchService .getJobStatus (jobId ))
6464 .thenThrow (new BusinessException ("JobExecution not found for this id: " + jobId ));
Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ spring:
2222 initialize-schema : ${SPRING_BATCH_INITIALIZE_SCHEMA}
2323 job :
2424 enabled : ${SPRING_BATCH_JOB_ENABLED}
25- SPRING_BATCH_CHUNK_SIZE : ${SPRING_BATCH_CHUNK_SIZE}
25+ chunk-size : ${SPRING_BATCH_CHUNK_SIZE}
2626 batch-size : ${SPRING_BATCH_BATCH_SIZE}
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ void shouldReturnJobStatusForAllBatchStatuses(BatchStatus status) throws Excepti
6060 }
6161
6262 @ Test
63- @ DisplayName ("GET /job/{jobId}/status → should return 404 when job ID is invalid" )
64- void shouldReturn404WhenJobIdIsInvalid () throws Exception {
63+ @ DisplayName ("GET /job/{jobId}/status → should return 400 when job ID is invalid" )
64+ void shouldReturn400WhenJobIdIsInvalid () throws Exception {
6565
6666 when (fileBatchService .getJobStatus (jobId ))
6767 .thenThrow (new BusinessException ("JobExecution not found for this id: " + jobId ));
You can’t perform that action at this time.
0 commit comments