]> source.dussan.org Git - poi.git/commitdiff
extend xslf test
authorPJ Fanning <fanningpj@apache.org>
Sat, 28 Aug 2021 13:27:36 +0000 (13:27 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 28 Aug 2021 13:27:36 +0000 (13:27 +0000)
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

index a87738d08684e56117893a5a513a5a67b3d0da7b..c21d24f513ebb823b74879933d2fe54060001ace 100644 (file)
@@ -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());
         }
     }