Home / Function/ testDecodeTwoLineResponseChunked() — netty Function Reference

testDecodeTwoLineResponseChunked() — netty Function Reference

Architecture documentation for the testDecodeTwoLineResponseChunked() function in SmtpResponseDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3c3f9209_2846_cb95_463c_50bc6d18ef31["testDecodeTwoLineResponseChunked()"]
  6523a881_9a13_c253_6379_f7921cefdfbf["SmtpResponseDecoderTest"]
  3c3f9209_2846_cb95_463c_50bc6d18ef31 -->|defined in| 6523a881_9a13_c253_6379_f7921cefdfbf
  style 3c3f9209_2846_cb95_463c_50bc6d18ef31 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpResponseDecoderTest.java lines 95–112

    @Test
    public void testDecodeTwoLineResponseChunked() {
        EmbeddedChannel channel = newChannel();
        assertFalse(channel.writeInbound(newBuffer("200-")));
        assertFalse(channel.writeInbound(newBuffer("Hello\r\n2")));
        assertFalse(channel.writeInbound(newBuffer("00 Ok")));
        assertTrue(channel.writeInbound(newBuffer("\r\n")));
        assertTrue(channel.finish());

        SmtpResponse response = channel.readInbound();
        assertEquals(200, response.code());
        List<CharSequence> sequences = response.details();
        assertEquals(2, sequences.size());

        assertEquals("Hello", sequences.get(0).toString());
        assertEquals("Ok", sequences.get(1).toString());
        assertNull(channel.readInbound());
    }

Domain

Subdomains

Frequently Asked Questions

What does testDecodeTwoLineResponseChunked() do?
testDecodeTwoLineResponseChunked() is a function in the netty codebase, defined in codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpResponseDecoderTest.java.
Where is testDecodeTwoLineResponseChunked() defined?
testDecodeTwoLineResponseChunked() is defined in codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpResponseDecoderTest.java at line 95.

Analyze Your Own Codebase

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

Try Supermodel Free