Home / Function/ executeProtocolViolationTest() — netty Function Reference

executeProtocolViolationTest() — netty Function Reference

Architecture documentation for the executeProtocolViolationTest() function in WebSocket08EncoderDecoderTest.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  82de8b8e_7786_8b3a_c2e0_97889a7caa9d["executeProtocolViolationTest()"]
  1641b287_2aaf_ce3b_c2c6_654ccc82886d["WebSocket08EncoderDecoderTest"]
  82de8b8e_7786_8b3a_c2e0_97889a7caa9d -->|defined in| 1641b287_2aaf_ce3b_c2c6_654ccc82886d
  1a0bc198_3cbd_937a_5778_4a6c5c16cecf["testWebSocketProtocolViolation()"]
  1a0bc198_3cbd_937a_5778_4a6c5c16cecf -->|calls| 82de8b8e_7786_8b3a_c2e0_97889a7caa9d
  0922f899_084a_8fad_20de_9e770362a721["testBinaryWithLen()"]
  82de8b8e_7786_8b3a_c2e0_97889a7caa9d -->|calls| 0922f899_084a_8fad_20de_9e770362a721
  style 82de8b8e_7786_8b3a_c2e0_97889a7caa9d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java lines 109–125

    private void executeProtocolViolationTest(EmbeddedChannel outChannel, EmbeddedChannel inChannel,
            int testDataLength, WebSocketCloseStatus expectedStatus, String errorMessage) {
        CorruptedWebSocketFrameException corrupted = null;

        try {
            testBinaryWithLen(outChannel, inChannel, testDataLength);
        } catch (CorruptedWebSocketFrameException e) {
            corrupted = e;
        }

        BinaryWebSocketFrame exceedingFrame = inChannel.readInbound();
        assertNull(exceedingFrame);

        assertNotNull(corrupted);
        assertEquals(expectedStatus, corrupted.closeStatus());
        assertEquals(errorMessage, corrupted.getMessage());
    }

Domain

Subdomains

Frequently Asked Questions

What does executeProtocolViolationTest() do?
executeProtocolViolationTest() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java.
Where is executeProtocolViolationTest() defined?
executeProtocolViolationTest() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocket08EncoderDecoderTest.java at line 109.
What does executeProtocolViolationTest() call?
executeProtocolViolationTest() calls 1 function(s): testBinaryWithLen.
What calls executeProtocolViolationTest()?
executeProtocolViolationTest() is called by 1 function(s): testWebSocketProtocolViolation.

Analyze Your Own Codebase

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

Try Supermodel Free