Home / Function/ testGetSetInt() — netty Function Reference

testGetSetInt() — netty Function Reference

Architecture documentation for the testGetSetInt() function in DefaultAttributeMapTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d8d5bfdb_034b_82ce_d771_642cacb415e6["testGetSetInt()"]
  819b0da9_e205_6fba_cbb6_4b0d0b21b01c["DefaultAttributeMapTest"]
  d8d5bfdb_034b_82ce_d771_642cacb415e6 -->|defined in| 819b0da9_e205_6fba_cbb6_4b0d0b21b01c
  style d8d5bfdb_034b_82ce_d771_642cacb415e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/DefaultAttributeMapTest.java lines 60–75

    @Test
    public void testGetSetInt() {
        AttributeKey<Integer> key = AttributeKey.valueOf("Nada");
        Attribute<Integer> one = map.attr(key);

        assertSame(one, map.attr(key));

        one.setIfAbsent(3653);
        assertEquals(Integer.valueOf(3653), one.get());

        one.setIfAbsent(1);
        assertNotSame(1, one.get());

        one.remove();
        assertNull(one.get());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free