testExceptionMsgDoesNotContainSearchDomainIfNdotsIsNotReached() — netty Function Reference
Architecture documentation for the testExceptionMsgDoesNotContainSearchDomainIfNdotsIsNotReached() function in SearchDomainTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 22404b26_4ee9_4af0_7f6f_9932ebbfdee8["testExceptionMsgDoesNotContainSearchDomainIfNdotsIsNotReached()"] d5ebb464_2572_c131_f90c_00c6ead5a9ed["SearchDomainTest"] 22404b26_4ee9_4af0_7f6f_9932ebbfdee8 -->|defined in| d5ebb464_2572_c131_f90c_00c6ead5a9ed style 22404b26_4ee9_4af0_7f6f_9932ebbfdee8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
resolver-dns/src/test/java/io/netty/resolver/dns/SearchDomainTest.java lines 297–311
@Test
public void testExceptionMsgDoesNotContainSearchDomainIfNdotsIsNotReached() throws Exception {
TestDnsServer.MapRecordStoreA store = new TestDnsServer.MapRecordStoreA(Collections.<String>emptySet());
dnsServer = new TestDnsServer(store);
dnsServer.start();
resolver = newResolver().searchDomains(Collections.singletonList("foo.com")).ndots(2).build();
Future<InetAddress> fut = resolver.resolve("unknown.hostname");
assertTrue(fut.await(10, TimeUnit.SECONDS));
assertFalse(fut.isSuccess());
final Throwable cause = fut.cause();
assertInstanceOf(UnknownHostException.class, cause);
assertThat(cause.getMessage()).doesNotContain("foo.com");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testExceptionMsgDoesNotContainSearchDomainIfNdotsIsNotReached() do?
testExceptionMsgDoesNotContainSearchDomainIfNdotsIsNotReached() is a function in the netty codebase, defined in resolver-dns/src/test/java/io/netty/resolver/dns/SearchDomainTest.java.
Where is testExceptionMsgDoesNotContainSearchDomainIfNdotsIsNotReached() defined?
testExceptionMsgDoesNotContainSearchDomainIfNdotsIsNotReached() is defined in resolver-dns/src/test/java/io/netty/resolver/dns/SearchDomainTest.java at line 297.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free