Author: kiwiwings
Date: Sun Apr 29 21:12:06 2018
New Revision: 1830520

URL: http://svn.apache.org/viewvc?rev=1830520&view=rev
Log:
disable ImageIO cache - probably need to set it in every test class or disable 
it in the beginning of all tests

Modified:
    
poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPicture.java

Modified: 
poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPicture.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPicture.java?rev=1830520&r1=1830519&r2=1830520&view=diff
==============================================================================
--- 
poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPicture.java
 (original)
+++ 
poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestPicture.java
 Sun Apr 29 21:12:06 2018
@@ -47,6 +47,7 @@ import org.apache.poi.sl.draw.DrawFactor
 import org.apache.poi.sl.usermodel.PictureData.PictureType;
 import org.apache.poi.sl.usermodel.Slide;
 import org.apache.poi.sl.usermodel.SlideShow;
+import org.junit.BeforeClass;
 import org.junit.Ignore;
 import org.junit.Test;
 
@@ -58,6 +59,11 @@ import org.junit.Test;
 public final class TestPicture {
     private static POIDataSamples _slTests = 
POIDataSamples.getSlideShowInstance();
 
+    @BeforeClass
+    public static void disableImageIOCache() {
+        ImageIO.setUseCache(false);
+    }
+
     /**
      * Test that the reference count of a blip is incremented every time the 
picture is inserted.
      * This is important when the same image appears multiple times in a slide 
show.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to