harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r452725 - in /incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test: java/common/javax/security/auth/ resources/
Date Wed, 04 Oct 2006 04:38:06 GMT
Author: smishura
Date: Tue Oct  3 21:38:06 2006
New Revision: 452725

URL: http://svn.apache.org/viewvc?view=rev&rev=452725
Log:
Get resources for testing from classpath

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/resources/auth_policy1.txt
      - copied unchanged from r452703, incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/auth_policy1.txt
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/resources/auth_policy2.txt
      - copied unchanged from r452703, incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/auth_policy2.txt
Removed:
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/auth_policy1.txt
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/auth_policy2.txt
Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/PolicyTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/PolicyTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/PolicyTest.java?view=diff&rev=452725&r1=452724&r2=452725
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/PolicyTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/PolicyTest.java
Tue Oct  3 21:38:06 2006
@@ -22,7 +22,6 @@
 
 package javax.security.auth;
 
-import java.io.File;
 import java.io.FilePermission;
 import java.net.URL;
 import java.security.AllPermission;
@@ -39,6 +38,8 @@
 import org.apache.harmony.auth.tests.support.SecurityChecker;
 import org.apache.harmony.auth.tests.support.TestUtils;
 
+import tests.support.resource.Support_Resources;
+
 
 /**
  * Tests Policy class
@@ -170,16 +171,11 @@
     //
     //
 
-    static String outputPath = System.getProperty("RESOURCE_DIR", "test"
-            + File.separator + "common" + File.separator + "unit");
+    static String inputFile1 = Support_Resources
+            .getAbsoluteResourcePath("auth_policy1.txt");
 
-    static String inputFile1 = outputPath + File.separator + "javax"
-            + File.separator + "security" + File.separator + "auth"
-            + File.separator + "auth_policy1.txt";
-
-    static String inputFile2 = outputPath + File.separator + "javax"
-            + File.separator + "security" + File.separator + "auth"
-            + File.separator + "auth_policy2.txt";
+    static String inputFile2 = Support_Resources
+            .getAbsoluteResourcePath("auth_policy2.txt");
 
     private static final String POLICY_PROP = "java.security.auth.policy";
     



Mime
View raw message