From 2798068acce62a4ae498e129b1ff8491af30f907 Mon Sep 17 00:00:00 2001 From: Leo Siepel Date: Mon, 7 Oct 2024 23:03:53 +0200 Subject: [PATCH] Improve test method names Signed-off-by: Leo Siepel --- .../src/test/java/org/openhab/core/net/NetUtilTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.core/src/test/java/org/openhab/core/net/NetUtilTest.java b/bundles/org.openhab.core/src/test/java/org/openhab/core/net/NetUtilTest.java index 0eb108b77a4..65c468911ef 100644 --- a/bundles/org.openhab.core/src/test/java/org/openhab/core/net/NetUtilTest.java +++ b/bundles/org.openhab.core/src/test/java/org/openhab/core/net/NetUtilTest.java @@ -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 addresses = NetUtil .getAddressesRangeByCidrAddress(new CidrAddress(testableAddress, (short) 24), 24); @@ -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 addresses = NetUtil .getAddressesRangeByCidrAddress(new CidrAddress(testableAddress, (short) 16), 16); @@ -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 addresses = NetUtil .getAddressesRangeByCidrAddress(new CidrAddress(testableAddress, (short) 16), 24);