hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r940058 - /httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestCachedHttpResponseGenerator.java
Date Sat, 01 May 2010 15:45:08 GMT
Author: sebb
Date: Sat May  1 15:45:08 2010
New Revision: 940058

URL: http://svn.apache.org/viewvc?rev=940058&view=rev
Log:
Avoid autobox warning

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestCachedHttpResponseGenerator.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestCachedHttpResponseGenerator.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestCachedHttpResponseGenerator.java?rev=940058&r1=940057&r2=940058&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestCachedHttpResponseGenerator.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestCachedHttpResponseGenerator.java
Sat May  1 15:45:08 2010
@@ -92,8 +92,8 @@ public class TestCachedHttpResponseGener
         Assert.assertTrue(response.containsHeader("Content-Length"));
 
         Assert.assertSame("HTTP", response.getProtocolVersion().getProtocol());
-        Assert.assertSame(1, response.getProtocolVersion().getMajor());
-        Assert.assertSame(1, response.getProtocolVersion().getMinor());
+        Assert.assertEquals(1, response.getProtocolVersion().getMajor());
+        Assert.assertEquals(1, response.getProtocolVersion().getMinor());
     }
 
     @Test



Mime
View raw message