Home / Function/ testEmptyIterator() — netty Function Reference

testEmptyIterator() — netty Function Reference

Architecture documentation for the testEmptyIterator() function in AbstractCompositeByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  55bec429_3936_3f92_a015_14b1b8bf8461["testEmptyIterator()"]
  47bc0a20_e243_89ff_132b_99ac6b23835f["AbstractCompositeByteBufTest"]
  55bec429_3936_3f92_a015_14b1b8bf8461 -->|defined in| 47bc0a20_e243_89ff_132b_99ac6b23835f
  style 55bec429_3936_3f92_a015_14b1b8bf8461 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java lines 1243–1257

    @Test
    public void testEmptyIterator() {
        CompositeByteBuf cbuf = newCompositeBuffer();

        Iterator<ByteBuf> it = cbuf.iterator();
        assertFalse(it.hasNext());

        try {
            it.next();
            fail();
        } catch (NoSuchElementException e) {
            //Expected
        }
        cbuf.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testEmptyIterator() do?
testEmptyIterator() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java.
Where is testEmptyIterator() defined?
testEmptyIterator() is defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java at line 1243.

Analyze Your Own Codebase

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

Try Supermodel Free