You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by on...@apache.org on 2017/06/20 09:16:05 UTC

svn commit: r1799326 - /poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java

Author: onealj
Date: Tue Jun 20 09:16:05 2017
New Revision: 1799326

URL: http://svn.apache.org/viewvc?rev=1799326&view=rev
Log:
@Ignore("requires an internet connection to a 3rd party site"

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=1799326&r1=1799325&r2=1799326&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 Tue Jun 20 09:16:05 2017
@@ -466,11 +466,24 @@ public final class TestPictures {
      * See "Please remove my file from your svn" on @poi-dev from Dec 12, 2013
      */
     @Test
-    @Ignore
+    @Ignore("requires an internet connection to a 3rd party site")
+    // As of 2017-06-20, the file still exists at the specified URL and the test passes.
 	public void testZeroPictureLength() throws IOException {
         // 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");
 		HSLFSlideShowImpl hslf = new HSLFSlideShowImpl(url.openStream());
+        /* Assume that the file could retrieved...
+        InputStream is;
+        HSLFSlideShowImpl hslf;
+        try {
+            is = url.openStream();
+            hslf = new HSLFSlideShowImpl(is);
+            is.close();
+        } catch (final IOException e) {
+            Assume.assumeTrue(e.getMessage(), false);
+            throw e;
+        }
+        */
 
 		// Should still have 2 real pictures
 		assertEquals(2, hslf.getPictureData().size());



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