AttributeKeyTest Class — netty Architecture
Architecture documentation for the AttributeKeyTest class in AttributeKeyTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e37c948d_a73e_f31c_7391_721a1b5125b7["AttributeKeyTest"] 66f330a8_210f_aef5_5f8a_ebbd17874eb6["AttributeKeyTest.java"] e37c948d_a73e_f31c_7391_721a1b5125b7 -->|defined in| 66f330a8_210f_aef5_5f8a_ebbd17874eb6 729bb8eb_c6c7_8347_4fa8_981e0eac7143["testExists()"] e37c948d_a73e_f31c_7391_721a1b5125b7 -->|method| 729bb8eb_c6c7_8347_4fa8_981e0eac7143 51aa1e96_a96d_0bcc_0a1a_6cc91f638cb2["testValueOf()"] e37c948d_a73e_f31c_7391_721a1b5125b7 -->|method| 51aa1e96_a96d_0bcc_0a1a_6cc91f638cb2 7fdf5f08_ebde_09a6_df2e_c78bc671c1f9["testNewInstance()"] e37c948d_a73e_f31c_7391_721a1b5125b7 -->|method| 7fdf5f08_ebde_09a6_df2e_c78bc671c1f9
Relationship Graph
Source Code
common/src/test/java/io/netty/util/AttributeKeyTest.java lines 26–63
public class AttributeKeyTest {
@Test
public void testExists() {
String name = "test";
assertFalse(AttributeKey.exists(name));
AttributeKey<String> attr = AttributeKey.valueOf(name);
assertTrue(AttributeKey.exists(name));
assertNotNull(attr);
}
@Test
public void testValueOf() {
String name = "test1";
assertFalse(AttributeKey.exists(name));
AttributeKey<String> attr = AttributeKey.valueOf(name);
AttributeKey<String> attr2 = AttributeKey.valueOf(name);
assertSame(attr, attr2);
}
@Test
public void testNewInstance() {
String name = "test2";
assertFalse(AttributeKey.exists(name));
AttributeKey<String> attr = AttributeKey.newInstance(name);
assertTrue(AttributeKey.exists(name));
assertNotNull(attr);
try {
AttributeKey.<String>newInstance(name);
fail();
} catch (IllegalArgumentException e) {
// expected
}
}
}
Source
Frequently Asked Questions
What is the AttributeKeyTest class?
AttributeKeyTest is a class in the netty codebase, defined in common/src/test/java/io/netty/util/AttributeKeyTest.java.
Where is AttributeKeyTest defined?
AttributeKeyTest is defined in common/src/test/java/io/netty/util/AttributeKeyTest.java at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free