Incomplete - task 84: Fix samples
Remove unused private scoped code.
This commit is contained in:
@@ -28,8 +28,6 @@ import org.springframework.batch.io.file.mapping.FieldSet;
|
||||
import org.springframework.batch.io.file.mapping.FieldSetCreator;
|
||||
import org.springframework.batch.io.file.mapping.PassThroughFieldSetMapper;
|
||||
import org.springframework.batch.item.ExecutionContext;
|
||||
import org.springframework.batch.item.ItemStream;
|
||||
import org.springframework.batch.item.ItemWriter;
|
||||
import org.springframework.core.io.FileSystemResource;
|
||||
import org.springframework.transaction.support.TransactionSynchronizationManager;
|
||||
|
||||
@@ -282,7 +280,4 @@ public class FlatFileItemWriterTests extends TestCase {
|
||||
inputSource.clear();
|
||||
}
|
||||
|
||||
private ItemStream getAsItemStream(ItemWriter itemWriter){
|
||||
return (ItemStream)itemWriter;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,9 +124,7 @@ public abstract class AbstractJdbcItemReaderIntegrationTests extends AbstractTra
|
||||
*/
|
||||
public void testRestoreFromEmptyData() throws Exception {
|
||||
ExecutionContext streamContext = new ExecutionContext();
|
||||
|
||||
getAsItemStream(itemReader).open(executionContext);
|
||||
|
||||
getAsItemStream(itemReader).open(streamContext);
|
||||
Foo foo = (Foo) itemReader.read();
|
||||
assertEquals(1, foo.getValue());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user