hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1571525 - in /httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http: client/utils/ cookie/ impl/cookie/
Date Tue, 25 Feb 2014 01:43:33 GMT
Author: sebb
Date: Tue Feb 25 01:43:32 2014
New Revision: 1571525

URL: http://svn.apache.org/r1571525
Log:
Suppress unused warnings for ctor tests

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/utils/TestDateUtils.java
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/cookie/TestCookieOrigin.java
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicClientCookie.java
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicClientCookie2.java
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicCookieAttribHandlers.java
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBrowserCompatSpec.java
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestCookieRFC2109Spec.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/utils/TestDateUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/utils/TestDateUtils.java?rev=1571525&r1=1571524&r2=1571525&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/utils/TestDateUtils.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/utils/TestDateUtils.java
Tue Feb 25 01:43:32 2014
@@ -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();

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/cookie/TestCookieOrigin.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/cookie/TestCookieOrigin.java?rev=1571525&r1=1571524&r2=1571525&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/cookie/TestCookieOrigin.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/cookie/TestCookieOrigin.java
Tue Feb 25 01:43:32 2014
@@ -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);

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicClientCookie.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicClientCookie.java?rev=1571525&r1=1571524&r2=1571525&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicClientCookie.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicClientCookie.java
Tue Feb 25 01:43:32 2014
@@ -40,6 +40,7 @@ import org.junit.Test;
  */
 public class TestBasicClientCookie {
 
+    @SuppressWarnings("unused")
     @Test
     public void testConstructor() {
         final BasicClientCookie cookie = new BasicClientCookie("name", "value");

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicClientCookie2.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicClientCookie2.java?rev=1571525&r1=1571524&r2=1571525&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicClientCookie2.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicClientCookie2.java
Tue Feb 25 01:43:32 2014
@@ -40,6 +40,7 @@ import org.junit.Test;
  */
 public class TestBasicClientCookie2 {
 
+    @SuppressWarnings("unused")
     @Test
     public void testConstructor() {
         final BasicClientCookie2 cookie = new BasicClientCookie2("name", "value");

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicCookieAttribHandlers.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicCookieAttribHandlers.java?rev=1571525&r1=1571524&r2=1571525&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicCookieAttribHandlers.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicCookieAttribHandlers.java
Tue Feb 25 01:43:32 2014
@@ -450,6 +450,7 @@ public class TestBasicCookieAttribHandle
         }
     }
 
+    @SuppressWarnings("unused")
     @Test
     public void testBasicExpiresInvalidInput() throws Exception {
         try {

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBrowserCompatSpec.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBrowserCompatSpec.java?rev=1571525&r1=1571524&r2=1571525&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBrowserCompatSpec.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestBrowserCompatSpec.java
Tue Feb 25 01:43:32 2014
@@ -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();

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestCookieRFC2109Spec.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestCookieRFC2109Spec.java?rev=1571525&r1=1571524&r2=1571525&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestCookieRFC2109Spec.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/cookie/TestCookieRFC2109Spec.java
Tue Feb 25 01:43:32 2014
@@ -46,6 +46,7 @@ import org.junit.Test;
  */
 public class TestCookieRFC2109Spec {
 
+    @SuppressWarnings("unused")
     @Test
     public void testConstructor() throws Exception {
         new RFC2109Spec();



Mime
View raw message