test() — netty Function Reference
Architecture documentation for the test() function in ProxyHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 4609bb4d_01b0_70fc_f5ab_b05a46b48346["test()"] eabc1d13_7b38_2895_f373_385efd92dbac["FailureTestItem"] 4609bb4d_01b0_70fc_f5ab_b05a46b48346 -->|defined in| eabc1d13_7b38_2895_f373_385efd92dbac 60a5ed94_0116_766a_e8f8_176d65208647["assertProxyHandlers()"] 4609bb4d_01b0_70fc_f5ab_b05a46b48346 -->|calls| 60a5ed94_0116_766a_e8f8_176d65208647 090e8ae4_53fb_bf5d_c36d_b71d6a972d9a["test()"] 4609bb4d_01b0_70fc_f5ab_b05a46b48346 -->|calls| 090e8ae4_53fb_bf5d_c36d_b71d6a972d9a style 4609bb4d_01b0_70fc_f5ab_b05a46b48346 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler-proxy/src/test/java/io/netty/handler/proxy/ProxyHandlerTest.java lines 734–763
@Override
protected void test() throws Exception {
final FailureTestHandler testHandler = new FailureTestHandler();
Bootstrap b = new Bootstrap();
b.group(group);
b.channel(NioSocketChannel.class);
b.resolver(NoopAddressResolverGroup.INSTANCE);
b.handler(new ChannelInitializer<SocketChannel>() {
@Override
protected void initChannel(SocketChannel ch) throws Exception {
ChannelPipeline p = ch.pipeline();
p.addLast(clientHandlers);
p.addLast(new LineBasedFrameDecoder(64));
p.addLast(testHandler);
}
});
boolean finished = b.connect(destination).channel().closeFuture().await(10, TimeUnit.SECONDS);
finished &= testHandler.latch.await(10, TimeUnit.SECONDS);
logger.debug("Recorded exceptions: {}", testHandler.exceptions);
assertProxyHandlers(false);
assertEquals(1, testHandler.exceptions.size());
Throwable e = testHandler.exceptions.poll();
assertInstanceOf(ProxyConnectException.class, e);
assertThat(String.valueOf(e)).contains(expectedMessage);
assertTrue(finished);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test() do?
test() is a function in the netty codebase, defined in handler-proxy/src/test/java/io/netty/handler/proxy/ProxyHandlerTest.java.
Where is test() defined?
test() is defined in handler-proxy/src/test/java/io/netty/handler/proxy/ProxyHandlerTest.java at line 734.
What does test() call?
test() calls 2 function(s): assertProxyHandlers, test.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free