io.tracee.PortUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tracee-testhelper Show documentation
Show all versions of tracee-testhelper Show documentation
Please refer to https://github.com/tracee/tracee.
package io.tracee;
import java.util.Random;
public final class PortUtil {
public static int randomTestPort() {
int port;
//noinspection StatementWithEmptyBody
while ((port = new Random().nextInt(65536)) < 10000) {
}
return port;
}
private PortUtil() {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy