Fixed time zone specific test case

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@919448 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2010-03-05 15:26:18 +00:00
parent 0f84f8a1b1
commit a66a88cb8f
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,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);