cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1549558 - in /cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs: JAXRS20ClientServerBookTest.java JAXRSAsyncClientTest.java
Date Mon, 09 Dec 2013 12:10:03 GMT
Author: sergeyb
Date: Mon Dec  9 12:10:02 2013
New Revision: 1549558

URL: http://svn.apache.org/r1549558
Log:
[CXF-5446] Removing hardcoded client-side long timeouts from systests/jaxrs

Modified:
    cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRS20ClientServerBookTest.java
    cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRS20ClientServerBookTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRS20ClientServerBookTest.java?rev=1549558&r1=1549557&r2=1549558&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRS20ClientServerBookTest.java
(original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRS20ClientServerBookTest.java
Mon Dec  9 12:10:02 2013
@@ -84,7 +84,6 @@ public class JAXRS20ClientServerBookTest
     private void doTestGetGenericBook(String address, long bookId, boolean checkAnnotations)

         throws Exception {
         WebClient wc = WebClient.create(address);
-        WebClient.getConfig(wc).getHttpConduit().getClient().setReceiveTimeout(1000000L);
         wc.accept("application/xml");
         Book book = wc.get(Book.class);
         assertEquals(bookId, book.getId());
@@ -200,7 +199,6 @@ public class JAXRS20ClientServerBookTest
     public void testPostMatchContainerFilterThrowsException() {
         String address = "http://localhost:" + PORT + "/bookstore/bookheaders/simple?throwException";
         WebClient wc = WebClient.create(address);
-        WebClient.getConfig(wc).getHttpConduit().getClient().setReceiveTimeout(1000000L);
         Response response = wc.get();
         assertEquals(500, response.getStatus());
         assertEquals("Postmatch filter error", response.readEntity(String.class));
@@ -283,7 +281,6 @@ public class JAXRS20ClientServerBookTest
         String endpointAddress = "http://localhost:" + PORT + "/bookstore/books2"; 
         WebClient wc = WebClient.create(endpointAddress,
                                         Collections.singletonList(new ReplaceBodyFilter()));
-        WebClient.getConfig(wc).getHttpConduit().getClient().setReceiveTimeout(1000000L);
         wc.accept("text/mistypedxml").type("text/xml");
         Book book = wc.post(new Book("book", 555L), Book.class);
         assertEquals(561L, book.getId());
@@ -295,7 +292,6 @@ public class JAXRS20ClientServerBookTest
         String endpointAddress = "http://localhost:" + PORT + "/bookstore/books2/mistyped";

         WebClient wc = WebClient.create(endpointAddress,
                                         Collections.singletonList(new ReplaceBodyFilter()));
-        WebClient.getConfig(wc).getHttpConduit().getClient().setReceiveTimeout(1000000L);
         wc.accept("text/mistypedxml").type("text/xml").header("THEMETHOD", "PUT");
         Book book = wc.invoke("DELETE", new Book("book", 555L), Book.class);
         assertEquals(561L, book.getId());
@@ -415,9 +411,7 @@ public class JAXRS20ClientServerBookTest
         List<Object> providers = new ArrayList<Object>();
         providers.add(new ClientHeaderRequestFilter());
         providers.add(new ClientHeaderResponseFilter());
-        WebClient wc = WebClient.create(address, providers);
-        WebClient.getConfig(wc).getHttpConduit().getClient().setReceiveTimeout(1000000L);
-        return wc;
+        return WebClient.create(address, providers);
     }
     
     private WebClient createWebClientPost(String address) {
@@ -426,9 +420,7 @@ public class JAXRS20ClientServerBookTest
         providers.add(new ClientHeaderResponseFilter());
         providers.add(new ClientReaderInterceptor());
         providers.add(new ClientWriterInterceptor());
-        WebClient wc = WebClient.create(address, providers);
-        WebClient.getConfig(wc).getHttpConduit().getClient().setReceiveTimeout(1000000L);
-        return wc;
+        return WebClient.create(address, providers);
     }
     
     private void doTestGetBookAsync(String address, boolean asyncInvoker) 

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java?rev=1549558&r1=1549557&r2=1549558&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
(original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
Mon Dec  9 12:10:02 2013
@@ -161,9 +161,7 @@ public class JAXRSAsyncClientTest extend
     
     private WebClient createWebClient(String address) {
         List<Object> providers = new ArrayList<Object>();
-        WebClient wc = WebClient.create(address, providers);
-        WebClient.getConfig(wc).getHttpConduit().getClient().setReceiveTimeout(1000000L);
-        return wc;
+        return WebClient.create(address, providers);
     }
     
     private InvocationCallback<Object> createCallback(final Holder<Object> holder)
{



Mime
View raw message