aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2012-01-19 08:09:26 +0000
committerYegor Kozlov <yegor@apache.org>2012-01-19 08:09:26 +0000
commit2de8e3793566b4e9640012968910fac528020ad9 (patch)
treeaac911856d04bf3ab8e922ae456a87050bd4fe98 /src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSlide.java
parent013ba86bb066ec9ddc30caa90c616baac5ffaa4b (diff)
downloadpoi-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.java15
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