Home / Function/ testCompareUnresolvedSimple() — netty Function Reference

testCompareUnresolvedSimple() — netty Function Reference

Architecture documentation for the testCompareUnresolvedSimple() function in NameServerComparatorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9030fb85_4553_f496_a5e8_da5b0ebce8f3["testCompareUnresolvedSimple()"]
  b448ec25_ecf1_3027_6e5c_0842a9c0d810["NameServerComparatorTest"]
  9030fb85_4553_f496_a5e8_da5b0ebce8f3 -->|defined in| b448ec25_ecf1_3027_6e5c_0842a9c0d810
  style 9030fb85_4553_f496_a5e8_da5b0ebce8f3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver-dns/src/test/java/io/netty/resolver/dns/NameServerComparatorTest.java lines 75–85

    @Test
    public void testCompareUnresolvedSimple() {
        NameServerComparator comparator = new NameServerComparator(Inet4Address.class);
        int x = comparator.compare(IPV4ADDRESS1, UNRESOLVED1);
        int y = comparator.compare(UNRESOLVED1, IPV4ADDRESS1);

        assertEquals(-1, x);
        assertEquals(x, -y);
        assertEquals(0, comparator.compare(IPV4ADDRESS1, IPV4ADDRESS1));
        assertEquals(0, comparator.compare(UNRESOLVED1, UNRESOLVED1));
    }

Domain

Subdomains

Frequently Asked Questions

What does testCompareUnresolvedSimple() do?
testCompareUnresolvedSimple() is a function in the netty codebase, defined in resolver-dns/src/test/java/io/netty/resolver/dns/NameServerComparatorTest.java.
Where is testCompareUnresolvedSimple() defined?
testCompareUnresolvedSimple() is defined in resolver-dns/src/test/java/io/netty/resolver/dns/NameServerComparatorTest.java at line 75.

Analyze Your Own Codebase

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

Try Supermodel Free