@SuppressWarnings("unchecked") @Override public void afterWrite(List<? extends S> items) { try { delegate.afterWrite((List<Object>) items); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Test(expected=BatchRuntimeException.class) public void testAfterTestWriteException() throws Exception { doThrow(new Exception("expected")).when(delegate).afterWrite(items); adapter.afterWrite(items); }
@Test public void testAfterWrite() throws Exception { adapter.afterWrite(items); verify(delegate).afterWrite(items); }
@SuppressWarnings("unchecked") @Override public void afterWrite(List<? extends S> items) { try { delegate.afterWrite((List<Object>) items); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@SuppressWarnings("unchecked") @Override public void afterWrite(List<? extends S> items) { try { delegate.afterWrite((List<Object>) items); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@SuppressWarnings("unchecked") @Override public void afterWrite(List<? extends S> items) { try { delegate.afterWrite((List<Object>) items); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void afterWrite(List items) { try { this.delegate.afterWrite(items); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void afterWrite(List items) { try { this.delegate.afterWrite(items); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void afterWrite(List items) { try { this.delegate.afterWrite(items); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
stepMetrics.increment(Metric.MetricType.WRITE_COUNT, outputList.size()); for (final ItemWriteListener l : itemWriteListeners) { l.afterWrite(outputList);
writeListenerProxy.afterWrite(theChunk);