Home / Function/ testDecodeTwoLineResponse() — netty Function Reference

testDecodeTwoLineResponse() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpResponseDecoderTest.java lines 79–93

    @Test
    public void testDecodeTwoLineResponse() {
        EmbeddedChannel channel = newChannel();
        assertTrue(channel.writeInbound(newBuffer("200-Hello\r\n200 Ok\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 testDecodeTwoLineResponse() do?
testDecodeTwoLineResponse() is a function in the netty codebase, defined in codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpResponseDecoderTest.java.
Where is testDecodeTwoLineResponse() defined?
testDecodeTwoLineResponse() is defined in codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpResponseDecoderTest.java at line 79.

Analyze Your Own Codebase

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

Try Supermodel Free