test/jdk/java/net/httpclient/http2/ContinuationFrameTest.java
branchhttp-client-branch
changeset 56265 ec34ae013fbe
parent 56167 96fa4f49a9ff
child 56451 9585061fdb04
equal deleted inserted replaced
56264:c012b93297b0 56265:ec34ae013fbe
   161     public void setup() throws Exception {
   161     public void setup() throws Exception {
   162         sslContext = new SimpleSSLContext().get();
   162         sslContext = new SimpleSSLContext().get();
   163         if (sslContext == null)
   163         if (sslContext == null)
   164             throw new AssertionError("Unexpected null sslContext");
   164             throw new AssertionError("Unexpected null sslContext");
   165 
   165 
   166         http2TestServer = new Http2TestServer("127.0.0.1", false, 0);
   166         http2TestServer = new Http2TestServer("localhost", false, 0);
   167         http2TestServer.addHandler(new Http2EchoHandler(), "/http2/echo");
   167         http2TestServer.addHandler(new Http2EchoHandler(), "/http2/echo");
   168         int port = http2TestServer.getAddress().getPort();
   168         int port = http2TestServer.getAddress().getPort();
   169         http2URI = "http://127.0.0.1:" + port + "/http2/echo";
   169         http2URI = "http://localhost:" + port + "/http2/echo";
   170 
   170 
   171         https2TestServer = new Http2TestServer("127.0.0.1", true, 0);
   171         https2TestServer = new Http2TestServer("localhost", true, 0);
   172         https2TestServer.addHandler(new Http2EchoHandler(), "/https2/echo");
   172         https2TestServer.addHandler(new Http2EchoHandler(), "/https2/echo");
   173         port = https2TestServer.getAddress().getPort();
   173         port = https2TestServer.getAddress().getPort();
   174         https2URI = "https://127.0.0.1:" + port + "/https2/echo";
   174         https2URI = "https://localhost:" + port + "/https2/echo";
   175 
   175 
   176         // Override the default exchange supplier with a custom one to enable
   176         // Override the default exchange supplier with a custom one to enable
   177         // particular test scenarios
   177         // particular test scenarios
   178         http2TestServer.setExchangeSupplier(CFTHttp2TestExchange::new);
   178         http2TestServer.setExchangeSupplier(CFTHttp2TestExchange::new);
   179         https2TestServer.setExchangeSupplier(CFTHttp2TestExchange::new);
   179         https2TestServer.setExchangeSupplier(CFTHttp2TestExchange::new);