Home / Function/ testRetainOverflow() — netty Function Reference

testRetainOverflow() — netty Function Reference

Architecture documentation for the testRetainOverflow() function in AbstractReferenceCountedByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  8f61c236_4857_e52a_6e93_167c5af893d4["testRetainOverflow()"]
  51222db7_9ab7_4d1e_8f88_ed2f59e6b1ec["AbstractReferenceCountedByteBufTest"]
  8f61c236_4857_e52a_6e93_167c5af893d4 -->|defined in| 51222db7_9ab7_4d1e_8f88_ed2f59e6b1ec
  style 8f61c236_4857_e52a_6e93_167c5af893d4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AbstractReferenceCountedByteBufTest.java lines 38–49

    @Test
    public void testRetainOverflow() {
        final AbstractReferenceCountedByteBuf referenceCounted = newReferenceCounted();
        referenceCounted.setRefCnt(Integer.MAX_VALUE);
        assertEquals(Integer.MAX_VALUE, referenceCounted.refCnt());
        assertThrows(IllegalReferenceCountException.class, new Executable() {
            @Override
            public void execute()  {
                referenceCounted.retain();
            }
        });
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free