@Override public void beforeJob(JobExecution jobExecution) { try { delegate.beforeJob(); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Test(expected=BatchRuntimeException.class) public void testBeforeJobException() throws Exception { doThrow(new Exception("expected")).when(delegate).beforeJob(); adapter.beforeJob(null); }
@Test public void testBeforeJob() throws Exception { adapter.beforeJob(null); verify(delegate).beforeJob(); }
@Override public void beforeJob() { try { this.delegate.beforeJob(); } catch (Exception e) { throw new BatchContainerRuntimeException(e); } } }
@Override public void beforeJob(JobExecution jobExecution) { try { delegate.beforeJob(); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void beforeJob() { try { this.delegate.beforeJob(); } catch (Exception e) { throw new BatchContainerRuntimeException(e); } } }
@Override public void beforeJob() { try { this.delegate.beforeJob(); } catch (Exception e) { throw new BatchContainerRuntimeException(e); } } }
@Override public void beforeJob(JobExecution jobExecution) { try { delegate.beforeJob(); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void beforeJob(JobExecution jobExecution) { try { delegate.beforeJob(); } catch (Exception e) { throw new BatchRuntimeException(e); } }
protected void jobListenersBeforeJob() { InjectionReferences injectionRef = new InjectionReferences(jobContext, null, null); final List<JobListener> jobListeners = listenerFactory.getJobListeners(injectionRef); for (final JobListener listenerProxy : jobListeners) { try { listenerProxy.beforeJob(); } catch (Exception e) { ExceptionConfig.wrapBatchException(e); } } }
jobListeners = createJobListeners(); for (; i < jobListeners.length; i++) { jobListeners[i].beforeJob();