cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r939079 - /cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/PrimitiveTextProviderTest.java
Date Wed, 28 Apr 2010 20:33:05 GMT
Author: sergeyb
Date: Wed Apr 28 20:33:05 2010
New Revision: 939079

URL: http://svn.apache.org/viewvc?rev=939079&view=rev
Log:
Attempting to fix the JAXRS test

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/PrimitiveTextProviderTest.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/PrimitiveTextProviderTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/PrimitiveTextProviderTest.java?rev=939079&r1=939078&r2=939079&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/PrimitiveTextProviderTest.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/PrimitiveTextProviderTest.java
Wed Apr 28 20:33:05 2010
@@ -108,7 +108,7 @@ public class PrimitiveTextProviderTest e
         p.writeTo("Hello, my name is Félix Agnès", 
                   String.class, String.class, null, MediaType.valueOf("text/plain;charset=ISO-8859-1"),
                   headers, os);
-        assertEquals("Hello, my name is Félix Agnès", new String(os.toByteArray()));
+        assertEquals("Hello, my name is Félix Agnès", os.toString("ISO-8859-1")); 
     }
     
         



Mime
View raw message