public class TestHttpServer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestHttpServer.RequestProperties |
static class |
TestHttpServer.ResponseProperties |
static class |
TestHttpServer.TestHttpDirective |
| Modifier and Type | Field and Description |
|---|---|
static String |
PROXY_BASIC_AUTH_CHALLENGE |
static String |
PROXY_DIGEST_AUTH_CHALLENGE |
| Modifier and Type | Method and Description |
|---|---|
static TestHttpServer |
create(int port) |
static com.atlassian.utt.matchers.NamedFunction<Map<? extends String,? extends List<String>>,Iterable<? extends String>> |
header(String name) |
static TestHttpServer.ResponseProperties |
proxyAuthChallenge(String challengeHeaderValue) |
static com.atlassian.utt.matchers.NamedFunction<TestHttpServer,Iterable<? extends TestHttpServer.RequestProperties>> |
requests() |
TestHttpServer |
respondIf(org.hamcrest.Matcher<TestHttpServer.RequestProperties> pattern,
TestHttpServer.ResponseProperties r) |
static com.atlassian.utt.matchers.NamedFunction<SimpleHttpResponse,String> |
responseBody() |
static com.atlassian.utt.matchers.NamedFunction<SimpleHttpResponse,Integer> |
responseStatus() |
void |
start() |
static TestHttpServer.ResponseProperties |
status(int status) |
void |
stop() |
public static final String PROXY_BASIC_AUTH_CHALLENGE
public static final String PROXY_DIGEST_AUTH_CHALLENGE
public static TestHttpServer create(int port) throws IOException
IOExceptionpublic void start()
public void stop()
public TestHttpServer respondIf(org.hamcrest.Matcher<TestHttpServer.RequestProperties> pattern, TestHttpServer.ResponseProperties r)
public static TestHttpServer.ResponseProperties status(int status)
public static TestHttpServer.ResponseProperties proxyAuthChallenge(String challengeHeaderValue)
public static com.atlassian.utt.matchers.NamedFunction<TestHttpServer,Iterable<? extends TestHttpServer.RequestProperties>> requests()
public static com.atlassian.utt.matchers.NamedFunction<SimpleHttpResponse,Integer> responseStatus()
public static com.atlassian.utt.matchers.NamedFunction<SimpleHttpResponse,String> responseBody()
Copyright © 2016 Atlassian. All rights reserved.