File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
test/jdk/java/net/httpclient/http3 Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 5050import static java .net .http .HttpOption .Http3DiscoveryMode .HTTP_3_URI_ONLY ;
5151import static java .net .http .HttpRequest .BodyPublishers ;
5252import static java .nio .charset .StandardCharsets .US_ASCII ;
53+ import static jdk .httpclient .test .lib .common .HttpServerAdapters .createClientBuilderForH3 ;
5354import static org .junit .jupiter .api .Assertions .assertEquals ;
5455import static org .junit .jupiter .api .Assertions .assertFalse ;
5556import static org .junit .jupiter .api .Assertions .assertNotNull ;
@@ -100,7 +101,7 @@ static void afterAll() throws Exception {
100101 */
101102 @ Test
102103 void testAlwaysRejected () throws Exception {
103- try (final HttpClient client = HttpClient . newBuilder ()
104+ try (final HttpClient client = createClientBuilderForH3 ()
104105 .sslContext (sslContext ).proxy (NO_PROXY ).version (HTTP_3 )
105106 .build ()) {
106107
@@ -134,7 +135,7 @@ void testAlwaysRejected() throws Exception {
134135 */
135136 @ Test
136137 void testRejectedRequest () throws Exception {
137- try (final HttpClient client = HttpClient . newBuilder ().sslContext (sslContext )
138+ try (final HttpClient client = createClientBuilderForH3 ().sslContext (sslContext )
138139 .proxy (NO_PROXY ).version (HTTP_3 )
139140 .build ()) {
140141
You can’t perform that action at this time.
0 commit comments