Home / Function/ testRetainOverflow2() — netty Function Reference

testRetainOverflow2() — netty Function Reference

Architecture documentation for the testRetainOverflow2() function in AbstractReferenceCountedTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  92079b4c_8d34_89a4_77d0_a782007df883["testRetainOverflow2()"]
  7917189b_1868_6962_74c7_fde430107486["AbstractReferenceCountedTest"]
  92079b4c_8d34_89a4_77d0_a782007df883 -->|defined in| 7917189b_1868_6962_74c7_fde430107486
  style 92079b4c_8d34_89a4_77d0_a782007df883 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/AbstractReferenceCountedTest.java lines 46–51

    @Test
    public void testRetainOverflow2() {
        final AbstractReferenceCounted referenceCounted = newReferenceCounted();
        assertEquals(1, referenceCounted.refCnt());
        assertThrows(IllegalReferenceCountException.class, () -> referenceCounted.retain(Integer.MAX_VALUE));
    }

Domain

Subdomains

Frequently Asked Questions

What does testRetainOverflow2() do?
testRetainOverflow2() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/AbstractReferenceCountedTest.java.
Where is testRetainOverflow2() defined?
testRetainOverflow2() is defined in common/src/test/java/io/netty/util/AbstractReferenceCountedTest.java at line 46.

Analyze Your Own Codebase

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

Try Supermodel Free