testEmptyBoundAddress() — netty Function Reference
Architecture documentation for the testEmptyBoundAddress() function in DefaultSocks5CommandResponseTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ee4169bb_ae8c_b389_f14c_852cd504f74e["testEmptyBoundAddress()"] e01c7dc8_7557_4308_a80b_72f78a32ae96["DefaultSocks5CommandResponseTest"] ee4169bb_ae8c_b389_f14c_852cd504f74e -->|defined in| e01c7dc8_7557_4308_a80b_72f78a32ae96 449e07db_693f_b642_fc12_ae4f35b98d28["assertByteBufEquals()"] ee4169bb_ae8c_b389_f14c_852cd504f74e -->|calls| 449e07db_693f_b642_fc12_ae4f35b98d28 style ee4169bb_ae8c_b389_f14c_852cd504f74e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java lines 97–116
@Test
public void testEmptyBoundAddress() {
Socks5CommandResponse socks5CmdResponse = new DefaultSocks5CommandResponse(
Socks5CommandStatus.SUCCESS, Socks5AddressType.DOMAIN, "", 80);
assertEquals("", socks5CmdResponse.bndAddr());
assertEquals(80, socks5CmdResponse.bndPort());
ByteBuf buffer = Socks5CommonTestUtils.encodeServer(socks5CmdResponse);
byte[] expected = {
0x05, // version
0x00, // success reply
0x00, // reserved
0x03, // address type domain
0x00, // domain length
0x00, // port
0x50
};
assertByteBufEquals(expected, buffer);
buffer.release();
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does testEmptyBoundAddress() do?
testEmptyBoundAddress() is a function in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java.
Where is testEmptyBoundAddress() defined?
testEmptyBoundAddress() is defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/DefaultSocks5CommandResponseTest.java at line 97.
What does testEmptyBoundAddress() call?
testEmptyBoundAddress() 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