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
IOException
URISyntaxException
public void query_parameters_moved_to_payload_for_post_request_with_no_payload() throws IOException, URISyntaxException
IOException
URISyntaxException
public void query_parameters_in_uri_for_all_non_post_requests() throws IOException, URISyntaxException
IOException
URISyntaxException
public void query_params_in_uri_for_post_request_with_payload() throws IOException, URISyntaxException
IOException
URISyntaxException
public void get_request_returns_correct_apache_requests() throws IOException, URISyntaxException
IOException
URISyntaxException
public void patch_request_returns_correct_apache_requests() throws IOException, URISyntaxException
IOException
URISyntaxException
public void delete_request_returns_correct_apache_requests() throws IOException, URISyntaxException
IOException
URISyntaxException
public void head_request_returns_correct_apache_requests() throws IOException, URISyntaxException
IOException
URISyntaxException
public void request_has_default_content_type_set_when_not_explicitly_set() throws IOException, URISyntaxException
IOException
URISyntaxException
public void apache_request_has_content_type_set_when_not_explicitly_set() throws IOException, URISyntaxException
IOException
URISyntaxException
public void request_has_no_proxy_config_when_proxy_disabled() throws Exception
Exception
public void request_has_no_proxy_config_when_proxy_auth_disabled() throws Exception
Exception
public void request_has_proxy_config_when_proxy_auth_enabled() throws Exception
Exception
public void request_with_post_and_noRequiresLength_uses_RepeatableHttpEntity() throws IOException, URISyntaxException
IOException
URISyntaxException
public void request_with_post_and_requiresLength_uses_BufferedHttpEntity() throws IOException, URISyntaxException
IOException
URISyntaxException
public void request_with_put_and_streaming_and_noRequiresLength_uses_RepeatableHttpEntity() throws IOException, URISyntaxException
IOException
URISyntaxException
public void request_with_put_and_streaming_and_requiresLength_uses_BufferedHttpEntity() throws IOException, URISyntaxException
IOException
URISyntaxException
public void request_with_put_and_nonStreaming_uses_BufferedHttpEntity() throws IOException, URISyntaxException
IOException
URISyntaxException
Copyright © 2021. All rights reserved.