hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r545908 - /jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestBasicCookieAttribHandlers.java
Date Sun, 10 Jun 2007 16:41:47 GMT
Author: olegk
Date: Sun Jun 10 09:41:44 2007
New Revision: 545908

URL: http://svn.apache.org/viewvc?view=rev&rev=545908
Log:
Fixed test failure on non-english Locale systems

Contributed by Daniel Müller <strider at digitalstrider.com>

Modified:
    jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestBasicCookieAttribHandlers.java

Modified: jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestBasicCookieAttribHandlers.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestBasicCookieAttribHandlers.java?view=diff&rev=545908&r1=545907&r2=545908
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestBasicCookieAttribHandlers.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/cookie/TestBasicCookieAttribHandlers.java
Sun Jun 10 09:41:44 2007
@@ -33,6 +33,7 @@
 import java.text.DateFormat;
 import java.text.SimpleDateFormat;
 import java.util.Date;
+import java.util.Locale;
 
 import junit.framework.Test;
 import junit.framework.TestCase;
@@ -421,7 +422,7 @@
         Cookie cookie = new Cookie("name", "value"); 
         CookieAttributeHandler h = new BasicExpiresHandler(new String[] {DateUtils.PATTERN_RFC1123});
         
-        DateFormat dateformat = new SimpleDateFormat(DateUtils.PATTERN_RFC1123);
+        DateFormat dateformat = new SimpleDateFormat(DateUtils.PATTERN_RFC1123, Locale.US);
         dateformat.setTimeZone(DateUtils.GMT);
         
         Date now = new Date();



Mime
View raw message