hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1637120 [31/40] - in /httpcomponents/site: ./ httpcomponents-asyncclient-4.0.x/ httpcomponents-asyncclient-4.1.x/ httpcomponents-client-4.3.x/ httpcomponents-client-4.3.x/fluent-hc/ httpcomponents-client-4.3.x/fluent-hc/apidocs/ httpcompon...
Date Thu, 06 Nov 2014 14:29:58 GMT
Modified: httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/TestBrowserCompatSpec.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/TestBrowserCompatSpec.html?rev=1637120&r1=1637119&r2=1637120&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/TestBrowserCompatSpec.html (original)
+++ httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/TestBrowserCompatSpec.html Thu Nov  6 14:29:37 2014
@@ -469,7 +469,7 @@
 <a class="jxr_linenumber" name="459" href="#459">459</a>         Assert.assertTrue(<span class="jxr_string">"Secure"</span>,cookies.get(0).isSecure());
 <a class="jxr_linenumber" name="460" href="#460">460</a>         Assert.assertEquals(<strong class="jxr_keyword">new</strong> Date(10000L),cookies.get(0).getExpiryDate());
 <a class="jxr_linenumber" name="461" href="#461">461</a>         Assert.assertEquals(<span class="jxr_string">"Comment"</span>,<span class="jxr_string">"This is a comment."</span>,cookies.get(0).getComment());
-<a class="jxr_linenumber" name="462" href="#462">462</a>         Assert.assertEquals(<span class="jxr_string">"Version"</span>,1,cookies.get(0).getVersion());
+<a class="jxr_linenumber" name="462" href="#462">462</a>         Assert.assertEquals(<span class="jxr_string">"Version"</span>,0,cookies.get(0).getVersion());
 <a class="jxr_linenumber" name="463" href="#463">463</a>     }
 <a class="jxr_linenumber" name="464" href="#464">464</a> 
 <a class="jxr_linenumber" name="465" href="#465">465</a>     @Test

Modified: httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/TestCookieNetscapeDraft.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/TestCookieNetscapeDraft.html?rev=1637120&r1=1637119&r2=1637120&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/TestCookieNetscapeDraft.html (original)
+++ httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/TestCookieNetscapeDraft.html Thu Nov  6 14:29:37 2014
@@ -142,168 +142,187 @@
 <a class="jxr_linenumber" name="132" href="#132">132</a>         }
 <a class="jxr_linenumber" name="133" href="#133">133</a>     }
 <a class="jxr_linenumber" name="134" href="#134">134</a> 
