Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6643C200C0A for ; Sat, 28 Jan 2017 11:39:29 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 64E1E160B51; Sat, 28 Jan 2017 10:39:29 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AFAAA160B35 for ; Sat, 28 Jan 2017 11:39:28 +0100 (CET) Received: (qmail 67656 invoked by uid 500); 28 Jan 2017 10:39:27 -0000 Mailing-List: contact commits-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list commits@hc.apache.org Received: (qmail 67647 invoked by uid 99); 28 Jan 2017 10:39:27 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Jan 2017 10:39:27 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 6F3FB3A05B5 for ; Sat, 28 Jan 2017 10:39:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1780655 - /httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsync.java Date: Sat, 28 Jan 2017 10:39:27 -0000 To: commits@hc.apache.org From: olegk@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170128103927.6F3FB3A05B5@svn01-us-west.apache.org> archived-at: Sat, 28 Jan 2017 10:39:29 -0000 Author: olegk Date: Sat Jan 28 10:39:27 2017 New Revision: 1780655 URL: http://svn.apache.org/viewvc?rev=1780655&view=rev Log: Multiple HEAD integration test Modified: httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsync.java Modified: httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsync.java URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsync.java?rev=1780655&r1=1780654&r2=1780655&view=diff ============================================================================== --- httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsync.java (original) +++ httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsync.java Sat Jan 28 10:39:27 2017 @@ -35,6 +35,7 @@ import java.util.Random; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; +import org.apache.http.client.methods.HttpHead; import org.apache.http.localserver.HttpAsyncTestBase; import org.apache.http.HttpEntity; import org.apache.http.HttpHost; @@ -93,6 +94,18 @@ public class TestHttpAsync extends HttpA } @Test + public void testMultipleHead() throws Exception { + final HttpHost target = start(); + for (int i = 0; i < 3; i++) { + final HttpHead httpHead = new HttpHead("/random/2048"); + final Future future = this.httpclient.execute(target, httpHead, null); + final HttpResponse response = future.get(); + Assert.assertNotNull(response); + Assert.assertEquals(200, response.getStatusLine().getStatusCode()); + } + } + + @Test public void testSinglePost() throws Exception { final HttpHost target = start(); final byte[] b1 = new byte[1024];