BAEL-5157

* midified integration test to use the first available port
This commit is contained in:
Ulisses Lima 2022-04-19 12:27:00 -03:00
parent 5ceb08d88e
commit 79bc953888
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
import org.junit.Test;
import com.baeldung.jersey.exceptionhandling.ExceptionHandlingConfig;
@ -35,6 +36,7 @@ public class StocksResourceIntegrationTest extends JerseyTest {
@Override
protected Application configure() {
forceSet(TestProperties.CONTAINER_PORT, "0");
return new ExceptionHandlingConfig();
}