cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1051613 - in /cxf/trunk: rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/ systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/ tools/common/src/main/java/org/apache/cxf/tools/common/
Date Tue, 21 Dec 2010 19:02:00 GMT
Author: sergeyb
Date: Tue Dec 21 19:02:00 2010
New Revision: 1051613

URL: http://svn.apache.org/viewvc?rev=1051613&view=rev
Log:
Fixing some tests on Windows

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/JAXBElementProviderTest.java
    cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultipartTest.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/JAXBElementProviderTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/JAXBElementProviderTest.java?rev=1051613&r1=1051612&r2=1051613&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/JAXBElementProviderTest.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/JAXBElementProviderTest.java
Tue Dec 21 19:02:00 2010
@@ -836,10 +836,11 @@ public class JAXBElementProviderTest ext
     }
     
     @Test
-    public void testSetSchemasFromDisk() {
+    public void testSetSchemasFromDisk() throws Exception {
         JAXBElementProvider provider = new JAXBElementProvider();
         List<String> locations = new ArrayList<String>();
-        String loc = getClass().getClassLoader().getResource("test.xsd").getFile();
+        String loc = getClass().getClassLoader().getResource("test.xsd").toURI().getPath();
+        
         locations.add(loc);
         provider.setSchemas(locations);
         Schema s = provider.getSchema();

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultipartTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultipartTest.java?rev=1051613&r1=1051612&r2=1051613&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultipartTest.java
(original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultipartTest.java
Tue Dec 21 19:02:00 2010
@@ -456,7 +456,8 @@ public class JAXRSMultipartTest extends 
     @Test
     public void testUploadImageFromForm2() throws Exception {
         File file = 
-            new File(getClass().getResource("/org/apache/cxf/systest/jaxrs/resources/java.jpg").getFile());
+            new File(getClass().getResource("/org/apache/cxf/systest/jaxrs/resources/java.jpg")
+                               .toURI().getPath());
         String address = "http://localhost:" + PORT + "/bookstore/books/formimage2";
         WebClient client = WebClient.create(address);
         HTTPConduit conduit = WebClient.getConfig(client).getHttpConduit();

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java?rev=1051613&r1=1051612&r2=1051613&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java
(original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java
Tue Dec 21 19:02:00 2010
@@ -121,7 +121,7 @@ public class ProcessorTestBase extends A
     }
 
     protected String getLocation(String wsdlFile) throws URISyntaxException {
-        return getClass().getResource(wsdlFile).toString();
+        return getClass().getResource(wsdlFile).toURI().toString();
     }
 
     protected File getResource(String wsdlFile) throws URISyntaxException {



Mime
View raw message