testCreateUTF8Validator() — netty Function Reference
Architecture documentation for the testCreateUTF8Validator() function in WebSocketServerProtocolHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bccac56d_f218_d352_47bd_9f365425b97c["testCreateUTF8Validator()"] 7afc952d_7109_096b_f81d_bf3293e37581["WebSocketServerProtocolHandlerTest"] bccac56d_f218_d352_47bd_9f365425b97c -->|defined in| 7afc952d_7109_096b_f81d_bf3293e37581 80f33c2c_3b4b_5696_fbad_e6b9f93bb80d["EmbeddedChannel()"] bccac56d_f218_d352_47bd_9f365425b97c -->|calls| 80f33c2c_3b4b_5696_fbad_e6b9f93bb80d a1104de5_2bbb_85ab_c04d_82d6bf5a5b4e["writeUpgradeRequest()"] bccac56d_f218_d352_47bd_9f365425b97c -->|calls| a1104de5_2bbb_85ab_c04d_82d6bf5a5b4e style bccac56d_f218_d352_47bd_9f365425b97c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java lines 150–169
@Test
public void testCreateUTF8Validator() {
WebSocketServerProtocolConfig config = WebSocketServerProtocolConfig.newBuilder()
.websocketPath("/test")
.withUTF8Validator(true)
.build();
EmbeddedChannel ch = new EmbeddedChannel(
new WebSocketServerProtocolHandler(config),
new HttpRequestDecoder(),
new HttpResponseEncoder(),
new MockOutboundHandler());
writeUpgradeRequest(ch);
FullHttpResponse response = responses.remove();
assertEquals(SWITCHING_PROTOCOLS, response.status());
response.release();
assertNotNull(ch.pipeline().get(Utf8FrameValidator.class));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testCreateUTF8Validator() do?
testCreateUTF8Validator() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java.
Where is testCreateUTF8Validator() defined?
testCreateUTF8Validator() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java at line 150.
What does testCreateUTF8Validator() call?
testCreateUTF8Validator() calls 2 function(s): EmbeddedChannel, writeUpgradeRequest.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free