Announcement Announcement Module
No announcement yet.
Unit Test (testWriteWithDelete) Error? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unit Test (testWriteWithDelete) Error?

    Hi all,

    I'm new to Spring Batch and I'm trying to just grab the latest snapshot from 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.

  • #2
    What is the actual exception? The surefire reports should give you a stack trace.