JobSchedulerFeService extends CommonJobConfigurationFeService { public SchedulerJobConfigurationModel getJobConfigurationModel(final Long jobConfigurationId, final String applicationInstanceId) { final LightminClientApplication lightminClientApplication = this.findLightminClientApplicatonById(applicationInstanceId); final JobConfiguration jobConfiguration = this.adminServerService.getJobConfiguration(jobConfigurationId, lightminClientApplication); return this.map(jobConfiguration); } JobSchedulerFeService(final RegistrationBean registrationBean, final AdminServerService adminServerService); MapJobSchedulerConfigurationModel getMapJobConfigurationModel(final String applicationInstanceId); SchedulerJobConfigurationModel getJobConfigurationModel(final Long jobConfigurationId,
                                                                   final String applicationInstanceId); void startScheduler(final Long jobConfigurationId, final String applicationInstanceId); void stopScheduler(final Long jobConfigurationId, final String applicationInstanceId); void deleteSchedulerConfiguration(final Long jobConfigurationId, final String applicationInstanceId); void addSchedulerConfiguration(final SchedulerJobConfigurationModel schedulerModel,
                                          final String applicationInstanceId); void updateSchedulerConfiguration(final SchedulerJobConfigurationModel schedulerModel,
                                             final String applicationInstanceId);  }
@Test public void testGetJobConfigurationModel() { final LightminClientApplication lightminClientApplication = ServiceTestHelper.createLightminClientApplication(); when(this.registrationBean.findById(APPLICATION_INSTANCE_ID)).thenReturn(lightminClientApplication); final JobConfiguration jobConfiguration = ApiTestHelper.createJobConfiguration( ApiTestHelper.createJobSchedulerConfiguration(null, 1L, 1L, JobSchedulerType.PERIOD)); when(this.adminServerService.getJobConfiguration(JC_ID, lightminClientApplication)).thenReturn(jobConfiguration); final SchedulerJobConfigurationModel result = this.jobSchedulerFeService.getJobConfigurationModel(JC_ID, APPLICATION_INSTANCE_ID); BDDAssertions.then(result).isNotNull(); }