Author: markt Date: Mon May 17 17:41:30 2010 New Revision: 945267 URL: http://svn.apache.org/viewvc?rev=945267&view=rev Log: Simplify test
Modified: tomcat/trunk/test/org/apache/tomcat/util/http/TestBug49158.java Modified: tomcat/trunk/test/org/apache/tomcat/util/http/TestBug49158.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/http/TestBug49158.java?rev=945267&r1=945266&r2=945267&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/tomcat/util/http/TestBug49158.java (original) +++ tomcat/trunk/test/org/apache/tomcat/util/http/TestBug49158.java Mon May 17 17:41:30 2010 @@ -50,11 +50,8 @@ public class TestBug49158 extends Cookie ByteChunk res = new ByteChunk(); getUrl("http://localhost:" + getPort() + "/"+path, res, headers); List<String> cookieHeaders = headers.get("Set-Cookie"); - int count = 0; - for (String cookieHeader : cookieHeaders) { - count++; - } - assertEquals("There should only be one Set-Cookie header in this test",1, count); + assertEquals("There should only be one Set-Cookie header in this test", + 1, cookieHeaders.size()); } public static void addServlets(Tomcat tomcat) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org