Remove usage of raw parametrized types
This commit is contained in:
@@ -57,7 +57,7 @@ class RemoteChunkFaultTolerantStepIntegrationTests {
|
||||
@Test
|
||||
void testFailedStep() throws Exception {
|
||||
JobExecution jobExecution = jobLauncher.run(job, new JobParameters(
|
||||
Collections.singletonMap("item.three", new JobParameter("unsupported", String.class))));
|
||||
Collections.singletonMap("item.three", new JobParameter<>("unsupported", String.class))));
|
||||
assertEquals(BatchStatus.FAILED, jobExecution.getStatus());
|
||||
StepExecution stepExecution = jobExecution.getStepExecutions().iterator().next();
|
||||
assertEquals(9, stepExecution.getReadCount());
|
||||
@@ -68,7 +68,7 @@ class RemoteChunkFaultTolerantStepIntegrationTests {
|
||||
@Test
|
||||
void testFailedStepOnError() throws Exception {
|
||||
JobExecution jobExecution = jobLauncher.run(job,
|
||||
new JobParameters(Collections.singletonMap("item.three", new JobParameter("error", String.class))));
|
||||
new JobParameters(Collections.singletonMap("item.three", new JobParameter<>("error", String.class))));
|
||||
assertEquals(BatchStatus.FAILED, jobExecution.getStatus());
|
||||
StepExecution stepExecution = jobExecution.getStepExecutions().iterator().next();
|
||||
assertEquals(9, stepExecution.getReadCount());
|
||||
|
||||
@@ -62,7 +62,7 @@ class RemoteChunkFaultTolerantStepJdbcIntegrationTests {
|
||||
@DirtiesContext
|
||||
void testFailedStep() throws Exception {
|
||||
JobExecution jobExecution = jobLauncher.run(job, new JobParameters(
|
||||
Collections.singletonMap("item.three", new JobParameter("unsupported", String.class))));
|
||||
Collections.singletonMap("item.three", new JobParameter<>("unsupported", String.class))));
|
||||
assertEquals(BatchStatus.FAILED, jobExecution.getStatus());
|
||||
StepExecution stepExecution = jobExecution.getStepExecutions().iterator().next();
|
||||
assertEquals(9, stepExecution.getReadCount());
|
||||
@@ -74,7 +74,7 @@ class RemoteChunkFaultTolerantStepJdbcIntegrationTests {
|
||||
@DirtiesContext
|
||||
void testFailedStepOnError() throws Exception {
|
||||
JobExecution jobExecution = jobLauncher.run(job,
|
||||
new JobParameters(Collections.singletonMap("item.three", new JobParameter("error", String.class))));
|
||||
new JobParameters(Collections.singletonMap("item.three", new JobParameter<>("error", String.class))));
|
||||
assertEquals(BatchStatus.FAILED, jobExecution.getStatus());
|
||||
StepExecution stepExecution = jobExecution.getStepExecutions().iterator().next();
|
||||
assertEquals(9, stepExecution.getReadCount());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2022 the original author or authors.
|
||||
* Copyright 2010-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -53,7 +53,7 @@ class RemoteChunkFaultTolerantStepJmsIntegrationTests {
|
||||
@Test
|
||||
void testFailedStep() throws Exception {
|
||||
JobExecution jobExecution = jobLauncher.run(job, new JobParameters(
|
||||
Collections.singletonMap("item.three", new JobParameter("unsupported", String.class))));
|
||||
Collections.singletonMap("item.three", new JobParameter<>("unsupported", String.class))));
|
||||
assertEquals(BatchStatus.FAILED, jobExecution.getStatus());
|
||||
StepExecution stepExecution = jobExecution.getStepExecutions().iterator().next();
|
||||
assertEquals(9, stepExecution.getReadCount());
|
||||
@@ -64,7 +64,7 @@ class RemoteChunkFaultTolerantStepJmsIntegrationTests {
|
||||
@Test
|
||||
void testFailedStepOnError() throws Exception {
|
||||
JobExecution jobExecution = jobLauncher.run(job,
|
||||
new JobParameters(Collections.singletonMap("item.three", new JobParameter("error", String.class))));
|
||||
new JobParameters(Collections.singletonMap("item.three", new JobParameter<>("error", String.class))));
|
||||
assertEquals(BatchStatus.FAILED, jobExecution.getStatus());
|
||||
StepExecution stepExecution = jobExecution.getStepExecutions().iterator().next();
|
||||
assertEquals(9, stepExecution.getReadCount());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2009-2022 the original author or authors.
|
||||
* Copyright 2009-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -52,7 +52,7 @@ class RemoteChunkStepIntegrationTests {
|
||||
@Test
|
||||
void testFailedStep() throws Exception {
|
||||
JobExecution jobExecution = jobLauncher.run(job,
|
||||
new JobParameters(Collections.singletonMap("item.three", new JobParameter("fail", String.class))));
|
||||
new JobParameters(Collections.singletonMap("item.three", new JobParameter<>("fail", String.class))));
|
||||
assertEquals(BatchStatus.FAILED, jobExecution.getStatus());
|
||||
StepExecution stepExecution = jobExecution.getStepExecutions().iterator().next();
|
||||
assertEquals(9, stepExecution.getReadCount());
|
||||
|
||||
Reference in New Issue
Block a user