wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r935428 - /incubator/wink/trunk/wink-itests/wink-itest/wink-itest-providers/src/test/java/org/apache/wink/itest/standard/JAXRSReaderTest.java
Date Sun, 18 Apr 2010 23:05:32 GMT
Author: bluk
Date: Sun Apr 18 23:05:31 2010
New Revision: 935428

URL: http://svn.apache.org/viewvc?rev=935428&view=rev
Log:
Update wink-itest for charset change

Modified:
    incubator/wink/trunk/wink-itests/wink-itest/wink-itest-providers/src/test/java/org/apache/wink/itest/standard/JAXRSReaderTest.java

Modified: incubator/wink/trunk/wink-itests/wink-itest/wink-itest-providers/src/test/java/org/apache/wink/itest/standard/JAXRSReaderTest.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-itests/wink-itest/wink-itest-providers/src/test/java/org/apache/wink/itest/standard/JAXRSReaderTest.java?rev=935428&r1=935427&r2=935428&view=diff
==============================================================================
--- incubator/wink/trunk/wink-itests/wink-itest/wink-itest-providers/src/test/java/org/apache/wink/itest/standard/JAXRSReaderTest.java
(original)
+++ incubator/wink/trunk/wink-itests/wink-itest/wink-itest-providers/src/test/java/org/apache/wink/itest/standard/JAXRSReaderTest.java
Sun Apr 18 23:05:31 2010
@@ -82,7 +82,7 @@ public class JAXRSReaderTest extends Tes
             String str = new String(carr);
 
             assertEquals("abcd", str);
-            assertEquals("text/plain", postMethod.getResponseHeader("Content-Type").getValue());
+            assertEquals("text/plain;charset=UTF-8", postMethod.getResponseHeader("Content-Type").getValue());
             Header contentLengthHeader = postMethod.getResponseHeader("Content-Length");
             assertNull(contentLengthHeader == null ? "null" : contentLengthHeader.getValue(),
                        contentLengthHeader);
@@ -187,7 +187,7 @@ public class JAXRSReaderTest extends Tes
             String str = new String(carr);
 
             assertEquals("wxyz", str);
-            assertEquals("mytype/subtype", getMethod.getResponseHeader("Content-Type").getValue());
+            assertEquals("mytype/subtype;charset=UTF-8", getMethod.getResponseHeader("Content-Type").getValue());
 
             Header contentLengthHeader = getMethod.getResponseHeader("Content-Length");
             assertNull(contentLengthHeader == null ? "null" : contentLengthHeader.getValue(),



Mime
View raw message