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:
parent
0f84f8a1b1
commit
a66a88cb8f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue