aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-02-22 00:36:08 +0000
committerPJ Fanning <fanningpj@apache.org>2022-02-22 00:36:08 +0000
commitd60c134d579d484f4e3c6471db439dc53a6634cc (patch)
tree333f2e69faf63db2c93d7ca67f582e04ca3027e8
parenteb259606e303acae3c8e9ca19ffb04e97e78e8d1 (diff)
downloadpoi-d60c134d579d484f4e3c6471db439dc53a6634cc.tar.gz
poi-d60c134d579d484f4e3c6471db439dc53a6634cc.zip
add test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898294 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/ooxml/TestPOIXMLDocument.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestPOIXMLDocument.java b/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestPOIXMLDocument.java
index 06cadf6c0f..98adc69df4 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestPOIXMLDocument.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestPOIXMLDocument.java
@@ -296,6 +296,21 @@ public final class TestPOIXMLDocument {
}
}
+ @Test
+ void testLoadPptx() throws IOException {
+ byte[] data;
+ try (InputStream is = POIDataSamples.getSlideShowInstance().openResourceAsStream("table_test.pptx")) {
+ data = IOUtils.toByteArray(is);
+ }
+
+ assertDoesNotThrow(() -> {
+ try (XMLSlideShow ppt = new XMLSlideShow(new ByteArrayInputStream(data))) {
+ assertNotNull(ppt.getSlides().get(0).getShapes());
+ }}
+ );
+ }
+
+
@Disabled("needs investigation")
@Test
void testOSGIClassLoading() throws IOException {