Author: markt
Date: Thu Jan  7 14:19:22 2016
New Revision: 1723554

URL: http://svn.apache.org/viewvc?rev=1723554&view=rev
Log:
Update the test now cookie headers are always preserved.

Modified:
    tomcat/trunk/test/org/apache/tomcat/util/http/TestCookieParsing.java

Modified: tomcat/trunk/test/org/apache/tomcat/util/http/TestCookieParsing.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/http/TestCookieParsing.java?rev=1723554&r1=1723553&r2=1723554&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/util/http/TestCookieParsing.java 
(original)
+++ tomcat/trunk/test/org/apache/tomcat/util/http/TestCookieParsing.java Thu 
Jan  7 14:19:22 2016
@@ -49,7 +49,6 @@ public class TestCookieParsing extends T
 
     private static final String[] COOKIES_WITH_QUOTES = new String[] {
             "name=\"val\\\"ue\"" };
-    private static final String COOKIES_WITH_QUOTES_MODIFIED = 
"name=\"val\"uee\"";
 
     @Test
     public void testLegacyWithEquals() throws Exception {
@@ -181,26 +180,10 @@ public class TestCookieParsing extends T
 
     @Test
     public void testLegacyPreserveHeader() throws Exception {
-        doTestLegacyPreserveHeader(true);
-    }
-
-
-    @Test
-    public void testLegacyNoPreserveHeader() throws Exception {
-        doTestLegacyPreserveHeader(false);
-    }
-
-
-    private void doTestLegacyPreserveHeader(boolean preserveHeader) throws 
Exception {
         LegacyCookieProcessor legacyCookieProcessor = new 
LegacyCookieProcessor();
-        legacyCookieProcessor.setPreserveCookieHeader(preserveHeader);
 
         String expected;
-        if (preserveHeader) {
-            expected = concat(COOKIES_WITH_QUOTES);
-        } else {
-            expected = COOKIES_WITH_QUOTES_MODIFIED;
-        }
+        expected = concat(COOKIES_WITH_QUOTES);
         TestCookieParsingClient client = new TestCookieParsingClient(
                 legacyCookieProcessor, true, COOKIES_WITH_QUOTES, expected);
         client.doRequest();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to