portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r638193 - /portals/jetspeed-2/portal/trunk/components/jetspeed-file-cache/src/test/java/org/apache/jetspeed/cache/file/TestFileCache.java
Date Tue, 18 Mar 2008 03:36:33 GMT
Author: ate
Date: Mon Mar 17 20:36:32 2008
New Revision: 638193

URL: http://svn.apache.org/viewvc?rev=638193&view=rev
Log:
Replacing usage of obsolete commons.io.StreamUtils (and no longer existing in newer versions)
with replacement IOUtils

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-file-cache/src/test/java/org/apache/jetspeed/cache/file/TestFileCache.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-file-cache/src/test/java/org/apache/jetspeed/cache/file/TestFileCache.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-file-cache/src/test/java/org/apache/jetspeed/cache/file/TestFileCache.java?rev=638193&r1=638192&r2=638193&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-file-cache/src/test/java/org/apache/jetspeed/cache/file/TestFileCache.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-file-cache/src/test/java/org/apache/jetspeed/cache/file/TestFileCache.java
Mon Mar 17 20:36:32 2008
@@ -27,7 +27,7 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
-import org.apache.commons.io.StreamUtils;
+import org.apache.commons.io.IOUtils;
 import org.apache.commons.lang.exception.ExceptionUtils;
 
 
@@ -194,7 +194,7 @@
         BufferedInputStream input;
 
         input = new BufferedInputStream(new FileInputStream(file));
-        String result = StreamUtils.streamAsString(input);
+        String result = IOUtils.toString(input);
         input.close();
         return result;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message