blob: 9c0c7b8922a8371435cae25205330a75de63962d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package org.simpleframework.http.parse;
import java.util.ArrayList;
import java.util.List;
import junit.framework.TestCase;
import org.simpleframework.http.Cookie;
public class CookieParserTest extends TestCase {
public void testParse() throws Exception {
CookieParser parser = new CookieParser("blackbird={\"pos\": 1, \"size\": 0, \"load\": null}; JSESSIONID=31865d30-e252-4729-ac6f-9abdd1fb9071");
List<Cookie> cookies = new ArrayList<Cookie>();
for(Cookie cookie : parser) {
System.out.println(cookie.toClientString());
cookies.add(cookie);
}
}
}
|