IN PROGRESS - issue BATCH-212: Merge InputSource with ItemProvider
http://opensource.atlassian.com/projects/spring/browse/BATCH-212 Rename class and method names (Provider -> Reader)
This commit is contained in:
@@ -56,7 +56,7 @@ public class StagingItemReaderTests extends
|
||||
getJdbcTemplate().update("DELETE FROM BATCH_STAGING");
|
||||
}
|
||||
|
||||
public void testProviderUpdatesProcessIndicator() throws Exception {
|
||||
public void testReaderUpdatesProcessIndicator() throws Exception {
|
||||
|
||||
long id = getJdbcTemplate().queryForLong(
|
||||
"SELECT MIN(ID) from BATCH_STAGING where JOB_ID=?",
|
||||
@@ -77,7 +77,7 @@ public class StagingItemReaderTests extends
|
||||
}
|
||||
|
||||
public void testUpdateProcessIndicatorAfterCommit() throws Exception {
|
||||
testProviderUpdatesProcessIndicator();
|
||||
testReaderUpdatesProcessIndicator();
|
||||
setComplete();
|
||||
endTransaction();
|
||||
startNewTransaction();
|
||||
|
||||
@@ -38,7 +38,7 @@ public class ExceptionRestartableTaskletTests extends TestCase {
|
||||
module.setItemProcessor(itemProcessor);
|
||||
module.setThrowExceptionOnRecordNumber(ITER_COUNT + 1);
|
||||
|
||||
module.setItemProvider(new ListItemReader(new ArrayList() {{
|
||||
module.setItemReader(new ListItemReader(new ArrayList() {{
|
||||
add("a");
|
||||
add("b");
|
||||
add("c");
|
||||
|
||||
Reference in New Issue
Block a user