Bug 50474

Summary: JUnit test as requested for updating embedded document.
Product: POI Reporter: Mark B <markbrdsly>
Component: XWPFAssignee: 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.

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