]> source.dussan.org Git - poi.git/commitdiff
test for TIKA-2605
authorPJ Fanning <fanningpj@apache.org>
Tue, 30 Aug 2022 11:26:20 +0000 (11:26 +0000)
committerPJ Fanning <fanningpj@apache.org>
Tue, 30 Aug 2022 11:26:20 +0000 (11:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903776 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/test/java/org/apache/poi/xslf/TestXSLFBugs.java
test-data/slideshow/tika-2605.pptx [new file with mode: 0644]

index f322bd233976ec27c7efc10c58f610304958923a..e41c91a2f1e016846eca230942b028992f948f45 100644 (file)
@@ -1108,4 +1108,16 @@ class TestXSLFBugs {
             }
         }
     }
+
+    @Test
+    void tika2605() throws IOException {
+        try (XMLSlideShow slideShowModel = openSampleDocument("tika-2605.pptx")) {
+            for (XSLFSlide slide : slideShowModel.getSlides()) {
+                assertNotNull(slide);
+                for (XSLFShape shape : slide.getShapes()) {
+                    assertNotNull(shape);
+                }
+            }
+        }
+    }
 }
diff --git a/test-data/slideshow/tika-2605.pptx b/test-data/slideshow/tika-2605.pptx
new file mode 100644 (file)
index 0000000..59cd329
Binary files /dev/null and b/test-data/slideshow/tika-2605.pptx differ