Fix test failure

This commit is contained in:
Trustin Lee 2012-08-20 12:04:16 +09:00
parent f7f0511193
commit ebbcfbc185

View File

@ -207,7 +207,7 @@ public class CookieDecoderTest {
assertNull(c.getCommentUrl()); assertNull(c.getCommentUrl());
assertNull(c.getDomain()); assertNull(c.getDomain());
assertTrue(c.getPorts().isEmpty()); assertTrue(c.getPorts().isEmpty());
assertEquals(-1, c.getMaxAge()); assertEquals(Integer.MIN_VALUE, c.getMaxAge());
c = it.next(); c = it.next();
assertEquals(1, c.getVersion()); assertEquals(1, c.getVersion());
@ -218,7 +218,7 @@ public class CookieDecoderTest {
assertNull(c.getCommentUrl()); assertNull(c.getCommentUrl());
assertNull(c.getDomain()); assertNull(c.getDomain());
assertTrue(c.getPorts().isEmpty()); assertTrue(c.getPorts().isEmpty());
assertEquals(-1, c.getMaxAge()); assertEquals(Integer.MIN_VALUE, c.getMaxAge());
assertFalse(it.hasNext()); assertFalse(it.hasNext());
} }
@ -243,7 +243,7 @@ public class CookieDecoderTest {
assertNull(c.getCommentUrl()); assertNull(c.getCommentUrl());
assertNull(c.getDomain()); assertNull(c.getDomain());
assertTrue(c.getPorts().isEmpty()); assertTrue(c.getPorts().isEmpty());
assertEquals(-1, c.getMaxAge()); assertEquals(Integer.MIN_VALUE, c.getMaxAge());
assertTrue(it.hasNext()); assertTrue(it.hasNext());
c = it.next(); c = it.next();
@ -255,7 +255,7 @@ public class CookieDecoderTest {
assertNull(c.getComment()); assertNull(c.getComment());
assertNull(c.getCommentUrl()); assertNull(c.getCommentUrl());
assertTrue(c.getPorts().isEmpty()); assertTrue(c.getPorts().isEmpty());
assertEquals(-1, c.getMaxAge()); assertEquals(Integer.MIN_VALUE, c.getMaxAge());
assertFalse(it.hasNext()); assertFalse(it.hasNext());
} }