@SuppressWarnings("unchecked") @Override public void beforeWrite(List<? extends S> items) { try { delegate.beforeWrite((List<Object>) items); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Test(expected=BatchRuntimeException.class) public void testBeforeTestWriteException() throws Exception { doThrow(new Exception("expected")).when(delegate).beforeWrite(items); adapter.beforeWrite(items); }
@Test public void testBeforeWrite() throws Exception { adapter.beforeWrite(items); verify(delegate).beforeWrite(items); }
@SuppressWarnings("unchecked") @Override public void beforeWrite(List<? extends S> items) { try { delegate.beforeWrite((List<Object>) items); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@SuppressWarnings("unchecked") @Override public void beforeWrite(List<? extends S> items) { try { delegate.beforeWrite((List<Object>) items); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@SuppressWarnings("unchecked") @Override public void beforeWrite(List<? extends S> items) { try { delegate.beforeWrite((List<Object>) items); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void beforeWrite(List items) { try { this.delegate.beforeWrite(items); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void beforeWrite(List items) { try { this.delegate.beforeWrite(items); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void beforeWrite(List items) { try { this.delegate.beforeWrite(items); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
if (!nothingToWrite) { for (final ItemWriteListener l : itemWriteListeners) { l.beforeWrite(outputList);
writeListenerProxy.beforeWrite(theChunk);