@Test public void onJobStarted_AllJobStartListenersAreNotified() { when(jobMock.getName()).thenReturn(A_JOBS_NAME); taxCalculatorJobService.runTaxCalculatorJob(new JobStartParams(YEAR, MONTH)); verify(jobStartListenerMock1).jobHasBeenStarted(A_JOBS_NAME); verify(jobStartListenerMock2).jobHasBeenStarted(A_JOBS_NAME); }
@Override public void runTaxCalculatorJob(JobStartParams jobStartParams) { notifyJobStartListeners(); startJobs(jobStartParams.getYear(), jobStartParams.getMonth()); }
TaxCalculatorJobService implements JobService { @Override public void runTaxCalculatorJob(JobStartParams jobStartParams) { notifyJobStartListeners(); startJobs(jobStartParams.getYear(), jobStartParams.getMonth()); } }
TaxCalculatorJobService implements JobService { @Override public void runTaxCalculatorJob(JobStartParams jobStartParams) { notifyJobStartListeners(); startJobs(jobStartParams.getYear(), jobStartParams.getMonth()); }  }
TaxCalculatorJobService implements JobService { @Override public void runTaxCalculatorJob(JobStartParams jobStartParams) { notifyJobStartListeners(); startJobs(jobStartParams.getYear(), jobStartParams.getMonth()); }  @Override void runTaxCalculatorJob(JobStartParams jobStartParams); }
TaxCalculatorJobService implements JobService { @Override public void runTaxCalculatorJob(JobStartParams jobStartParams) { notifyJobStartListeners(); startJobs(jobStartParams.getYear(), jobStartParams.getMonth()); }  @Override void runTaxCalculatorJob(JobStartParams jobStartParams);  }