Home / Function/ testEncoder() — netty Function Reference

testEncoder() — netty Function Reference

Architecture documentation for the testEncoder() function in CodecSmtpTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6e3e563f_4943_082e_9617_f2a1a488fc95["testEncoder()"]
  f11ef4c2_b8cc_a478_ed71_6b8e1106198f["CodecSmtpTest"]
  6e3e563f_4943_082e_9617_f2a1a488fc95 -->|defined in| f11ef4c2_b8cc_a478_ed71_6b8e1106198f
  style 6e3e563f_4943_082e_9617_f2a1a488fc95 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite-jpms/src/test/java/io/netty/testsuite_jpms/test/CodecSmtpTest.java lines 30–39

    @Test
    public void testEncoder() {
        EmbeddedChannel channel = new EmbeddedChannel(new SmtpRequestEncoder());
        assertTrue(channel.writeOutbound(SmtpRequests.ehlo("localhost")));
        assertTrue(channel.finish());
        ByteBuf buffer = channel.readOutbound();
        assertEquals("EHLO localhost\r\n", buffer.toString(CharsetUtil.US_ASCII));
        buffer.release();
        assertNull(channel.readOutbound());
    }

Domain

Subdomains

Frequently Asked Questions

What does testEncoder() do?
testEncoder() is a function in the netty codebase, defined in testsuite-jpms/src/test/java/io/netty/testsuite_jpms/test/CodecSmtpTest.java.
Where is testEncoder() defined?
testEncoder() is defined in testsuite-jpms/src/test/java/io/netty/testsuite_jpms/test/CodecSmtpTest.java at line 30.

Analyze Your Own Codebase

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

Try Supermodel Free