public abstract class ServerHttpExchangeTest extends Object
ServerHttpExchange.| Modifier and Type | Class and Description |
|---|---|
protected class |
ServerHttpExchangeTest.Performer |
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.Timeout |
globalTimeout |
protected ServerHttpExchangeTest.Performer |
performer |
protected int |
port |
| Constructor and Description |
|---|
ServerHttpExchangeTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
void |
end() |
void |
header() |
void |
method() |
void |
onbody_with_binary() |
void |
onbody_with_text() |
void |
onclose() |
void |
read_binary() |
void |
read_text() |
void |
readAsBinary() |
void |
readAsText_charset() |
void |
readAsText() |
void |
setHeader() |
void |
setStatus() |
protected abstract void |
startServer()
Starts the server listening port
port and if HTTP request's path is
/test, create ServerHttpExchange and pass it to
performer.serverAction(). |
protected abstract void |
stopServer()
Stops the server started in
startServer(). |
void |
uri() |
void |
write_binary() |
void |
write_text_charset() |
void |
write_text() |
public org.junit.rules.Timeout globalTimeout
protected ServerHttpExchangeTest.Performer performer
protected int port
protected abstract void startServer()
throws Exception
port and if HTTP request's path is
/test, create ServerHttpExchange and pass it to
performer.serverAction(). This method is executed following
Before.Exceptionprotected abstract void stopServer()
throws Exception
startServer(). This method is
executed following After.Exceptionpublic void uri()
public void method()
public void header()
public void read_text()
public void readAsText()
public void readAsText_charset()
public void read_binary()
public void readAsBinary()
public void onbody_with_text()
public void onbody_with_binary()
public void setStatus()
public void setHeader()
public void write_text()
public void write_text_charset()
public void write_binary()
public void end()
public void onclose()
Copyright 2015, The Cettia Project