testGetAndSetWithNull() — netty Function Reference
Architecture documentation for the testGetAndSetWithNull() function in DefaultAttributeMapTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7e7385d4_3797_30ec_ee32_35d557c83d7a["testGetAndSetWithNull()"] 819b0da9_e205_6fba_cbb6_4b0d0b21b01c["DefaultAttributeMapTest"] 7e7385d4_3797_30ec_ee32_35d557c83d7a -->|defined in| 819b0da9_e205_6fba_cbb6_4b0d0b21b01c style 7e7385d4_3797_30ec_ee32_35d557c83d7a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/DefaultAttributeMapTest.java lines 118–130
@Test
public void testGetAndSetWithNull() {
AttributeKey<Integer> key = AttributeKey.valueOf("key");
Attribute<Integer> attr = map.attr(key);
attr.set(1);
assertSame(1, attr.getAndSet(null));
Attribute<Integer> attr2 = map.attr(key);
attr2.set(2);
assertSame(2, attr2.get());
assertSame(attr, attr2);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testGetAndSetWithNull() do?
testGetAndSetWithNull() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/DefaultAttributeMapTest.java.
Where is testGetAndSetWithNull() defined?
testGetAndSetWithNull() is defined in common/src/test/java/io/netty/util/DefaultAttributeMapTest.java at line 118.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free