mirror of https://github.com/apache/poi.git
extend xslf test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892680 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d822000133
commit
6d9b450ce3
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue