@Test public void testGetJobConfigurationModel() { final LightminClientApplication lightminClientApplication = ServiceTestHelper.createLightminClientApplication(); when(this.registrationBean.findById(APPLICATION_INSTANCE_ID)).thenReturn(lightminClientApplication); final JobConfiguration jobConfiguration = ApiTestHelper.createJobConfiguration( ApiTestHelper.createJobListenerConfiguration("/", "*.txt", JobListenerType.LOCAL_FOLDER_LISTENER)); when(this.adminServerService.getJobConfiguration(JC_ID, lightminClientApplication)).thenReturn(jobConfiguration); final ListenerJobConfigurationModel result = this.jobListenerFeService.getJobConfigurationModel(JC_ID, APPLICATION_INSTANCE_ID); BDDAssertions.then(result).isNotNull(); }
public ListenerJobConfigurationModel 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); }
JobListenerFeService extends CommonJobConfigurationFeService { public ListenerJobConfigurationModel 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); } }
JobListenerFeService extends CommonJobConfigurationFeService { public ListenerJobConfigurationModel 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); } JobListenerFeService(final RegistrationBean registrationBean, final AdminServerService adminServerService); }
JobListenerFeService extends CommonJobConfigurationFeService { public ListenerJobConfigurationModel 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); } JobListenerFeService(final RegistrationBean registrationBean, final AdminServerService adminServerService); MapJobListenerConfigurationModel getMapJobConfigurationModel(final String applicationInstanceId); ListenerJobConfigurationModel getJobConfigurationModel(final Long jobConfigurationId,
                                                                  final String applicationInstanceId); void startListener(final Long jobConfigurationId, final String applicationInstanceId); void stopListener(final Long jobConfigurationId, final String applicationInstanceId); void deleteListenerConfiguration(final Long jobConfigurationId, final String applicationInstanceId); void addListenerConfiguration(final ListenerJobConfigurationModel listenerModel,
                                         final String applicationInstanceId); void updateListenerConfiguration(final ListenerJobConfigurationModel listenerModel,
                                            final String applicationInstanceId); }
JobListenerFeService extends CommonJobConfigurationFeService { public ListenerJobConfigurationModel 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); } JobListenerFeService(final RegistrationBean registrationBean, final AdminServerService adminServerService); MapJobListenerConfigurationModel getMapJobConfigurationModel(final String applicationInstanceId); ListenerJobConfigurationModel getJobConfigurationModel(final Long jobConfigurationId,
                                                                  final String applicationInstanceId); void startListener(final Long jobConfigurationId, final String applicationInstanceId); void stopListener(final Long jobConfigurationId, final String applicationInstanceId); void deleteListenerConfiguration(final Long jobConfigurationId, final String applicationInstanceId); void addListenerConfiguration(final ListenerJobConfigurationModel listenerModel,
                                         final String applicationInstanceId); void updateListenerConfiguration(final ListenerJobConfigurationModel listenerModel,
                                            final String applicationInstanceId);  }