You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/04/25 11:03:57 UTC
git commit: Fix the compile issue
Repository: camel
Updated Branches:
refs/heads/camel-2.12.x 78f60f1bf -> a59809d6a
Fix the compile issue
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a59809d6
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a59809d6
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a59809d6
Branch: refs/heads/camel-2.12.x
Commit: a59809d6aab9ce467b52237d158a95a2a82087dc
Parents: 78f60f1
Author: Willem Jiang <wi...@gmail.com>
Authored: Fri Apr 25 17:03:35 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Fri Apr 25 17:03:35 2014 +0800
----------------------------------------------------------------------
.../camel/component/cxf/jaxrs/CxfRsSpringConsumerTest.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/a59809d6/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringConsumerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringConsumerTest.java b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringConsumerTest.java
index d149905..720e2be 100644
--- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringConsumerTest.java
+++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringConsumerTest.java
@@ -26,8 +26,7 @@ import org.apache.camel.component.cxf.jaxrs.testbean.CustomException;
import org.apache.camel.test.spring.CamelSpringTestSupport;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
-import org.apache.http.impl.client.CloseableHttpClient;
-import org.apache.http.impl.client.HttpClientBuilder;
+import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
import org.junit.Test;
import org.springframework.context.support.AbstractApplicationContext;
@@ -61,14 +60,14 @@ public class CxfRsSpringConsumerTest extends CamelSpringTestSupport {
public void testMappingException() throws Exception {
HttpGet get = new HttpGet("http://localhost:" + port1 + "/CxfRsSpringConsumerTest/customerservice/customers/126");
get.addHeader("Accept" , "application/json");
- CloseableHttpClient httpclient = HttpClientBuilder.create().build();
+ DefaultHttpClient httpclient = new DefaultHttpClient();
try {
HttpResponse response = httpclient.execute(get);
assertEquals("Get a wrong status code", 500, response.getStatusLine().getStatusCode());
assertEquals("Get a worng message header", "exception: Here is the exception", response.getHeaders("exception")[0].toString());
} finally {
- httpclient.close();
+ httpclient.getConnectionManager().shutdown();
}
}