Home / Class/ SocksAuthResponseDecoderTest Class — netty Architecture

SocksAuthResponseDecoderTest Class — netty Architecture

Architecture documentation for the SocksAuthResponseDecoderTest class in SocksAuthResponseDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3e1f4cae_3e2a_90af_c90b_aa6d0ff9fff7["SocksAuthResponseDecoderTest"]
  43840c71_6329_f096_9c86_b5a329ba05bb["SocksAuthResponseDecoderTest.java"]
  3e1f4cae_3e2a_90af_c90b_aa6d0ff9fff7 -->|defined in| 43840c71_6329_f096_9c86_b5a329ba05bb
  afdf961d_2130_b3c4_50ed_54f2ae7a4de9["testSocksAuthResponseDecoderWithDifferentParams()"]
  3e1f4cae_3e2a_90af_c90b_aa6d0ff9fff7 -->|method| afdf961d_2130_b3c4_50ed_54f2ae7a4de9
  e802d8a9_9ed9_5b53_9b10_493f8f388512["testSocksCmdResponseDecoder()"]
  3e1f4cae_3e2a_90af_c90b_aa6d0ff9fff7 -->|method| e802d8a9_9ed9_5b53_9b10_493f8f388512

Relationship Graph

Source Code

codec-socks/src/test/java/io/netty/handler/codec/socks/SocksAuthResponseDecoderTest.java lines 26–46

public class SocksAuthResponseDecoderTest {
    private static final InternalLogger logger = InternalLoggerFactory.getInstance(SocksAuthResponseDecoderTest.class);

    private static void testSocksAuthResponseDecoderWithDifferentParams(SocksAuthStatus authStatus) {
        logger.debug("Testing SocksAuthResponseDecoder with authStatus: " + authStatus);
        SocksAuthResponse msg = new SocksAuthResponse(authStatus);
        SocksAuthResponseDecoder decoder = new SocksAuthResponseDecoder();
        EmbeddedChannel embedder = new EmbeddedChannel(decoder);
        SocksCommonTestUtils.writeMessageIntoEmbedder(embedder, msg);
        msg = embedder.readInbound();
        assertSame(msg.authStatus(), authStatus);
        assertNull(embedder.readInbound());
    }

    @Test
    public void testSocksCmdResponseDecoder() {
        for (SocksAuthStatus authStatus: SocksAuthStatus.values()) {
            testSocksAuthResponseDecoderWithDifferentParams(authStatus);
        }
    }
}

Frequently Asked Questions

What is the SocksAuthResponseDecoderTest class?
SocksAuthResponseDecoderTest is a class in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socks/SocksAuthResponseDecoderTest.java.
Where is SocksAuthResponseDecoderTest defined?
SocksAuthResponseDecoderTest is defined in codec-socks/src/test/java/io/netty/handler/codec/socks/SocksAuthResponseDecoderTest.java at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free