diff options
author | Yegor Kozlov <yegor@apache.org> | 2009-07-24 07:29:22 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2009-07-24 07:29:22 +0000 |
commit | 51baaaafbd9a9c8a0042b3f244c146dee7cf2e3d (patch) | |
tree | 318a1f5249cd98c685c75d8b0450cb2a259761ea /src/ooxml/testcases/org/apache/poi/xwpf | |
parent | b7ba153dcb41f534516cb411553cfa1bf6bd6c4e (diff) | |
download | poi-51baaaafbd9a9c8a0042b3f244c146dee7cf2e3d.tar.gz poi-51baaaafbd9a9c8a0042b3f244c146dee7cf2e3d.zip |
fixed compatibility issues with OpenOffice 3.0 and Excel 2008 Mac sp2, see Bugzilla #46419 and #47559
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@797350 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi/xwpf')
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/xwpf/TestXWPFDocument.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/TestXWPFDocument.java b/src/ooxml/testcases/org/apache/poi/xwpf/TestXWPFDocument.java index 68df95786c..881adf34b2 100644 --- a/src/ooxml/testcases/org/apache/poi/xwpf/TestXWPFDocument.java +++ b/src/ooxml/testcases/org/apache/poi/xwpf/TestXWPFDocument.java @@ -21,6 +21,7 @@ import java.io.File; import junit.framework.TestCase; import org.apache.poi.POIXMLDocument; +import org.apache.poi.POIXMLProperties; import org.apache.poi.openxml4j.opc.OPCPackage; import org.apache.poi.openxml4j.opc.PackagePart; import org.apache.poi.xwpf.usermodel.XWPFDocument; @@ -119,4 +120,12 @@ public class TestXWPFDocument extends TestCase { assertEquals(" ", xml.getProperties().getCoreProperties().getTitle()); assertEquals(" ", xml.getProperties().getCoreProperties().getUnderlyingProperties().getSubjectProperty().getValue()); } + + public void testWorkbookProperties() throws Exception { + XWPFDocument doc = new XWPFDocument(); + POIXMLProperties props = doc.getProperties(); + assertNotNull(props); + assertEquals("Microsoft Office Word", props.getExtendedProperties().getUnderlyingProperties().getApplication()); + } + } |