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:
parent
c6113729e2
commit
a80b4533b3
|
@ -67,12 +67,12 @@ public class TestMultipartContentBody {
|
||||||
|
|
||||||
@Test(expected=IllegalArgumentException.class)
|
@Test(expected=IllegalArgumentException.class)
|
||||||
public void testStringBodyInvalidConstruction1() throws Exception {
|
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)
|
@Test(expected=IllegalArgumentException.class)
|
||||||
public void testStringBodyInvalidConstruction2() throws Exception {
|
public void testStringBodyInvalidConstruction2() throws Exception {
|
||||||
new StringBody("stuff", (ContentType) null);
|
Assert.assertNotNull(new StringBody("stuff", (ContentType) null)); // avoid unused warning
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue