Home / Function/ testChannelsIteratorEmpty() — netty Function Reference

testChannelsIteratorEmpty() — netty Function Reference

Architecture documentation for the testChannelsIteratorEmpty() function in AbstractSingleThreadEventLoopTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  85bd87ad_e38f_a747_1986_6bbe9126a367["testChannelsIteratorEmpty()"]
  eb487d77_b896_e5c3_20f1_2b7144dc7cf5["AbstractSingleThreadEventLoopTest"]
  85bd87ad_e38f_a747_1986_6bbe9126a367 -->|defined in| eb487d77_b896_e5c3_20f1_2b7144dc7cf5
  a8dce879_7ee0_7010_3c52_39fbd72cc186["supportsChannelIteration()"]
  85bd87ad_e38f_a747_1986_6bbe9126a367 -->|calls| a8dce879_7ee0_7010_3c52_39fbd72cc186
  d4cc6fcd_803a_7c6c_adf8_d25d73af7b63["runBlockingOn()"]
  85bd87ad_e38f_a747_1986_6bbe9126a367 -->|calls| d4cc6fcd_803a_7c6c_adf8_d25d73af7b63
  style 85bd87ad_e38f_a747_1986_6bbe9126a367 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/transport/AbstractSingleThreadEventLoopTest.java lines 189–213

    @Test
    @Timeout(value = 3000, unit = TimeUnit.MILLISECONDS)
    public void testChannelsIteratorEmpty() throws Exception {
        assumeTrue(supportsChannelIteration());
        EventLoopGroup group = newEventLoopGroup();
        final SingleThreadEventLoop loop = (SingleThreadEventLoop) group.next();
        try {
            runBlockingOn(loop, new Runnable() {
                @Override
                public void run() {
                    final Iterator<Channel> iterator = loop.registeredChannelsIterator();

                    assertFalse(iterator.hasNext());
                    assertThrows(NoSuchElementException.class, new Executable() {
                        @Override
                        public void execute() {
                            iterator.next();
                        }
                    });
                }
            });
        } finally {
            group.shutdownGracefully();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testChannelsIteratorEmpty() do?
testChannelsIteratorEmpty() is a function in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/AbstractSingleThreadEventLoopTest.java.
Where is testChannelsIteratorEmpty() defined?
testChannelsIteratorEmpty() is defined in testsuite/src/main/java/io/netty/testsuite/transport/AbstractSingleThreadEventLoopTest.java at line 189.
What does testChannelsIteratorEmpty() call?
testChannelsIteratorEmpty() calls 2 function(s): runBlockingOn, supportsChannelIteration.

Analyze Your Own Codebase

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

Try Supermodel Free