testConnectRefused0() — netty Function Reference
Architecture documentation for the testConnectRefused0() function in SocketConnectionAttemptTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 597a5dcd_f95f_ea5d_b03c_ef8ddd345dda["testConnectRefused0()"] c0d6b551_b352_95d7_da6e_f24e2cd37df2["SocketConnectionAttemptTest"] 597a5dcd_f95f_ea5d_b03c_ef8ddd345dda -->|defined in| c0d6b551_b352_95d7_da6e_f24e2cd37df2 f0e1bcb2_7554_4ab6_4eab_9086c4ac2b25["testConnectRefused()"] f0e1bcb2_7554_4ab6_4eab_9086c4ac2b25 -->|calls| 597a5dcd_f95f_ea5d_b03c_ef8ddd345dda 055ea41d_c704_d771_8df3_59063587df6a["testConnectRefusedHalfClosure()"] 055ea41d_c704_d771_8df3_59063587df6a -->|calls| 597a5dcd_f95f_ea5d_b03c_ef8ddd345dda style 597a5dcd_f95f_ea5d_b03c_ef8ddd345dda fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketConnectionAttemptTest.java lines 103–117
private static void testConnectRefused0(Bootstrap cb, boolean halfClosure) throws Throwable {
final Promise<Error> errorPromise = GlobalEventExecutor.INSTANCE.newPromise();
ChannelHandler handler = new ChannelInboundHandlerAdapter() {
@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
errorPromise.setFailure(new AssertionError("should have never been called"));
}
};
cb.handler(handler);
cb.option(ChannelOption.ALLOW_HALF_CLOSURE, halfClosure);
ChannelFuture future = cb.connect(NetUtil.LOCALHOST, UNASSIGNED_PORT).awaitUninterruptibly();
assertInstanceOf(ConnectException.class, future.cause());
assertNull(errorPromise.cause());
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testConnectRefused0() do?
testConnectRefused0() is a function in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketConnectionAttemptTest.java.
Where is testConnectRefused0() defined?
testConnectRefused0() is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketConnectionAttemptTest.java at line 103.
What calls testConnectRefused0()?
testConnectRefused0() is called by 2 function(s): testConnectRefused, testConnectRefusedHalfClosure.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free