Home / Function/ testWriteEmptyByteBuf() — netty Function Reference

testWriteEmptyByteBuf() — netty Function Reference

Architecture documentation for the testWriteEmptyByteBuf() function in EmptyByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  72ea1553_3317_011f_328d_dd8ae76b8d04["testWriteEmptyByteBuf()"]
  39b14dbe_5dfc_efb6_b919_0b1a849f7832["EmptyByteBufTest"]
  72ea1553_3317_011f_328d_dd8ae76b8d04 -->|defined in| 39b14dbe_5dfc_efb6_b919_0b1a849f7832
  style 72ea1553_3317_011f_328d_dd8ae76b8d04 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/EmptyByteBufTest.java lines 44–57

    @Test
    public void testWriteEmptyByteBuf() {
        EmptyByteBuf empty = new EmptyByteBuf(UnpooledByteBufAllocator.DEFAULT);
        empty.writeBytes(Unpooled.EMPTY_BUFFER); // Ok
        ByteBuf nonEmpty = UnpooledByteBufAllocator.DEFAULT.buffer().writeBoolean(false);
        try {
            empty.writeBytes(nonEmpty);
            fail();
        } catch (IndexOutOfBoundsException ignored) {
            // Ignore.
        } finally {
            nonEmpty.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free