@Test public void testStopListener() { final LightminClientApplication lightminClientApplication = ServiceTestHelper.createLightminClientApplication(); when(this.registrationBean.findById(APPLICATION_INSTANCE_ID)).thenReturn(lightminClientApplication); try { this.jobListenerFeService.stopListener(JC_ID, APPLICATION_INSTANCE_ID); verify(this.adminServerService, times(1)).stopJobConfigurationScheduler(JC_ID, lightminClientApplication); } catch (final Exception e) { fail(e.getMessage()); } }
public void stopListener(final Long jobConfigurationId, final String applicationInstanceId) { final LightminClientApplication lightminClientApplication = this.findLightminClientApplicatonById(applicationInstanceId); this.adminServerService.stopJobConfigurationScheduler(jobConfigurationId, lightminClientApplication); }
JobListenerFeService extends CommonJobConfigurationFeService { public void stopListener(final Long jobConfigurationId, final String applicationInstanceId) { final LightminClientApplication lightminClientApplication = this.findLightminClientApplicatonById(applicationInstanceId); this.adminServerService.stopJobConfigurationScheduler(jobConfigurationId, lightminClientApplication); } }
JobListenerFeService extends CommonJobConfigurationFeService { public void stopListener(final Long jobConfigurationId, final String applicationInstanceId) { final LightminClientApplication lightminClientApplication = this.findLightminClientApplicatonById(applicationInstanceId); this.adminServerService.stopJobConfigurationScheduler(jobConfigurationId, lightminClientApplication); } JobListenerFeService(final RegistrationBean registrationBean, final AdminServerService adminServerService); }
JobListenerFeService extends CommonJobConfigurationFeService { public void stopListener(final Long jobConfigurationId, final String applicationInstanceId) { final LightminClientApplication lightminClientApplication = this.findLightminClientApplicatonById(applicationInstanceId); this.adminServerService.stopJobConfigurationScheduler(jobConfigurationId, lightminClientApplication); } 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 void stopListener(final Long jobConfigurationId, final String applicationInstanceId) { final LightminClientApplication lightminClientApplication = this.findLightminClientApplicatonById(applicationInstanceId); this.adminServerService.stopJobConfigurationScheduler(jobConfigurationId, lightminClientApplication); } 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);  }