Bug 60742

Summary: [PATCH] Build fail on Windows due to Linux-style path in unit test
Product: POI Reporter: Chiara Marcheschi <chiaramarcheschi>
Component: POI OverallAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: major CC: chiaramarcheschi
Priority: P2 Keywords: PatchAvailable
Version: 3.16-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   
Bug Depends on: 60512    
Bug Blocks:    
Attachments: Patch

Description Chiara Marcheschi 2017-02-17 16:14:28 UTC
Created attachment 34763 [details]
Patch

The TestXSSFCloneSheet contains a "unix style" path to reference "60512.xlsm".
The ant compilation fails with:
"java.io.FileNotFoundException: \tmp\60512.xlsx (The system cannot find the path specified)"
Comment 1 Javen O'Neal 2017-02-17 16:58:36 UTC
Thanks! Fixed in r1783426.

I'm wondering if we need to call both writeOutAndReadBack and write. If this test is testing what happens if the same workbook is written out twice, then we could accomplish that with two writeOutAndReadBack (to ByteArrayOutputStreams instead of FileOutputStreams, which are faster) or write out to a NullOutputStream if we don't care about the output.

Dominik, any ideas?
Comment 2 Dominik Stadler 2017-02-17 17:16:10 UTC
I remove this in r1783428 as it just was leftover local test code.