-<a class="jxr_linenumber" name="135" href="#135">135</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="136" href="#136">136</a> <em class="jxr_javadoccomment">     * Tests Netscape specific cookie formatting.</em>
-<a class="jxr_linenumber" name="137" href="#137">137</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="138" href="#138">138</a>     @Test
-<a class="jxr_linenumber" name="139" href="#139">139</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNetscapeCookieFormatting() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="140" href="#140">140</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(
-<a class="jxr_linenumber" name="141" href="#141">141</a>           <span class="jxr_string">"Set-Cookie"</span>, <span class="jxr_string">"name=value; path=/; domain=.mydomain.com"</span>);
-<a class="jxr_linenumber" name="142" href="#142">142</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
-<a class="jxr_linenumber" name="143" href="#143">143</a>         <strong class="jxr_keyword">final</strong> CookieOrigin origin = <strong class="jxr_keyword">new</strong> CookieOrigin(<span class="jxr_string">"myhost.mydomain.com"</span>, 80, <span class="jxr_string">"/"</span>, false);
-<a class="jxr_linenumber" name="144" href="#144">144</a>         <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = cookiespec.parse(header, origin);
-<a class="jxr_linenumber" name="145" href="#145">145</a>         cookiespec.validate(cookies.get(0), origin);
-<a class="jxr_linenumber" name="146" href="#146">146</a>         <strong class="jxr_keyword">final</strong> List&lt;Header&gt; headers = cookiespec.formatCookies(cookies);
-<a class="jxr_linenumber" name="147" href="#147">147</a>         Assert.assertEquals(1, headers.size());
-<a class="jxr_linenumber" name="148" href="#148">148</a>         Assert.assertEquals(<span class="jxr_string">"name=value"</span>, headers.get(0).getValue());
-<a class="jxr_linenumber" name="149" href="#149">149</a>     }
-<a class="jxr_linenumber" name="150" href="#150">150</a> 
-<a class="jxr_linenumber" name="151" href="#151">151</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="152" href="#152">152</a> <em class="jxr_javadoccomment">     * Tests Netscape specific expire attribute parsing.</em>
-<a class="jxr_linenumber" name="153" href="#153">153</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="154" href="#154">154</a>     @Test
-<a class="jxr_linenumber" name="155" href="#155">155</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNetscapeCookieExpireAttribute() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="156" href="#156">156</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
-<a class="jxr_linenumber" name="157" href="#157">157</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>,
-<a class="jxr_linenumber" name="158" href="#158">158</a>             <span class="jxr_string">"name=value; path=/; domain=.mydomain.com; expires=Thu, 01-Jan-2070 00:00:10 GMT; comment=no_comment"</span>);
-<a class="jxr_linenumber" name="159" href="#159">159</a>         <strong class="jxr_keyword">final</strong> CookieOrigin origin = <strong class="jxr_keyword">new</strong> CookieOrigin(<span class="jxr_string">"myhost.mydomain.com"</span>, 80, <span class="jxr_string">"/"</span>, false);
-<a class="jxr_linenumber" name="160" href="#160">160</a>         <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = cookiespec.parse(header, origin);
-<a class="jxr_linenumber" name="161" href="#161">161</a>         cookiespec.validate(cookies.get(0), origin);
-<a class="jxr_linenumber" name="162" href="#162">162</a>         Assert.assertNotNull(cookies);
-<a class="jxr_linenumber" name="163" href="#163">163</a>         Assert.assertEquals(1, cookies.size());
-<a class="jxr_linenumber" name="164" href="#164">164</a>         <strong class="jxr_keyword">final</strong> Cookie cookie = cookies.get(0);
-<a class="jxr_linenumber" name="165" href="#165">165</a>         <strong class="jxr_keyword">final</strong> Calendar c = Calendar.getInstance();
-<a class="jxr_linenumber" name="166" href="#166">166</a>         c.setTimeZone(TimeZone.getTimeZone(<span class="jxr_string">"GMT"</span>));
-<a class="jxr_linenumber" name="167" href="#167">167</a>         c.setTime(cookie.getExpiryDate());
-<a class="jxr_linenumber" name="168" href="#168">168</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> year = c.get(Calendar.YEAR);
-<a class="jxr_linenumber" name="169" href="#169">169</a>         Assert.assertEquals(2070, year);
-<a class="jxr_linenumber" name="170" href="#170">170</a>     }
-<a class="jxr_linenumber" name="171" href="#171">171</a> 
-<a class="jxr_linenumber" name="172" href="#172">172</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="173" href="#173">173</a> <em class="jxr_javadoccomment">     * Expire attribute with two digit year.</em>
-<a class="jxr_linenumber" name="174" href="#174">174</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="175" href="#175">175</a>     @Test
-<a class="jxr_linenumber" name="176" href="#176">176</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNetscapeCookieExpireAttributeTwoDigitYear() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="177" href="#177">177</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
-<a class="jxr_linenumber" name="178" href="#178">178</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>,
-<a class="jxr_linenumber" name="179" href="#179">179</a>             <span class="jxr_string">"name=value; path=/; domain=.mydomain.com; expires=Thursday, 01-Jan-70 00:00:10 GMT; comment=no_comment"</span>);
-<a class="jxr_linenumber" name="180" href="#180">180</a>         <strong class="jxr_keyword">final</strong> CookieOrigin origin = <strong class="jxr_keyword">new</strong> CookieOrigin(<span class="jxr_string">"myhost.mydomain.com"</span>, 80, <span class="jxr_string">"/"</span>, false);
-<a class="jxr_linenumber" name="181" href="#181">181</a>         <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = cookiespec.parse(header, origin);
-<a class="jxr_linenumber" name="182" href="#182">182</a>         cookiespec.validate(cookies.get(0), origin);
-<a class="jxr_linenumber" name="183" href="#183">183</a>         Assert.assertNotNull(cookies);
-<a class="jxr_linenumber" name="184" href="#184">184</a>         Assert.assertEquals(1, cookies.size());
-<a class="jxr_linenumber" name="185" href="#185">185</a>         <strong class="jxr_keyword">final</strong> Cookie cookie = cookies.get(0);
-<a class="jxr_linenumber" name="186" href="#186">186</a>         <strong class="jxr_keyword">final</strong> Calendar c = Calendar.getInstance();
-<a class="jxr_linenumber" name="187" href="#187">187</a>         c.setTimeZone(TimeZone.getTimeZone(<span class="jxr_string">"GMT"</span>));
-<a class="jxr_linenumber" name="188" href="#188">188</a>         c.setTime(cookie.getExpiryDate());
-<a class="jxr_linenumber" name="189" href="#189">189</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> year = c.get(Calendar.YEAR);
-<a class="jxr_linenumber" name="190" href="#190">190</a>         Assert.assertEquals(2070, year);
-<a class="jxr_linenumber" name="191" href="#191">191</a>     }
-<a class="jxr_linenumber" name="192" href="#192">192</a> 
-<a class="jxr_linenumber" name="193" href="#193">193</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="194" href="#194">194</a> <em class="jxr_javadoccomment">     * Invalid expire attribute.</em>
-<a class="jxr_linenumber" name="195" href="#195">195</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="196" href="#196">196</a>     @Test
-<a class="jxr_linenumber" name="197" href="#197">197</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNetscapeCookieInvalidExpireAttribute() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="198" href="#198">198</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
+<a class="jxr_linenumber" name="135" href="#135">135</a>     @Test
+<a class="jxr_linenumber" name="136" href="#136">136</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testParseVersionIgnored() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="137" href="#137">137</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>, <span class="jxr_string">"name1=value1;Path=/path/;Version=1;"</span>);
+<a class="jxr_linenumber" name="138" href="#138">138</a> 
+<a class="jxr_linenumber" name="139" href="#139">139</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
+<a class="jxr_linenumber" name="140" href="#140">140</a>         <strong class="jxr_keyword">final</strong> CookieOrigin origin = <strong class="jxr_keyword">new</strong> CookieOrigin(<span class="jxr_string">"host"</span>, 80, <span class="jxr_string">"/path/"</span>, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="141" href="#141">141</a>         <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = cookiespec.parse(header, origin);
+<a class="jxr_linenumber" name="142" href="#142">142</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; cookies.size(); i++) {
+<a class="jxr_linenumber" name="143" href="#143">143</a>             cookiespec.validate(cookies.get(i), origin);
+<a class="jxr_linenumber" name="144" href="#144">144</a>         }
+<a class="jxr_linenumber" name="145" href="#145">145</a>         Assert.assertEquals(<span class="jxr_string">"Found 1 cookies."</span>,1,cookies.size());
+<a class="jxr_linenumber" name="146" href="#146">146</a>         <strong class="jxr_keyword">final</strong> Cookie cookie = cookies.get(0);
+<a class="jxr_linenumber" name="147" href="#147">147</a>         Assert.assertEquals(<span class="jxr_string">"Name"</span>,<span class="jxr_string">"name1"</span>, cookie.getName());
+<a class="jxr_linenumber" name="148" href="#148">148</a>         Assert.assertEquals(<span class="jxr_string">"Value"</span>, <span class="jxr_string">"value1"</span>, cookie.getValue());
+<a class="jxr_linenumber" name="149" href="#149">149</a>         Assert.assertEquals(<span class="jxr_string">"Domain"</span>, <span class="jxr_string">"host"</span>, cookie.getDomain());
+<a class="jxr_linenumber" name="150" href="#150">150</a>         Assert.assertEquals(<span class="jxr_string">"Path"</span>,<span class="jxr_string">"/path/"</span>, cookie.getPath());
+<a class="jxr_linenumber" name="151" href="#151">151</a>         Assert.assertEquals(0, cookie.getVersion());
+<a class="jxr_linenumber" name="152" href="#152">152</a>     }
+<a class="jxr_linenumber" name="153" href="#153">153</a> 
+<a class="jxr_linenumber" name="154" href="#154">154</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="155" href="#155">155</a> <em class="jxr_javadoccomment">     * Tests Netscape specific cookie formatting.</em>
+<a class="jxr_linenumber" name="156" href="#156">156</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="157" href="#157">157</a>     @Test
+<a class="jxr_linenumber" name="158" href="#158">158</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNetscapeCookieFormatting() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="159" href="#159">159</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(
+<a class="jxr_linenumber" name="160" href="#160">160</a>           <span class="jxr_string">"Set-Cookie"</span>, <span class="jxr_string">"name=value; path=/; domain=.mydomain.com"</span>);
+<a class="jxr_linenumber" name="161" href="#161">161</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
+<a class="jxr_linenumber" name="162" href="#162">162</a>         <strong class="jxr_keyword">final</strong> CookieOrigin origin = <strong class="jxr_keyword">new</strong> CookieOrigin(<span class="jxr_string">"myhost.mydomain.com"</span>, 80, <span class="jxr_string">"/"</span>, false);
+<a class="jxr_linenumber" name="163" href="#163">163</a>         <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = cookiespec.parse(header, origin);
+<a class="jxr_linenumber" name="164" href="#164">164</a>         cookiespec.validate(cookies.get(0), origin);
+<a class="jxr_linenumber" name="165" href="#165">165</a>         <strong class="jxr_keyword">final</strong> List&lt;Header&gt; headers = cookiespec.formatCookies(cookies);
+<a class="jxr_linenumber" name="166" href="#166">166</a>         Assert.assertEquals(1, headers.size());
+<a class="jxr_linenumber" name="167" href="#167">167</a>         Assert.assertEquals(<span class="jxr_string">"name=value"</span>, headers.get(0).getValue());
+<a class="jxr_linenumber" name="168" href="#168">168</a>     }
+<a class="jxr_linenumber" name="169" href="#169">169</a> 
+<a class="jxr_linenumber" name="170" href="#170">170</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="171" href="#171">171</a> <em class="jxr_javadoccomment">     * Tests Netscape specific expire attribute parsing.</em>
+<a class="jxr_linenumber" name="172" href="#172">172</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="173" href="#173">173</a>     @Test
+<a class="jxr_linenumber" name="174" href="#174">174</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNetscapeCookieExpireAttribute() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="175" href="#175">175</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
+<a class="jxr_linenumber" name="176" href="#176">176</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>,
+<a class="jxr_linenumber" name="177" href="#177">177</a>             <span class="jxr_string">"name=value; path=/; domain=.mydomain.com; expires=Thu, 01-Jan-2070 00:00:10 GMT; comment=no_comment"</span>);
+<a class="jxr_linenumber" name="178" href="#178">178</a>         <strong class="jxr_keyword">final</strong> CookieOrigin origin = <strong class="jxr_keyword">new</strong> CookieOrigin(<span class="jxr_string">"myhost.mydomain.com"</span>, 80, <span class="jxr_string">"/"</span>, false);
+<a class="jxr_linenumber" name="179" href="#179">179</a>         <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = cookiespec.parse(header, origin);
+<a class="jxr_linenumber" name="180" href="#180">180</a>         cookiespec.validate(cookies.get(0), origin);
+<a class="jxr_linenumber" name="181" href="#181">181</a>         Assert.assertNotNull(cookies);
+<a class="jxr_linenumber" name="182" href="#182">182</a>         Assert.assertEquals(1, cookies.size());
+<a class="jxr_linenumber" name="183" href="#183">183</a>         <strong class="jxr_keyword">final</strong> Cookie cookie = cookies.get(0);
+<a class="jxr_linenumber" name="184" href="#184">184</a>         <strong class="jxr_keyword">final</strong> Calendar c = Calendar.getInstance();
+<a class="jxr_linenumber" name="185" href="#185">185</a>         c.setTimeZone(TimeZone.getTimeZone(<span class="jxr_string">"GMT"</span>));
+<a class="jxr_linenumber" name="186" href="#186">186</a>         c.setTime(cookie.getExpiryDate());
+<a class="jxr_linenumber" name="187" href="#187">187</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> year = c.get(Calendar.YEAR);
+<a class="jxr_linenumber" name="188" href="#188">188</a>         Assert.assertEquals(2070, year);
+<a class="jxr_linenumber" name="189" href="#189">189</a>     }
+<a class="jxr_linenumber" name="190" href="#190">190</a> 
+<a class="jxr_linenumber" name="191" href="#191">191</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="192" href="#192">192</a> <em class="jxr_javadoccomment">     * Expire attribute with two digit year.</em>
+<a class="jxr_linenumber" name="193" href="#193">193</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="194" href="#194">194</a>     @Test
+<a class="jxr_linenumber" name="195" href="#195">195</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNetscapeCookieExpireAttributeTwoDigitYear() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="196" href="#196">196</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
+<a class="jxr_linenumber" name="197" href="#197">197</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>,
+<a class="jxr_linenumber" name="198" href="#198">198</a>             <span class="jxr_string">"name=value; path=/; domain=.mydomain.com; expires=Thursday, 01-Jan-70 00:00:10 GMT; comment=no_comment"</span>);
 <a class="jxr_linenumber" name="199" href="#199">199</a>         <strong class="jxr_keyword">final</strong> CookieOrigin origin = <strong class="jxr_keyword">new</strong> CookieOrigin(<span class="jxr_string">"myhost.mydomain.com"</span>, 80, <span class="jxr_string">"/"</span>, false);
