cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1055582 - in /cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security: BookLoginModule.java JAXRSJaasSecurityTest.java
Date Wed, 05 Jan 2011 19:01:20 GMT
Author: sergeyb
Date: Wed Jan  5 19:01:20 2011
New Revision: 1055582

URL: http://svn.apache.org/viewvc?rev=1055582&view=rev
Log:
Attempting to fix a test on Windows

Modified:
    cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/BookLoginModule.java
    cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRSJaasSecurityTest.java

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/BookLoginModule.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/BookLoginModule.java?rev=1055582&r1=1055581&r2=1055582&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/BookLoginModule.java
(original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/BookLoginModule.java
Wed Jan  5 19:01:20 2011
@@ -18,6 +18,7 @@
  */
 package org.apache.cxf.systest.jaxrs.security;
 
+import java.net.URISyntaxException;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -35,8 +36,13 @@ public class BookLoginModule implements 
     
     public BookLoginModule() {
         module = new PropertyFileLoginModule();
-        fileResource = getClass()
-            .getResource("/org/apache/cxf/systest/jaxrs/security/jetty-realm.properties").getFile();
+        try {
+            fileResource = getClass()
+                .getResource("/org/apache/cxf/systest/jaxrs/security/jetty-realm.properties")
+                .toURI().getPath();
+        } catch (URISyntaxException ex) {
+            throw new RuntimeException(ex);
+        }
     }
     
     public boolean abort() throws LoginException {

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRSJaasSecurityTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRSJaasSecurityTest.java?rev=1055582&r1=1055581&r2=1055582&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRSJaasSecurityTest.java
(original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRSJaasSecurityTest.java
Wed Jan  5 19:01:20 2011
@@ -35,7 +35,7 @@ public class JAXRSJaasSecurityTest exten
     @BeforeClass
     public static void startServers() throws Exception {
         String jaasConfig = JAXRSJaasSecurityTest.class
-            .getResource("/org/apache/cxf/systest/jaxrs/security/jaas.cfg").getFile();
+            .getResource("/org/apache/cxf/systest/jaxrs/security/jaas.cfg").toURI().getPath();
         assertTrue("server did not launch correctly", 
                    launchServer(BookServerJaasSecurity.class,
                                 Collections.singletonMap("java.security.auth.login.config",




Mime
View raw message