Author: fanningpj
Date: Tue Feb 22 00:36:08 2022
New Revision: 1898294

URL: http://svn.apache.org/viewvc?rev=1898294&view=rev
Log:
add test

Modified:
    
poi/trunk/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestPOIXMLDocument.java

Modified: 
poi/trunk/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestPOIXMLDocument.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestPOIXMLDocument.java?rev=1898294&r1=1898293&r2=1898294&view=diff
==============================================================================
--- 
poi/trunk/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestPOIXMLDocument.java 
(original)
+++ 
poi/trunk/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestPOIXMLDocument.java 
Tue Feb 22 00:36:08 2022
@@ -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 {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to