diff options
author | Yegor Kozlov <yegor@apache.org> | 2012-01-19 08:09:26 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2012-01-19 08:09:26 +0000 |
commit | 2de8e3793566b4e9640012968910fac528020ad9 (patch) | |
tree | aac911856d04bf3ab8e922ae456a87050bd4fe98 /src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java | |
parent | 013ba86bb066ec9ddc30caa90c616baac5ffaa4b (diff) | |
download | poi-2de8e3793566b4e9640012968910fac528020ad9.tar.gz poi-2de8e3793566b4e9640012968910fac528020ad9.zip |
more XSLF tests to ensure that poi-ooxml-schemas.jar contains all used classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1233242 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java')
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java b/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java index f658e6b555..9bba6c269f 100644 --- a/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java +++ b/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java @@ -20,6 +20,7 @@ import junit.framework.TestCase; import org.apache.poi.xslf.XSLFTestDataSamples;
import java.awt.Color;
+import java.io.FileInputStream;
import java.util.Arrays;
/**
@@ -159,4 +160,18 @@ public class TestXSLFSlide extends TestCase { XSLFPictureShape srcPic = (XSLFPictureShape)src.getSlides()[4].getShapes()[1];
assertTrue(Arrays.equals(sh4.getPictureData().getData(), srcPic.getPictureData().getData()));
}
+
+ public void testMergeSlides(){
+ XMLSlideShow ppt = new XMLSlideShow();
+ String[] pptx = {"shapes.pptx", "themes.pptx", "layouts.pptx", "backgrounds.pptx"};
+
+ for(String arg : pptx){
+ XMLSlideShow src = XSLFTestDataSamples.openSampleDocument(arg);
+
+ for(XSLFSlide srcSlide : src.getSlides()){
+ ppt.createSlide().importContent(srcSlide);
+ }
+ }
+ assertEquals(30, ppt.getSlides().length);
+ }
}
\ No newline at end of file |