cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r965925 - /cxf/branches/servlet3jetty7/rt/bindings/http/src/test/java/org/apache/cxf/binding/http/bare/BareServiceTest.java
Date Tue, 20 Jul 2010 17:34:03 GMT
Author: dkulp
Date: Tue Jul 20 17:34:03 2010
New Revision: 965925

URL: http://svn.apache.org/viewvc?rev=965925&view=rev
Log:
Another unit test fix

Modified:
    cxf/branches/servlet3jetty7/rt/bindings/http/src/test/java/org/apache/cxf/binding/http/bare/BareServiceTest.java

Modified: cxf/branches/servlet3jetty7/rt/bindings/http/src/test/java/org/apache/cxf/binding/http/bare/BareServiceTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/servlet3jetty7/rt/bindings/http/src/test/java/org/apache/cxf/binding/http/bare/BareServiceTest.java?rev=965925&r1=965924&r2=965925&view=diff
==============================================================================
--- cxf/branches/servlet3jetty7/rt/bindings/http/src/test/java/org/apache/cxf/binding/http/bare/BareServiceTest.java
(original)
+++ cxf/branches/servlet3jetty7/rt/bindings/http/src/test/java/org/apache/cxf/binding/http/bare/BareServiceTest.java
Tue Jul 20 17:34:03 2010
@@ -187,7 +187,7 @@ public class BareServiceTest extends Abs
         HttpURLConnection c = (HttpURLConnection)url.openConnection();
         c.setRequestMethod("GET");
 
-        assertEquals("text/xml; charset=utf-8", c.getContentType());
+        assertEquals("text/xml;charset=utf-8", c.getContentType().toLowerCase());
 
         Document doc = DOMUtils.readXml(c.getErrorStream());
         Message msg = new Message("SIMPLE_TYPE", IriDecoderHelper.BUNDLE);
@@ -216,7 +216,7 @@ public class BareServiceTest extends Abs
         HttpURLConnection c = (HttpURLConnection)url.openConnection();
         c.setRequestMethod("GET");
 
-        assertEquals("text/xml; charset=utf-8", c.getContentType());
+        assertEquals("text/xml;charset=utf-8", c.getContentType().toLowerCase());
 
         Document doc = DOMUtils.readXml(c.getInputStream());
         addNamespace("b", "http://bare.http.binding.cxf.apache.org/");



Mime
View raw message