Home / Function/ testThrowsIfContentExpected() — netty Function Reference

testThrowsIfContentExpected() — netty Function Reference

Architecture documentation for the testThrowsIfContentExpected() function in SmtpRequestEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  28e3068f_2906_562f_34ae_f0c869252ed6["testThrowsIfContentExpected()"]
  4a1a8fd1_f76d_2cfb_ce9d_7a5b089020d6["SmtpRequestEncoderTest"]
  28e3068f_2906_562f_34ae_f0c869252ed6 -->|defined in| 4a1a8fd1_f76d_2cfb_ce9d_7a5b089020d6
  style 28e3068f_2906_562f_34ae_f0c869252ed6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpRequestEncoderTest.java lines 111–125

    @Test
    public void testThrowsIfContentExpected() {
        final EmbeddedChannel channel = new EmbeddedChannel(new SmtpRequestEncoder());
        try {
            assertTrue(channel.writeOutbound(SmtpRequests.data()));
            assertThrows(EncoderException.class, new Executable() {
                @Override
                public void execute() {
                    channel.writeOutbound(SmtpRequests.noop());
                }
            });
        } finally {
            channel.finishAndReleaseAll();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free