Home / Function/ testChannelHandlerContextOrder() — netty Function Reference

testChannelHandlerContextOrder() — netty Function Reference

Architecture documentation for the testChannelHandlerContextOrder() function in DefaultChannelPipelineTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3ca6ed25_e55f_258b_e4fe_84fa7615ee36["testChannelHandlerContextOrder()"]
  666d912b_4166_a807_ed10_ba12f328a7b2["DefaultChannelPipelineTest"]
  3ca6ed25_e55f_258b_e4fe_84fa7615ee36 -->|defined in| 666d912b_4166_a807_ed10_ba12f328a7b2
  1491e70d_136f_7b0d_c4e5_da398f2eb600["toInt()"]
  3ca6ed25_e55f_258b_e4fe_84fa7615ee36 -->|calls| 1491e70d_136f_7b0d_c4e5_da398f2eb600
  a2eed25d_b7ba_1436_1910_39c9b1477519["next()"]
  3ca6ed25_e55f_258b_e4fe_84fa7615ee36 -->|calls| a2eed25d_b7ba_1436_1910_39c9b1477519
  4b537eb5_ea5f_db6e_51cd_6385e6861dda["verifyContextNumber()"]
  3ca6ed25_e55f_258b_e4fe_84fa7615ee36 -->|calls| 4b537eb5_ea5f_db6e_51cd_6385e6861dda
  style 3ca6ed25_e55f_258b_e4fe_84fa7615ee36 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 652–681

    @Test
    public void testChannelHandlerContextOrder() {
        ChannelPipeline pipeline = new LocalChannel().pipeline();

        pipeline.addFirst("1", newHandler());
        pipeline.addLast("10", newHandler());

        pipeline.addBefore("10", "5", newHandler());
        pipeline.addAfter("1", "3", newHandler());
        pipeline.addBefore("5", "4", newHandler());
        pipeline.addAfter("5", "6", newHandler());

        pipeline.addBefore("1", "0", newHandler());
        pipeline.addAfter("10", "11", newHandler());

        AbstractChannelHandlerContext ctx = (AbstractChannelHandlerContext) pipeline.firstContext();
        assertNotNull(ctx);
        while (ctx != null) {
            int i = toInt(ctx.name());
            int j = next(ctx);
            if (j != -1) {
                assertTrue(i < j);
            } else {
                assertNull(ctx.next.next);
            }
            ctx = ctx.next;
        }

        verifyContextNumber(pipeline, 8);
    }

Domain

Subdomains

Frequently Asked Questions

What does testChannelHandlerContextOrder() do?
testChannelHandlerContextOrder() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java.
Where is testChannelHandlerContextOrder() defined?
testChannelHandlerContextOrder() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java at line 652.
What does testChannelHandlerContextOrder() call?
testChannelHandlerContextOrder() calls 3 function(s): next, toInt, verifyContextNumber.

Analyze Your Own Codebase

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

Try Supermodel Free