test() — netty Function Reference
Architecture documentation for the test() function in Socks4ServerDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c611c50a_ff30_f091_bbb7_450bf6d44752["test()"] 7cac8956_3020_1100_4d53_6843a8dfe96d["Socks4ServerDecoderTest"] c611c50a_ff30_f091_bbb7_450bf6d44752 -->|defined in| 7cac8956_3020_1100_4d53_6843a8dfe96d b2a07317_20a8_0e90_5849_223ec88a56c3["testCmdRequestDecoder()"] b2a07317_20a8_0e90_5849_223ec88a56c3 -->|calls| c611c50a_ff30_f091_bbb7_450bf6d44752 style c611c50a_ff30_f091_bbb7_450bf6d44752 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-socks/src/test/java/io/netty/handler/codec/socksx/v4/Socks4ServerDecoderTest.java lines 32–46
private static void test(String userId, Socks4CommandType type, String dstAddr, int dstPort) {
logger.debug(
"Testing type: " + type + " dstAddr: " + dstAddr + " dstPort: " + dstPort +
" userId: " + userId);
Socks4CommandRequest msg = new DefaultSocks4CommandRequest(type, dstAddr, dstPort, userId);
EmbeddedChannel embedder = new EmbeddedChannel(new Socks4ServerDecoder());
Socks4CommonTestUtils.writeMessageIntoEmbedder(embedder, msg);
msg = embedder.readInbound();
assertSame(msg.type(), type);
assertEquals(msg.dstAddr(), dstAddr);
assertEquals(msg.dstPort(), dstPort);
assertEquals(msg.userId(), userId);
assertNull(embedder.readInbound());
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does test() do?
test() is a function in the netty codebase, defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v4/Socks4ServerDecoderTest.java.
Where is test() defined?
test() is defined in codec-socks/src/test/java/io/netty/handler/codec/socksx/v4/Socks4ServerDecoderTest.java at line 32.
What calls test()?
test() is called by 1 function(s): testCmdRequestDecoder.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free