From 6d9b450ce31209014d945a13c65fc23cb29a351c Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 28 Aug 2021 13:27:36 +0000 Subject: [PATCH] extend xslf test git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892680 13f79535-47bb-0310-9956-ffa450edef68 --- poi-ooxml/src/test/java/org/apache/poi/xslf/TestXSLFBugs.java | 4 ++++ 1 file changed, 4 insertions(+) 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()); } } -- 2.39.5