From: markt Date: Mon, 17 May 2010 17:41:30 +0000 (+0000) Subject: Simplify test X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b47bcafaa17f9a914bf557cf53398a5046724022;p=tomcat7.0 Simplify test git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@945267 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/tomcat/util/http/TestBug49158.java b/test/org/apache/tomcat/util/http/TestBug49158.java index 985d265a7..ddcc7e037 100644 --- a/test/org/apache/tomcat/util/http/TestBug49158.java +++ b/test/org/apache/tomcat/util/http/TestBug49158.java @@ -50,11 +50,8 @@ public class TestBug49158 extends CookiesBaseTest { ByteChunk res = new ByteChunk(); getUrl("http://localhost:" + getPort() + "/"+path, res, headers); List 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) {