Home / Function/ testInvalidCode() — netty Function Reference

testInvalidCode() — netty Function Reference

Architecture documentation for the testInvalidCode() function in CloseWebSocketFrameTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  843f968c_e696_a2da_3446_43d4a65625a4["testInvalidCode()"]
  2e40898a_0f96_6a9c_3a33_ff2c3c4a8ef0["CloseWebSocketFrameTest"]
  843f968c_e696_a2da_3446_43d4a65625a4 -->|defined in| 2e40898a_0f96_6a9c_3a33_ff2c3c4a8ef0
  522a732b_506f_b6be_4e0b_735f03cd41a9["doTestInvalidCode()"]
  843f968c_e696_a2da_3446_43d4a65625a4 -->|calls| 522a732b_506f_b6be_4e0b_735f03cd41a9
  style 843f968c_e696_a2da_3446_43d4a65625a4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/CloseWebSocketFrameTest.java lines 26–59

    @Test
    void testInvalidCode() {
        doTestInvalidCode(new ThrowableAssert.ThrowingCallable() {

            @Override
            public void call() throws RuntimeException {
                new CloseWebSocketFrame(WebSocketCloseStatus.ABNORMAL_CLOSURE);
            }
        });

        doTestInvalidCode(new ThrowableAssert.ThrowingCallable() {

            @Override
            public void call() throws RuntimeException {
                new CloseWebSocketFrame(WebSocketCloseStatus.ABNORMAL_CLOSURE, "invalid code");
            }
        });

        doTestInvalidCode(new ThrowableAssert.ThrowingCallable() {

            @Override
            public void call() throws RuntimeException {
                new CloseWebSocketFrame(1006, "invalid code");
            }
        });

        doTestInvalidCode(new ThrowableAssert.ThrowingCallable() {

            @Override
            public void call() throws RuntimeException {
                new CloseWebSocketFrame(true, 0, 1006, "invalid code");
            }
        });
    }

Domain

Subdomains

Frequently Asked Questions

What does testInvalidCode() do?
testInvalidCode() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/CloseWebSocketFrameTest.java.
Where is testInvalidCode() defined?
testInvalidCode() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/CloseWebSocketFrameTest.java at line 26.
What does testInvalidCode() call?
testInvalidCode() calls 1 function(s): doTestInvalidCode.

Analyze Your Own Codebase

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

Try Supermodel Free