public abstract class ServerWebSocketTest extends Object
ServerWebSocket.| Modifier and Type | Class and Description |
|---|---|
protected class |
ServerWebSocketTest.Performer |
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.Timeout |
globalTimeout |
protected ServerWebSocketTest.Performer |
performer |
protected int |
port |
| Constructor and Description |
|---|
ServerWebSocketTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
void |
close_idempotent() |
void |
close() |
void |
onbinary() |
void |
onclose_by_client() |
void |
onclose_by_server() |
void |
ontext_and_onbinary() |
void |
ontext() |
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 |
uri() |
public org.junit.rules.Timeout globalTimeout
protected ServerWebSocketTest.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 ontext()
public void onbinary()
public void ontext_and_onbinary()
public void onclose_by_server()
public void onclose_by_client()
Copyright 2015, The Cettia Project