[jboss-cvs] JBossAS SVN: r77230 - in trunk/testsuite/src/main/org/jboss/test/web: test and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Aug 20 04:58:56 EDT 2008


Author: jeff.zhang
Date: 2008-08-20 04:58:56 -0400 (Wed, 20 Aug 2008)
New Revision: 77230

Modified:
   trunk/testsuite/src/main/org/jboss/test/web/servlets/CookieServlet.java
   trunk/testsuite/src/main/org/jboss/test/web/test/CookieUnitTestCase.java
Log:
[JBAS-5626] fix org.jboss.test.web.test.CookieUnitTestCase.testCookieRetrievedCorrectly by modify commented attribute

Modified: trunk/testsuite/src/main/org/jboss/test/web/servlets/CookieServlet.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/web/servlets/CookieServlet.java	2008-08-20 08:07:49 UTC (rev 77229)
+++ trunk/testsuite/src/main/org/jboss/test/web/servlets/CookieServlet.java	2008-08-20 08:58:56 UTC (rev 77230)
@@ -45,7 +45,7 @@
 		response.addCookie(cookie);
 		
 		//cookie with comment
-		cookie = new Cookie("commented", "commented cookie");
+		cookie = new Cookie("comment", "commented cookie");
 		cookie.setComment("This is a comment");
 		response.addCookie(cookie);
 		

Modified: trunk/testsuite/src/main/org/jboss/test/web/test/CookieUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/web/test/CookieUnitTestCase.java	2008-08-20 08:07:49 UTC (rev 77229)
+++ trunk/testsuite/src/main/org/jboss/test/web/test/CookieUnitTestCase.java	2008-08-20 08:58:56 UTC (rev 77230)
@@ -68,7 +68,7 @@
 			}
 			else if(cookies[i].getName().equals("withSpace"))	    		  
 				assertEquals("should be no quote in cookie with space", cookies[i].getValue().indexOf("\""),-1);
-			else if(cookies[i].getName().equals("commented"))	{	    		  
+			else if(cookies[i].getName().equals("comment"))	{	    		  
 				log.info("comment in cookie: " +  cookies[i].getComment());
 				//RFC2109:Note that there is no Comment attribute in the Cookie request header
 				//corresponding to the one in the Set-Cookie response header.  The user




More information about the jboss-cvs-commits mailing list