testFirstMatchWins() — netty Function Reference
Architecture documentation for the testFirstMatchWins() function in DomainNameMappingTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a2edb86e_1f53_7c21_c689_bc10f920ebb2["testFirstMatchWins()"] a7e40a68_a0cc_c785_e126_3c2e680ed006["DomainNameMappingTest"] a2edb86e_1f53_7c21_c689_bc10f920ebb2 -->|defined in| a7e40a68_a0cc_c785_e126_3c2e680ed006 style a2edb86e_1f53_7c21_c689_bc10f920ebb2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/DomainNameMappingTest.java lines 191–206
@Test
public void testFirstMatchWins() {
assertEquals("Netty",
new DomainNameMappingBuilder<String>("NotFound")
.add("*.netty.io", "Netty")
.add("downloads.netty.io", "Netty-Downloads")
.build()
.map("downloads.netty.io"));
assertEquals("Netty-Downloads",
new DomainNameMappingBuilder<String>("NotFound")
.add("downloads.netty.io", "Netty-Downloads")
.add("*.netty.io", "Netty")
.build()
.map("downloads.netty.io"));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testFirstMatchWins() do?
testFirstMatchWins() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/DomainNameMappingTest.java.
Where is testFirstMatchWins() defined?
testFirstMatchWins() is defined in common/src/test/java/io/netty/util/DomainNameMappingTest.java at line 191.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free