From a80b4533b3dc55c6e08bb88bcd71575bcf6f5ceb Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Mon, 23 Jun 2014 17:44:20 +0000 Subject: [PATCH] Avoid unused warnings git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1604891 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/http/entity/mime/TestMultipartContentBody.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartContentBody.java b/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartContentBody.java index bee0fa27a..4a6fac22f 100644 --- a/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartContentBody.java +++ b/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartContentBody.java @@ -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