cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [15/37] cxf git commit: [CXF-7042] Updating JAXRS multithreaded test as suggested by Romain
Date Sat, 10 Sep 2016 14:41:23 GMT
[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/035e26b6
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/035e26b6
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/035e26b6

Branch: refs/heads/master-jaxrs-2.1
Commit: 035e26b695697cc7c741a50bf76392f8dcfbd28a
Parents: c8e788e
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:36:56 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/035e26b6/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