@Override public void onProcessError(T item, Exception e) { try { delegate.onProcessError(item, e); } catch (Exception e1) { throw new BatchRuntimeException(e1); } } }
@Test(expected=BatchRuntimeException.class) public void testOnProcessErrorException() throws Exception { String item = "This is the input"; Exception cause = new Exception("This was the cause"); Exception exception = new Exception("This is expected"); doThrow(exception).when(delegate).onProcessError(item, cause); adapter.onProcessError(item, cause); } }
@Test public void testOnProcessError() throws Exception { String item = "This is the input"; Exception cause = new Exception("This was the cause"); adapter.onProcessError(item, cause); verify(delegate).onProcessError(item, cause); }
@Override public void onProcessError(T item, Exception e) { try { delegate.onProcessError(item, e); } catch (Exception e1) { throw new BatchRuntimeException(e1); } } }
@Override public void onProcessError(T item, Exception e) { try { delegate.onProcessError(item, e); } catch (Exception e1) { throw new BatchRuntimeException(e1); } } }
@Override public void onProcessError(T item, Exception e) { try { delegate.onProcessError(item, e); } catch (Exception e1) { throw new BatchRuntimeException(e1); } } }
@Override public void onProcessError(Object item, Exception ex) { try { this.delegate.onProcessError(item, ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void onProcessError(Object item, Exception ex) { try { this.delegate.onProcessError(item, ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void onProcessError(Object item, Exception ex) { try { this.delegate.onProcessError(item, ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
l.onProcessError(itemRead, e);
for (final ItemProcessListener processListenerProxy : itemProcessListeners) { try { processListenerProxy.onProcessError(itemRead, e); } catch (Exception e1) { ExceptionConfig.wrapBatchException(e1);