harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r414787 - /incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PermissionCollectionTest.java
Date Fri, 16 Jun 2006 09:20:58 GMT
Author: smishura
Date: Fri Jun 16 02:20:58 2006
New Revision: 414787

URL: http://svn.apache.org/viewvc?rev=414787&view=rev
Log:
Correct loading 'mypermissionBKS.jar' resource file

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PermissionCollectionTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PermissionCollectionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PermissionCollectionTest.java?rev=414787&r1=414786&r2=414787&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PermissionCollectionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/tests/api/java/security/PermissionCollectionTest.java
Fri Jun 16 02:20:58 2006
@@ -29,6 +29,7 @@
 
 import tests.support.Support_Exec;
 import tests.support.Support_GetLocal;
+import tests.support.resource.Support_Resources;
 
 public class PermissionCollectionTest extends junit.framework.TestCase {
 
@@ -109,12 +110,10 @@
         // the classpath
         File jarFile = null;
         try {
-            URL jarURL = new URL(
-                    classURL.toExternalForm()
-                            + "tests/resources/PermissionCollection/mypermissionBKS.jar");
+            InputStream jis = Support_Resources
+                    .getResourceStream("PermissionCollection/mypermissionBKS.jar");
             jarFile = Support_GetLocal.createTempFile(".jar");
             FileOutputStream fout = new FileOutputStream(jarFile);
-            InputStream jis = jarURL.openStream();
             int c = jis.read();
             while (c != -1) {
                 fout.write(c);



Mime
View raw message