@Test void isValidPort_shouldBeValidInsideBounds() { assertThat(PortAvailability.isPortValid(0)).isTrue(); assertThat(PortAvailability.isPortValid(1)).isTrue(); assertThat(PortAvailability.isPortValid(1025)).isTrue(); assertThat(PortAvailability.isPortValid(65535)).isTrue(); }
public static boolean isPortValid(final int port) { return (port >= 0 && port <= 65535); }
PortAvailability { public static boolean isPortValid(final int port) { return (port >= 0 && port <= 65535); } }
PortAvailability { public static boolean isPortValid(final int port) { return (port >= 0 && port <= 65535); }  }
PortAvailability { public static boolean isPortValid(final int port) { return (port >= 0 && port <= 65535); }  static boolean isPortAvailableForTcp(final int port); static boolean isPortAvailableForUdp(final int port); static boolean isPortValid(final int port); static boolean isPortAvailable(final int port); }
PortAvailability { public static boolean isPortValid(final int port) { return (port >= 0 && port <= 65535); }  static boolean isPortAvailableForTcp(final int port); static boolean isPortAvailableForUdp(final int port); static boolean isPortValid(final int port); static boolean isPortAvailable(final int port);  }