cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7042] Updating JAXRS multithreaded test as suggested by Romain
Date Wed, 07 Sep 2016 11:38:36 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 7e9040649 -> 52205b6e1


[CXF-7042] Updating JAXRS multithreaded test as suggested by Romain


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/52205b6e
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/52205b6e
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/52205b6e

Branch: refs/heads/3.1.x-fixes
Commit: 52205b6e1795ceab66c01ea3de7d3da2c3d46bdd
Parents: 7e90406
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Wed Sep 7 12:36:56 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Wed Sep 7 12:38:24 2016 +0100

----------------------------------------------------------------------
 .../apache/cxf/systest/jaxrs/JAXRSMultithreadedClientTest.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/52205b6e/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultithreadedClientTest.java
----------------------------------------------------------------------
diff --git a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultithreadedClientTest.java
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultithreadedClientTest.java
index 40214b8..56f34ba 100644
--- a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultithreadedClientTest.java
+++ b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSMultithreadedClientTest.java
@@ -21,6 +21,7 @@ package org.apache.cxf.systest.jaxrs;
 
 import java.io.InputStream;
 import java.util.Collections;
+import java.util.List;
 import java.util.concurrent.ArrayBlockingQueue;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ThreadPoolExecutor;
@@ -279,8 +280,9 @@ public class JAXRSMultithreadedClientTest extends AbstractBusClientServerTestBas
         
         private void verifyResponse(Response response, String actualBookName, String actualHeaderName)

             throws Exception { 
-            assertEquals(actualHeaderName, 
-                         response.getMetadata().getFirst("CustomHeader").toString());
+            List<Object> customHeaders = response.getMetadata().get("CustomHeader");
+            assertEquals(customHeaders.size(), 1);
+            assertEquals(actualHeaderName, customHeaders.get(0).toString());
             String responseValue = IOUtils.readStringFromStream((InputStream)response.getEntity());
             assertEquals(actualBookName, responseValue);
         }


Mime
View raw message