testThrows0() — netty Function Reference
Architecture documentation for the testThrows0() function in DynamicAddressConnectHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8b733759_d34b_ef40_fa80_1c83f67f36ad["testThrows0()"] 716b5126_d5ff_0b34_3256_65b32f859d4e["DynamicAddressConnectHandlerTest"] 8b733759_d34b_ef40_fa80_1c83f67f36ad -->|defined in| 716b5126_d5ff_0b34_3256_65b32f859d4e adc80fec_9f3a_7718_5632_9821490bf459["testLocalAddressThrows()"] adc80fec_9f3a_7718_5632_9821490bf459 -->|calls| 8b733759_d34b_ef40_fa80_1c83f67f36ad 5db236e0_b350_aecb_8240_53db54052f27["testRemoteAddressThrows()"] 5db236e0_b350_aecb_8240_53db54052f27 -->|calls| 8b733759_d34b_ef40_fa80_1c83f67f36ad style 8b733759_d34b_ef40_fa80_1c83f67f36ad fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/address/DynamicAddressConnectHandlerTest.java lines 81–106
private static void testThrows0(final boolean localThrows) {
final IllegalStateException exception = new IllegalStateException();
EmbeddedChannel channel = new EmbeddedChannel(new DynamicAddressConnectHandler() {
@Override
protected SocketAddress localAddress(
SocketAddress remoteAddress, SocketAddress localAddress) throws Exception {
if (localThrows) {
throw exception;
}
return super.localAddress(remoteAddress, localAddress);
}
@Override
protected SocketAddress remoteAddress(SocketAddress remoteAddress, SocketAddress localAddress)
throws Exception {
if (!localThrows) {
throw exception;
}
return super.remoteAddress(remoteAddress, localAddress);
}
});
assertSame(exception, channel.connect(REMOTE, LOCAL).cause());
assertNotNull(channel.pipeline().get(DynamicAddressConnectHandler.class));
assertFalse(channel.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testThrows0() do?
testThrows0() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/address/DynamicAddressConnectHandlerTest.java.
Where is testThrows0() defined?
testThrows0() is defined in handler/src/test/java/io/netty/handler/address/DynamicAddressConnectHandlerTest.java at line 81.
What calls testThrows0()?
testThrows0() is called by 2 function(s): testLocalAddressThrows, testRemoteAddressThrows.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free