View Javadoc
1   /*
2    * ====================================================================
3    * Licensed to the Apache Software Foundation (ASF) under one
4    * or more contributor license agreements.  See the NOTICE file
5    * distributed with this work for additional information
6    * regarding copyright ownership.  The ASF licenses this file
7    * to you under the Apache License, Version 2.0 (the
8    * "License"); you may not use this file except in compliance
9    * with the License.  You may obtain a copy of the License at
10   *
11   *   http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing,
14   * software distributed under the License is distributed on an
15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16   * KIND, either express or implied.  See the License for the
17   * specific language governing permissions and limitations
18   * under the License.
19   * ====================================================================
20   *
21   * This software consists of voluntary contributions made by many
22   * individuals on behalf of the Apache Software Foundation.  For more
23   * information on the Apache Software Foundation, please see
24   * <http://www.apache.org/>.
25   *
26   */
27  package org.apache.hc.client5.testing.sync;
28  
29  import org.apache.hc.core5.http.URIScheme;
30  import org.junit.jupiter.api.DisplayName;
31  import org.junit.jupiter.api.Nested;
32  
33  public class HttpIntegrationTests {
34  
35      @Nested
36      @DisplayName("Request execution (HTTP/1.1)")
37      public class RequestExecution extends TestClientRequestExecution {
38  
39          public RequestExecution() throws Exception {
40              super(URIScheme.HTTP);
41          }
42  
43      }
44  
45      @Nested
46      @DisplayName("Request execution (HTTP/1.1, TLS)")
47      public class RequestExecutionTls extends TestClientRequestExecution {
48  
49          public RequestExecutionTls() throws Exception {
50              super(URIScheme.HTTPS);
51          }
52  
53      }
54  
55      @Nested
56      @DisplayName("Authentication (HTTP/1.1)")
57      public class Authentication extends TestClientAuthentication {
58  
59          public Authentication() throws Exception {
60              super(URIScheme.HTTP);
61          }
62  
63      }
64  
65      @Nested
66      @DisplayName("Authentication (HTTP/1.1, TLS)")
67      public class AuthenticationTls extends TestClientAuthentication {
68  
69          public AuthenticationTls() throws Exception {
70              super(URIScheme.HTTPS);
71          }
72  
73      }
74  
75      @Nested
76      @DisplayName("Content coding (HTTP/1.1)")
77      public class ContentCoding extends TestContentCodings {
78  
79          public ContentCoding() throws Exception {
80              super(URIScheme.HTTP);
81          }
82  
83      }
84  
85      @Nested
86      @DisplayName("Content coding (HTTP/1.1, TLS)")
87      public class ContentCodingTls extends TestContentCodings {
88  
89          public ContentCodingTls() throws Exception {
90              super(URIScheme.HTTPS);
91          }
92  
93      }
94  
95      @Nested
96      @DisplayName("Redirects (HTTP/1.1)")
97      public class Redirects extends TestRedirects {
98  
99          public Redirects() throws Exception {
100             super(URIScheme.HTTP);
101         }
102 
103     }
104 
105     @Nested
106     @DisplayName("Redirects (HTTP/1.1, TLS)")
107     public class RedirectsTls extends TestRedirects {
108 
109         public RedirectsTls() throws Exception {
110             super(URIScheme.HTTPS);
111         }
112 
113     }
114 
115 }