Home / Function/ testErasure() — netty Function Reference

testErasure() — netty Function Reference

Architecture documentation for the testErasure() function in TypeParameterMatcherTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  eb0c16b8_985f_e57b_192c_242c6da117d8["testErasure()"]
  0471a2ea_34fb_90fc_b83b_eaf4cc2b794c["TypeParameterMatcherTest"]
  eb0c16b8_985f_e57b_192c_242c6da117d8 -->|defined in| 0471a2ea_34fb_90fc_b83b_eaf4cc2b794c
  style eb0c16b8_985f_e57b_192c_242c6da117d8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/TypeParameterMatcherTest.java lines 146–156

    @Test
    public void testErasure() throws Exception {
        assertThrows(IllegalStateException.class, new Executable() {
            @Override
            public void execute() {
                TypeParameterMatcher m = TypeParameterMatcher.find(new X<String, Date>(), W.class, "E");
                assertTrue(m.match(new Date()));
                assertFalse(m.match(new Object()));
            }
        });
    }

Domain

Subdomains

Frequently Asked Questions

What does testErasure() do?
testErasure() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/TypeParameterMatcherTest.java.
Where is testErasure() defined?
testErasure() is defined in common/src/test/java/io/netty/util/internal/TypeParameterMatcherTest.java at line 146.

Analyze Your Own Codebase

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

Try Supermodel Free