-<a class="jxr_linenumber" name="200" href="#200">200</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>,
-<a class="jxr_linenumber" name="201" href="#201">201</a>             <span class="jxr_string">"name=value; path=/; domain=.mydomain.com; expires=Thu 01-Jan-2070 00:00:10 GMT; comment=no_comment"</span>);
-<a class="jxr_linenumber" name="202" href="#202">202</a>         <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="203" href="#203">203</a>             <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = cookiespec.parse(header, origin);
-<a class="jxr_linenumber" name="204" href="#204">204</a>             cookiespec.validate(cookies.get(0), origin);
-<a class="jxr_linenumber" name="205" href="#205">205</a>             Assert.fail(<span class="jxr_string">"MalformedCookieException exception should have been thrown"</span>);
-<a class="jxr_linenumber" name="206" href="#206">206</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> MalformedCookieException e) {
-<a class="jxr_linenumber" name="207" href="#207">207</a>             <em class="jxr_comment">// expected</em>
-<a class="jxr_linenumber" name="208" href="#208">208</a>         }
-<a class="jxr_linenumber" name="209" href="#209">209</a>     }
-<a class="jxr_linenumber" name="210" href="#210">210</a> 
-<a class="jxr_linenumber" name="211" href="#211">211</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="212" href="#212">212</a> <em class="jxr_javadoccomment">     * Tests Netscape specific expire attribute without a time zone.</em>
-<a class="jxr_linenumber" name="213" href="#213">213</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="214" href="#214">214</a>     @Test
-<a class="jxr_linenumber" name="215" href="#215">215</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNetscapeCookieExpireAttributeNoTimeZone() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="216" href="#216">216</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
-<a class="jxr_linenumber" name="217" href="#217">217</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>,
-<a class="jxr_linenumber" name="218" href="#218">218</a>             <span class="jxr_string">"name=value; expires=Thu, 01-Jan-2006 00:00:00 "</span>);
-<a class="jxr_linenumber" name="219" href="#219">219</a>         <strong class="jxr_keyword">final</strong> CookieOrigin origin = <strong class="jxr_keyword">new</strong> CookieOrigin(<span class="jxr_string">"myhost.mydomain.com"</span>, 80, <span class="jxr_string">"/"</span>, false);
-<a class="jxr_linenumber" name="220" href="#220">220</a>         <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="221" href="#221">221</a>             cookiespec.parse(header, origin);
-<a class="jxr_linenumber" name="222" href="#222">222</a>             Assert.fail(<span class="jxr_string">"MalformedCookieException should have been thrown"</span>);
-<a class="jxr_linenumber" name="223" href="#223">223</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> MalformedCookieException ex) {
-<a class="jxr_linenumber" name="224" href="#224">224</a>             <em class="jxr_comment">// expected</em>
-<a class="jxr_linenumber" name="225" href="#225">225</a>         }
-<a class="jxr_linenumber" name="226" href="#226">226</a>     }
-<a class="jxr_linenumber" name="227" href="#227">227</a> 
-<a class="jxr_linenumber" name="228" href="#228">228</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="229" href="#229">229</a> <em class="jxr_javadoccomment">     * Tests if cookie values with embedded comma are handled correctly.</em>
-<a class="jxr_linenumber" name="230" href="#230">230</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="231" href="#231">231</a>     @Test
-<a class="jxr_linenumber" name="232" href="#232">232</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCookieWithComma() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="233" href="#233">233</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>, <span class="jxr_string">"a=b,c"</span>);
-<a class="jxr_linenumber" name="234" href="#234">234</a> 
+<a class="jxr_linenumber" name="200" href="#200">200</a>         <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = cookiespec.parse(header, origin);
+<a class="jxr_linenumber" name="201" href="#201">201</a>         cookiespec.validate(cookies.get(0), origin);
+<a class="jxr_linenumber" name="202" href="#202">202</a>         Assert.assertNotNull(cookies);
+<a class="jxr_linenumber" name="203" href="#203">203</a>         Assert.assertEquals(1, cookies.size());
+<a class="jxr_linenumber" name="204" href="#204">204</a>         <strong class="jxr_keyword">final</strong> Cookie cookie = cookies.get(0);
+<a class="jxr_linenumber" name="205" href="#205">205</a>         <strong class="jxr_keyword">final</strong> Calendar c = Calendar.getInstance();
+<a class="jxr_linenumber" name="206" href="#206">206</a>         c.setTimeZone(TimeZone.getTimeZone(<span class="jxr_string">"GMT"</span>));
+<a class="jxr_linenumber" name="207" href="#207">207</a>         c.setTime(cookie.getExpiryDate());
+<a class="jxr_linenumber" name="208" href="#208">208</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> year = c.get(Calendar.YEAR);
+<a class="jxr_linenumber" name="209" href="#209">209</a>         Assert.assertEquals(2070, year);
+<a class="jxr_linenumber" name="210" href="#210">210</a>     }
+<a class="jxr_linenumber" name="211" href="#211">211</a> 
+<a class="jxr_linenumber" name="212" href="#212">212</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="213" href="#213">213</a> <em class="jxr_javadoccomment">     * Invalid expire attribute.</em>
+<a class="jxr_linenumber" name="214" href="#214">214</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="215" href="#215">215</a>     @Test
+<a class="jxr_linenumber" name="216" href="#216">216</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNetscapeCookieInvalidExpireAttribute() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="217" href="#217">217</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
+<a class="jxr_linenumber" name="218" href="#218">218</a>         <strong class="jxr_keyword">final</strong> CookieOrigin origin = <strong class="jxr_keyword">new</strong> CookieOrigin(<span class="jxr_string">"myhost.mydomain.com"</span>, 80, <span class="jxr_string">"/"</span>, false);
+<a class="jxr_linenumber" name="219" href="#219">219</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>,
+<a class="jxr_linenumber" name="220" href="#220">220</a>             <span class="jxr_string">"name=value; path=/; domain=.mydomain.com; expires=Thu 01-Jan-2070 00:00:10 GMT; comment=no_comment"</span>);
+<a class="jxr_linenumber" name="221" href="#221">221</a>         <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="222" href="#222">222</a>             <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = cookiespec.parse(header, origin);
+<a class="jxr_linenumber" name="223" href="#223">223</a>             cookiespec.validate(cookies.get(0), origin);
+<a class="jxr_linenumber" name="224" href="#224">224</a>             Assert.fail(<span class="jxr_string">"MalformedCookieException exception should have been thrown"</span>);
+<a class="jxr_linenumber" name="225" href="#225">225</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> MalformedCookieException e) {
+<a class="jxr_linenumber" name="226" href="#226">226</a>             <em class="jxr_comment">// expected</em>
+<a class="jxr_linenumber" name="227" href="#227">227</a>         }
+<a class="jxr_linenumber" name="228" href="#228">228</a>     }
+<a class="jxr_linenumber" name="229" href="#229">229</a> 
+<a class="jxr_linenumber" name="230" href="#230">230</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="231" href="#231">231</a> <em class="jxr_javadoccomment">     * Tests Netscape specific expire attribute without a time zone.</em>
+<a class="jxr_linenumber" name="232" href="#232">232</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="233" href="#233">233</a>     @Test
+<a class="jxr_linenumber" name="234" href="#234">234</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNetscapeCookieExpireAttributeNoTimeZone() <strong class="jxr_keyword">throws</strong> Exception {
 <a class="jxr_linenumber" name="235" href="#235">235</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
-<a class="jxr_linenumber" name="236" href="#236">236</a>         <strong class="jxr_keyword">final</strong> CookieOrigin origin = <strong class="jxr_keyword">new</strong> CookieOrigin(<span class="jxr_string">"localhost"</span>, 80, <span class="jxr_string">"/"</span>, false);
-<a class="jxr_linenumber" name="237" href="#237">237</a>         <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = cookiespec.parse(header, origin);
-<a class="jxr_linenumber" name="238" href="#238">238</a>         Assert.assertEquals(<span class="jxr_string">"number of cookies"</span>, 1, cookies.size());
-<a class="jxr_linenumber" name="239" href="#239">239</a>         Assert.assertEquals(<span class="jxr_string">"a"</span>, cookies.get(0).getName());
-<a class="jxr_linenumber" name="240" href="#240">240</a>         Assert.assertEquals(<span class="jxr_string">"b,c"</span>, cookies.get(0).getValue());
-<a class="jxr_linenumber" name="241" href="#241">241</a>     }
-<a class="jxr_linenumber" name="242" href="#242">242</a> 
-<a class="jxr_linenumber" name="243" href="#243">243</a>     @Test
-<a class="jxr_linenumber" name="244" href="#244">244</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testFormatCookies() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="245" href="#245">245</a>         <strong class="jxr_keyword">final</strong> BasicClientCookie c1 = <strong class="jxr_keyword">new</strong> BasicClientCookie(<span class="jxr_string">"name1"</span>, <span class="jxr_string">"value1"</span>);
-<a class="jxr_linenumber" name="246" href="#246">246</a>         c1.setDomain(<span class="jxr_string">".whatever.com"</span>);
-<a class="jxr_linenumber" name="247" href="#247">247</a>         c1.setAttribute(ClientCookie.DOMAIN_ATTR, c1.getDomain());
-<a class="jxr_linenumber" name="248" href="#248">248</a>         c1.setPath(<span class="jxr_string">"/"</span>);
-<a class="jxr_linenumber" name="249" href="#249">249</a>         c1.setAttribute(ClientCookie.PATH_ATTR, c1.getPath());
-<a class="jxr_linenumber" name="250" href="#250">250</a> 
-<a class="jxr_linenumber" name="251" href="#251">251</a>         <strong class="jxr_keyword">final</strong> Cookie c2 = <strong class="jxr_keyword">new</strong> BasicClientCookie(<span class="jxr_string">"name2"</span>, <span class="jxr_string">"value2"</span>);
-<a class="jxr_linenumber" name="252" href="#252">252</a>         <strong class="jxr_keyword">final</strong> Cookie c3 = <strong class="jxr_keyword">new</strong> BasicClientCookie(<span class="jxr_string">"name3"</span>, <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="236" href="#236">236</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>,
+<a class="jxr_linenumber" name="237" href="#237">237</a>             <span class="jxr_string">"name=value; expires=Thu, 01-Jan-2006 00:00:00 "</span>);
+<a class="jxr_linenumber" name="238" href="#238">238</a>         <strong class="jxr_keyword">final</strong> CookieOrigin origin = <strong class="jxr_keyword">new</strong> CookieOrigin(<span class="jxr_string">"myhost.mydomain.com"</span>, 80, <span class="jxr_string">"/"</span>, false);
+<a class="jxr_linenumber" name="239" href="#239">239</a>         <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="240" href="#240">240</a>             cookiespec.parse(header, origin);
+<a class="jxr_linenumber" name="241" href="#241">241</a>             Assert.fail(<span class="jxr_string">"MalformedCookieException should have been thrown"</span>);
+<a class="jxr_linenumber" name="242" href="#242">242</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> MalformedCookieException ex) {
+<a class="jxr_linenumber" name="243" href="#243">243</a>             <em class="jxr_comment">// expected</em>
+<a class="jxr_linenumber" name="244" href="#244">244</a>         }
+<a class="jxr_linenumber" name="245" href="#245">245</a>     }
+<a class="jxr_linenumber" name="246" href="#246">246</a> 
+<a class="jxr_linenumber" name="247" href="#247">247</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="248" href="#248">248</a> <em class="jxr_javadoccomment">     * Tests if cookie values with embedded comma are handled correctly.</em>
+<a class="jxr_linenumber" name="249" href="#249">249</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="250" href="#250">250</a>     @Test
+<a class="jxr_linenumber" name="251" href="#251">251</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCookieWithComma() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="252" href="#252">252</a>         <strong class="jxr_keyword">final</strong> Header header = <strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>, <span class="jxr_string">"a=b,c"</span>);
 <a class="jxr_linenumber" name="253" href="#253">253</a> 
 <a class="jxr_linenumber" name="254" href="#254">254</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
