Socks5InitialRequestDecoderTest Class — netty Architecture
Architecture documentation for the Socks5InitialRequestDecoderTest class in Socks5InitialRequestDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9bd3e427_b676_6b21_c4db_f8e8d9cfc10e["Socks5InitialRequestDecoderTest"] 49c17d84_a7e6_3e5a_c02a_16eb1b684967["Socks5InitialRequestDecoderTest.java"] 9bd3e427_b676_6b21_c4db_f8e8d9cfc10e -->|defined in| 49c17d84_a7e6_3e5a_c02a_16eb1b684967 71d93252_d023_e600_4d50_bbd27664a4e1["testUnpackingCausesDecodeFail()"] 9bd3e427_b676_6b21_c4db_f8e8d9cfc10e -->|method| 71d93252_d023_e600_4d50_bbd27664a4e1
Relationship Graph
Source Code
codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoderTest.java lines 27–40
public class Socks5InitialRequestDecoderTest {
@Test
public void testUnpackingCausesDecodeFail() {
EmbeddedChannel e = new EmbeddedChannel(new Socks5InitialRequestDecoder());
assertFalse(e.writeInbound(Unpooled.wrappedBuffer(new byte[]{5, 2, 0})));
assertTrue(e.writeInbound(Unpooled.wrappedBuffer(new byte[]{1})));
Object o = e.readInbound();
assertTrue(o instanceof DefaultSocks5InitialRequest);
DefaultSocks5InitialRequest req = (DefaultSocks5InitialRequest) o;
assertSame(req.decoderResult(), DecoderResult.SUCCESS);
assertFalse(e.finish());
}
}
Defined In
Source
Frequently Asked Questions
What is the Socks5InitialRequestDecoderTest class?
Socks5InitialRequestDecoderTest is a class in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoderTest.java.
Where is Socks5InitialRequestDecoderTest defined?
Socks5InitialRequestDecoderTest is defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoderTest.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free