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 118991112B for ; Mon, 23 Jun 2014 17:44:42 +0000 (UTC) Received: (qmail 41519 invoked by uid 500); 23 Jun 2014 17:44:42 -0000 Delivered-To: apmail-hc-commits-archive@hc.apache.org Received: (qmail 41479 invoked by uid 500); 23 Jun 2014 17:44:41 -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 41470 invoked by uid 99); 23 Jun 2014 17:44:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2014 17:44:41 +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, 23 Jun 2014 17:44:40 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B6A5E2388A56 for ; Mon, 23 Jun 2014 17:44:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1604891 - /httpcomponents/httpclient/trunk/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartContentBody.java Date: Mon, 23 Jun 2014 17:44:20 -0000 To: commits@hc.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140623174420.B6A5E2388A56@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebb Date: Mon Jun 23 17:44:20 2014 New Revision: 1604891 URL: http://svn.apache.org/r1604891 Log: Avoid unused warnings Modified: httpcomponents/httpclient/trunk/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartContentBody.java Modified: httpcomponents/httpclient/trunk/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartContentBody.java URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartContentBody.java?rev=1604891&r1=1604890&r2=1604891&view=diff ============================================================================== --- httpcomponents/httpclient/trunk/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartContentBody.java (original) +++ httpcomponents/httpclient/trunk/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartContentBody.java Mon Jun 23 17:44:20 2014 @@ -67,12 +67,12 @@ public class TestMultipartContentBody { @Test(expected=IllegalArgumentException.class) public void testStringBodyInvalidConstruction1() throws Exception { - new StringBody(null, ContentType.DEFAULT_TEXT); + Assert.assertNotNull(new StringBody(null, ContentType.DEFAULT_TEXT)); // avoid unused warning } @Test(expected=IllegalArgumentException.class) public void testStringBodyInvalidConstruction2() throws Exception { - new StringBody("stuff", (ContentType) null); + Assert.assertNotNull(new StringBody("stuff", (ContentType) null)); // avoid unused warning } @Test