Skip to content

Conversation

@jdcormie
Copy link
Member

@jdcormie jdcormie commented Jan 9, 2026

These test cases make use of DnsNameResolverProvider but also cover some logic from DnsNameResolverProvider's ctor. They could reasonably live in either file but DnsNameResolverProviderTest already knows how to test the new RFC 3986 newNameResolver() overload.

Leaves DnsNameResolverTest.java without any java.net.URI usage, which makes sense because DnsNameResolver's public API does not mention java.net.URI.

Removed test helpers that asserted more than "a single conceptual fact" per
https://abseil.io/resources/swe-book/html/ch12.html#shared_helpers_and_validation

These test cases make use of DnsNameResolverProvider but cover some
logic from DnsNameResolverProvider's ctor. They could reasonably live in
either file but DnsNameResolverProviderTest already knows how to
parametrically test both newNameResolver() overloads.

Leaves DnsNameResolverTest.java without any java.net.URI deps, which
makes sense because DnsNameResolver's public API does not mention
java.net.URI.

Removed test helpers that asserted more than "a single conceptual fact"
per
https://abseil.io/resources/swe-book/html/ch12.html#shared_helpers_and_validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant