Home / Function/ testNewInstance() — netty Function Reference

testNewInstance() — netty Function Reference

Architecture documentation for the testNewInstance() function in AttributeKeyTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7fdf5f08_ebde_09a6_df2e_c78bc671c1f9["testNewInstance()"]
  e37c948d_a73e_f31c_7391_721a1b5125b7["AttributeKeyTest"]
  7fdf5f08_ebde_09a6_df2e_c78bc671c1f9 -->|defined in| e37c948d_a73e_f31c_7391_721a1b5125b7
  style 7fdf5f08_ebde_09a6_df2e_c78bc671c1f9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/AttributeKeyTest.java lines 48–62

    @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
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free