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 |
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
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
Copyright © 2017. All rights reserved.