public abstract class ServerHttpExchangeTestBase
extends net.jodah.concurrentunit.ConcurrentTestCase
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.jetty.client.HttpClient |
client |
org.junit.rules.Timeout |
globalTimeout |
protected static String |
TEST_URI |
| Constructor and Description |
|---|
ServerHttpExchangeTestBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
requestAction(Action<ServerHttpExchange> requestAction) |
void |
setUp() |
protected abstract void |
startServer(int port,
Action<ServerHttpExchange> requestAction) |
protected abstract void |
stopServer() |
void |
tearDown() |
void |
testEnd() |
void |
testHeader() |
void |
testMethod() |
void |
testOnbodyWithBinary() |
void |
testOnbodyWithText() |
void |
testOnclose() |
void |
testReadAsBinary() |
void |
testReadAsText() |
void |
testReadAsTextWithCharset() |
void |
testReadBinary() |
void |
testReadText() |
void |
testSetHeader() |
void |
testSetStatus() |
void |
testURI() |
void |
testWriteBinary() |
void |
testWriteText() |
void |
testWriteTextWithCharset() |
protected String |
uri() |
protected String |
uri(String path) |
protected static final String TEST_URI
public org.junit.rules.Timeout globalTimeout
protected org.eclipse.jetty.client.HttpClient client
protected abstract void startServer(int port,
Action<ServerHttpExchange> requestAction)
throws Exception
Exceptionprotected String uri()
protected void requestAction(Action<ServerHttpExchange> requestAction)
public void testReadAsTextWithCharset()
throws Throwable
ThrowableCopyright © 2015–2018. All rights reserved.