public abstract class ServerHttpExchangeTestTemplate extends Object
ServerHttpExchange.| Modifier and Type | Class and Description |
|---|---|
protected class |
ServerHttpExchangeTestTemplate.Performer |
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.Timeout |
globalTimeout |
protected ServerHttpExchangeTestTemplate.Performer |
performer |
protected int |
port |
| Constructor and Description |
|---|
ServerHttpExchangeTestTemplate() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
void |
bodyAction_with_binary() |
void |
bodyAction_with_text() |
void |
closeAction_abnormal() |
void |
closeAction_request_end_response_end() |
void |
closeAction_response_end_request_end() |
void |
end_binary_data() |
void |
end_text_data_charset() |
void |
end_text_data() |
void |
end() |
void |
header() |
void |
method() |
void |
read_after_end() |
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 ServerHttpExchangeTestTemplate.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 read_after_end()
public void bodyAction_with_text()
public void bodyAction_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 end_text_data()
public void end_text_data_charset()
public void end_binary_data()
public void closeAction_response_end_request_end()
public void closeAction_request_end_response_end()
public void closeAction_abnormal()
Copyright 2014, The Vibe Project