testDotHandling() — netty Function Reference
Architecture documentation for the testDotHandling() function in DefaultDnsCacheTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 593a6e83_744f_40f7_8f1a_036e0479ba4f["testDotHandling()"] 6fc766f6_eb26_5b64_4561_08621961737e["DefaultDnsCacheTest"] 593a6e83_744f_40f7_8f1a_036e0479ba4f -->|defined in| 6fc766f6_eb26_5b64_4561_08621961737e d2e65745_63d0_0413_b726_cb1b67a1b602["assertEntry()"] 593a6e83_744f_40f7_8f1a_036e0479ba4f -->|calls| d2e65745_63d0_0413_b726_cb1b67a1b602 style 593a6e83_744f_40f7_8f1a_036e0479ba4f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
resolver-dns/src/test/java/io/netty/resolver/dns/DefaultDnsCacheTest.java lines 181–205
@Test
public void testDotHandling() throws Exception {
InetAddress addr1 = InetAddress.getByAddress(new byte[] { 10, 0, 0, 1 });
InetAddress addr2 = InetAddress.getByAddress(new byte[] { 10, 0, 0, 2 });
EventLoopGroup group = new MultiThreadIoEventLoopGroup(1, NioIoHandler.newFactory());
try {
EventLoop loop = group.next();
final DefaultDnsCache cache = new DefaultDnsCache(1, 100, 100);
cache.cache("netty.io", null, addr1, 10000, loop);
cache.cache("netty.io.", null, addr2, 10000, loop);
List<? extends DnsCacheEntry> entries = cache.get("netty.io", null);
assertEquals(2, entries.size());
assertEntry(entries.get(0), addr1);
assertEntry(entries.get(1), addr2);
List<? extends DnsCacheEntry> entries2 = cache.get("netty.io.", null);
assertEquals(2, entries2.size());
assertEntry(entries2.get(0), addr1);
assertEntry(entries2.get(1), addr2);
} finally {
group.shutdownGracefully();
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testDotHandling() do?
testDotHandling() is a function in the netty codebase, defined in resolver-dns/src/test/java/io/netty/resolver/dns/DefaultDnsCacheTest.java.
Where is testDotHandling() defined?
testDotHandling() is defined in resolver-dns/src/test/java/io/netty/resolver/dns/DefaultDnsCacheTest.java at line 181.
What does testDotHandling() call?
testDotHandling() calls 1 function(s): assertEntry.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free