@Test public void getJobInstanceTest() { final Long jobInstanceId = 20L; when(this.jobExplorer.getJobInstance(jobInstanceId)).thenReturn( DomainTestHelper.createJobInstance(jobInstanceId, JOB_NAME)); final JobInstance jobInstance = this.jobService.getJobInstance(jobInstanceId); assertThat(jobInstance).isNotNull(); assertThat(jobInstance.getInstanceId()).isEqualTo(jobInstanceId); assertThat(jobInstance.getJobName()).isEqualTo(JOB_NAME); }
@Override public JobInstance getJobInstance(final Long jobInstanceId) { return this.jobExplorer.getJobInstance(jobInstanceId); }
DefaultJobService implements JobService { @Override public JobInstance getJobInstance(final Long jobInstanceId) { return this.jobExplorer.getJobInstance(jobInstanceId); } }
DefaultJobService implements JobService { @Override public JobInstance getJobInstance(final Long jobInstanceId) { return this.jobExplorer.getJobInstance(jobInstanceId); } DefaultJobService(final JobOperator jobOperator,
                             final JobRegistry jobRegistry,
                             final JobExplorer jobExplorer,
                             final LightminJobExecutionDao lightminJobExecutionDao); }
DefaultJobService implements JobService { @Override public JobInstance getJobInstance(final Long jobInstanceId) { return this.jobExplorer.getJobInstance(jobInstanceId); } DefaultJobService(final JobOperator jobOperator,
                             final JobRegistry jobRegistry,
                             final JobExplorer jobExplorer,
                             final LightminJobExecutionDao lightminJobExecutionDao); @Override int getJobInstanceCount(final String jobName); @Override int getJobExecutionCount(final JobInstance jobInstance); @Override Set<String> getJobNames(); @Override Job getJobByName(final String jobName); @Override Collection<JobInstance> getJobInstances(final String jobName, final int startIndex, final int pageSize); @Override Collection<JobExecution> getJobExecutions(final JobInstance jobInstance); @Override Collection<JobExecution> getJobExecutions(final JobInstance jobInstance, final int start, final int count); @Override JobExecution getJobExecution(final Long jobExecutionId); @Override JobInstance getJobInstance(final Long jobInstanceId); @Override void attachJobInstance(final JobExecution jobExecution); @Override void restartJobExecution(final Long jobExecutionId); @Override void stopJobExecution(final Long jobExecutionId); @Override JobParameters getLastJobParameters(final String jobName); @Override void afterPropertiesSet(); }
DefaultJobService implements JobService { @Override public JobInstance getJobInstance(final Long jobInstanceId) { return this.jobExplorer.getJobInstance(jobInstanceId); } DefaultJobService(final JobOperator jobOperator,
                             final JobRegistry jobRegistry,
                             final JobExplorer jobExplorer,
                             final LightminJobExecutionDao lightminJobExecutionDao); @Override int getJobInstanceCount(final String jobName); @Override int getJobExecutionCount(final JobInstance jobInstance); @Override Set<String> getJobNames(); @Override Job getJobByName(final String jobName); @Override Collection<JobInstance> getJobInstances(final String jobName, final int startIndex, final int pageSize); @Override Collection<JobExecution> getJobExecutions(final JobInstance jobInstance); @Override Collection<JobExecution> getJobExecutions(final JobInstance jobInstance, final int start, final int count); @Override JobExecution getJobExecution(final Long jobExecutionId); @Override JobInstance getJobInstance(final Long jobInstanceId); @Override void attachJobInstance(final JobExecution jobExecution); @Override void restartJobExecution(final Long jobExecutionId); @Override void stopJobExecution(final Long jobExecutionId); @Override JobParameters getLastJobParameters(final String jobName); @Override void afterPropertiesSet();  }