-<a class="jxr_linenumber" name="255" href="#255">255</a>         <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = <strong class="jxr_keyword">new</strong> ArrayList&lt;Cookie&gt;();
-<a class="jxr_linenumber" name="256" href="#256">256</a>         cookies.add(c1);
-<a class="jxr_linenumber" name="257" href="#257">257</a>         cookies.add(c2);
-<a class="jxr_linenumber" name="258" href="#258">258</a>         cookies.add(c3);
-<a class="jxr_linenumber" name="259" href="#259">259</a>         <strong class="jxr_keyword">final</strong> List&lt;Header&gt; headers = cookiespec.formatCookies(cookies);
-<a class="jxr_linenumber" name="260" href="#260">260</a>         Assert.assertNotNull(headers);
-<a class="jxr_linenumber" name="261" href="#261">261</a>         Assert.assertEquals(1, headers.size());
-<a class="jxr_linenumber" name="262" href="#262">262</a>         Assert.assertEquals(<span class="jxr_string">"name1=value1; name2=value2; name3"</span>, headers.get(0).getValue());
-<a class="jxr_linenumber" name="263" href="#263">263</a>     }
-<a class="jxr_linenumber" name="264" href="#264">264</a> 
-<a class="jxr_linenumber" name="265" href="#265">265</a>     @Test
-<a class="jxr_linenumber" name="266" href="#266">266</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testInvalidInput() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="267" href="#267">267</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
-<a class="jxr_linenumber" name="268" href="#268">268</a>         <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="269" href="#269">269</a>             cookiespec.parse(<strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="270" href="#270">270</a>             Assert.fail(<span class="jxr_string">"IllegalArgumentException must have been thrown"</span>);
-<a class="jxr_linenumber" name="271" href="#271">271</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> IllegalArgumentException ex) {
-<a class="jxr_linenumber" name="272" href="#272">272</a>             <em class="jxr_comment">// expected</em>
-<a class="jxr_linenumber" name="273" href="#273">273</a>         }
-<a class="jxr_linenumber" name="274" href="#274">274</a>         <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="275" href="#275">275</a>             cookiespec.parse(<strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>, <span class="jxr_string">"name=value"</span>), <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="276" href="#276">276</a>             Assert.fail(<span class="jxr_string">"IllegalArgumentException must have been thrown"</span>);
-<a class="jxr_linenumber" name="277" href="#277">277</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> IllegalArgumentException ex) {
-<a class="jxr_linenumber" name="278" href="#278">278</a>             <em class="jxr_comment">// expected</em>
-<a class="jxr_linenumber" name="279" href="#279">279</a>         }
-<a class="jxr_linenumber" name="280" href="#280">280</a>         <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="281" href="#281">281</a>             cookiespec.formatCookies(<strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="282" href="#282">282</a>             Assert.fail(<span class="jxr_string">"IllegalArgumentException must have been thrown"</span>);
-<a class="jxr_linenumber" name="283" href="#283">283</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> IllegalArgumentException ex) {
-<a class="jxr_linenumber" name="284" href="#284">284</a>             <em class="jxr_comment">// expected</em>
-<a class="jxr_linenumber" name="285" href="#285">285</a>         }
-<a class="jxr_linenumber" name="286" href="#286">286</a>         <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="287" href="#287">287</a>             <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = <strong class="jxr_keyword">new</strong> ArrayList&lt;Cookie&gt;();
-<a class="jxr_linenumber" name="288" href="#288">288</a>             cookiespec.formatCookies(cookies);
+<a class="jxr_linenumber" name="255" href="#255">255</a>         <strong class="jxr_keyword">final</strong> CookieOrigin origin = <strong class="jxr_keyword">new</strong> CookieOrigin(<span class="jxr_string">"localhost"</span>, 80, <span class="jxr_string">"/"</span>, false);
+<a class="jxr_linenumber" name="256" href="#256">256</a>         <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = cookiespec.parse(header, origin);
+<a class="jxr_linenumber" name="257" href="#257">257</a>         Assert.assertEquals(<span class="jxr_string">"number of cookies"</span>, 1, cookies.size());
+<a class="jxr_linenumber" name="258" href="#258">258</a>         Assert.assertEquals(<span class="jxr_string">"a"</span>, cookies.get(0).getName());
+<a class="jxr_linenumber" name="259" href="#259">259</a>         Assert.assertEquals(<span class="jxr_string">"b,c"</span>, cookies.get(0).getValue());
+<a class="jxr_linenumber" name="260" href="#260">260</a>     }
+<a class="jxr_linenumber" name="261" href="#261">261</a> 
+<a class="jxr_linenumber" name="262" href="#262">262</a>     @Test
+<a class="jxr_linenumber" name="263" href="#263">263</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testFormatCookies() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="264" href="#264">264</a>         <strong class="jxr_keyword">final</strong> BasicClientCookie c1 = <strong class="jxr_keyword">new</strong> BasicClientCookie(<span class="jxr_string">"name1"</span>, <span class="jxr_string">"value1"</span>);
+<a class="jxr_linenumber" name="265" href="#265">265</a>         c1.setDomain(<span class="jxr_string">".whatever.com"</span>);
+<a class="jxr_linenumber" name="266" href="#266">266</a>         c1.setAttribute(ClientCookie.DOMAIN_ATTR, c1.getDomain());
+<a class="jxr_linenumber" name="267" href="#267">267</a>         c1.setPath(<span class="jxr_string">"/"</span>);
+<a class="jxr_linenumber" name="268" href="#268">268</a>         c1.setAttribute(ClientCookie.PATH_ATTR, c1.getPath());
+<a class="jxr_linenumber" name="269" href="#269">269</a> 
+<a class="jxr_linenumber" name="270" href="#270">270</a>         <strong class="jxr_keyword">final</strong> Cookie c2 = <strong class="jxr_keyword">new</strong> BasicClientCookie(<span class="jxr_string">"name2"</span>, <span class="jxr_string">"value2"</span>);
+<a class="jxr_linenumber" name="271" href="#271">271</a>         <strong class="jxr_keyword">final</strong> Cookie c3 = <strong class="jxr_keyword">new</strong> BasicClientCookie(<span class="jxr_string">"name3"</span>, <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="272" href="#272">272</a> 
+<a class="jxr_linenumber" name="273" href="#273">273</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
+<a class="jxr_linenumber" name="274" href="#274">274</a>         <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = <strong class="jxr_keyword">new</strong> ArrayList&lt;Cookie&gt;();
+<a class="jxr_linenumber" name="275" href="#275">275</a>         cookies.add(c1);
+<a class="jxr_linenumber" name="276" href="#276">276</a>         cookies.add(c2);
+<a class="jxr_linenumber" name="277" href="#277">277</a>         cookies.add(c3);
+<a class="jxr_linenumber" name="278" href="#278">278</a>         <strong class="jxr_keyword">final</strong> List&lt;Header&gt; headers = cookiespec.formatCookies(cookies);
+<a class="jxr_linenumber" name="279" href="#279">279</a>         Assert.assertNotNull(headers);
+<a class="jxr_linenumber" name="280" href="#280">280</a>         Assert.assertEquals(1, headers.size());
+<a class="jxr_linenumber" name="281" href="#281">281</a>         Assert.assertEquals(<span class="jxr_string">"name1=value1; name2=value2; name3"</span>, headers.get(0).getValue());
+<a class="jxr_linenumber" name="282" href="#282">282</a>     }
+<a class="jxr_linenumber" name="283" href="#283">283</a> 
+<a class="jxr_linenumber" name="284" href="#284">284</a>     @Test
+<a class="jxr_linenumber" name="285" href="#285">285</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testInvalidInput() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="286" href="#286">286</a>         <strong class="jxr_keyword">final</strong> CookieSpec cookiespec = <strong class="jxr_keyword">new</strong> NetscapeDraftSpec();
+<a class="jxr_linenumber" name="287" href="#287">287</a>         <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="288" href="#288">288</a>             cookiespec.parse(<strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>);
 <a class="jxr_linenumber" name="289" href="#289">289</a>             Assert.fail(<span class="jxr_string">"IllegalArgumentException must have been thrown"</span>);
 <a class="jxr_linenumber" name="290" href="#290">290</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> IllegalArgumentException ex) {
 <a class="jxr_linenumber" name="291" href="#291">291</a>             <em class="jxr_comment">// expected</em>
 <a class="jxr_linenumber" name="292" href="#292">292</a>         }
