testAttributesCopied() — netty Function Reference
Architecture documentation for the testAttributesCopied() function in BootstrapTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a4fd8344_788a_a33d_8b0b_21ed7be03f9c["testAttributesCopied()"] 7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42["BootstrapTest"] a4fd8344_788a_a33d_8b0b_21ed7be03f9c -->|defined in| 7a7606db_8d2a_bfe0_9993_4aaa8e0a6e42 style a4fd8344_788a_a33d_8b0b_21ed7be03f9c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/bootstrap/BootstrapTest.java lines 126–136
@Test
public void testAttributesCopied() {
AttributeKey<String> key = AttributeKey.valueOf(UUID.randomUUID().toString());
String value = "value";
final Bootstrap bootstrapA = new Bootstrap();
bootstrapA.attr(key, value);
Map.Entry<AttributeKey<?>, Object>[] attributesArray = bootstrapA.newAttributesArray();
bootstrapA.attr(key, "value2");
assertEquals(key, attributesArray[0].getKey());
assertEquals(value, attributesArray[0].getValue());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testAttributesCopied() do?
testAttributesCopied() is a function in the netty codebase, defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java.
Where is testAttributesCopied() defined?
testAttributesCopied() is defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java at line 126.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free