aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2013-12-18 05:26:49 +0000
committerYegor Kozlov <yegor@apache.org>2013-12-18 05:26:49 +0000
commit95617413cd703d2597519e38e6c2773ea1c0c86c (patch)
treed446ceac08306094f8d02f712b77f85728ed9f7c /src
parent4135f846526646f5327a3b3890f69bd0cace9d4d (diff)
downloadpoi-95617413cd703d2597519e38e6c2773ea1c0c86c.tar.gz
poi-95617413cd703d2597519e38e6c2773ea1c0c86c.zip
removed pictureFileZero.ppt from svn as requested by the owner, see discussion on @poi-dev from Dec 12, 2013
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1551845 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java
index 9d0f92be88..64c54ea564 100644
--- a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java
+++ b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java
@@ -24,6 +24,7 @@ import org.apache.poi.POIDataSamples;
import junit.framework.TestCase;
import java.io.*;
+import java.net.URL;
import java.util.Arrays;
/**
@@ -386,8 +387,14 @@ public final class TestPictures extends TestCase{
assertEquals(Picture.WMF, pdata.getType());
}
- public void testZeroPictureLength() throws Exception {
- HSLFSlideShow hslf = new HSLFSlideShow(slTests.openResourceAsStream("PictureLengthZero.ppt"));
+ /**
+ * YK: The test is disabled because the owner asked to delete the test file from POI svn.
+ * See "Please remove my file from your svn" on @poi-dev from Dec 12, 2013
+ */
+ public void disabled_testZeroPictureLength() throws Exception {
+ // take the data from www instead of test directory
+ URL url = new URL("http://www.cs.sfu.ca/~anoop/courses/CMPT-882-Fall-2002/chris.ppt");
+ HSLFSlideShow hslf = new HSLFSlideShow(url.openStream());
// Should still have 2 real pictures
assertEquals(2, hslf.getPictures().length);