-<a class="jxr_linenumber" name="293" href="#293">293</a>     }
-<a class="jxr_linenumber" name="294" href="#294">294</a> 
-<a class="jxr_linenumber" name="295" href="#295">295</a> }
-<a class="jxr_linenumber" name="296" href="#296">296</a> 
+<a class="jxr_linenumber" name="293" href="#293">293</a>         <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="294" href="#294">294</a>             cookiespec.parse(<strong class="jxr_keyword">new</strong> BasicHeader(<span class="jxr_string">"Set-Cookie"</span>, <span class="jxr_string">"name=value"</span>), <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="295" href="#295">295</a>             Assert.fail(<span class="jxr_string">"IllegalArgumentException must have been thrown"</span>);
+<a class="jxr_linenumber" name="296" href="#296">296</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> IllegalArgumentException ex) {
+<a class="jxr_linenumber" name="297" href="#297">297</a>             <em class="jxr_comment">// expected</em>
+<a class="jxr_linenumber" name="298" href="#298">298</a>         }
+<a class="jxr_linenumber" name="299" href="#299">299</a>         <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="300" href="#300">300</a>             cookiespec.formatCookies(<strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="301" href="#301">301</a>             Assert.fail(<span class="jxr_string">"IllegalArgumentException must have been thrown"</span>);
+<a class="jxr_linenumber" name="302" href="#302">302</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> IllegalArgumentException ex) {
+<a class="jxr_linenumber" name="303" href="#303">303</a>             <em class="jxr_comment">// expected</em>
+<a class="jxr_linenumber" name="304" href="#304">304</a>         }
+<a class="jxr_linenumber" name="305" href="#305">305</a>         <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="306" href="#306">306</a>             <strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies = <strong class="jxr_keyword">new</strong> ArrayList&lt;Cookie&gt;();
+<a class="jxr_linenumber" name="307" href="#307">307</a>             cookiespec.formatCookies(cookies);
+<a class="jxr_linenumber" name="308" href="#308">308</a>             Assert.fail(<span class="jxr_string">"IllegalArgumentException must have been thrown"</span>);
+<a class="jxr_linenumber" name="309" href="#309">309</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> IllegalArgumentException ex) {
+<a class="jxr_linenumber" name="310" href="#310">310</a>             <em class="jxr_comment">// expected</em>
+<a class="jxr_linenumber" name="311" href="#311">311</a>         }
+<a class="jxr_linenumber" name="312" href="#312">312</a>     }
+<a class="jxr_linenumber" name="313" href="#313">313</a> 
+<a class="jxr_linenumber" name="314" href="#314">314</a> }
+<a class="jxr_linenumber" name="315" href="#315">315</a> 
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/package-frame.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/package-frame.html?rev=1637120&r1=1637119&r2=1637120&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/package-frame.html (original)
+++ httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/package-frame.html Thu Nov  6 14:29:37 2014
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpClient 4.3.5 Reference Package org.apache.http.impl.cookie</title>
+		<title>Apache HttpClient 4.3.6 Reference Package org.apache.http.impl.cookie</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/package-summary.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/package-summary.html?rev=1637120&r1=1637119&r2=1637120&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/package-summary.html (original)
+++ httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/cookie/package-summary.html Thu Nov  6 14:29:37 2014
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpClient 4.3.5 Reference Package org.apache.http.impl.cookie</title>
+		<title>Apache HttpClient 4.3.6 Reference Package org.apache.http.impl.cookie</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/execchain/package-frame.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/execchain/package-frame.html?rev=1637120&r1=1637119&r2=1637120&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/execchain/package-frame.html (original)
+++ httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/execchain/package-frame.html Thu Nov  6 14:29:37 2014
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpClient 4.3.5 Reference Package org.apache.http.impl.execchain</title>
+		<title>Apache HttpClient 4.3.6 Reference Package org.apache.http.impl.execchain</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/execchain/package-summary.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/execchain/package-summary.html?rev=1637120&r1=1637119&r2=1637120&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/execchain/package-summary.html (original)
+++ httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref-test/org/apache/http/impl/execchain/package-summary.html Thu Nov  6 14:29:37 2014
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpClient 4.3.5 Reference Package org.apache.http.impl.execchain</title>
+		<title>Apache HttpClient 4.3.6 Reference Package org.apache.http.impl.execchain</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>



Mime
View raw message