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