RESOLVED - issue BATCH-560: StepExecutionResourceProxy can not be used with FlatFileItemWriter

Move "non-existent file" to target dir
This commit is contained in:
dsyer
2008-04-07 07:54:38 +00:00
parent 5d16dc4cdb
commit 45b3b0e6c3

View File

@@ -262,10 +262,10 @@ public class FlatFileItemWriterTests extends TestCase {
}
public void testOpenWithNonexistentFile() throws Exception {
public void testOpenWithNonWritableFile() throws Exception {
writer = new FlatFileItemWriter();
writer.setFieldSetCreator(new PassThroughFieldSetMapper());
FileSystemResource file = new FileSystemResource("no-such-file.foo");
FileSystemResource file = new FileSystemResource("target/no-such-file.foo");
writer.setResource(file);
file.getFile().createNewFile();
file.getFile().setReadOnly();