hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1049041 - /httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/params/TestBasicHttpParams.java
Date Tue, 14 Dec 2010 11:07:37 GMT
Author: sebb
Date: Tue Dec 14 11:07:36 2010
New Revision: 1049041

URL: http://svn.apache.org/viewvc?rev=1049041&view=rev
Log:
Downgrade to JUnit 3.8.1 capabilities

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/params/TestBasicHttpParams.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/params/TestBasicHttpParams.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/params/TestBasicHttpParams.java?rev=1049041&r1=1049040&r2=1049041&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/params/TestBasicHttpParams.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/params/TestBasicHttpParams.java
Tue Dec 14 11:07:36 2010
@@ -69,6 +69,7 @@ public class TestBasicHttpParams extends
         iterator = entrySet.iterator(); // refetch, as iterator is a snapshot
         assertTrue("Iterator has an entry",iterator.hasNext());
         Entry entry = (Entry) iterator.next();
-        assertTrue((Boolean) entry.getValue());
+        // Note: Java 1.3 requires JUnit 3.8.1 which does not have assertTrue(Boolean)
+        assertTrue(((Boolean) entry.getValue()).booleanValue());
     }
 }



Mime
View raw message