Oct 12th, 2012, 12:43 PM
Unit Test (testWriteWithDelete) Error?
I'm new to Spring Batch and I'm trying to just grab the latest snapshot from https://github.com/SpringSource/spring-batch and build it. When I run "mvn install -P bootstrap" it throws an error during one of the unit tests:
Tests in error:
testWriteWithDelete(org.springframework.batch.item .file.FlatFileItemWriterTests): Unable to create file: [C:\cygwin\tmp\flatfile-test-output-3833904901932827557.tmp]
This happens when I run it from Cygwin or the regular cmd.exe (although the temp directory is different). I'm on Windows 7. The problem seems to be that it cannot delete the tmp file before trying to write to it a second time. I've tried to hunt down all the Writer's that might not have been closed, but they seem to be. Any help would be much appreciated.
Oct 22nd, 2012, 03:54 PM
What is the actual exception? The surefire reports should give you a stack trace.