testHandleTextFrame() — netty Function Reference
Architecture documentation for the testHandleTextFrame() function in WebSocketServerProtocolHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3e43da83_ebd0_8c2d_4db5_151262971455["testHandleTextFrame()"] 7afc952d_7109_096b_f81d_bf3293e37581["WebSocketServerProtocolHandlerTest"] 3e43da83_ebd0_8c2d_4db5_151262971455 -->|defined in| 7afc952d_7109_096b_f81d_bf3293e37581 a1104de5_2bbb_85ab_c04d_82d6bf5a5b4e["writeUpgradeRequest()"] 3e43da83_ebd0_8c2d_4db5_151262971455 -->|calls| a1104de5_2bbb_85ab_c04d_82d6bf5a5b4e style 3e43da83_ebd0_8c2d_4db5_151262971455 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java lines 192–212
@Test
public void testHandleTextFrame() {
CustomTextFrameHandler customTextFrameHandler = new CustomTextFrameHandler();
EmbeddedChannel ch = createChannel(customTextFrameHandler);
writeUpgradeRequest(ch);
FullHttpResponse response = responses.remove();
assertEquals(SWITCHING_PROTOCOLS, response.status());
response.release();
if (ch.pipeline().context(HttpRequestDecoder.class) != null) {
// Removing the HttpRequestDecoder because we are writing a TextWebSocketFrame and thus
// decoding is not necessary.
ch.pipeline().remove(HttpRequestDecoder.class);
}
ch.writeInbound(new TextWebSocketFrame("payload"));
assertEquals("processed: payload", customTextFrameHandler.getContent());
assertFalse(ch.finish());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testHandleTextFrame() do?
testHandleTextFrame() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java.
Where is testHandleTextFrame() defined?
testHandleTextFrame() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java at line 192.
What does testHandleTextFrame() call?
testHandleTextFrame() 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