@Override public void afterRead(T item) { try { delegate.afterRead(item); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Test(expected=BatchRuntimeException.class) public void testAfterReadException() throws Exception { String item = "item"; Exception expected = new Exception("expected"); doThrow(expected).when(delegate).afterRead(item); adapter.afterRead(item); }
@Test public void testAfterRead() throws Exception { String item = "item"; adapter.afterRead(item); verify(delegate).afterRead(item); }
@Override public void afterRead(T item) { try { delegate.afterRead(item); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void afterRead(T item) { try { delegate.afterRead(item); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void afterRead(T item) { try { delegate.afterRead(item); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void afterRead(Object item) { try { this.delegate.afterRead(item); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void afterRead(Object item) { try { this.delegate.afterRead(item); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void afterRead(Object item) { try { this.delegate.afterRead(item); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
l.afterRead(itemRead);
readListenerProxy.afterRead(itemRead);