Socks5PasswordAuthResponseDecoderTest Class — netty Architecture
Architecture documentation for the Socks5PasswordAuthResponseDecoderTest class in Socks5PasswordAuthResponseDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 499e3669_6646_e9c4_ecd4_7b7b9f1e80f6["Socks5PasswordAuthResponseDecoderTest"] c55a0e26_2225_bc76_3dec_0bae48a2dbca["Socks5PasswordAuthResponseDecoderTest.java"] 499e3669_6646_e9c4_ecd4_7b7b9f1e80f6 -->|defined in| c55a0e26_2225_bc76_3dec_0bae48a2dbca 540c6d2f_7c76_338c_4fd2_7b7007f4ea0e["test()"] 499e3669_6646_e9c4_ecd4_7b7b9f1e80f6 -->|method| 540c6d2f_7c76_338c_4fd2_7b7007f4ea0e 42bbc791_cc21_5e19_4e4b_7a0db2e08552["testSocksCmdResponseDecoder()"] 499e3669_6646_e9c4_ecd4_7b7b9f1e80f6 -->|method| 42bbc791_cc21_5e19_4e4b_7a0db2e08552
Relationship Graph
Source Code
codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5PasswordAuthResponseDecoderTest.java lines 26–45
public class Socks5PasswordAuthResponseDecoderTest {
private static final InternalLogger logger = InternalLoggerFactory.getInstance(
Socks5PasswordAuthResponseDecoderTest.class);
private static void test(Socks5PasswordAuthStatus status) {
logger.debug("Testing Socks5PasswordAuthResponseDecoder with status: " + status);
Socks5PasswordAuthResponse msg = new DefaultSocks5PasswordAuthResponse(status);
EmbeddedChannel embedder = new EmbeddedChannel(new Socks5PasswordAuthResponseDecoder());
Socks5CommonTestUtils.writeFromServerToClient(embedder, msg);
msg = embedder.readInbound();
assertSame(msg.status(), status);
assertNull(embedder.readInbound());
}
@Test
public void testSocksCmdResponseDecoder() {
test(Socks5PasswordAuthStatus.SUCCESS);
test(Socks5PasswordAuthStatus.FAILURE);
}
}
Source
Frequently Asked Questions
What is the Socks5PasswordAuthResponseDecoderTest class?
Socks5PasswordAuthResponseDecoderTest is a class in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5PasswordAuthResponseDecoderTest.java.
Where is Socks5PasswordAuthResponseDecoderTest defined?
Socks5PasswordAuthResponseDecoderTest is defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5PasswordAuthResponseDecoderTest.java at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free