@Test public void testSortingOfJobExecutionResults() throws Exception { JobExecutionResult execution5 = jobExecutionResult(5L); JobExecutionResult execution2 = jobExecutionResult(2L); JobExecutionResult execution19 = jobExecutionResult(19L); List<JobExecutionResult> executions = asList(execution5, execution2, execution19); JobResult jobResult = new JobResult(null, null, executions); assertThat(jobResult.getJobExecutionResults()).containsExactly(execution19, execution5, execution2); }
public List<JobExecutionResult> getJobExecutionResults() { return jobExecutionResults; }
JobResult { public List<JobExecutionResult> getJobExecutionResults() { return jobExecutionResults; } }
JobResult { public List<JobExecutionResult> getJobExecutionResults() { return jobExecutionResults; } JobResult(String jobName, JobStartParams jobStartParams, List<JobExecutionResult> jobExecutionResults); }
JobResult { public List<JobExecutionResult> getJobExecutionResults() { return jobExecutionResults; } JobResult(String jobName, JobStartParams jobStartParams, List<JobExecutionResult> jobExecutionResults); String getJobName(); JobStartParams getJobStartParams(); List<JobExecutionResult> getJobExecutionResults(); }
JobResult { public List<JobExecutionResult> getJobExecutionResults() { return jobExecutionResults; } JobResult(String jobName, JobStartParams jobStartParams, List<JobExecutionResult> jobExecutionResults); String getJobName(); JobStartParams getJobStartParams(); List<JobExecutionResult> getJobExecutionResults();  }