org.springframework.batch.item
Class CommonItemStreamItemReaderTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.item.CommonItemReaderTests
          extended by org.springframework.batch.item.CommonItemStreamItemReaderTests
Direct Known Subclasses:
CommonDatabaseItemStreamItemReaderTests, FlatFileItemReaderCommonTests, StaxEventItemReaderCommonTests

public abstract class CommonItemStreamItemReaderTests
extends CommonItemReaderTests

Common tests for readers implementing both ItemReader and ItemStream. Expected input is five Foo objects with values 1 to 5.


Field Summary
protected  ExecutionContext executionContext
           
 
Fields inherited from class org.springframework.batch.item.CommonItemReaderTests
tested
 
Constructor Summary
CommonItemStreamItemReaderTests()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
protected  ItemStream testedAsStream()
          Cast the reader to ItemStream.
 void testReopen()
           
 void testRestart()
          Restart scenario - read items, update execution context, create new reader and restore from restart data - the new input source should continue where the old one finished.
 
Methods inherited from class org.springframework.batch.item.CommonItemReaderTests
getItemReader, testRead, testReset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

executionContext

protected ExecutionContext executionContext
Constructor Detail

CommonItemStreamItemReaderTests

public CommonItemStreamItemReaderTests()
Method Detail

testedAsStream

protected ItemStream testedAsStream()
Cast the reader to ItemStream.


setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class CommonItemReaderTests
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception

testRestart

public void testRestart()
                 throws Exception
Restart scenario - read items, update execution context, create new reader and restore from restart data - the new input source should continue where the old one finished.

Throws:
Exception

testReopen

public void testReopen()
                throws Exception
Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.