Home / Function/ testSocksCmdResponseDecoderWithDifferentParams() — netty Function Reference

testSocksCmdResponseDecoderWithDifferentParams() — netty Function Reference

Architecture documentation for the testSocksCmdResponseDecoderWithDifferentParams() function in SocksCmdResponseDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6051f884_6db3_7437_203d_b70ab435c631["testSocksCmdResponseDecoderWithDifferentParams()"]
  80478196_8fb3_b1cc_4870_95b1d8ba283f["SocksCmdResponseDecoderTest"]
  6051f884_6db3_7437_203d_b70ab435c631 -->|defined in| 80478196_8fb3_b1cc_4870_95b1d8ba283f
  fc227e70_91ae_26c1_e291_727b387fbce0["testSocksCmdResponseDecoder()"]
  fc227e70_91ae_26c1_e291_727b387fbce0 -->|calls| 6051f884_6db3_7437_203d_b70ab435c631
  68e48971_e627_919b_e916_b6df4531b696["testInvalidAddress()"]
  68e48971_e627_919b_e916_b6df4531b696 -->|calls| 6051f884_6db3_7437_203d_b70ab435c631
  13ecdd1e_f646_fdd5_4ab4_6926b342eb88["testSocksCmdResponseDecoderIncludingHost()"]
  13ecdd1e_f646_fdd5_4ab4_6926b342eb88 -->|calls| 6051f884_6db3_7437_203d_b70ab435c631
  style 6051f884_6db3_7437_203d_b70ab435c631 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdResponseDecoderTest.java lines 32–50

    private static void testSocksCmdResponseDecoderWithDifferentParams(
            SocksCmdStatus cmdStatus, SocksAddressType addressType, String host, int port) {
        logger.debug("Testing cmdStatus: " + cmdStatus + " addressType: " + addressType);
        SocksResponse msg = new SocksCmdResponse(cmdStatus, addressType, host, port);
        SocksCmdResponseDecoder decoder = new SocksCmdResponseDecoder();
        EmbeddedChannel embedder = new EmbeddedChannel(decoder);
        SocksCommonTestUtils.writeMessageIntoEmbedder(embedder, msg);
        if (addressType == SocksAddressType.UNKNOWN) {
            assertTrue(embedder.readInbound() instanceof UnknownSocksResponse);
        } else {
            msg = embedder.readInbound();
            assertEquals(((SocksCmdResponse) msg).cmdStatus(), cmdStatus);
            if (host != null) {
                assertEquals(((SocksCmdResponse) msg).host(), host);
            }
            assertEquals(((SocksCmdResponse) msg).port(), port);
        }
        assertNull(embedder.readInbound());
    }

Domain

Subdomains

Frequently Asked Questions

What does testSocksCmdResponseDecoderWithDifferentParams() do?
testSocksCmdResponseDecoderWithDifferentParams() is a function in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdResponseDecoderTest.java.
Where is testSocksCmdResponseDecoderWithDifferentParams() defined?
testSocksCmdResponseDecoderWithDifferentParams() is defined in codec-socks/src/test/java/io/netty/handler/codec/socks/SocksCmdResponseDecoderTest.java at line 32.
What calls testSocksCmdResponseDecoderWithDifferentParams()?
testSocksCmdResponseDecoderWithDifferentParams() is called by 3 function(s): testInvalidAddress, testSocksCmdResponseDecoder, testSocksCmdResponseDecoderIncludingHost.

Analyze Your Own Codebase

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

Try Supermodel Free