cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r596135 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/test/TestUtilities.java
Date Sun, 18 Nov 2007 21:11:09 GMT
Author: bimargulies
Date: Sun Nov 18 13:11:09 2007
New Revision: 596135

URL: http://svn.apache.org/viewvc?rev=596135&view=rev
Log:
Test (and debug) using the XMLHttpRequest to talk to an actual service. 

Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/test/TestUtilities.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/test/TestUtilities.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/test/TestUtilities.java?rev=596135&r1=596134&r2=596135&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/test/TestUtilities.java (original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/test/TestUtilities.java Sun Nov
18 13:11:09 2007
@@ -26,6 +26,7 @@
 import java.io.InputStreamReader;
 import java.io.OutputStream;
 import java.io.Reader;
+import java.nio.charset.Charset;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -62,6 +63,8 @@
  * contents, as well as some test methods for invoking services.
  */
 public class TestUtilities {
+    
+    private static final Charset UTF8 = Charset.forName("utf-8");
 
     private static String basedirPath;
     protected Bus bus;
@@ -184,7 +187,7 @@
     }
 
     public Reader getResourceAsReader(String resource) {
-        return new InputStreamReader(getResourceAsStream(resource));
+        return new InputStreamReader(getResourceAsStream(resource), UTF8);
     }
 
     public File getTestFile(String relativePath) {



Mime
View raw message