Results 1 to 2 of 2

Thread: Unit Test (testWriteWithDelete) Error?

  1. #1

    Default Unit Test (testWriteWithDelete) Error?

    Hi all,

    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.

  2. #2
    Join Date
    Sep 2008
    Location
    Chicagoland, IL
    Posts
    349

    Default

    What is the actual exception? The surefire reports should give you a stack trace.
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •