test/jdk/java/net/httpclient/websocket/WSHandshakeExceptionTest.java
changeset 49944 4690a2871b44
parent 49765 ee6f7a61f3a5
child 52121 934969c63223
child 56507 2294c51eae30
equal deleted inserted replaced
49943:8e1ed2a15845 49944:4690a2871b44
    49 import java.net.URI;
    49 import java.net.URI;
    50 import java.util.concurrent.CompletionException;
    50 import java.util.concurrent.CompletionException;
    51 import java.util.concurrent.ExecutionException;
    51 import java.util.concurrent.ExecutionException;
    52 import java.util.concurrent.ExecutorService;
    52 import java.util.concurrent.ExecutorService;
    53 import java.util.concurrent.Executors;
    53 import java.util.concurrent.Executors;
       
    54 
       
    55 import static java.net.http.HttpClient.Builder.NO_PROXY;
    54 import static org.testng.Assert.assertEquals;
    56 import static org.testng.Assert.assertEquals;
    55 import static org.testng.Assert.assertNotNull;
    57 import static org.testng.Assert.assertNotNull;
    56 import static org.testng.Assert.fail;
    58 import static org.testng.Assert.fail;
    57 
    59 
    58 public class WSHandshakeExceptionTest {
    60 public class WSHandshakeExceptionTest {
    77         };
    79         };
    78     }
    80     }
    79 
    81 
    80     HttpClient newHttpClient() {
    82     HttpClient newHttpClient() {
    81         return HttpClient.newBuilder()
    83         return HttpClient.newBuilder()
       
    84                          .proxy(NO_PROXY)
    82                          .executor(executor)
    85                          .executor(executor)
    83                          .sslContext(sslContext)
    86                          .sslContext(sslContext)
    84                          .build();
    87                          .build();
    85     }
    88     }
    86 
    89