public class ApacheDefaultHttpRequestFactoryTest extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static String | CONTENT_TYPE | 
| static String | USER_AGENT | 
| Constructor and Description | 
|---|
| ApacheDefaultHttpRequestFactoryTest() | 
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
Exceptionpublic void request_has_proxy_config_when_proxy_auth_enabled()
                                                      throws Exception
Exceptionpublic void request_with_post_and_noRequiresLength_uses_RepeatableHttpEntity()
                                                                      throws IOException,
                                                                             URISyntaxException
IOExceptionURISyntaxExceptionpublic void request_with_post_and_requiresLength_uses_BufferedHttpEntity()
                                                                  throws IOException,
                                                                         URISyntaxException
IOExceptionURISyntaxExceptionpublic void request_with_put_and_streaming_and_noRequiresLength_uses_RepeatableHttpEntity()
                                                                                   throws IOException,
                                                                                          URISyntaxException
IOExceptionURISyntaxExceptionpublic void request_with_put_and_streaming_and_requiresLength_uses_BufferedHttpEntity()
                                                                               throws IOException,
                                                                                      URISyntaxException
IOExceptionURISyntaxExceptionpublic void request_with_put_and_nonStreaming_uses_BufferedHttpEntity()
                                                               throws IOException,
                                                                      URISyntaxException
IOExceptionURISyntaxExceptionCopyright © 2019. All rights reserved.