testHandshakeSuccessButNoSslHandler() — netty Function Reference
Architecture documentation for the testHandshakeSuccessButNoSslHandler() function in ApplicationProtocolNegotiationHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d3fa6e91_8963_a1ba_a79e_b4f4011c415a["testHandshakeSuccessButNoSslHandler()"] 6a59c536_b4df_055a_02c9_49ed1745fd53["ApplicationProtocolNegotiationHandlerTest"] d3fa6e91_8963_a1ba_a79e_b4f4011c415a -->|defined in| 6a59c536_b4df_055a_02c9_49ed1745fd53 style d3fa6e91_8963_a1ba_a79e_b4f4011c415a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/ApplicationProtocolNegotiationHandlerTest.java lines 134–151
@Test
public void testHandshakeSuccessButNoSslHandler() {
ChannelHandler alpnHandler = new ApplicationProtocolNegotiationHandler(ApplicationProtocolNames.HTTP_1_1) {
@Override
protected void configurePipeline(ChannelHandlerContext ctx, String protocol) {
fail();
}
};
final EmbeddedChannel channel = new EmbeddedChannel(alpnHandler);
channel.pipeline().fireUserEventTriggered(SslHandshakeCompletionEvent.SUCCESS);
assertNull(channel.pipeline().context(alpnHandler));
assertThrows(IllegalStateException.class, new Executable() {
@Override
public void execute() throws Throwable {
channel.finishAndReleaseAll();
}
});
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testHandshakeSuccessButNoSslHandler() do?
testHandshakeSuccessButNoSslHandler() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/ApplicationProtocolNegotiationHandlerTest.java.
Where is testHandshakeSuccessButNoSslHandler() defined?
testHandshakeSuccessButNoSslHandler() is defined in handler/src/test/java/io/netty/handler/ssl/ApplicationProtocolNegotiationHandlerTest.java at line 134.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free