Home / Function/ testDecodeOneLineResponseChunked() — netty Function Reference

testDecodeOneLineResponseChunked() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpResponseDecoderTest.java lines 63–77

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

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

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free