diff options
author | Javen O'Neal <onealj@apache.org> | 2017-06-20 09:16:05 +0000 |
---|---|---|
committer | Javen O'Neal <onealj@apache.org> | 2017-06-20 09:16:05 +0000 |
commit | df3fdc03e961f789779cda28046c55aca0040010 (patch) | |
tree | 54d8dbb43c37f8a99d4456eff76efb23d399b628 | |
parent | 2f470e6d89eb1503e0f847d6b498a48f24078829 (diff) | |
download | poi-df3fdc03e961f789779cda28046c55aca0040010.tar.gz poi-df3fdc03e961f789779cda28046c55aca0040010.zip |
@Ignore("requires an internet connection to a 3rd party site"
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799326 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java | 15 |
1 files changed, 14 insertions, 1 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 398603cb78..40e20429ed 100644 --- a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java +++ b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPictures.java @@ -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()); |