Home / Function/ testEnsureWritableIntegerOverflow() — netty Function Reference

testEnsureWritableIntegerOverflow() — netty Function Reference

Architecture documentation for the testEnsureWritableIntegerOverflow() function in AbstractByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4868a586_58d0_3373_520f_0bfb9ef61a9e["testEnsureWritableIntegerOverflow()"]
  6540f2d1_cdad_6705_dd1d_9a24e2e53242["AbstractByteBufTest"]
  4868a586_58d0_3373_520f_0bfb9ef61a9e -->|defined in| 6540f2d1_cdad_6705_dd1d_9a24e2e53242
  style 4868a586_58d0_3373_520f_0bfb9ef61a9e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java lines 6238–6251

    @Test
    public void testEnsureWritableIntegerOverflow() {
        ByteBuf buffer = newBuffer(CAPACITY);
        buffer.writerIndex(buffer.readerIndex());
        buffer.writeByte(1);
        try {
            buffer.ensureWritable(Integer.MAX_VALUE);
            fail();
        } catch (IndexOutOfBoundsException e) {
            // expected
        } finally {
            buffer.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free