jferard / fastods

A very fast and lightweight (no dependency) library for creating ODS (Open Document Spreadsheet, mainly for Calc) files in Java. It's a Martin Schulz's SimpleODS fork
GNU General Public License v3.0
36 stars 6 forks source link

Create an in memory ZipUTF8Writer #29

Closed jferard closed 7 years ago

jferard commented 7 years ago

To help test some features, it would be nice to have a precise view of what zip entries (content.xml, ...) contains. To do so, we need a ZipUTF8WriterTester with the same API as ZipUTF8Writer and the following methods:

String ZipUTF8WriterTester.getEntryAsString(String entryName)
org.w3c.dom.Document ZipUTF8WriterTester.getEntryAsDocument(String entryName)
jferard commented 7 years ago

With relfection: see e.g. http://www.kdgregory.com/index.php?page=junit.proxy