Bug 60742 - [PATCH] Build fail on Windows due to Linux-style path in unit test
Summary: [PATCH] Build fail on Windows due to Linux-style path in unit test
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.16-dev
Hardware: PC All
: P2 major (vote)
Target Milestone: ---
Assignee: POI Developers List
Keywords: PatchAvailable
Depends on: 60512
  Show dependency tree
Reported: 2017-02-17 16:14 UTC by Chiara Marcheschi
Modified: 2017-02-17 17:16 UTC (History)
1 user (show)

Patch (1.24 KB, patch)
2017-02-17 16:14 UTC, Chiara Marcheschi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chiara Marcheschi 2017-02-17 16:14:28 UTC
Created attachment 34763 [details]

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.