diff options
author | mikaelpeltier <mikaelpeltier@google.com> | 2015-06-24 14:31:11 +0200 |
---|---|---|
committer | Mikael Peltier <mikaelpeltier@google.com> | 2015-06-24 14:59:36 +0000 |
commit | 04563874ddaac702d6c715eaa89c29b253f4c54e (patch) | |
tree | c305fa98670c3e80be494cc054a8e31b51bfe7f2 /simple/simple-http/src/test/java/org/simpleframework/http/parse/CookieParserTest.java | |
parent | f1828481ebcfee3bddc323fca178a4502a60ceef (diff) | |
download | toolchain_jack-04563874ddaac702d6c715eaa89c29b253f4c54e.zip toolchain_jack-04563874ddaac702d6c715eaa89c29b253f4c54e.tar.gz toolchain_jack-04563874ddaac702d6c715eaa89c29b253f4c54e.tar.bz2 |
Add simpleframework source files
Change-Id: I18d01df16de2868ca5458f79a88e6070b75db2c3
(cherry picked from commit 3e9f84cf7b22f6970eb8041ca38d12d75c6bb270)
Diffstat (limited to 'simple/simple-http/src/test/java/org/simpleframework/http/parse/CookieParserTest.java')
-rw-r--r-- | simple/simple-http/src/test/java/org/simpleframework/http/parse/CookieParserTest.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/simple/simple-http/src/test/java/org/simpleframework/http/parse/CookieParserTest.java b/simple/simple-http/src/test/java/org/simpleframework/http/parse/CookieParserTest.java new file mode 100644 index 0000000..9c0c7b8 --- /dev/null +++ b/simple/simple-http/src/test/java/org/simpleframework/http/parse/CookieParserTest.java @@ -0,0 +1,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); + } + } + +} |