|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbstractTransactionalDataSourceSpringContextTests org.springframework.batch.item.database.AbstractDataSourceItemReaderIntegrationTests
public abstract class AbstractDataSourceItemReaderIntegrationTests
Common scenarios for testing ItemReader
implementations which read
data from database.
Field Summary | |
---|---|
protected ExecutionContext |
executionContext
|
protected ItemReader |
reader
|
Constructor Summary | |
---|---|
AbstractDataSourceItemReaderIntegrationTests()
|
Method Summary | |
---|---|
protected abstract ItemReader |
createItemReader()
|
protected String[] |
getConfigLocations()
|
protected void |
onSetUpInTransaction()
|
protected void |
onTearDownAfterTransaction()
|
void |
testInvalidRestore()
Reading from an input source and then trying to restore causes an error. |
void |
testMultipleRestarts()
|
void |
testNormalProcessing()
Regular scenario - read all rows and eventually return null. |
void |
testRestart()
Restart scenario - read records, save restart data, create new input source and restore from restart data - the new input source should continue where the old one finished. |
void |
testRestoreFromEmptyData()
Empty restart data should be handled gracefully. |
void |
testRollback()
Rollback scenario - input source rollbacks to last commit point. |
void |
testRollbackAndRestart()
Rollback scenario with restart - input source rollbacks to last commit point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ItemReader reader
protected ExecutionContext executionContext
Constructor Detail |
---|
public AbstractDataSourceItemReaderIntegrationTests()
Method Detail |
---|
protected abstract ItemReader createItemReader() throws Exception
Exception
protected String[] getConfigLocations()
protected void onSetUpInTransaction() throws Exception
Exception
protected void onTearDownAfterTransaction() 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
public void testRollbackAndRestart() throws Exception
Exception
public void testMultipleRestarts() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |