Summary: | JUnit test as requested for updating embedded document. | ||
---|---|---|---|
Product: | POI | Reporter: | Mark B <markbrdsly> |
Component: | XWPF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.8-dev | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: | Archive containing java source for JUnit test along with .docx file. |
Created attachment 26402 [details] Archive containing java source for JUnit test along with .docx file. As requested, a JUnit test demonstrating that the OutputStream recovered from the PackagePart encapsulating a reference to an embedded document does not write the changes made back to the PackagePart but results in an empty - zero length - file. Includes simple test file consisting of a WordprocessingML document into which a binary Excel workbook has been embedded. The first four cells of row A of the workbook's first sheet have been populated with data and the test code attempts to modify the value in cell A1.