Home / Function/ testNormalSuccess() — netty Function Reference

testNormalSuccess() — netty Function Reference

Architecture documentation for the testNormalSuccess() function in WebSocketServerCompressionHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6cdddcd7_9ce9_ee14_5c01_42a1e1db0bf7["testNormalSuccess()"]
  f04a1df1_c87f_2c9a_6db7_545340c5a3cb["WebSocketServerCompressionHandlerTest"]
  6cdddcd7_9ce9_ee14_5c01_42a1e1db0bf7 -->|defined in| f04a1df1_c87f_2c9a_6db7_545340c5a3cb
  style 6cdddcd7_9ce9_ee14_5c01_42a1e1db0bf7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/WebSocketServerCompressionHandlerTest.java lines 41–59

    @Test
    public void testNormalSuccess() {
        EmbeddedChannel ch = new EmbeddedChannel(new WebSocketServerCompressionHandler(0));

        HttpRequest req = newUpgradeRequest(PERMESSAGE_DEFLATE_EXTENSION);
        ch.writeInbound(req);

        HttpResponse res = newUpgradeResponse(null);
        ch.writeOutbound(res);

        HttpResponse res2 = ch.readOutbound();
        List<WebSocketExtensionData> exts = WebSocketExtensionUtil.extractExtensions(
                res2.headers().get(HttpHeaderNames.SEC_WEBSOCKET_EXTENSIONS));

        assertEquals(PERMESSAGE_DEFLATE_EXTENSION, exts.get(0).name());
        assertTrue(exts.get(0).parameters().isEmpty());
        assertNotNull(ch.pipeline().get(PerMessageDeflateDecoder.class));
        assertNotNull(ch.pipeline().get(PerMessageDeflateEncoder.class));
    }

Domain

Subdomains

Frequently Asked Questions

What does testNormalSuccess() do?
testNormalSuccess() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/WebSocketServerCompressionHandlerTest.java.
Where is testNormalSuccess() defined?
testNormalSuccess() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/WebSocketServerCompressionHandlerTest.java at line 41.

Analyze Your Own Codebase

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

Try Supermodel Free