Home / Class/ Socks5PasswordAuthRequestDecoderTest Class — netty Architecture

Socks5PasswordAuthRequestDecoderTest Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  abb801f8_c73e_6cc1_0318_eb1546959879["Socks5PasswordAuthRequestDecoderTest"]
  66561d64_0521_79c8_704c_655eb4adb95b["Socks5PasswordAuthRequestDecoderTest.java"]
  abb801f8_c73e_6cc1_0318_eb1546959879 -->|defined in| 66561d64_0521_79c8_704c_655eb4adb95b
  b923a31e_4b2f_fe2b_884f_c9e33d9f89d8["testAuthRequestDecoder()"]
  abb801f8_c73e_6cc1_0318_eb1546959879 -->|method| b923a31e_4b2f_fe2b_884f_c9e33d9f89d8

Relationship Graph

Source Code

codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5PasswordAuthRequestDecoderTest.java lines 24–38

public class Socks5PasswordAuthRequestDecoderTest {

    @Test
    public void testAuthRequestDecoder() {
        String username = "testUsername";
        String password = "testPassword";
        Socks5PasswordAuthRequest msg = new DefaultSocks5PasswordAuthRequest(username, password);
        EmbeddedChannel embedder = new EmbeddedChannel(new Socks5PasswordAuthRequestDecoder());
        Socks5CommonTestUtils.writeFromClientToServer(embedder, msg);
        msg = embedder.readInbound();
        assertEquals(username, msg.username());
        assertEquals(password, msg.password());
        assertNull(embedder.readInbound());
    }
}

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free