You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2014/06/23 19:44:20 UTC

svn commit: r1604891 - /httpcomponents/httpclient/trunk/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartContentBody.java

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