@Override public void beforeRead() { try { delegate.beforeRead(); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Test(expected=BatchRuntimeException.class) public void testBeforeReadException() throws Exception { doThrow(new Exception("Should occur")).when(delegate).beforeRead(); adapter.beforeRead(); }
@Test public void testBeforeRead() throws Exception { adapter.beforeRead(); verify(delegate).beforeRead(); }
@Override public void beforeRead() { try { delegate.beforeRead(); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void beforeRead() { try { delegate.beforeRead(); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void beforeRead() { try { delegate.beforeRead(); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void beforeRead() { try { this.delegate.beforeRead(); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void beforeRead() { try { this.delegate.beforeRead(); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void beforeRead() { try { this.delegate.beforeRead(); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
private void readItem(final ProcessingInfo processingInfo) throws Exception { try { for (final ItemReadListener l : itemReadListeners) { l.beforeRead();
readListenerProxy.beforeRead();