testKeyMismatch() — netty Function Reference
Architecture documentation for the testKeyMismatch() function in EpollSocketTcpMd5Test.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 33c4a1f1_08d9_e303_45b6_dae4fcaafca7["testKeyMismatch()"] 4ad7f2f4_20c9_39d9_b4a2_dd9acb80ba6d["EpollSocketTcpMd5Test"] 33c4a1f1_08d9_e303_45b6_dae4fcaafca7 -->|defined in| 4ad7f2f4_20c9_39d9_b4a2_dd9acb80ba6d de3d1602_7245_e829_980d_ec2b06897ef9["handleException()"] 33c4a1f1_08d9_e303_45b6_dae4fcaafca7 -->|calls| de3d1602_7245_e829_980d_ec2b06897ef9 style 33c4a1f1_08d9_e303_45b6_dae4fcaafca7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketTcpMd5Test.java lines 111–133
@Test
public void testKeyMismatch() throws Exception {
try {
server.config().setOption(EpollChannelOption.TCP_MD5SIG,
Collections.<InetAddress, byte[]>singletonMap(NetUtil.LOCALHOST4, SERVER_KEY));
} catch (ChannelException ce) {
handleException(ce);
}
assertThrows(ConnectTimeoutException.class, new Executable() {
@Override
public void execute() throws Throwable {
EpollSocketChannel client = (EpollSocketChannel) new Bootstrap().group(GROUP)
.channel(EpollSocketChannel.class)
.handler(new ChannelInboundHandlerAdapter())
.option(EpollChannelOption.TCP_MD5SIG,
Collections.<InetAddress, byte[]>singletonMap(NetUtil.LOCALHOST4, BAD_KEY))
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 1000)
.connect(server.localAddress()).syncUninterruptibly().channel();
client.close().syncUninterruptibly();
}
});
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testKeyMismatch() do?
testKeyMismatch() is a function in the netty codebase, defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketTcpMd5Test.java.
Where is testKeyMismatch() defined?
testKeyMismatch() is defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketTcpMd5Test.java at line 111.
What does testKeyMismatch() call?
testKeyMismatch() calls 1 function(s): handleException.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free