@Override public void onReadError(Exception ex) { try { delegate.onReadError(ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Test public void testOnReadError() throws Exception { Exception cause = new Exception ("cause"); adapter.onReadError(cause); verify(delegate).onReadError(cause); }
@Test(expected=BatchRuntimeException.class) public void testOnReadErrorException() throws Exception { Exception cause = new Exception ("cause"); Exception result = new Exception("result"); doThrow(result).when(delegate).onReadError(cause); adapter.onReadError(cause); } }
@Override public void onReadError(Exception ex) { try { delegate.onReadError(ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onReadError(Exception ex) { try { delegate.onReadError(ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onReadError(Exception ex) { try { delegate.onReadError(ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onReadError(Exception ex) { try { this.delegate.onReadError(ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void onReadError(Exception ex) { try { this.delegate.onReadError(ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void onReadError(Exception ex) { try { this.delegate.onReadError(ex); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
for (ItemReadListener readListenerProxy : itemReadListeners) { try { readListenerProxy.onReadError(e); } catch (Exception e1) { ExceptionConfig.wrapBatchException(e1);