test/jdk/java/net/httpclient/websocket/WebSocketTest.java
branchhttp-client-branch
changeset 56089 42208b2f224e
parent 56064 255e21e86b99
child 56129 fe88abe462c9
equal deleted inserted replaced
56088:38fac6d0521d 56089:42208b2f224e
    25  * @test
    25  * @test
    26  * @build DummyWebSocketServer
    26  * @build DummyWebSocketServer
    27  * @run testng/othervm -Djdk.httpclient.HttpClient.log=trace WebSocketTest
    27  * @run testng/othervm -Djdk.httpclient.HttpClient.log=trace WebSocketTest
    28  */
    28  */
    29 
    29 
    30 import jdk.incubator.http.WebSocket;
    30 import java.net.http.WebSocket;
    31 import org.testng.annotations.Test;
    31 import org.testng.annotations.Test;
    32 
    32 
    33 import java.io.IOException;
    33 import java.io.IOException;
    34 import java.nio.ByteBuffer;
    34 import java.nio.ByteBuffer;
    35 import java.nio.CharBuffer;
    35 import java.nio.CharBuffer;
    41 import java.util.concurrent.CompletionException;
    41 import java.util.concurrent.CompletionException;
    42 import java.util.concurrent.CompletionStage;
    42 import java.util.concurrent.CompletionStage;
    43 import java.util.concurrent.TimeUnit;
    43 import java.util.concurrent.TimeUnit;
    44 import java.util.concurrent.TimeoutException;
    44 import java.util.concurrent.TimeoutException;
    45 
    45 
    46 import static jdk.incubator.http.HttpClient.newHttpClient;
    46 import static java.net.http.HttpClient.newHttpClient;
    47 import static jdk.incubator.http.WebSocket.NORMAL_CLOSURE;
    47 import static java.net.http.WebSocket.NORMAL_CLOSURE;
    48 import static org.testng.Assert.assertEquals;
    48 import static org.testng.Assert.assertEquals;
    49 import static org.testng.Assert.assertFalse;
    49 import static org.testng.Assert.assertFalse;
    50 import static org.testng.Assert.assertThrows;
    50 import static org.testng.Assert.assertThrows;
    51 import static org.testng.Assert.assertTrue;
    51 import static org.testng.Assert.assertTrue;
    52 import static org.testng.Assert.fail;
    52 import static org.testng.Assert.fail;