Home / Function/ testHandshakeFailure() — netty Function Reference

testHandshakeFailure() — netty Function Reference

Architecture documentation for the testHandshakeFailure() function in ApplicationProtocolNegotiationHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f20e5859_2022_cf45_4dd4_e07b2a21202f["testHandshakeFailure()"]
  6a59c536_b4df_055a_02c9_49ed1745fd53["ApplicationProtocolNegotiationHandlerTest"]
  f20e5859_2022_cf45_4dd4_e07b2a21202f -->|defined in| 6a59c536_b4df_055a_02c9_49ed1745fd53
  style f20e5859_2022_cf45_4dd4_e07b2a21202f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/ApplicationProtocolNegotiationHandlerTest.java lines 73–89

    @Test
    public void testHandshakeFailure() {
        ChannelHandler alpnHandler = new ApplicationProtocolNegotiationHandler(ApplicationProtocolNames.HTTP_1_1) {
            @Override
            protected void configurePipeline(ChannelHandlerContext ctx, String protocol) {
                fail();
            }
        };

        EmbeddedChannel channel = new EmbeddedChannel(alpnHandler);
        SSLHandshakeException exception = new SSLHandshakeException("error");
        SslHandshakeCompletionEvent completionEvent = new SslHandshakeCompletionEvent(exception);
        channel.pipeline().fireUserEventTriggered(completionEvent);
        channel.pipeline().fireExceptionCaught(new DecoderException(exception));
        assertNull(channel.pipeline().context(alpnHandler));
        assertFalse(channel.finishAndReleaseAll());
    }

Domain

Subdomains

Frequently Asked Questions

What does testHandshakeFailure() do?
testHandshakeFailure() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/ApplicationProtocolNegotiationHandlerTest.java.
Where is testHandshakeFailure() defined?
testHandshakeFailure() is defined in handler/src/test/java/io/netty/handler/ssl/ApplicationProtocolNegotiationHandlerTest.java at line 73.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free