BatchToResourceMapper { static List<StepExecution> mapStepExecutions(final Collection<org.springframework.batch.core.StepExecution> stepExecutions) { final List<StepExecution> response = new LinkedList<>(); if (!stepExecutions.isEmpty()) { for (final org.springframework.batch.core.StepExecution stepExecution : stepExecutions) { response.add(map(stepExecution)); } } return response; } private  BatchToResourceMapper(); static List<JobExecution> mapExecutions(final Collection<org.springframework.batch.core.JobExecution>
                                                           jobExecutions); static JobExecution map(final org.springframework.batch.core.JobExecution jobExecution); static List<JobInstance> mapInstances(final Collection<org.springframework.batch.core.JobInstance>
                                                         jobInstances); static JobInstance map(final org.springframework.batch.core.JobInstance jobInstance); static JobParameters map(final org.springframework.batch.core.JobParameters jobParameters); static StepExecution map(final org.springframework.batch.core.StepExecution stepExecution); static ExitStatus map(final org.springframework.batch.core.ExitStatus exitStatus); static BatchStatus map(final org.springframework.batch.core.BatchStatus batchStatus); static ParameterType map(final org.springframework.batch.core.JobParameter.ParameterType parameterType);  }
@Test public void testMapStepExecutions() { final int count = 5; final List<org.springframework.batch.core.StepExecution> stepExecutions = new LinkedList<>(); for (int i = 0; i < count; i++) { final org.springframework.batch.core.StepExecution stepExecution = DomainTestHelper.createStepExecution("testStep", DomainTestHelper.createJobExecution(1L)); stepExecutions.add(stepExecution); } final List<StepExecution> result = BatchToResourceMapper.mapStepExecutions(stepExecutions); assertThat(result).hasSize(count); }