Skip to content

Commit

Permalink
Improve test method names
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Siepel <[email protected]>
  • Loading branch information
lsiepel committed Oct 7, 2024
1 parent 019dce5 commit 2798068
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void testBroadcastAddress() {
}

@Test
public void checkValidRangeCount() throws UnknownHostException {
public void checkValidRangeCountAndSort() throws UnknownHostException {
InetAddress testableAddress = InetAddress.getByName("192.168.1.4");
List<InetAddress> addresses = NetUtil
.getAddressesRangeByCidrAddress(new CidrAddress(testableAddress, (short) 24), 24);
Expand All @@ -134,7 +134,7 @@ public void checkValidRangeCount() throws UnknownHostException {
}

@Test
public void checkValidLargeRangeCount() throws UnknownHostException {
public void checkValidLargeRangeCountAndSort() throws UnknownHostException {
InetAddress testableAddress = InetAddress.getByName("127.0.1.12");
List<InetAddress> addresses = NetUtil
.getAddressesRangeByCidrAddress(new CidrAddress(testableAddress, (short) 16), 16);
Expand All @@ -145,7 +145,7 @@ public void checkValidLargeRangeCount() throws UnknownHostException {
}

@Test
public void checkInvalidPrefixLength() throws UnknownHostException {
public void checkNotAllowedPrefixLength() throws UnknownHostException {
InetAddress testableAddress = InetAddress.getByName("192.168.1.0");
List<InetAddress> addresses = NetUtil
.getAddressesRangeByCidrAddress(new CidrAddress(testableAddress, (short) 16), 24);
Expand Down

0 comments on commit 2798068

Please sign in to comment.