testRemoval() — netty Function Reference
Architecture documentation for the testRemoval() function in SslHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 116066b2_1631_bd73_c00b_92767769969d["testRemoval()"] adaf7dc7_94e2_152f_ffdb_453fdaa4f25e["SslHandlerTest"] 116066b2_1631_bd73_c00b_92767769969d -->|defined in| adaf7dc7_94e2_152f_ffdb_453fdaa4f25e style 116066b2_1631_bd73_c00b_92767769969d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java lines 469–504
@Test
@Timeout(value = 30000, unit = TimeUnit.MILLISECONDS)
public void testRemoval() throws Exception {
EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
Channel sc = null;
Channel cc = null;
try {
final Promise<Void> clientPromise = group.next().newPromise();
Bootstrap bootstrap = new Bootstrap()
.group(group)
.channel(NioSocketChannel.class)
.handler(newHandler(SslContextBuilder.forClient().trustManager(
InsecureTrustManagerFactory.INSTANCE).build(), clientPromise));
SelfSignedCertificate ssc = CachedSelfSignedCertificate.getCachedCertificate();
final Promise<Void> serverPromise = group.next().newPromise();
ServerBootstrap serverBootstrap = new ServerBootstrap()
.group(group)
.channel(NioServerSocketChannel.class)
.childHandler(newHandler(SslContextBuilder.forServer(ssc.certificate(), ssc.privateKey()).build(),
serverPromise));
sc = serverBootstrap.bind(new InetSocketAddress(0)).syncUninterruptibly().channel();
cc = bootstrap.connect(sc.localAddress()).syncUninterruptibly().channel();
serverPromise.syncUninterruptibly();
clientPromise.syncUninterruptibly();
} finally {
if (cc != null) {
cc.close().syncUninterruptibly();
}
if (sc != null) {
sc.close().syncUninterruptibly();
}
group.shutdownGracefully();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testRemoval() do?
testRemoval() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java.
Where is testRemoval() defined?
testRemoval() is defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java at line 469.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free