Return-Path: X-Original-To: apmail-hc-commits-archive@www.apache.org Delivered-To: apmail-hc-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 11DF5EB8C for ; Mon, 11 Feb 2013 00:32:35 +0000 (UTC) Received: (qmail 77005 invoked by uid 500); 11 Feb 2013 00:32:35 -0000 Delivered-To: apmail-hc-commits-archive@hc.apache.org Received: (qmail 76967 invoked by uid 500); 11 Feb 2013 00:32:35 -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 76960 invoked by uid 99); 11 Feb 2013 00:32:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 00:32:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 00:32:33 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1BBCE238890B for ; Mon, 11 Feb 2013 00:32:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1444639 - /httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/async/HttpClientWithFutureTest.java Date: Mon, 11 Feb 2013 00:32:15 -0000 To: commits@hc.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130211003215.1BBCE238890B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebb Date: Mon Feb 11 00:32:14 2013 New Revision: 1444639 URL: http://svn.apache.org/r1444639 Log: Explicit boxing Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/async/HttpClientWithFutureTest.java Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/async/HttpClientWithFutureTest.java URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/async/HttpClientWithFutureTest.java?rev=1444639&r1=1444638&r2=1444639&view=diff ============================================================================== --- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/async/HttpClientWithFutureTest.java (original) +++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/async/HttpClientWithFutureTest.java Mon Feb 11 00:32:14 2013 @@ -105,7 +105,7 @@ public class HttpClientWithFutureTest { public void shouldExecuteSingleCall() throws InterruptedException, ExecutionException { final HttpAsyncClientFutureTask task = httpAsyncClientWithFuture.execute( new HttpGet(uri), new OkidokiHandler()); - Assert.assertTrue("request should have returned OK", task.get()); + Assert.assertTrue("request should have returned OK", task.get().booleanValue()); } @Test(expected=CancellationException.class) @@ -133,12 +133,12 @@ public class HttpClientWithFutureTest { final List> tasks = httpAsyncClientWithFuture.executeMultiple( new OkidokiHandler(), requests); for (final Future task : tasks) { - Assert.assertTrue("request should have returned OK", task.get()); + Assert.assertTrue("request should have returned OK", task.get().booleanValue()); } } @Test - public void shouldExecuteMultipleCallsAndCallback() throws InterruptedException, ExecutionException { + public void shouldExecuteMultipleCallsAndCallback() throws InterruptedException { final HttpGet[] requests= new HttpGet[100]; for(int i=0;i<100;i++) { requests[i]=new HttpGet(uri);