@Test public void getStepExecutionTest() { final JobExecution jobExecution = DomainTestHelper.createJobExecution(10L); final Long stepExecutionId = 20L; when(this.jobExplorer.getStepExecution(jobExecution.getId(), stepExecutionId)).thenReturn( DomainTestHelper.createStepExecution(STEP_NAME, jobExecution)); final StepExecution stepExecution = this.stepService.getStepExecution(jobExecution, stepExecutionId); assertThat(stepExecution).isNotNull(); assertThat(stepExecution.getStepName()).isEqualTo(STEP_NAME); }
@Override public StepExecution getStepExecution(final JobExecution jobExecution, final Long stepExecutionId) { return this.jobExplorer.getStepExecution(jobExecution.getId(), stepExecutionId); }
DefaultStepService implements StepService { @Override public StepExecution getStepExecution(final JobExecution jobExecution, final Long stepExecutionId) { return this.jobExplorer.getStepExecution(jobExecution.getId(), stepExecutionId); } }
DefaultStepService implements StepService { @Override public StepExecution getStepExecution(final JobExecution jobExecution, final Long stepExecutionId) { return this.jobExplorer.getStepExecution(jobExecution.getId(), stepExecutionId); } DefaultStepService(final JobExplorer jobExplorer); }
DefaultStepService implements StepService { @Override public StepExecution getStepExecution(final JobExecution jobExecution, final Long stepExecutionId) { return this.jobExplorer.getStepExecution(jobExecution.getId(), stepExecutionId); } DefaultStepService(final JobExplorer jobExplorer); @Override StepExecution getStepExecution(final JobExecution jobExecution, final Long stepExecutionId); @Override void attachStepExecutions(JobExecution jobExecution); @Override void afterPropertiesSet(); }
DefaultStepService implements StepService { @Override public StepExecution getStepExecution(final JobExecution jobExecution, final Long stepExecutionId) { return this.jobExplorer.getStepExecution(jobExecution.getId(), stepExecutionId); } DefaultStepService(final JobExplorer jobExplorer); @Override StepExecution getStepExecution(final JobExecution jobExecution, final Long stepExecutionId); @Override void attachStepExecutions(JobExecution jobExecution); @Override void afterPropertiesSet();  }