eclipse-ee4j / eclipse-ee4j/jersey
Parallel tests with JerseyTest framework fails with Netty Provider
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
Enabling parallel test by setting TestProperties.CONTAINER_PORT to 0 as documented here: [https://jersey.java.net/documentation/latest/test-framework.html#parallel](https://jersey.java.net/documentation/latest/test-framework.html#parallel) does not work with Netty Provider.
The NettyTestContrainerFactory [https://github.com/jersey/jersey/blob/master/test-framework/providers/netty/src/main/java/org/glassfish/jersey/test/netty/NettyTestContainerFactory.java](https://github.com/jersey/jersey/blob/master/test-framework/providers/netty/src/main/java/org/glassfish/jersey/test/netty/NettyTestContainerFactory.java) does not implement this functionality, the baseUri should be updated with the allocated port when 0 is supplied as the port value here. The other providers have implemented this correctly.
#### Environment
Verified on Ubuntu
#### Affected Versions
[2.25.1]
Contributor guide
Assessment
This issue has not been assessed yet.