Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhoon committed Nov 21, 2024
1 parent fcfed45 commit 09efa86
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,9 @@ void testIsCreatedWithIpAddressOnly() throws UnknownHostException {
inetAddress = InetAddress.getByAddress("foo.com", new byte[] { 1, 2, 3, 4 });
inetSocketAddress = new InetSocketAddress(inetAddress, 8080);
assertThat(IpAddrUtil.isCreatedWithIpAddressOnly(inetSocketAddress)).isFalse();

inetAddress = InetAddress.getByName("foo.com");
inetSocketAddress = new InetSocketAddress(inetAddress, 8080);
assertThat(IpAddrUtil.isCreatedWithIpAddressOnly(inetSocketAddress)).isFalse();
}
}

0 comments on commit 09efa86

Please sign in to comment.