testItems() — netty Function Reference
Architecture documentation for the testItems() function in ProxyHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 037d37a2_b859_6ac3_5e21_86c2e4bc7b9f["testItems()"] 9fb79ca3_5f09_8f6d_88de_27949a19edd9["ProxyHandlerTest"] 037d37a2_b859_6ac3_5e21_86c2e4bc7b9f -->|defined in| 9fb79ca3_5f09_8f6d_88de_27949a19edd9 b4995adf_0803_a17f_b450_bb5dcc8cb4ba["SuccessTestItem()"] 037d37a2_b859_6ac3_5e21_86c2e4bc7b9f -->|calls| b4995adf_0803_a17f_b450_bb5dcc8cb4ba 149d12ea_b58d_e515_d43b_6c2e499701fe["FailureTestItem()"] 037d37a2_b859_6ac3_5e21_86c2e4bc7b9f -->|calls| 149d12ea_b58d_e515_d43b_6c2e499701fe ad858555_543c_8dff_96cb_8f50e45eac73["TimeoutTestItem()"] 037d37a2_b859_6ac3_5e21_86c2e4bc7b9f -->|calls| ad858555_543c_8dff_96cb_8f50e45eac73 style 037d37a2_b859_6ac3_5e21_86c2e4bc7b9f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler-proxy/src/test/java/io/netty/handler/proxy/ProxyHandlerTest.java lines 153–481
public static List<Object[]> testItems() {
List<TestItem> items = Arrays.asList(
// HTTP -------------------------------------------------------
new SuccessTestItem(
"Anonymous HTTP proxy: successful connection, AUTO_READ on",
DESTINATION,
true,
new HttpProxyHandler(anonHttpProxy.address())),
new SuccessTestItem(
"Anonymous HTTP proxy: successful connection, AUTO_READ off",
DESTINATION,
false,
new HttpProxyHandler(anonHttpProxy.address())),
new FailureTestItem(
"Anonymous HTTP proxy: rejected connection",
BAD_DESTINATION, "status: 403",
new HttpProxyHandler(anonHttpProxy.address())),
new FailureTestItem(
"HTTP proxy: rejected anonymous connection",
DESTINATION, "status: 401",
new HttpProxyHandler(httpProxy.address())),
new SuccessTestItem(
"HTTP proxy: successful connection, AUTO_READ on",
DESTINATION,
true,
new HttpProxyHandler(httpProxy.address(), USERNAME, PASSWORD)),
new SuccessTestItem(
"HTTP proxy: successful connection, AUTO_READ off",
DESTINATION,
false,
new HttpProxyHandler(httpProxy.address(), USERNAME, PASSWORD)),
new FailureTestItem(
"HTTP proxy: rejected connection",
BAD_DESTINATION, "status: 403",
new HttpProxyHandler(httpProxy.address(), USERNAME, PASSWORD)),
new FailureTestItem(
"HTTP proxy: authentication failure",
DESTINATION, "status: 401",
new HttpProxyHandler(httpProxy.address(), BAD_USERNAME, BAD_PASSWORD)),
new TimeoutTestItem(
"HTTP proxy: timeout",
new HttpProxyHandler(deadHttpProxy.address())),
// HTTPS ------------------------------------------------------
new SuccessTestItem(
"Anonymous HTTPS proxy: successful connection, AUTO_READ on",
DESTINATION,
true,
clientSslCtx.newHandler(PooledByteBufAllocator.DEFAULT),
new HttpProxyHandler(anonHttpsProxy.address())),
new SuccessTestItem(
"Anonymous HTTPS proxy: successful connection, AUTO_READ off",
DESTINATION,
false,
clientSslCtx.newHandler(PooledByteBufAllocator.DEFAULT),
new HttpProxyHandler(anonHttpsProxy.address())),
new FailureTestItem(
"Anonymous HTTPS proxy: rejected connection",
BAD_DESTINATION, "status: 403",
clientSslCtx.newHandler(PooledByteBufAllocator.DEFAULT),
new HttpProxyHandler(anonHttpsProxy.address())),
new FailureTestItem(
"HTTPS proxy: rejected anonymous connection",
DESTINATION, "status: 401",
clientSslCtx.newHandler(PooledByteBufAllocator.DEFAULT),
new HttpProxyHandler(httpsProxy.address())),
Domain
Subdomains
Source
Frequently Asked Questions
What does testItems() do?
testItems() is a function in the netty codebase, defined in handler-proxy/src/test/java/io/netty/handler/proxy/ProxyHandlerTest.java.
Where is testItems() defined?
testItems() is defined in handler-proxy/src/test/java/io/netty/handler/proxy/ProxyHandlerTest.java at line 153.
What does testItems() call?
testItems() calls 3 function(s): FailureTestItem, SuccessTestItem, TimeoutTestItem.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free