org.springframework.batch.repeat.support
Class ChunkedRepeatTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.repeat.support.AbstractTradeBatchTests
          extended by org.springframework.batch.repeat.support.ChunkedRepeatTests

public class ChunkedRepeatTests
extends AbstractTradeBatchTests

Test various approaches to chunking of a batch. Not really a unit test, but it should be fast.

Author:
Dave Syer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.batch.repeat.support.AbstractTradeBatchTests
AbstractTradeBatchTests.TradeItemReader, AbstractTradeBatchTests.TradeMapper, AbstractTradeBatchTests.TradeWriter
 
Field Summary
 
Fields inherited from class org.springframework.batch.repeat.support.AbstractTradeBatchTests
NUMBER_OF_ITEMS, processor, provider
 
Constructor Summary
ChunkedRepeatTests()
           
 
Method Summary
 void testAsynchronousChunkedBatchWithCompletionPolicy()
          Chunking with an asynchronous taskExecutor in the chunks.
 void testChunkedBatchWithTerminationPolicy()
          Chunking using a dedicated TerminationPolicy.
 void testChunksWithTruncatedItemProvider()
          Explicit chunking of input data.
 
Methods inherited from class org.springframework.batch.repeat.support.AbstractTradeBatchTests
setUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkedRepeatTests

public ChunkedRepeatTests()
Method Detail

testChunkedBatchWithTerminationPolicy

public void testChunkedBatchWithTerminationPolicy()
                                           throws Exception
Chunking using a dedicated TerminationPolicy. Transactions would be laid on at the level of chunkTemplate.execute() or the surrounding callback.

Throws:
Exception

testAsynchronousChunkedBatchWithCompletionPolicy

public void testAsynchronousChunkedBatchWithCompletionPolicy()
                                                      throws Exception
Chunking with an asynchronous taskExecutor in the chunks. Transactions have to be at the level of the business callback.

Throws:
Exception

testChunksWithTruncatedItemProvider

public void testChunksWithTruncatedItemProvider()
                                         throws Exception
Explicit chunking of input data. Transactions would be laid on at the level of template.execute().

Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.