testAddressValidation() — netty Function Reference
Architecture documentation for the testAddressValidation() function in QuicChannelConnectTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ef0f7c2b_b2d8_6fde_6951_0102da03bf87["testAddressValidation()"] 1e1bc485_1969_4537_ef9b_f28971b2f663["QuicChannelConnectTest"] ef0f7c2b_b2d8_6fde_6951_0102da03bf87 -->|defined in| 1e1bc485_1969_4537_ef9b_f28971b2f663 5f0fc68a_3438_a865_1307_d0a3144b2c00["assertState()"] ef0f7c2b_b2d8_6fde_6951_0102da03bf87 -->|calls| 5f0fc68a_3438_a865_1307_d0a3144b2c00 style ef0f7c2b_b2d8_6fde_6951_0102da03bf87 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicChannelConnectTest.java lines 239–264
@ParameterizedTest
@MethodSource("newSslTaskExecutors")
public void testAddressValidation(Executor executor) throws Throwable {
// Bind to something so we can use the port to connect too and so can ensure we really timeout.
DatagramSocket socket = new DatagramSocket();
Channel channel = QuicTestUtils.newClient(QuicTestUtils.newQuicClientBuilder(executor)
.localConnectionIdLength(10));
try {
ChannelStateVerifyHandler verifyHandler = new ChannelStateVerifyHandler();
Future<QuicChannel> future = QuicTestUtils.newQuicChannelBootstrap(channel)
.handler(verifyHandler)
.streamHandler(new ChannelInboundHandlerAdapter())
.remoteAddress(socket.getLocalSocketAddress())
.connectionAddress(QuicConnectionAddress.random(20))
.connect();
Throwable cause = future.await().cause();
assertInstanceOf(IllegalArgumentException.class, cause);
verifyHandler.assertState();
} finally {
socket.close();
// Close the parent Datagram channel as well.
channel.close().sync();
shutdown(executor);
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testAddressValidation() do?
testAddressValidation() is a function in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicChannelConnectTest.java.
Where is testAddressValidation() defined?
testAddressValidation() is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicChannelConnectTest.java at line 239.
What does testAddressValidation() call?
testAddressValidation() calls 1 function(s): assertState.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free