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_charset() |
void |
bodyAction() |
void |
close_with_binary_data() |
void |
close_with_text_data() |
void |
close() |
void |
closeAction_by_client() |
void |
closeAction_by_server() |
void |
header() |
void |
method() |
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() |
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 bodyAction()
public void bodyAction_charset()
public void setHeader()
public void write_text()
public void write_binary()
public void close()
public void close_with_text_data()
public void close_with_binary_data()
public void setStatus()
public void closeAction_by_server()
public void closeAction_by_client()
Copyright 2014, The Vibe Project