hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
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 GMT
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



Mime
View raw message