diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/io/file/FlatFileItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/io/file/FlatFileItemWriterTests.java index c35f16eb4..5ccc1c441 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/io/file/FlatFileItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/io/file/FlatFileItemWriterTests.java @@ -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; - } } diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/io/sql/AbstractJdbcItemReaderIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/io/sql/AbstractJdbcItemReaderIntegrationTests.java index d83ed5a9e..a94df6af2 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/io/sql/AbstractJdbcItemReaderIntegrationTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/io/sql/AbstractJdbcItemReaderIntegrationTests.java @@ -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()); }