harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r452787 - in /incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test: java/common/org/apache/harmony/auth/login/ resources/
Date Wed, 04 Oct 2006 08:00:13 GMT
Author: smishura
Date: Wed Oct  4 01:00:12 2006
New Revision: 452787

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

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/resources/auth.conf
      - copied unchanged from r452703, incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/login/auth.conf
Removed:
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/login/auth.conf
Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/login/DefaultConfigParserTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/login/DefaultConfigurationTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/login/DefaultConfigParserTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/login/DefaultConfigParserTest.java?view=diff&rev=452787&r1=452786&r2=452787
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/login/DefaultConfigParserTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/login/DefaultConfigParserTest.java
Wed Oct  4 01:00:12 2006
@@ -39,6 +39,7 @@
 import org.apache.harmony.auth.login.DefaultConfigurationParser;
 import org.apache.harmony.auth.login.DefaultConfigurationParser.InvalidFormatException;
 
+import tests.support.resource.Support_Resources;
 
 /**
  * Tests parser implementation for default configuration.
@@ -46,12 +47,8 @@
 
 public class DefaultConfigParserTest extends TestCase {
 
-    static String outputPath = System.getProperty("RESOURCE_DIR", "test/common/unit");
-    
-    static String fconf = outputPath + File.separator + "org" + 
-        File.separator + "apache" + File.separator + "harmony" + 
-        File.separator + "auth" + File.separator + "login" +
-        File.separator + "auth.conf";
+    static String fconf = Support_Resources
+            .getAbsoluteResourcePath("auth.conf");
     
 	Properties p;
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/login/DefaultConfigurationTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/login/DefaultConfigurationTest.java?view=diff&rev=452787&r1=452786&r2=452787
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/login/DefaultConfigurationTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/login/DefaultConfigurationTest.java
Wed Oct  4 01:00:12 2006
@@ -39,6 +39,7 @@
 import org.apache.harmony.auth.tests.support.TestUtils;
 import org.apache.harmony.auth.login.DefaultConfiguration;
 
+import tests.support.resource.Support_Resources;
 
 /**
  * Tests default configuration implementation.  
@@ -48,12 +49,8 @@
 
     private static final String LOGIN_CONFIG = "java.security.auth.login.config";
     
-    static String outputPath = System.getProperty("RESOURCE_DIR", "test/common/unit");
-    
-    static String otherConfFile = outputPath + File.separator + "org" + 
-        File.separator + "apache" + File.separator + "harmony" + 
-        File.separator + "auth" + File.separator + "login" +
-        File.separator + "auth.conf";
+    static String otherConfFile = Support_Resources
+            .getAbsoluteResourcePath("auth.conf");
 
 	private static File defaultConfFile;
 



Mime
View raw message