Home / Function/ testWildcardMatchesAnyPrefixInDeprecatedApi() — netty Function Reference

testWildcardMatchesAnyPrefixInDeprecatedApi() — netty Function Reference

Architecture documentation for the testWildcardMatchesAnyPrefixInDeprecatedApi() function in DomainNameMappingTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  666360f3_3d72_e430_6df6_6536f34e6cc3["testWildcardMatchesAnyPrefixInDeprecatedApi()"]
  a7e40a68_a0cc_c785_e126_3c2e680ed006["DomainNameMappingTest"]
  666360f3_3d72_e430_6df6_6536f34e6cc3 -->|defined in| a7e40a68_a0cc_c785_e126_3c2e680ed006
  style 666360f3_3d72_e430_6df6_6536f34e6cc3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/DomainNameMappingTest.java lines 85–95

    @Test
    public void testWildcardMatchesAnyPrefixInDeprecatedApi() {
        DomainNameMapping<String> mapping = new DomainNameMapping<String>("NotFound")
            .add("*.netty.io", "Netty");

        assertEquals("Netty", mapping.map("netty.io"));
        assertEquals("Netty", mapping.map("downloads.netty.io"));
        assertEquals("Netty", mapping.map("x.y.z.netty.io"));

        assertEquals("NotFound", mapping.map("netty.io.x"));
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free