testClientException() — netty Function Reference
Architecture documentation for the testClientException() function in OcspTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 714b3c4f_a755_070f_4ff9_a71450389f6d["testClientException()"] 9135fc19_1676_c0ae_d77a_3a05e26293b5["OcspTest"] 714b3c4f_a755_070f_4ff9_a71450389f6d -->|defined in| 9135fc19_1676_c0ae_d77a_3a05e26293b5 0d5355b0_9553_fd30_216d_bac8a856ac77["testClientExceptionOpenSsl()"] 0d5355b0_9553_fd30_216d_bac8a856ac77 -->|calls| 714b3c4f_a755_070f_4ff9_a71450389f6d 3b81667d_4c2e_3ac7_787c_9c5c8df1490e["testClientExceptionOpenSslRefCnt()"] 3b81667d_4c2e_3ac7_787c_9c5c8df1490e -->|calls| 714b3c4f_a755_070f_4ff9_a71450389f6d 1f8e3aed_e5fe_4e00_c63f_a29c250b6544["OcspTestException()"] 714b3c4f_a755_070f_4ff9_a71450389f6d -->|calls| 1f8e3aed_e5fe_4e00_c63f_a29c250b6544 ec5b0645_61b1_2812_2da8_e1470f0d7d58["newOcspResponse()"] 714b3c4f_a755_070f_4ff9_a71450389f6d -->|calls| ec5b0645_61b1_2812_2da8_e1470f0d7d58 3821d9ad_f922_8022_9adf_f69ae9d2fdb0["handshake()"] 714b3c4f_a755_070f_4ff9_a71450389f6d -->|calls| 3821d9ad_f922_8022_9adf_f69ae9d2fdb0 dc296417_deb8_29c6_8096_10ec88323c40["verify()"] 714b3c4f_a755_070f_4ff9_a71450389f6d -->|calls| dc296417_deb8_29c6_8096_10ec88323c40 style 714b3c4f_a755_070f_4ff9_a71450389f6d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java lines 328–355
private static void testClientException(SslProvider sslProvider) throws Exception {
final AtomicReference<Throwable> causeRef = new AtomicReference<Throwable>();
final CountDownLatch latch = new CountDownLatch(1);
ChannelInboundHandlerAdapter clientHandler = new ChannelInboundHandlerAdapter() {
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
try {
causeRef.set(cause);
} finally {
latch.countDown();
}
}
};
final OcspTestException clientException = new OcspTestException("testClientException");
byte[] response = newOcspResponse();
OcspClientCallback callback = new OcspClientCallback() {
@Override
public boolean verify(byte[] response) throws Exception {
throw clientException;
}
};
handshake(sslProvider, latch, null, response, clientHandler, callback);
assertSame(clientException, causeRef.get());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testClientException() do?
testClientException() is a function in the netty codebase, defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java.
Where is testClientException() defined?
testClientException() is defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java at line 328.
What does testClientException() call?
testClientException() calls 4 function(s): OcspTestException, handshake, newOcspResponse, verify.
What calls testClientException()?
testClientException() is called by 2 function(s): testClientExceptionOpenSsl, testClientExceptionOpenSslRefCnt.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free