Home / Function/ testNormalHandshake() — netty Function Reference

testNormalHandshake() — netty Function Reference

Architecture documentation for the testNormalHandshake() function in DeflateFrameServerExtensionHandshakerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  90748bca_97ba_ea47_a858_6d57e47ccf62["testNormalHandshake()"]
  72f9a623_87f4_09b4_3dcc_f020aa83b147["DeflateFrameServerExtensionHandshakerTest"]
  90748bca_97ba_ea47_a858_6d57e47ccf62 -->|defined in| 72f9a623_87f4_09b4_3dcc_f020aa83b147
  style 90748bca_97ba_ea47_a858_6d57e47ccf62 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/DeflateFrameServerExtensionHandshakerTest.java lines 36–52

    @Test
    public void testNormalHandshake() {
        // initialize
        DeflateFrameServerExtensionHandshaker handshaker =
                new DeflateFrameServerExtensionHandshaker(
                        DeflateFrameServerExtensionHandshaker.DEFAULT_COMPRESSION_LEVEL, 0);

        // execute
        WebSocketServerExtension extension = handshaker.handshakeExtension(
                new WebSocketExtensionData(DEFLATE_FRAME_EXTENSION, Collections.<String, String>emptyMap()));

        // test
        assertNotNull(extension);
        assertEquals(WebSocketServerExtension.RSV1, extension.rsv());
        assertTrue(extension.newExtensionDecoder() instanceof PerFrameDeflateDecoder);
        assertTrue(extension.newExtensionEncoder() instanceof PerFrameDeflateEncoder);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free