|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractTransactionalDataSourceSpringContextTests
org.springframework.batch.item.database.AbstractJdbcItemReaderIntegrationTests
public abstract class AbstractJdbcItemReaderIntegrationTests
Common scenarios for testing ItemReader
implementations which read data from database.
Field Summary | |
---|---|
protected ExecutionContext |
executionContext
|
protected ItemReader |
itemReader
|
Constructor Summary | |
---|---|
AbstractJdbcItemReaderIntegrationTests()
|
Method Summary | |
---|---|
protected abstract ItemReader |
createItemReader()
|
protected String[] |
getConfigLocations()
|
protected void |
onSetUp()
|
protected void |
onTearDown()
|
void |
testInvalidRestore()
Reading from an input source and then trying to restore causes an error. |
void |
testNormalProcessing()
Regular scenario - read all rows and eventually return null. |
void |
testRestart()
Restart scenario. |
void |
testRestoreFromEmptyData()
Empty restart data should be handled gracefully. |
void |
testRollback()
Rollback scenario. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ItemReader itemReader
protected ExecutionContext executionContext
Constructor Detail |
---|
public AbstractJdbcItemReaderIntegrationTests()
Method Detail |
---|
protected abstract ItemReader createItemReader() throws Exception
Exception
protected String[] getConfigLocations()
protected void onSetUp() throws Exception
Exception
protected void onTearDown() throws Exception
Exception
public void testNormalProcessing() throws Exception
Exception
public void testRestart() throws Exception
Exception
public void testInvalidRestore() throws Exception
Exception
public void testRestoreFromEmptyData() throws Exception
Exception
public void testRollback() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |