Home / Function/ testExactMatchWins() — netty Function Reference

testExactMatchWins() — netty Function Reference

Architecture documentation for the testExactMatchWins() function in DomainWildcardMappingBuilderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a96e10a5_70af_affa_cf40_1459515590e0["testExactMatchWins()"]
  972b1e38_da49_3f4c_f0a6_e437bf5297c6["DomainWildcardMappingBuilderTest"]
  a96e10a5_70af_affa_cf40_1459515590e0 -->|defined in| 972b1e38_da49_3f4c_f0a6_e437bf5297c6
  style a96e10a5_70af_affa_cf40_1459515590e0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/DomainWildcardMappingBuilderTest.java lines 92–107

    @Test
    public void testExactMatchWins() {
        assertEquals("Netty-Downloads",
            new DomainWildcardMappingBuilder<String>("NotFound")
                .add("*.netty.io", "Netty")
                .add("downloads.netty.io", "Netty-Downloads")
                .build()
                .map("downloads.netty.io"));

        assertEquals("Netty-Downloads",
            new DomainWildcardMappingBuilder<String>("NotFound")
                .add("downloads.netty.io", "Netty-Downloads")
                .add("*.netty.io", "Netty")
                .build()
                .map("downloads.netty.io"));
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free