public abstract class ServerWebSocketTestTemplate extends Object
ServerWebSocket.| Modifier and Type | Class and Description |
|---|---|
protected class |
ServerWebSocketTestTemplate.Performer |
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.Timeout |
globalTimeout |
protected ServerWebSocketTestTemplate.Performer |
performer |
protected int |
port |
| Constructor and Description |
|---|
ServerWebSocketTestTemplate() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
void |
binaryAction() |
void |
close_idempotent() |
void |
close() |
void |
closeAction_by_client() |
void |
closeAction_by_server() |
void |
send_binary() |
void |
send_text_and_binary() |
void |
send_text() |
protected abstract void |
startServer()
Starts the server listening port
port
and if WebSocket's path is /test, create ServerWebSocket
and pass it to performer.serverAction(). |
protected abstract void |
stopServer()
Stops the server started in
startServer(). |
void |
textAction_and_binaryAction() |
void |
textAction() |
void |
uri() |
public org.junit.rules.Timeout globalTimeout
protected ServerWebSocketTestTemplate.Performer performer
protected int port
protected abstract void startServer()
throws Exception
port
and if WebSocket's path is /test, create ServerWebSocket
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 close()
public void close_idempotent()
public void send_text()
public void send_binary()
public void send_text_and_binary()
public void textAction()
public void binaryAction()
public void textAction_and_binaryAction()
public void closeAction_by_server()
public void closeAction_by_client()
Copyright 2014, The Vibe Project