aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xslf/TestXSLFBugs.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xslf/TestXSLFBugs.java b/poi-ooxml/src/test/java/org/apache/poi/xslf/TestXSLFBugs.java
index a87738d086..c21d24f513 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xslf/TestXSLFBugs.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xslf/TestXSLFBugs.java
@@ -1046,6 +1046,7 @@ class TestXSLFBugs {
@Test
public void bug65523() throws IOException {
try (XMLSlideShow sourcePresentation = openSampleDocument("bug65523.pptx")) {
+ assertEquals(2, sourcePresentation.getPictureData().size());
XMLSlideShow targetPresentation = new XMLSlideShow();
XSLFSlide targetPresentationSlide = targetPresentation.createSlide();
@@ -1056,6 +1057,9 @@ class TestXSLFBugs {
targetPresentationSlide.importContent(sourceSlide);
+ XSLFSlide targetSlide = targetPresentation.getSlides().get(0);
+ assertEquals(2, targetPresentation.getPictureData().size());
+
targetPresentation.write(new UnsynchronizedByteArrayOutputStream());
}
}