public class ApacheDefaultHttpRequestFactoryTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE |
static String |
USER_AGENT |
| Constructor and Description |
|---|
ApacheDefaultHttpRequestFactoryTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
apache_request_has_content_type_set_when_not_explicitly_set() |
void |
delete_request_returns_correct_apache_requests() |
static byte[] |
drainInputStream(InputStream inputStream) |
void |
get_request_returns_correct_apache_requests() |
void |
head_request_returns_correct_apache_requests() |
void |
patch_request_returns_correct_apache_requests() |
void |
query_parameters_in_uri_for_all_non_post_requests() |
void |
query_parameters_moved_to_payload_for_post_request_with_no_payload() |
void |
query_params_in_uri_for_post_request_with_payload() |
void |
request_has_default_content_type_set_when_not_explicitly_set() |
void |
request_has_no_proxy_config_when_proxy_auth_disabled() |
void |
request_has_no_proxy_config_when_proxy_disabled() |
void |
request_has_proxy_config_when_proxy_auth_enabled() |
void |
uri_resourcepath_escapes_double_slash() |
public static final String CONTENT_TYPE
public static final String USER_AGENT
public static byte[] drainInputStream(InputStream inputStream)
public void uri_resourcepath_escapes_double_slash()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void query_parameters_moved_to_payload_for_post_request_with_no_payload()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void query_parameters_in_uri_for_all_non_post_requests()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void query_params_in_uri_for_post_request_with_payload()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void get_request_returns_correct_apache_requests()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void patch_request_returns_correct_apache_requests()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void delete_request_returns_correct_apache_requests()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void head_request_returns_correct_apache_requests()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void request_has_default_content_type_set_when_not_explicitly_set()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void apache_request_has_content_type_set_when_not_explicitly_set()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void request_has_no_proxy_config_when_proxy_disabled()
throws Exception
Exceptionpublic void request_has_no_proxy_config_when_proxy_auth_disabled()
throws Exception
ExceptionCopyright © 2019. All rights reserved.