@Test(dataProvider = "ValidCidr") public void testNetmaskStringCalculationSuccess(String cidr, String expectedNetmask) { String actualNetmask = IpHelper.calculateNetmaskStringFromCidr(cidr); assertThat(actualNetmask, equalTo(expectedNetmask)); }
public static String calculateNetmaskStringFromCidr(String cidr) { InetAddress netmask = calculateNetmaskFromCidr(cidr); return netmask.getHostAddress(); }
IpHelper { public static String calculateNetmaskStringFromCidr(String cidr) { InetAddress netmask = calculateNetmaskFromCidr(cidr); return netmask.getHostAddress(); } }
IpHelper { public static String calculateNetmaskStringFromCidr(String cidr) { InetAddress netmask = calculateNetmaskFromCidr(cidr); return netmask.getHostAddress(); }  }
IpHelper { public static String calculateNetmaskStringFromCidr(String cidr) { InetAddress netmask = calculateNetmaskFromCidr(cidr); return netmask.getHostAddress(); }  static long ipToLong(Inet4Address ip); static InetAddress longToIp(long ip); static String longToIpString(long ip); static long ipStringToLong(String ip); static byte[] longToNetworkByteOrderArray(long addr); static String calculateCidrFromIpV4Range(long ipLow, long ipHigh); static InetAddress calculateNetmaskFromCidr(String cidr); static String calculateNetmaskStringFromCidr(String cidr); static int safeLongToInt(long l); }
IpHelper { public static String calculateNetmaskStringFromCidr(String cidr) { InetAddress netmask = calculateNetmaskFromCidr(cidr); return netmask.getHostAddress(); }  static long ipToLong(Inet4Address ip); static InetAddress longToIp(long ip); static String longToIpString(long ip); static long ipStringToLong(String ip); static byte[] longToNetworkByteOrderArray(long addr); static String calculateCidrFromIpV4Range(long ipLow, long ipHigh); static InetAddress calculateNetmaskFromCidr(String cidr); static String calculateNetmaskStringFromCidr(String cidr); static int safeLongToInt(long l);  }