You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2016/09/07 11:37:12 UTC
cxf git commit: [CXF-7042] Updating JAXRS multithreaded test as
suggested by Romain
Repository: cxf
Updated Branches:
refs/heads/master c8e788eee -> 035e26b69
[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
Commit: 035e26b695697cc7c741a50bf76392f8dcfbd28a
Parents: c8e788e
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Wed Sep 7 12:36:56 2016 +0100
Committer: Sergey Beryozkin <sb...@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);
}