@Test public void testMapJobConfigurations() { final Collection<org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobConfiguration> jobConfigurations = new LinkedList<>(); final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobSchedulerConfiguration jobSchedulerConfiguration = ApiTestHelper.createJobSchedulerConfiguration(null, 10L, 10L, org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobSchedulerType.PERIOD); final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobConfiguration jobConfiguration = ApiTestHelper.createJobConfiguration(jobSchedulerConfiguration); jobConfiguration.setJobConfigurationId(1L); final Map<String, JobParameter> parameters = new HashMap<>(); final JobParameter jobParameterDouble = new JobParameter(); jobParameterDouble.setParameter(10.1); jobParameterDouble.setParameterType(ParameterType.DOUBLE); final JobParameter jobParameterLong = new JobParameter(); jobParameterLong.setParameter(20L); jobParameterLong.setParameterType(ParameterType.LONG); final JobParameter jobParameterDate = new JobParameter(); jobParameterDate.setParameter(new Date()); jobParameterDate.setParameterType(ParameterType.DATE); parameters.put("double", jobParameterDouble); parameters.put("long", jobParameterLong); parameters.put("date", jobParameterDate); final JobParameters jobParameters = new JobParameters(); jobParameters.setParameters(parameters); jobConfiguration.setJobParameters(jobParameters); jobConfigurations.add(jobConfiguration); final JobConfigurations jobConfigurationsToMap = new JobConfigurations(); jobConfigurationsToMap.setJobConfigurations(jobConfigurations); final Collection<JobConfiguration> result = ResourceToDomainMapper.map(jobConfigurationsToMap); this.assertJobConfigurations(result, jobConfigurationsToMap); }
public static Collection<JobConfiguration> map(final JobConfigurations jobConfigurations) { final Collection<JobConfiguration> response = new LinkedList<>(); for (final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobConfiguration jobConfiguration : jobConfigurations.getJobConfigurations()) { final JobConfiguration jobConfigurationResponse = map(jobConfiguration); response.add(jobConfigurationResponse); } return response; }
ResourceToDomainMapper { public static Collection<JobConfiguration> map(final JobConfigurations jobConfigurations) { final Collection<JobConfiguration> response = new LinkedList<>(); for (final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobConfiguration jobConfiguration : jobConfigurations.getJobConfigurations()) { final JobConfiguration jobConfigurationResponse = map(jobConfiguration); response.add(jobConfigurationResponse); } return response; } }
ResourceToDomainMapper { public static Collection<JobConfiguration> map(final JobConfigurations jobConfigurations) { final Collection<JobConfiguration> response = new LinkedList<>(); for (final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobConfiguration jobConfiguration : jobConfigurations.getJobConfigurations()) { final JobConfiguration jobConfigurationResponse = map(jobConfiguration); response.add(jobConfigurationResponse); } return response; } private  ResourceToDomainMapper(); }
ResourceToDomainMapper { public static Collection<JobConfiguration> map(final JobConfigurations jobConfigurations) { final Collection<JobConfiguration> response = new LinkedList<>(); for (final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobConfiguration jobConfiguration : jobConfigurations.getJobConfigurations()) { final JobConfiguration jobConfigurationResponse = map(jobConfiguration); response.add(jobConfigurationResponse); } return response; } private  ResourceToDomainMapper(); static Collection<JobConfiguration> map(final JobConfigurations jobConfigurations); static JobConfiguration map(final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobConfiguration jobConfiguration); static org.springframework.batch.core.JobParameters map(final JobParameters jobParameters); }
ResourceToDomainMapper { public static Collection<JobConfiguration> map(final JobConfigurations jobConfigurations) { final Collection<JobConfiguration> response = new LinkedList<>(); for (final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobConfiguration jobConfiguration : jobConfigurations.getJobConfigurations()) { final JobConfiguration jobConfigurationResponse = map(jobConfiguration); response.add(jobConfigurationResponse); } return response; } private  ResourceToDomainMapper(); static Collection<JobConfiguration> map(final JobConfigurations jobConfigurations); static JobConfiguration map(final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobConfiguration jobConfiguration); static org.springframework.batch.core.JobParameters map(final JobParameters jobParameters);  }