From b47bcafaa17f9a914bf557cf53398a5046724022 Mon Sep 17 00:00:00 2001 From: markt Date: Mon, 17 May 2010 17:41:30 +0000 Subject: [PATCH] Simplify test git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@945267 13f79535-47bb-0310-9956-ffa450edef68 --- test/org/apache/tomcat/util/http/TestBug49158.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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) { -- 2.11.0