org.springframework.batch.repeat.support
Class AsynchronousRepeatTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.batch.repeat.support.AbstractTradeBatchTests
              extended by org.springframework.batch.repeat.support.AsynchronousRepeatTests
All Implemented Interfaces:
junit.framework.Test

public class AsynchronousRepeatTests
extends AbstractTradeBatchTests


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
AsynchronousRepeatTests()
           
 
Method Summary
 void testMultiThreadAsynchronousExecution()
          Run a batch with a single template that itself has an asynch task executor.
 void testSingleThreadAsynchronousExecution()
          Wrap an otherwise synchronous batch in a callback to an asynchronous template.
 
Methods inherited from class org.springframework.batch.repeat.support.AbstractTradeBatchTests
setUp
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsynchronousRepeatTests

public AsynchronousRepeatTests()
Method Detail

testMultiThreadAsynchronousExecution

public void testMultiThreadAsynchronousExecution()
                                          throws Exception
Run a batch with a single template that itself has an asynch task executor. The result is a batch that runs in multiple threads (up to the throttle limit of the template).

Throws:
Exception

testSingleThreadAsynchronousExecution

public void testSingleThreadAsynchronousExecution()
                                           throws Exception
Wrap an otherwise synchronous batch in a callback to an asynchronous template.

Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.