@Override public void afterProcess(T item, @Nullable S result) { try { delegate.afterProcess(item, result); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Test(expected=BatchRuntimeException.class) public void testAfterProcessException() throws Exception { String item = "This is the input"; String result = "This is the output"; Exception exception = new Exception("This is expected"); doThrow(exception).when(delegate).afterProcess(item, result); adapter.afterProcess(item, result); }
@Test public void testAfterProcess() throws Exception { String item = "This is the input"; String result = "This is the output"; adapter.afterProcess(item, result); verify(delegate).afterProcess(item, result); }
@Override public void afterProcess(T item, S result) { try { delegate.afterProcess(item, result); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void afterProcess(T item, @Nullable S result) { try { delegate.afterProcess(item, result); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void afterProcess(T item, @Nullable S result) { try { delegate.afterProcess(item, result); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void afterProcess(Object item, Object result) { try { this.delegate.afterProcess(item, result); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void afterProcess(Object item, Object result) { try { this.delegate.afterProcess(item, result); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void afterProcess(Object item, Object result) { try { this.delegate.afterProcess(item, result); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
l.afterProcess(itemRead, output);
processListenerProxy.afterProcess(itemRead, processedItem);