|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.springframework.batch.item.CommonItemReaderTests
org.springframework.batch.item.CommonItemStreamItemReaderTests
public abstract class CommonItemStreamItemReaderTests
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 |
testResetAndRestart()
Restart scenario - read items, rollback to last marked position, update execution context, create new reader and restore from restart data - the new input source should continue where the old one finished. |
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, pointToEmptyInput, testEmptyInput, testRead, testReset |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
Field Detail |
---|
protected ExecutionContext executionContext
Constructor Detail |
---|
public CommonItemStreamItemReaderTests()
Method Detail |
---|
protected ItemStream testedAsStream()
protected void setUp() throws Exception
setUp
in class CommonItemReaderTests
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void testRestart() throws Exception
Exception
public void testResetAndRestart() throws Exception
Exception
public void testReopen() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |