Bug 50474 - JUnit test as requested for updating embedded document.
Summary: JUnit test as requested for updating embedded document.
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: 3.8-dev
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-14 11:38 UTC by Mark B
Modified: 2011-06-25 13:46 UTC (History)
0 users



Attachments
Archive containing java source for JUnit test along with .docx file. (14.03 KB, application/octet-string)
2010-12-14 11:38 UTC, Mark B
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark B 2010-12-14 11:38:27 UTC
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.
Comment 1 Yegor Kozlov 2011-06-25 13:46:14 UTC
Thanks Mark,

I committed your example in r1139541

Yegor