public class CommonsHttpTransportTestBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONTENT_STRING |
protected CommonsHttpTransport |
http |
protected SimpleHttpResponse |
resp |
protected com.atlassian.utt.http.TestHttpServer |
server |
protected int |
serverPort |
protected URI |
serverUri |
protected static URI |
TEST_URI |
| Constructor and Description |
|---|
CommonsHttpTransportTestBase() |
| Modifier and Type | Method and Description |
|---|---|
protected HttpConfiguration.Builder |
baseConfig() |
protected org.hamcrest.Matcher<com.atlassian.utt.http.TestHttpServer.RequestProperties> |
hasPostParams() |
protected org.hamcrest.Matcher<com.atlassian.utt.http.TestHttpServer.RequestProperties> |
hasRequestDecoratorHeaders() |
protected byte[] |
makeContent() |
protected com.google.common.collect.Multimap<String,String> |
makeParams() |
protected static com.atlassian.utt.matchers.NamedFunction<SimpleHttpResponse,String> |
responseBody() |
protected static com.atlassian.utt.matchers.NamedFunction<SimpleHttpResponse,Integer> |
responseStatus() |
void |
setup() |
protected RequestDecorator |
simpleRequestDecorator(Map<String,String> headers) |
void |
teardown() |
protected HttpConfiguration.Builder |
withSimpleRequestDecorator(HttpConfiguration.Builder builder) |
protected static final URI TEST_URI
protected static final String CONTENT_STRING
protected int serverPort
protected URI serverUri
protected com.atlassian.utt.http.TestHttpServer server
protected CommonsHttpTransport http
protected SimpleHttpResponse resp
public void teardown()
protected com.google.common.collect.Multimap<String,String> makeParams() throws Exception
Exceptionprotected HttpConfiguration.Builder baseConfig()
protected HttpConfiguration.Builder withSimpleRequestDecorator(HttpConfiguration.Builder builder)
protected RequestDecorator simpleRequestDecorator(Map<String,String> headers)
protected org.hamcrest.Matcher<com.atlassian.utt.http.TestHttpServer.RequestProperties> hasPostParams()
protected org.hamcrest.Matcher<com.atlassian.utt.http.TestHttpServer.RequestProperties> hasRequestDecoratorHeaders()
protected static com.atlassian.utt.matchers.NamedFunction<SimpleHttpResponse,Integer> responseStatus()
protected static com.atlassian.utt.matchers.NamedFunction<SimpleHttpResponse,String> responseBody()
Copyright © 2016 Atlassian. All rights reserved.