BAEL-5157
* midified integration test to use the first available port
This commit is contained in:
parent
5ceb08d88e
commit
79bc953888
|
@ -17,6 +17,7 @@ import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.Response.Status;
|
import javax.ws.rs.core.Response.Status;
|
||||||
|
|
||||||
import org.glassfish.jersey.test.JerseyTest;
|
import org.glassfish.jersey.test.JerseyTest;
|
||||||
|
import org.glassfish.jersey.test.TestProperties;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import com.baeldung.jersey.exceptionhandling.ExceptionHandlingConfig;
|
import com.baeldung.jersey.exceptionhandling.ExceptionHandlingConfig;
|
||||||
|
@ -35,6 +36,7 @@ public class StocksResourceIntegrationTest extends JerseyTest {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Application configure() {
|
protected Application configure() {
|
||||||
|
forceSet(TestProperties.CONTAINER_PORT, "0");
|
||||||
return new ExceptionHandlingConfig();
|
return new ExceptionHandlingConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue