Updates to use new TestSocketUtils from spring-cloud-test-support

This commit is contained in:
spencergibb
2022-03-11 13:27:45 -05:00
parent 0930e1d6cb
commit 21a60b8f0d
18 changed files with 51 additions and 26 deletions

View File

@@ -577,7 +577,7 @@ import io.javalin.Javalin;
import io.restassured.RestAssured;
import org.junit.After;
import org.junit.Before;
import org.springframework.util.SocketUtils;
import org.springframework.cloud.test.TestSocketUtils;
public class BaseClass {
@@ -586,7 +586,7 @@ public class BaseClass {
@Before
public void setup() {
// pick a random port
int port = SocketUtils.findAvailableTcpPort();
int port = TestSocketUtils.findAvailableTcpPort();
// start the application at a random port
this.app = start(port);
// tell Rest Assured where the started application is