aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2015-09-20 02:25:35 +0000
committerAndreas Beeker <kiwiwings@apache.org>2015-09-20 02:25:35 +0000
commit0a506c7eb5a98362df3478f9b802ad923a8e0476 (patch)
tree5824922190b94787d77ae3f52b34002a20b5e36a /src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java
parent12ace59f6e37d6c4dd96609fe9face402474f40b (diff)
downloadpoi-0a506c7eb5a98362df3478f9b802ad923a8e0476.tar.gz
poi-0a506c7eb5a98362df3478f9b802ad923a8e0476.zip
- #58207 - Provide user access to the original image dimensions (XSLF)
- same for hslf / common sl - unify method names in H/XSLF Slideshow for common sl - add/fix header information for PICT/EMF/WMF git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1704097 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java')
-rw-r--r--src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java b/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java
index 834f1520b1..a03c253130 100644
--- a/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java
+++ b/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java
@@ -22,6 +22,7 @@ import static org.junit.Assert.assertEquals;
import java.awt.geom.Rectangle2D;
import java.io.*;
+import java.util.List;
import org.apache.poi.POIDataSamples;
import org.apache.poi.hslf.usermodel.*;
@@ -44,8 +45,8 @@ public final class TestOleEmbedding {
public void testOleEmbedding2003() throws Exception {
HSLFSlideShowImpl slideShow = new HSLFSlideShowImpl(_slTests.openResourceAsStream("ole2-embedding-2003.ppt"));
// Placeholder EMFs for clients that don't support the OLE components.
- HSLFPictureData[] pictures = slideShow.getPictures();
- assertEquals("Should be two pictures", 2, pictures.length);
+ List<HSLFPictureData> pictures = slideShow.getPictureData();
+ assertEquals("Should be two pictures", 2, pictures.size());
//assertDigestEquals("Wrong data for picture 1", "8d1fbadf4814f321bb1ccdd056e3c788", pictures[0].getData());
//assertDigestEquals("Wrong data for picture 2", "987a698e83559cf3d38a0deeba1cc63b", pictures[1].getData());
@@ -137,5 +138,8 @@ public final class TestOleEmbedding {
assertArrayEquals(expData, compData);
+ poiData1.close();
+ poiData2.close();
+
}
}