Home / Function/ testException() — netty Function Reference

testException() — netty Function Reference

Architecture documentation for the testException() function in MessageToMessageEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  47219b52_5c2c_5b8b_bd3c_a21f3c026eed["testException()"]
  0494f80b_8e1a_0fd3_6c29_d4d0e215de8c["MessageToMessageEncoderTest"]
  47219b52_5c2c_5b8b_bd3c_a21f3c026eed -->|defined in| 0494f80b_8e1a_0fd3_6c29_d4d0e215de8c
  style 47219b52_5c2c_5b8b_bd3c_a21f3c026eed fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/MessageToMessageEncoderTest.java lines 38–52

    @Test
    public void testException() {
        final EmbeddedChannel channel = new EmbeddedChannel(new MessageToMessageEncoder<Object>() {
            @Override
            protected void encode(ChannelHandlerContext ctx, Object msg, List<Object> out) throws Exception {
                throw new Exception();
            }
        });
        assertThrows(EncoderException.class, new Executable() {
            @Override
            public void execute() {
                channel.writeOutbound(new Object());
            }
        });
    }

Domain

Subdomains

Frequently Asked Questions

What does testException() do?
testException() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/MessageToMessageEncoderTest.java.
Where is testException() defined?
testException() is defined in codec-base/src/test/java/io/netty/handler/codec/MessageToMessageEncoderTest.java at line 38.

Analyze Your Own Codebase

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

Try Supermodel Free