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