@Test public void testMapExitStatus() { final String exitCode = "exitCode"; final String exitDescription = "exitDescription"; final org.springframework.batch.core.ExitStatus exitStatus = new org.springframework.batch.core.ExitStatus(exitCode, exitDescription); final ExitStatus result = BatchToResourceMapper.map(exitStatus); assertThat(result.getExitCode()).isEqualTo(exitCode); assertThat(result.getExitDescription()).isEqualTo(exitDescription); }
public static JobExecution map(final org.springframework.batch.core.JobExecution jobExecution) { final JobExecution response = new JobExecution(); response.setId(jobExecution.getId()); response.setCreateTime(jobExecution.getCreateTime()); response.setEndTime(jobExecution.getEndTime()); response.setExitStatus(map(jobExecution.getExitStatus())); response.setFailureExceptions(jobExecution.getFailureExceptions()); response.setJobConfigurationName(jobExecution.getJobConfigurationName()); response.setJobInstance(map(jobExecution.getJobInstance())); response.setJobParameters(map(jobExecution.getJobParameters())); response.setLastUpdated(jobExecution.getLastUpdated()); response.setStartTime(jobExecution.getStartTime()); response.setStatus(map(jobExecution.getStatus())); response.setStepExecutions(mapStepExecutions(jobExecution.getStepExecutions())); response.setVersion(jobExecution.getVersion()); return response; }
BatchToResourceMapper { public static JobExecution map(final org.springframework.batch.core.JobExecution jobExecution) { final JobExecution response = new JobExecution(); response.setId(jobExecution.getId()); response.setCreateTime(jobExecution.getCreateTime()); response.setEndTime(jobExecution.getEndTime()); response.setExitStatus(map(jobExecution.getExitStatus())); response.setFailureExceptions(jobExecution.getFailureExceptions()); response.setJobConfigurationName(jobExecution.getJobConfigurationName()); response.setJobInstance(map(jobExecution.getJobInstance())); response.setJobParameters(map(jobExecution.getJobParameters())); response.setLastUpdated(jobExecution.getLastUpdated()); response.setStartTime(jobExecution.getStartTime()); response.setStatus(map(jobExecution.getStatus())); response.setStepExecutions(mapStepExecutions(jobExecution.getStepExecutions())); response.setVersion(jobExecution.getVersion()); return response; } }
BatchToResourceMapper { public static JobExecution map(final org.springframework.batch.core.JobExecution jobExecution) { final JobExecution response = new JobExecution(); response.setId(jobExecution.getId()); response.setCreateTime(jobExecution.getCreateTime()); response.setEndTime(jobExecution.getEndTime()); response.setExitStatus(map(jobExecution.getExitStatus())); response.setFailureExceptions(jobExecution.getFailureExceptions()); response.setJobConfigurationName(jobExecution.getJobConfigurationName()); response.setJobInstance(map(jobExecution.getJobInstance())); response.setJobParameters(map(jobExecution.getJobParameters())); response.setLastUpdated(jobExecution.getLastUpdated()); response.setStartTime(jobExecution.getStartTime()); response.setStatus(map(jobExecution.getStatus())); response.setStepExecutions(mapStepExecutions(jobExecution.getStepExecutions())); response.setVersion(jobExecution.getVersion()); return response; } private  BatchToResourceMapper(); }
BatchToResourceMapper { public static JobExecution map(final org.springframework.batch.core.JobExecution jobExecution) { final JobExecution response = new JobExecution(); response.setId(jobExecution.getId()); response.setCreateTime(jobExecution.getCreateTime()); response.setEndTime(jobExecution.getEndTime()); response.setExitStatus(map(jobExecution.getExitStatus())); response.setFailureExceptions(jobExecution.getFailureExceptions()); response.setJobConfigurationName(jobExecution.getJobConfigurationName()); response.setJobInstance(map(jobExecution.getJobInstance())); response.setJobParameters(map(jobExecution.getJobParameters())); response.setLastUpdated(jobExecution.getLastUpdated()); response.setStartTime(jobExecution.getStartTime()); response.setStatus(map(jobExecution.getStatus())); response.setStepExecutions(mapStepExecutions(jobExecution.getStepExecutions())); response.setVersion(jobExecution.getVersion()); 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); }
BatchToResourceMapper { public static JobExecution map(final org.springframework.batch.core.JobExecution jobExecution) { final JobExecution response = new JobExecution(); response.setId(jobExecution.getId()); response.setCreateTime(jobExecution.getCreateTime()); response.setEndTime(jobExecution.getEndTime()); response.setExitStatus(map(jobExecution.getExitStatus())); response.setFailureExceptions(jobExecution.getFailureExceptions()); response.setJobConfigurationName(jobExecution.getJobConfigurationName()); response.setJobInstance(map(jobExecution.getJobInstance())); response.setJobParameters(map(jobExecution.getJobParameters())); response.setLastUpdated(jobExecution.getLastUpdated()); response.setStartTime(jobExecution.getStartTime()); response.setStatus(map(jobExecution.getStatus())); response.setStepExecutions(mapStepExecutions(jobExecution.getStepExecutions())); response.setVersion(jobExecution.getVersion()); 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);  }