poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r1551845 - in /poi/trunk: src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java test-data/slideshow/PictureLengthZero.ppt
Date Wed, 18 Dec 2013 05:26:50 GMT
Author: yegor
Date: Wed Dec 18 05:26:49 2013
New Revision: 1551845

URL: http://svn.apache.org/r1551845
Log:
removed pictureFileZero.ppt from svn as requested by the owner, see discussion on @poi-dev
from Dec 12, 2013

Removed:
    poi/trunk/test-data/slideshow/PictureLengthZero.ppt
Modified:
    poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java

Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java?rev=1551845&r1=1551844&r2=1551845&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java Wed
Dec 18 05:26:49 2013
@@ -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 
         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);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message