From cb693cae40b3d2e6f716ef2e3694aac2ae301708 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Fri, 5 Mar 2010 14:08:56 +0000 Subject: [PATCH] Fixed time zone specific test case git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@919424 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/http/impl/cookie/TestCookieNetscapeDraft.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/httpclient/src/test/java/org/apache/http/impl/cookie/TestCookieNetscapeDraft.java b/httpclient/src/test/java/org/apache/http/impl/cookie/TestCookieNetscapeDraft.java index 404837f1e..e9a6a4707 100644 --- a/httpclient/src/test/java/org/apache/http/impl/cookie/TestCookieNetscapeDraft.java +++ b/httpclient/src/test/java/org/apache/http/impl/cookie/TestCookieNetscapeDraft.java @@ -30,6 +30,7 @@ package org.apache.http.impl.cookie; import java.util.ArrayList; import java.util.Calendar; import java.util.List; +import java.util.TimeZone; import junit.framework.Test; import junit.framework.TestCase; @@ -188,6 +189,7 @@ public class TestCookieNetscapeDraft extends TestCase { assertEquals(1, cookies.size()); Cookie cookie = cookies.get(0); Calendar c = Calendar.getInstance(); + c.setTimeZone(TimeZone.getTimeZone("GMT")); c.setTime(cookie.getExpiryDate()); int year = c.get(Calendar.YEAR); assertEquals(2070, year);