1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 package org.apache.hc.core5.testing.nio;
29
30 import org.apache.hc.core5.http.URIScheme;
31 import org.junit.jupiter.api.Disabled;
32 import org.junit.jupiter.api.DisplayName;
33 import org.junit.jupiter.api.Nested;
34
35 public class HttpIntegrationTests {
36
37 @Nested
38 @DisplayName("Core transport (HTTP/1.1)")
39 public class CoreTransport extends Http1CoreTransportTest {
40
41 public CoreTransport() {
42 super(URIScheme.HTTP);
43 }
44
45 }
46
47 @Nested
48 @DisplayName("Core transport (HTTP/1.1, TLS)")
49 public class CoreTransportTls extends Http1CoreTransportTest {
50
51 public CoreTransportTls() {
52 super(URIScheme.HTTPS);
53 }
54
55 }
56
57 @Nested
58 @DisplayName("Core transport (H2)")
59 public class CoreTransportH2 extends H2CoreTransportTest {
60
61 public CoreTransportH2() {
62 super(URIScheme.HTTP);
63 }
64
65 }
66
67 @Nested
68 @DisplayName("Core transport (H2, TLS)")
69 public class CoreTransportH2Tls extends H2CoreTransportTest {
70
71 public CoreTransportH2Tls() {
72 super(URIScheme.HTTPS);
73 }
74
75 }
76
77 @Nested
78 @DisplayName("Core transport (H2, multiplexing)")
79 public class CoreTransportH2Multiplexing extends H2CoreTransportMultiplexingTest {
80
81 public CoreTransportH2Multiplexing() {
82 super(URIScheme.HTTP);
83 }
84
85 }
86
87 @Nested
88 @DisplayName("Core transport (H2, multiplexing, TLS)")
89 public class CoreTransportH2MultiplexingTls extends H2CoreTransportMultiplexingTest {
90
91 public CoreTransportH2MultiplexingTls() {
92 super(URIScheme.HTTPS);
93 }
94
95 }
96
97 @Nested
98 @DisplayName("Server filters")
99 public class HttpFilters extends AsyncServerBootstrapFilterTest {
100
101 public HttpFilters() {
102 super();
103 }
104
105 }
106
107 @Nested
108 @DisplayName("H2 Server filters")
109 public class H2Filters extends H2ServerBootstrapFiltersTest {
110
111 public H2Filters() {
112 super();
113 }
114
115 }
116
117 @Nested
118 @DisplayName("Authentication")
119 public class Authentication extends Http1AuthenticationTest {
120
121 public Authentication() {
122 super(false);
123 }
124
125 }
126
127 @Nested
128 @DisplayName("Authentication (immediate response)")
129 public class AuthenticationImmediateResponse extends Http1AuthenticationTest {
130
131 public AuthenticationImmediateResponse() {
132 super(true);
133 }
134
135 }
136
137 @Nested
138 @DisplayName("Core transport (HTTP/1.1, SOCKS)")
139 public class CoreTransportSocksProxy extends Http1SocksProxyCoreTransportTest {
140
141 public CoreTransportSocksProxy() {
142 super(URIScheme.HTTP);
143 }
144
145 }
146
147 @Nested
148 @DisplayName("Core transport (HTTP/1.1, TLS, SOCKS)")
149 public class CoreTransportSocksProxyTls extends Http1SocksProxyCoreTransportTest {
150
151 public CoreTransportSocksProxyTls() {
152 super(URIScheme.HTTPS);
153 }
154
155 }
156
157 @Nested
158 @DisplayName("Core transport (H2, SOCKS)")
159 public class CoreTransportH2SocksProxy extends H2SocksProxyCoreTransportTest {
160
161 public CoreTransportH2SocksProxy() {
162 super(URIScheme.HTTP);
163 }
164
165 }
166
167 @Nested
168 @DisplayName("Core transport (H2, TLS, SOCKS)")
169 @Disabled("ALPN via SOCKS is presently broken")
170 public class CoreTransportH2SocksProxyTls extends H2SocksProxyCoreTransportTest {
171
172 public CoreTransportH2SocksProxyTls() {
173 super(URIScheme.HTTPS);
174 }
175
176 }
177 }