@Override public void afterChunk(ChunkContext context) { try { delegate.afterChunk(); } catch (Exception e) { throw new UncheckedTransactionException(e); } }
@Test(expected=UncheckedTransactionException.class) public void testAfterChunkErrorException() throws Exception { doThrow(new Exception("This is expected")).when(delegate).afterChunk(); adapter.afterChunk(null); }
@Test(expected=UncheckedTransactionException.class) public void testAfterChunkException() throws Exception { doThrow(new Exception("This is expected")).when(delegate).afterChunk(); adapter.afterChunk(null); }
@Test public void testAfterChunk() throws Exception { adapter.afterChunk(null); verify(delegate).afterChunk(); }
@Override public void afterChunk(ChunkContext context) { try { delegate.afterChunk(); } catch (Exception e) { throw new UncheckedTransactionException(e); } }
@Override public void afterChunk(ChunkContext context) { try { delegate.afterChunk(); } catch (Exception e) { throw new UncheckedTransactionException(e); } }
@Override public void afterChunk(ChunkContext context) { try { delegate.afterChunk(); } catch (Exception e) { throw new UncheckedTransactionException(e); } }
@Override public void afterChunk() throws Exception { try { this.delegate.afterChunk(); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void afterChunk() throws Exception { try { this.delegate.afterChunk(); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
@Override public void afterChunk() throws Exception { try { this.delegate.afterChunk(); } catch (Exception e) { this.stepContext.setException(e); throw new BatchContainerRuntimeException(e); } }
chunkProxy.afterChunk();