Home / Function/ testEmptyDomain() — netty Function Reference

testEmptyDomain() — netty Function Reference

Architecture documentation for the testEmptyDomain() function in DefaultSocks5CommandResponseTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  31c5ad72_9dd2_9cca_34db_99d364adc3cd["testEmptyDomain()"]
  e01c7dc8_7557_4308_a80b_72f78a32ae96["DefaultSocks5CommandResponseTest"]
  31c5ad72_9dd2_9cca_34db_99d364adc3cd -->|defined in| e01c7dc8_7557_4308_a80b_72f78a32ae96
  449e07db_693f_b642_fc12_ae4f35b98d28["assertByteBufEquals()"]
  31c5ad72_9dd2_9cca_34db_99d364adc3cd -->|calls| 449e07db_693f_b642_fc12_ae4f35b98d28
  style 31c5ad72_9dd2_9cca_34db_99d364adc3cd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java lines 46–65

    @Test
    public void testEmptyDomain() {
        Socks5CommandResponse socks5CmdResponse = new DefaultSocks5CommandResponse(
                Socks5CommandStatus.SUCCESS, Socks5AddressType.DOMAIN);
        assertNull(socks5CmdResponse.bndAddr());
        assertEquals(0, socks5CmdResponse.bndPort());

        ByteBuf buffer = Socks5CommonTestUtils.encodeServer(socks5CmdResponse);
        byte[] expected = {
                0x05, // version
                0x00, // success reply
                0x00, // reserved
                0x03, // address type domain
                0x00, // length of domain
                0x00, // port value
                0x00
        };
        assertByteBufEquals(expected, buffer);
        buffer.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testEmptyDomain() do?
testEmptyDomain() is a function in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java.
Where is testEmptyDomain() defined?
testEmptyDomain() is defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java at line 46.
What does testEmptyDomain() call?
testEmptyDomain() calls 1 function(s): assertByteBufEquals.

Analyze Your Own Codebase

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

Try Supermodel Free