From 5c1eed2fbaa104c9ebc20f8d01b57a90d200da2d Mon Sep 17 00:00:00 2001 From: dsyer Date: Mon, 7 Apr 2008 07:35:26 +0000 Subject: [PATCH] RESOLVED - issue BATCH-560: StepExecutionResourceProxy can not be used with FlatFileItemWriter --- .../springframework/batch/item/util/FileUtilsTests.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/util/FileUtilsTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/util/FileUtilsTests.java index 12cfb26b2..78271168e 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/util/FileUtilsTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/util/FileUtilsTests.java @@ -7,6 +7,7 @@ import java.io.IOException; import junit.framework.TestCase; +import org.springframework.batch.item.ItemStreamException; import org.springframework.batch.item.util.FileUtils; import org.springframework.dao.DataAccessResourceFailureException; import org.springframework.util.Assert; @@ -64,7 +65,7 @@ public class FileUtilsTests extends TestCase { FileUtils.setUpOutputFile(file, true, false); fail(); } - catch (DataAccessResourceFailureException e) { + catch (ItemStreamException e) { // expected } @@ -72,7 +73,7 @@ public class FileUtilsTests extends TestCase { FileUtils.setUpOutputFile(file, true, true); fail(); } - catch (DataAccessResourceFailureException e) { + catch (ItemStreamException e) { // expected } @@ -115,7 +116,7 @@ public class FileUtilsTests extends TestCase { try{ FileUtils.setUpOutputFile(file, false, false); fail(); - }catch(DataAccessResourceFailureException ex){ + }catch(ItemStreamException ex){ assertTrue(ex.getCause() instanceof IOException); }finally{ file.delete();