public abstract class ServerWebSocketTestBase
extends net.jodah.concurrentunit.ConcurrentTestCase
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.jetty.websocket.client.WebSocketClient |
client |
org.junit.rules.Timeout |
globalTimeout |
protected static String |
TEST_URI |
| Constructor and Description |
|---|
ServerWebSocketTestBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
protected abstract void |
startServer(int port,
Action<ServerWebSocket> websocketAction) |
protected abstract void |
stopServer() |
void |
tearDown() |
void |
testClose() |
void |
testOnbinary() |
void |
testOncloseByClient() |
void |
testOncloseByServer() |
void |
testOntext() |
void |
testOntextAndOnbinary() |
void |
testSendBinaryFrame() |
void |
testSendTextFrame() |
void |
testSendTextFrameAndBinaryFrameTogether() |
void |
testURI() |
protected String |
uri() |
protected String |
uri(String path) |
protected void |
websocketAction(Action<ServerWebSocket> websocketAction) |
protected static final String TEST_URI
public org.junit.rules.Timeout globalTimeout
protected org.eclipse.jetty.websocket.client.WebSocketClient client
protected abstract void startServer(int port,
Action<ServerWebSocket> websocketAction)
throws Exception
Exceptionprotected String uri()
protected void websocketAction(Action<ServerWebSocket> websocketAction)
public void testSendTextFrameAndBinaryFrameTogether()
throws Throwable
ThrowableCopyright © 2015–2018. All rights reserved.