netty5/resolver-dns/src
Trustin Lee c0079840be Improve DnsNameResolverTest.testResolveA()
Motivation:

DnsNameResolver.testResolveA() tests if the cache works as well as the usual DNS protocol test.  To ensure the result from the cache is identical to the result without cache, it compares the two Maps which contain the result of cached/uncached resolution.  The comparison of two Maps yields an expected behavior, but the output of the comparison on failure is often unreadable due to its long length.

Modifications:

Compare entry-by-entry for more comprehensible test failure output

Result:

When failure occurs, it's easier to see which domain was the cause of the problem.
2014-10-25 17:29:06 +09:00
..
main/java/io/netty/resolver/dns Fix another resource leak in DnsNameResolver 2014-10-17 11:40:06 +09:00
test/java/io/netty/resolver/dns Improve DnsNameResolverTest.testResolveA() 2014-10-25 17:29:06 +09:00