Avoid unused warnings

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1604891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2014-06-23 17:44:20 +00:00
parent c6113729e2
commit a80b4533b3
1 changed files with 2 additions and 2 deletions

View File

@ -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