Package us.codecraft.webmagic.downloader
Class HttpClientDownloaderTest
- java.lang.Object
-
- us.codecraft.webmagic.downloader.HttpClientDownloaderTest
-
public class HttpClientDownloaderTest extends Object
- Author:
- code4crafer@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
PAGE_ALWAYS_NOT_EXISTS
-
Constructor Summary
Constructors Constructor Description HttpClientDownloaderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
test_disableCookieManagement()
void
test_download_auth_by_SimpleProxyProvider()
void
test_download_binary_content()
void
test_download_fail()
void
test_download_set_charset()
void
test_download_set_request_charset()
void
test_download_when_task_is_null()
void
test_no_task_download()
void
test_selectRequestMethod()
void
test_set_request_cookie()
void
test_set_request_header()
void
test_set_site_cookie()
void
test_set_site_header()
void
testDownloader()
void
testDownloaderInIllegalUrl()
void
testGetHtmlCharset()
-
-
-
Field Detail
-
PAGE_ALWAYS_NOT_EXISTS
public static final String PAGE_ALWAYS_NOT_EXISTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
testDownloader
public void testDownloader()
-
testDownloaderInIllegalUrl
public void testDownloaderInIllegalUrl() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
test_download_fail
public void test_download_fail()
-
test_disableCookieManagement
public void test_disableCookieManagement() throws Exception
- Throws:
Exception
-
test_download_when_task_is_null
public void test_download_when_task_is_null() throws Exception
- Throws:
Exception
-
test_download_auth_by_SimpleProxyProvider
public void test_download_auth_by_SimpleProxyProvider() throws Exception
- Throws:
Exception
-
test_download_binary_content
public void test_download_binary_content() throws Exception
- Throws:
Exception
-
test_download_set_charset
public void test_download_set_charset() throws Exception
- Throws:
Exception
-
test_download_set_request_charset
public void test_download_set_request_charset() throws Exception
- Throws:
Exception
-
test_no_task_download
public void test_no_task_download()
-
-