testWebSocketServerProtocolHandshakeHandlerReplacedBeforeHandshake() — netty Function Reference
Architecture documentation for the testWebSocketServerProtocolHandshakeHandlerReplacedBeforeHandshake() function in WebSocketServerProtocolHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f515d385_d4a3_a1fe_bca9_82e54f5a5af3["testWebSocketServerProtocolHandshakeHandlerReplacedBeforeHandshake()"] 7afc952d_7109_096b_f81d_bf3293e37581["WebSocketServerProtocolHandlerTest"] f515d385_d4a3_a1fe_bca9_82e54f5a5af3 -->|defined in| 7afc952d_7109_096b_f81d_bf3293e37581 a1104de5_2bbb_85ab_c04d_82d6bf5a5b4e["writeUpgradeRequest()"] f515d385_d4a3_a1fe_bca9_82e54f5a5af3 -->|calls| a1104de5_2bbb_85ab_c04d_82d6bf5a5b4e style f515d385_d4a3_a1fe_bca9_82e54f5a5af3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java lines 87–107
@Test
public void testWebSocketServerProtocolHandshakeHandlerReplacedBeforeHandshake() {
EmbeddedChannel ch = createChannel(new MockOutboundHandler());
ChannelHandlerContext handshakerCtx = ch.pipeline().context(WebSocketServerProtocolHandshakeHandler.class);
ch.pipeline().addLast(new ChannelInboundHandlerAdapter() {
@Override
public void userEventTriggered(ChannelHandlerContext ctx, Object evt) {
if (evt instanceof WebSocketServerProtocolHandler.HandshakeComplete) {
// We should have removed the handler already.
assertNull(ctx.pipeline().context(WebSocketServerProtocolHandshakeHandler.class));
}
}
});
writeUpgradeRequest(ch);
FullHttpResponse response = responses.remove();
assertEquals(SWITCHING_PROTOCOLS, response.status());
response.release();
assertNotNull(WebSocketServerProtocolHandler.getHandshaker(handshakerCtx.channel()));
assertFalse(ch.finish());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testWebSocketServerProtocolHandshakeHandlerReplacedBeforeHandshake() do?
testWebSocketServerProtocolHandshakeHandlerReplacedBeforeHandshake() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java.
Where is testWebSocketServerProtocolHandshakeHandlerReplacedBeforeHandshake() defined?
testWebSocketServerProtocolHandshakeHandlerReplacedBeforeHandshake() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java at line 87.
What does testWebSocketServerProtocolHandshakeHandlerReplacedBeforeHandshake() call?
testWebSocketServerProtocolHandshakeHandlerReplacedBeforeHandshake() calls 1 function(s): writeUpgradeRequest.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free