org.springframework.batch.item
Class CommonItemStreamItemReaderTests
java.lang.Object
TestCase
org.springframework.batch.item.CommonItemReaderTests
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
executionContext
protected ExecutionContext executionContext
CommonItemStreamItemReaderTests
public CommonItemStreamItemReaderTests()
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.