abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r561078 - in /incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client: app/AppTest.java cache/CacheTest.java
Date Mon, 30 Jul 2007 18:13:34 GMT
Author: jmsnell
Date: Mon Jul 30 11:13:34 2007
New Revision: 561078

URL: http://svn.apache.org/viewvc?view=rev&rev=561078
Log:
The new version of Jetty apparently does not like Expect-Continue

Modified:
    incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java
    incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/cache/CacheTest.java

Modified: incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java?view=diff&rev=561078&r1=561077&r2=561078
==============================================================================
--- incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java
(original)
+++ incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java
Mon Jul 30 11:13:34 2007
@@ -341,6 +341,7 @@
     Entry entry = getFactory().newEntry();
     RequestOptions options = abderaClient.getDefaultRequestOptions();
     options.setHeader("Connection", "close");
+    options.setUseExpectContinue(false);
 
     // do the introspection step
     ClientResponse response = abderaClient.get("http://localhost:8080/service",
@@ -463,6 +464,7 @@
     options = abderaClient.getDefaultRequestOptions();
     options.setContentType("text/plain");
     options.setHeader("Connection", "close");
+    options.setUseExpectContinue(false);
 
     response = abderaClient.post(col_uri,
                            new ByteArrayInputStream("test".getBytes()),
@@ -511,6 +513,7 @@
     options = abderaClient.getDefaultRequestOptions();
     options.setContentType("application/atom+xml;type=entry");
     options.setHeader("Connection", "close");
+    options.setUseExpectContinue(false);
 
     response = abderaClient.put(edit_uri, entry, options);
 
@@ -536,6 +539,7 @@
     options = abderaClient.getDefaultRequestOptions();
     options.setHeader("Connection", "close");
     options.setContentType("text/plain");
+    options.setUseExpectContinue(false);
 
     response = abderaClient.put(edit_media,
                           new ByteArrayInputStream("TEST".getBytes()),

Modified: incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/cache/CacheTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/cache/CacheTest.java?view=diff&rev=561078&r1=561077&r2=561078
==============================================================================
--- incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/cache/CacheTest.java
(original)
+++ incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/cache/CacheTest.java
Mon Jul 30 11:13:34 2007
@@ -287,6 +287,7 @@
     RequestOptions options = client.getDefaultRequestOptions();
     options.setHeader("Connection", "close");
     options.setHeader("x-reqnum", String.valueOf(num));
+    options.setUseExpectContinue(false);
     return options;
   }
   
@@ -297,6 +298,7 @@
     ClientResponse response = abderaClient.get(CHECK_CACHE_INVALIDATE, options);
   
     String resp1 = getResponse(response);
+    
     response.release();
     assertEquals(resp1, "1");
     



Mime
View raw message