make sure to fire job started event after it transitions from pending - > running concode_field_sep DrmJobStatus jobStatus concode_elem_sep Integer gpJobNo concode_elem_sep JobStartedEvent recent concode_elem_sep EventBus eventBus concode_elem_sep DrmLookup jobLookupTable concode_elem_sep int count concode_elem_sep String cleLsid concode_elem_sep HibernateSessionManager mgr concode_elem_sep Status jobStatus concode_elem_sep JobExecutor jobExecutor concode_elem_sep JobCompletedListener jobCompletedListener concode_elem_sep JobStartedListener jobStartedListener concode_field_sep void fireJobCompletedEvent concode_elem_sep void recordJobStartedEvent concode_elem_sep Status getJobStatus concode_elem_sep void fireJobStartedEvent_onUpdateStatus concode_elem_sep void setUp concode_elem_sep void onJobCompletedEvent concode_elem_sep void fireJobStartedEvent_existingRecordIsNull concode_elem_sep JobStartedEvent getRecent concode_elem_sep int getCount concode_elem_sep int getCount
void function ( ) { assertEquals ( "srini_string" , 0 , jobStartedListener . getCount ( ) ) ; Status loc0 = null ; Status loc1 = null ; jobExecutor . fireJobStartedEvent ( cleLsid , loc0 , loc1 ) ; assertEquals ( "srini_string" , 1 , jobStartedListener . getCount ( ) ) ; }