Commit b51fb269 authored by yihua.huang's avatar yihua.huang

update ut for cookie

parent ff2f588c
...@@ -18,7 +18,7 @@ public class HttpClientDownloaderTest { ...@@ -18,7 +18,7 @@ public class HttpClientDownloaderTest {
@Ignore @Ignore
@Test @Test
public void testCookie() { public void testCookie() {
Site site = Site.me().setDomain("www.diandian.com").addCookie("t", "yct7q7e6v319wpg4cpxqduu5m77lcgix"); Site site = Site.me().setDomain("www.diandian.com").addCookie("t", "43ztv9srfszl99yxv2aumx3zr7el7ybb");
HttpClientDownloader httpClientDownloader = new HttpClientDownloader(); HttpClientDownloader httpClientDownloader = new HttpClientDownloader();
Page download = httpClientDownloader.download(new Request("http://www.diandian.com"), site.toTask()); Page download = httpClientDownloader.download(new Request("http://www.diandian.com"), site.toTask());
Assert.assertTrue(download.getHtml().toString().contains("flashsword30")); Assert.assertTrue(download.getHtml().toString().contains("flashsword30"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment