Home / Function/ test() — netty Function Reference

test() — netty Function Reference

Architecture documentation for the test() function in SslHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f222257e_a347_b83a_2a9e_92b868b0289d["test()"]
  8675c626_af89_6af0_f866_4d40445f8e29["TlsReadTest"]
  f222257e_a347_b83a_2a9e_92b868b0289d -->|defined in| 8675c626_af89_6af0_f866_4d40445f8e29
  f8a971ae_000f_175f_75d9_5cc23152e24c["testIssueReadAfterActiveWriteFlush()"]
  f8a971ae_000f_175f_75d9_5cc23152e24c -->|calls| f222257e_a347_b83a_2a9e_92b868b0289d
  389f5f4c_4398_647b_00dc_e4a4763de6e9["testIssueReadAfterWriteFlushActive()"]
  389f5f4c_4398_647b_00dc_e4a4763de6e9 -->|calls| f222257e_a347_b83a_2a9e_92b868b0289d
  style f222257e_a347_b83a_2a9e_92b868b0289d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java lines 427–454

        public void test(final boolean dropChannelActive) throws Exception {
            SSLEngine engine = SSLContext.getDefault().createSSLEngine();
            engine.setUseClientMode(true);

            EmbeddedChannel ch = new EmbeddedChannel(false, false,
                    this,
                    new SslHandler(engine),
                    new ChannelInboundHandlerAdapter() {
                        @Override
                        public void channelActive(ChannelHandlerContext ctx) throws Exception {
                            if (!dropChannelActive) {
                                ctx.fireChannelActive();
                            }
                        }
                    }
            );
            ch.config().setAutoRead(false);
            assertFalse(ch.config().isAutoRead());

            ch.register();

            assertTrue(readIssued);
            readIssued = false;

            assertTrue(ch.writeOutbound(Unpooled.EMPTY_BUFFER));
            assertTrue(readIssued);
            assertTrue(ch.finishAndReleaseAll());
       }

Domain

Subdomains

Frequently Asked Questions

What does test() do?
test() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java.
Where is test() defined?
test() is defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java at line 427.
What calls test()?
test() is called by 2 function(s): testIssueReadAfterActiveWriteFlush, testIssueReadAfterWriteFlushActive.

Analyze Your Own Codebase

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

Try Supermodel Free