Home / Function/ testDecodeOneLineResponse() — netty Function Reference

testDecodeOneLineResponse() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpResponseDecoderTest.java lines 36–49

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

Analyze Your Own Codebase

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

Try Supermodel Free