eclipse-ee4j / eclipse-ee4j/jersey

Parallel tests with JerseyTest framework fails with Netty Provider

Open
#3,508 3 comments 0 reactions 0 assignees View on GitHub
Component: containers Component: test-framework netty Priority: Major test test-framework Type: Bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.