TAP5-11: CookiesImplTest does specify a domain cookie with a domain not prefixed with a . (dot)
git-svn-id: https://svn.apache.org/repos/asf/tapestry/tapestry5/branches/5.0@923881 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/CookiesImplTest.java b/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/CookiesImplTest.java
index 3897cf3..844119c 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/CookiesImplTest.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/CookiesImplTest.java
@@ -1,4 +1,4 @@
-// Copyright 2007 The Apache Software Foundation
+// Copyright 2007, 2010 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -42,8 +42,9 @@
{
Cookie c = (Cookie) obj;
- return equals(getName(), c.getName()) && equals(getValue(), c.getValue()) && equals(getPath(),
- c.getPath()) && getMaxAge() == c.getMaxAge();
+ return equals(getName(), c.getName()) && equals(getValue(), c.getValue())
+ && equals(getPath(), c.getPath()) && getMaxAge() == c.getMaxAge()
+ && equals(getDomain(), c.getDomain());
}
private boolean equals(Object value, Object other)