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