Suppress unused warnings for ctor tests
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1571525 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
73d8aac14c
commit
81b6a1acdb
|
@ -138,6 +138,7 @@ public class TestDateUtils {
|
|||
Assert.assertEquals("Fri, 14 Oct 2005 00:00:00 GMT", DateUtils.formatDate(date, DateUtils.PATTERN_RFC1123));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Test
|
||||
public void testConstructor() {
|
||||
new DateParseException();
|
||||
|
|
|
@ -44,21 +44,25 @@ public class TestCookieOrigin {
|
|||
Assert.assertFalse(origin.isSecure());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
public void testNullHost() {
|
||||
new CookieOrigin(null, 80, "/", false);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
public void testEmptyHost() {
|
||||
new CookieOrigin(" ", 80, "/", false);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
public void testNegativePort() {
|
||||
new CookieOrigin("www.apache.org", -80, "/", false);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
public void testNullPath() {
|
||||
new CookieOrigin("www.apache.org", 80, null, false);
|
||||
|
|
|
@ -40,6 +40,7 @@ import org.junit.Test;
|
|||
*/
|
||||
public class TestBasicClientCookie {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Test
|
||||
public void testConstructor() {
|
||||
final BasicClientCookie cookie = new BasicClientCookie("name", "value");
|
||||
|
|
|
@ -40,6 +40,7 @@ import org.junit.Test;
|
|||
*/
|
||||
public class TestBasicClientCookie2 {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Test
|
||||
public void testConstructor() {
|
||||
final BasicClientCookie2 cookie = new BasicClientCookie2("name", "value");
|
||||
|
|
|
@ -450,6 +450,7 @@ public class TestBasicCookieAttribHandlers {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Test
|
||||
public void testBasicExpiresInvalidInput() throws Exception {
|
||||
try {
|
||||
|
|
|
@ -48,6 +48,7 @@ import org.junit.Test;
|
|||
*/
|
||||
public class TestBrowserCompatSpec {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Test
|
||||
public void testConstructor() throws Exception {
|
||||
new BrowserCompatSpec();
|
||||
|
@ -956,6 +957,7 @@ public class TestBrowserCompatSpec {
|
|||
Assert.assertEquals("name1=value1; name2=value2", headers.get(0).getValue());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Test
|
||||
public void testKeepCloverHappy() throws Exception {
|
||||
new MalformedCookieException();
|
||||
|
|
|
@ -46,6 +46,7 @@ import org.junit.Test;
|
|||
*/
|
||||
public class TestCookieRFC2109Spec {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Test
|
||||
public void testConstructor() throws Exception {
|
||||
new RFC2109Spec();
|
||||
|
|
Loading…
Reference in New Issue