wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r939753 - /incubator/wink/trunk/wink-itests/wink-itest/wink-itest-context/src/test/java/org/apache/wink/itest/httpheaders/WinkHttpHeadersTest.java
Date Fri, 30 Apr 2010 17:37:38 GMT
Author: bluk
Date: Fri Apr 30 17:37:37 2010
New Revision: 939753

URL: http://svn.apache.org/viewvc?rev=939753&view=rev
Log:
Add a test condition in case run on old JVM

Modified:
    incubator/wink/trunk/wink-itests/wink-itest/wink-itest-context/src/test/java/org/apache/wink/itest/httpheaders/WinkHttpHeadersTest.java

Modified: incubator/wink/trunk/wink-itests/wink-itest/wink-itest-context/src/test/java/org/apache/wink/itest/httpheaders/WinkHttpHeadersTest.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-itests/wink-itest/wink-itest-context/src/test/java/org/apache/wink/itest/httpheaders/WinkHttpHeadersTest.java?rev=939753&r1=939752&r2=939753&view=diff
==============================================================================
--- incubator/wink/trunk/wink-itests/wink-itest/wink-itest-context/src/test/java/org/apache/wink/itest/httpheaders/WinkHttpHeadersTest.java
(original)
+++ incubator/wink/trunk/wink-itests/wink-itest/wink-itest-context/src/test/java/org/apache/wink/itest/httpheaders/WinkHttpHeadersTest.java
Fri Apr 30 17:37:37 2010
@@ -306,7 +306,13 @@ public class WinkHttpHeadersTest extends
             client.resource(getBaseURI() + "/context/httpheaders/requestmediatype").post(null);
         assertEquals(200, response.getStatusCode());
         String responseBody = response.getEntity(String.class);
-        assertEquals("mediatype:null:", responseBody);
+
+        try {
+            assertEquals("mediatype:null:", responseBody);
+        } catch (Error e) {
+            // some JDKs will automatically put this on the type
+            assertEquals("mediatype:application/x-www-form-urlencoded:", responseBody);
+        }
     }
 
     /**



Mime
View raw message