runCertCompressionTest() — netty Function Reference
Architecture documentation for the runCertCompressionTest() function in OpenSslCertificateCompressionTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 03f43b9a_8720_381a_6b49_75148cbb5e23["runCertCompressionTest()"] 7111b952_7007_d5c2_8ec1_ca1531aba650["OpenSslCertificateCompressionTest"] 03f43b9a_8720_381a_6b49_75148cbb5e23 -->|defined in| 7111b952_7007_d5c2_8ec1_ca1531aba650 ecc05a42_10d4_8814_def3_f08c34c7ba37["testSimple()"] ecc05a42_10d4_8814_def3_f08c34c7ba37 -->|calls| 03f43b9a_8720_381a_6b49_75148cbb5e23 5a075c83_ad27_9143_b9b3_a4dc4f073c26["testServerPriority()"] 5a075c83_ad27_9143_b9b3_a4dc4f073c26 -->|calls| 03f43b9a_8720_381a_6b49_75148cbb5e23 bf4761c9_9124_5790_451e_fe716b0883f8["testServerPriorityReverse()"] bf4761c9_9124_5790_451e_fe716b0883f8 -->|calls| 03f43b9a_8720_381a_6b49_75148cbb5e23 ea524a2c_67ae_b50c_c024_1bfe185fae51["testFailedNegotiation()"] ea524a2c_67ae_b50c_c024_1bfe185fae51 -->|calls| 03f43b9a_8720_381a_6b49_75148cbb5e23 cbc839aa_0653_2312_82b5_0803d9132d54["testAlgoFailure()"] cbc839aa_0653_2312_82b5_0803d9132d54 -->|calls| 03f43b9a_8720_381a_6b49_75148cbb5e23 b917e8d0_9037_a4c1_4074_074df38a7ff9["testAlgoException()"] b917e8d0_9037_a4c1_4074_074df38a7ff9 -->|calls| 03f43b9a_8720_381a_6b49_75148cbb5e23 2a16e92e_f131_81da_847a_0897a58b2197["testTlsLessThan13()"] 2a16e92e_f131_81da_847a_0897a58b2197 -->|calls| 03f43b9a_8720_381a_6b49_75148cbb5e23 45f8d963_ec00_bc4d_d9d7_ab803faa36ce["CertCompressionTestChannelInitializer()"] 03f43b9a_8720_381a_6b49_75148cbb5e23 -->|calls| 45f8d963_ec00_bc4d_d9d7_ab803faa36ce style 03f43b9a_8720_381a_6b49_75148cbb5e23 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateCompressionTest.java lines 314–342
public void runCertCompressionTest(SslContext clientSslContext, SslContext serverSslContext) throws Throwable {
EventLoopGroup group = new MultiThreadIoEventLoopGroup(LocalIoHandler.newFactory());
Promise<Object> clientPromise = group.next().newPromise();
Promise<Object> serverPromise = group.next().newPromise();
try {
ServerBootstrap sb = new ServerBootstrap();
sb.group(group).channel(LocalServerChannel.class)
.childHandler(new CertCompressionTestChannelInitializer(serverPromise, serverSslContext));
Channel serverChannel = sb.bind(new LocalAddress("testCertificateCompression"))
.syncUninterruptibly().channel();
Bootstrap bootstrap = new Bootstrap();
bootstrap.group(group).channel(LocalChannel.class)
.handler(new CertCompressionTestChannelInitializer(clientPromise, clientSslContext));
Channel clientChannel = bootstrap.connect(serverChannel.localAddress()).syncUninterruptibly().channel();
assertTrue(clientPromise.await(5L, TimeUnit.SECONDS), "client timeout");
assertTrue(serverPromise.await(5L, TimeUnit.SECONDS), "server timeout");
clientPromise.sync();
serverPromise.sync();
clientChannel.close().syncUninterruptibly();
serverChannel.close().syncUninterruptibly();
} finally {
group.shutdownGracefully();
ReferenceCountUtil.release(clientSslContext);
ReferenceCountUtil.release(serverSslContext);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does runCertCompressionTest() do?
runCertCompressionTest() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateCompressionTest.java.
Where is runCertCompressionTest() defined?
runCertCompressionTest() is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateCompressionTest.java at line 314.
What does runCertCompressionTest() call?
runCertCompressionTest() calls 1 function(s): CertCompressionTestChannelInitializer.
What calls runCertCompressionTest()?
runCertCompressionTest() is called by 7 function(s): testAlgoException, testAlgoFailure, testFailedNegotiation, testServerPriority, testServerPriorityReverse, testSimple, testTlsLessThan13.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free