From cbc7b323732c75f59d6d4648e37877bf44b5cd33 Mon Sep 17 00:00:00 2001
From: Alwin Joseph <44426046+alwin-joseph@users.noreply.github.com>
Date: Wed, 9 Mar 2022 18:31:48 +0530
Subject: [PATCH 001/305] Add jaxrs tck run module to test Jersey (#5000)
* add jaxrs tck run module
---
jersey-tck/README.md | 15 +
jersey-tck/j2ee.pass | 16 +
jersey-tck/javajoe.pass | 16 +
jersey-tck/pom.xml | 501 ++++++++++++++++++
.../JerseyApplicationArchiveProcessor.java | 35 ++
.../core/tck/JerseyLoadableExtension.java | 27 +
...boss.arquillian.core.spi.LoadableExtension | 1 +
..._securitycontext_basic_web.war.sun-web.xml | 31 ++
...equestcontext_security_web.war.sun-web.xml | 27 +
9 files changed, 669 insertions(+)
create mode 100644 jersey-tck/README.md
create mode 100644 jersey-tck/j2ee.pass
create mode 100644 jersey-tck/javajoe.pass
create mode 100644 jersey-tck/pom.xml
create mode 100644 jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyApplicationArchiveProcessor.java
create mode 100644 jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyLoadableExtension.java
create mode 100644 jersey-tck/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
create mode 100644 jersey-tck/src/main/resources/jaxrs_ee_core_securitycontext_basic_web.war.sun-web.xml
create mode 100644 jersey-tck/src/main/resources/jaxrs_ee_rs_container_requestcontext_security_web.war.sun-web.xml
diff --git a/jersey-tck/README.md b/jersey-tck/README.md
new file mode 100644
index 00000000000..2457e01cbc2
--- /dev/null
+++ b/jersey-tck/README.md
@@ -0,0 +1,15 @@
+# Jakarta REST TCK
+
+The **Jakarta REST TCK** is a standalone kit for testing compliance of an implementation with the Jakarta REST specification.
+
+
+## Performing Test
+
+While the test kit *is not dependent* of Maven, the most easy way to perform the tests is to create a copy of the sample Maven project found in the `jersey-tck` folder and adjust it to the actual needs of the implementation to be actually tested:
+* Replace the dependency to Jersey by a dependency to the implementation to be actually tested.
+* Execute `mvn verify`.
+* Find the test result as part of Maven's output on the console or refer to the surefire reports.
+
+**Note:** Certainly the same can be performed using *other* build tools, like Gradle, or even by running a standalone Jupiter API compatible test runner (e. g. JUnit 5 Console Runner), as long as the Jakarta REST TCK JAR file and the implementation to test are both found on the classpath.
+
+**Hint:** The test project can safely get stored as part of the implementation, so it can be easily executed as part of the QA process.
diff --git a/jersey-tck/j2ee.pass b/jersey-tck/j2ee.pass
new file mode 100644
index 00000000000..7cd0e34f04f
--- /dev/null
+++ b/jersey-tck/j2ee.pass
@@ -0,0 +1,16 @@
+#
+# Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License v. 2.0, which is available at
+# http://www.eclipse.org/legal/epl-2.0.
+#
+# This Source Code may also be made available under the following Secondary
+# Licenses when the conditions for such availability set forth in the
+# Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+# version 2 with the GNU Classpath Exception, which is available at
+# https://www.gnu.org/software/classpath/license.html.
+#
+# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+#
+AS_ADMIN_USERPASSWORD=j2ee
\ No newline at end of file
diff --git a/jersey-tck/javajoe.pass b/jersey-tck/javajoe.pass
new file mode 100644
index 00000000000..f06be725d70
--- /dev/null
+++ b/jersey-tck/javajoe.pass
@@ -0,0 +1,16 @@
+#
+# Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License v. 2.0, which is available at
+# http://www.eclipse.org/legal/epl-2.0.
+#
+# This Source Code may also be made available under the following Secondary
+# Licenses when the conditions for such availability set forth in the
+# Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+# version 2 with the GNU Classpath Exception, which is available at
+# https://www.gnu.org/software/classpath/license.html.
+#
+# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+#
+AS_ADMIN_USERPASSWORD=javajoe
\ No newline at end of file
diff --git a/jersey-tck/pom.xml b/jersey-tck/pom.xml
new file mode 100644
index 00000000000..e0fc24e1b6a
--- /dev/null
+++ b/jersey-tck/pom.xml
@@ -0,0 +1,501 @@
+
+
+
+ 4.0.0
+
+ org.glassfish.jersey.core
+ jersey-tck
+ 3.1.0
+ jar
+
+ Jakarta RESTful WS Compliance for Jersey
+ This test verifies the compliance of Eclipse Jersey with Jakarta REST
+
+
+ 11
+ 11
+ 3.1.0-M3
+ 6.2.5
+ ${project.build.directory}/glassfish6
+ 10.0.0-RC1
+ 5.7.2
+ 3.1.0
+ jakarta-restful-ws-tck
+
+
+
+
+
+ org.junit
+ junit-bom
+ ${junit.jupiter.version}
+ pom
+ import
+
+
+ org.glassfish.jersey
+ jersey-bom
+ ${jersey.version}
+ pom
+ import
+
+
+
+
+
+
+ jakarta-snapshots
+ https://jakarta.oss.sonatype.org/content/repositories/staging/
+
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter
+ ${junit.jupiter.version}
+
+
+
+ org.glassfish.hk2
+ hk2-locator
+ 3.0.0
+
+
+
+ com.sun.xml.bind
+ jaxb-impl
+ 3.0.0
+ runtime
+
+
+
+ org.jboss.arquillian.container
+ arquillian-glassfish-managed-6
+ 1.0.0.Alpha1
+
+
+
+ jakarta.ws.rs
+ ${tck.artifactId}
+ ${project.version}
+ test
+
+
+
+ jakarta.ws.rs
+ jakarta.ws.rs-api
+ ${project.version}
+ test
+
+
+
+ org.hamcrest
+ hamcrest
+ 2.2
+ test
+
+
+
+ org.glassfish.main.common
+ simple-glassfish-api
+ ${glassfish.container.version}
+
+
+
+ org.jboss.arquillian.junit5
+ arquillian-junit5-container
+ 1.7.0.Alpha10
+
+
+
+ jakarta.platform
+ jakarta.jakartaee-api
+ ${jakarta.platform.version}
+ provided
+
+
+
+ commons-httpclient
+ commons-httpclient
+ 3.1
+
+
+
+ org.glassfish.jersey.core
+ jersey-server
+ ${jersey.version}
+ test
+
+
+ org.glassfish.jersey.containers
+ jersey-container-grizzly2-http
+ ${jersey.version}
+ test
+
+
+ org.netbeans.tools
+ sigtest-maven-plugin
+ 1.4
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-binding
+ ${jersey.version}
+ test
+
+
+ org.glassfish.jersey.media
+ jersey-media-jaxb
+ ${jersey.version}
+ test
+
+
+ org.glassfish.jersey.media
+ jersey-media-sse
+ ${jersey.version}
+ test
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ 3.2.0
+
+
+ unpack
+ pre-integration-test
+
+ unpack
+
+
+
+
+ org.glassfish.main.distributions
+ glassfish
+ ${glassfish.container.version}
+ zip
+ false
+ ${project.build.directory}
+
+
+
+
+
+ copy
+ pre-integration-test
+
+ copy
+
+
+
+
+ org.glassfish.jersey.core
+ jersey-client
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-client.jar
+
+
+ org.glassfish.jersey.core
+ jersey-server
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-server.jar
+
+
+ org.glassfish.jersey.core
+ jersey-common
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-common.jar
+
+
+ org.glassfish.jersey.containers
+ jersey-container-grizzly2-http
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-container-grizzly2-http.jar
+
+
+ org.glassfish.jersey.containers
+ jersey-container-servlet-core
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-container-servlet-core.jar
+
+
+ org.glassfish.jersey.containers
+ jersey-container-servlet
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-container-servlet.jar
+
+
+ org.glassfish.jersey.media
+ jersey-media-sse
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-media-sse.jar
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-binding
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-media-json-binding.jar
+
+
+ jakarta.ws.rs
+ jakarta.ws.rs-api
+ ${jakarta.rest.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jakarta.ws.rs-api.jar
+
+
+
+
+
+
+
+ exec-maven-plugin
+ org.codehaus.mojo
+
+
+ StopDomain1
+ pre-integration-test
+
+ exec
+
+
+ ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+
+ stop-domain
+
+
+
+
+ StartDomain1
+ pre-integration-test
+
+ exec
+
+
+ ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+
+ start-domain
+
+
+
+
+ Enable Trace requests
+ pre-integration-test
+
+ exec
+
+
+ ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+
+ set
+ server-config.network-config.protocols.protocol.http-listener-1.http.trace-enabled=true
+
+
+
+
+ Delete User j2ee
+ pre-integration-test
+
+ exec
+
+
+ ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+
+ --passwordfile
+ ${project.basedir}/j2ee.pass
+ delete-file-user
+ j2ee
+
+
+ 0
+ 1
+
+
+
+
+ Add User j2ee
+ pre-integration-test
+
+ exec
+
+
+ ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+
+ --passwordfile
+ ${project.basedir}/j2ee.pass
+ create-file-user
+ --groups
+ staff:mgr
+ j2ee
+
+
+
+
+ Delete User javajoe
+ pre-integration-test
+
+ exec
+
+
+ ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+
+ --passwordfile
+ ${project.basedir}/javajoe.pass
+ delete-file-user
+ javajoe
+
+
+ 0
+ 1
+
+
+
+
+ Add User javajoe
+ pre-integration-test
+
+ exec
+
+
+ ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+
+ --passwordfile
+ ${project.basedir}/javajoe.pass
+ create-file-user
+ --groups
+ guest
+ javajoe
+
+
+
+
+ list users
+ pre-integration-test
+
+ exec
+
+
+ ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+
+ list-file-users
+
+
+
+
+ StopDomain
+ pre-integration-test
+
+ exec
+
+
+ ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+
+ stop-domain
+
+
+
+
+
+
+
+ maven-failsafe-plugin
+ 3.0.0-M5
+
+
+ gf-tests
+
+ integration-test
+ verify
+
+
+
+ **/SeBootstrapIT.java
+
+ jakarta.ws.rs:${tck.artifactId}
+
+ ${glassfish.home}
+ org.glassfish.jersey.servlet.ServletContainer
+ localhost
+ 8080
+ true
+ j2ee
+ j2ee
+ javajoe
+ javajoe
+ ee.jakarta.tck.ws.rs.lib.implementation.sun.common.SunRIURL
+ ${project.build.directory}/jdk11-bundle
+ jakarta.xml.bind
+ ${glassfish.home}/glassfish/modules/jakarta.ws.rs-api.jar:${glassfish.home}/glassfish/modules/jakarta.xml.bind-api.jar:${project.build.directory}/jdk11-bundle/java.base:${project.build.directory}/jdk11-bundle/java.rmi:${project.build.directory}/jdk11-bundle/java.sql:${project.build.directory}/jdk11-bundle/java.naming
+
+
+ ${glassfish.home}
+
+
+
+
+ se-tests
+
+ integration-test
+ verify
+
+
+
+ **/SeBootstrapIT.java
+
+ jakarta.ws.rs:${tck.artifactId}
+
+
+
+
+
+
+
diff --git a/jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyApplicationArchiveProcessor.java b/jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyApplicationArchiveProcessor.java
new file mode 100644
index 00000000000..c5597e5da83
--- /dev/null
+++ b/jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyApplicationArchiveProcessor.java
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.core.tck;
+
+import org.jboss.arquillian.container.test.spi.client.deployment.ApplicationArchiveProcessor;
+import org.jboss.arquillian.test.spi.TestClass;
+import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+
+public class JerseyApplicationArchiveProcessor implements ApplicationArchiveProcessor {
+ @Override
+ public void process(Archive> archive, TestClass testClass) {
+ if ("jaxrs_ee_rs_container_requestcontext_security_web.war".equals(archive.getName())) {
+ WebArchive webArchive = (WebArchive) archive;
+ webArchive.addAsWebInfResource("jaxrs_ee_rs_container_requestcontext_security_web.war.sun-web.xml", "sun-web.xml");
+ } else if ("jaxrs_ee_core_securitycontext_basic_web.war".equals(archive.getName())) {
+ WebArchive webArchive = (WebArchive) archive;
+ webArchive.addAsWebInfResource("jaxrs_ee_core_securitycontext_basic_web.war.sun-web.xml", "sun-web.xml");
+ }
+ }
+}
diff --git a/jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyLoadableExtension.java b/jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyLoadableExtension.java
new file mode 100644
index 00000000000..d4da355f257
--- /dev/null
+++ b/jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyLoadableExtension.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.core.tck;
+
+import org.jboss.arquillian.container.test.spi.client.deployment.ApplicationArchiveProcessor;
+import org.jboss.arquillian.core.spi.LoadableExtension;
+
+public class JerseyLoadableExtension implements LoadableExtension {
+ @Override
+ public void register(ExtensionBuilder extensionBuilder) {
+ extensionBuilder.service(ApplicationArchiveProcessor.class, JerseyApplicationArchiveProcessor.class);
+ }
+}
diff --git a/jersey-tck/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension b/jersey-tck/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
new file mode 100644
index 00000000000..577c00f53ef
--- /dev/null
+++ b/jersey-tck/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
@@ -0,0 +1 @@
+org.glassfish.jersey.core.tck.JerseyLoadableExtension
\ No newline at end of file
diff --git a/jersey-tck/src/main/resources/jaxrs_ee_core_securitycontext_basic_web.war.sun-web.xml b/jersey-tck/src/main/resources/jaxrs_ee_core_securitycontext_basic_web.war.sun-web.xml
new file mode 100644
index 00000000000..8e2a2519e4d
--- /dev/null
+++ b/jersey-tck/src/main/resources/jaxrs_ee_core_securitycontext_basic_web.war.sun-web.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+ jaxrs_ee_core_securitycontext_basic_web
+
+ DIRECTOR
+ j2ee
+
+
+ OTHERROLE
+ javajoe
+
+
diff --git a/jersey-tck/src/main/resources/jaxrs_ee_rs_container_requestcontext_security_web.war.sun-web.xml b/jersey-tck/src/main/resources/jaxrs_ee_rs_container_requestcontext_security_web.war.sun-web.xml
new file mode 100644
index 00000000000..a5efdc5a21e
--- /dev/null
+++ b/jersey-tck/src/main/resources/jaxrs_ee_rs_container_requestcontext_security_web.war.sun-web.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ jaxrs_ee_rs_container_requestcontext_security_web
+
+ DIRECTOR
+ j2ee
+
+
From fe9829bb5abc89f09c92bbce1613d31331939eae Mon Sep 17 00:00:00 2001
From: hs536
Date: Thu, 17 Mar 2022 20:23:33 +0100
Subject: [PATCH 002/305] Bump JAXB from 3.0.X to 4.0.X
---
.../jersey/jettison/JettisonJaxbContext.java | 14 +-------------
.../internal/JettisonJaxbMarshaller.java | 8 ++++----
.../internal/JettisonJaxbUnmarshaller.java | 18 ++++--------------
3 files changed, 9 insertions(+), 31 deletions(-)
diff --git a/media/json-jettison/src/main/java/org/glassfish/jersey/jettison/JettisonJaxbContext.java b/media/json-jettison/src/main/java/org/glassfish/jersey/jettison/JettisonJaxbContext.java
index f76ab53b5d6..6d6b039a4e0 100644
--- a/media/json-jettison/src/main/java/org/glassfish/jersey/jettison/JettisonJaxbContext.java
+++ b/media/json-jettison/src/main/java/org/glassfish/jersey/jettison/JettisonJaxbContext.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,7 +22,6 @@
import jakarta.xml.bind.JAXBException;
import jakarta.xml.bind.Marshaller;
import jakarta.xml.bind.Unmarshaller;
-import jakarta.xml.bind.Validator;
import org.glassfish.jersey.jettison.internal.BaseJsonMarshaller;
import org.glassfish.jersey.jettison.internal.BaseJsonUnmarshaller;
@@ -300,15 +299,4 @@ public Unmarshaller createUnmarshaller() throws JAXBException {
public Marshaller createMarshaller() throws JAXBException {
return new JettisonJaxbMarshaller(jaxbContext, getJSONConfiguration());
}
-
- /**
- * Simply delegates to underlying JAXBContext implementation.
- *
- * @return what underlying JAXBContext returns
- * @throws jakarta.xml.bind.JAXBException
- */
- @Override
- public Validator createValidator() throws JAXBException {
- return jaxbContext.createValidator();
- }
}
diff --git a/media/json-jettison/src/main/java/org/glassfish/jersey/jettison/internal/JettisonJaxbMarshaller.java b/media/json-jettison/src/main/java/org/glassfish/jersey/jettison/internal/JettisonJaxbMarshaller.java
index cd78fc9d44a..4603572ae0c 100644
--- a/media/json-jettison/src/main/java/org/glassfish/jersey/jettison/internal/JettisonJaxbMarshaller.java
+++ b/media/json-jettison/src/main/java/org/glassfish/jersey/jettison/internal/JettisonJaxbMarshaller.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -128,17 +128,17 @@ public ValidationEventHandler getEventHandler() throws JAXBException {
}
@Override
- public void setAdapter(XmlAdapter adapter) {
+ public > void setAdapter(A adapter) {
jaxbMarshaller.setAdapter(adapter);
}
@Override
- public void setAdapter(Class type, A adapter) {
+ public > void setAdapter(Class type, A adapter) {
jaxbMarshaller.setAdapter(type, adapter);
}
@Override
- public A getAdapter(Class type) {
+ public > A getAdapter(Class type) {
return jaxbMarshaller.getAdapter(type);
}
diff --git a/media/json-jettison/src/main/java/org/glassfish/jersey/jettison/internal/JettisonJaxbUnmarshaller.java b/media/json-jettison/src/main/java/org/glassfish/jersey/jettison/internal/JettisonJaxbUnmarshaller.java
index 3d24d5032e9..377e37ae59f 100644
--- a/media/json-jettison/src/main/java/org/glassfish/jersey/jettison/internal/JettisonJaxbUnmarshaller.java
+++ b/media/json-jettison/src/main/java/org/glassfish/jersey/jettison/internal/JettisonJaxbUnmarshaller.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -122,16 +122,6 @@ public UnmarshallerHandler getUnmarshallerHandler() {
return this.jaxbUnmarshaller.getUnmarshallerHandler();
}
- @Override
- public void setValidating(boolean validating) throws JAXBException {
- this.jaxbUnmarshaller.setValidating(validating);
- }
-
- @Override
- public boolean isValidating() throws JAXBException {
- return this.jaxbUnmarshaller.isValidating();
- }
-
@Override
public void setEventHandler(ValidationEventHandler validationEventHandler) throws JAXBException {
this.jaxbUnmarshaller.setEventHandler(validationEventHandler);
@@ -163,17 +153,17 @@ public Schema getSchema() {
}
@Override
- public void setAdapter(XmlAdapter xmlAdapter) {
+ public > void setAdapter(A xmlAdapter) {
this.jaxbUnmarshaller.setAdapter(xmlAdapter);
}
@Override
- public void setAdapter(Class type, A adapter) {
+ public > void setAdapter(Class type, A adapter) {
this.jaxbUnmarshaller.setAdapter(type, adapter);
}
@Override
- public A getAdapter(Class type) {
+ public > A getAdapter(Class type) {
return this.jaxbUnmarshaller.getAdapter(type);
}
From 44d62202133097bae57ee98e5fd3c4c7a0c0fdba Mon Sep 17 00:00:00 2001
From: jansupol
Date: Fri, 18 Mar 2022 12:58:04 +0100
Subject: [PATCH 003/305] Update versions of JAX-B, Moxy, JSON-B, JSON-P
Signed-off-by: jansupol
---
pom.xml | 39 +++++++++----------
.../AnotherContactBean.java | 7 ++--
.../ValidateOnExecutionBasicTest.java | 37 +++++++++++++++++-
.../e2e/server/wadl/WadlBeanParamTest.java | 12 ++++--
.../e2e/server/wadl/WadlResourceTest.java | 9 ++++-
.../osgi/test/basic/JsonJacksonTest.java | 3 ++
.../jersey/osgi/test/basic/JsonMoxyTest.java | 4 +-
.../osgi/test/basic/PackageScanningTest.java | 2 +-
.../jersey/osgi/test/util/Helper.java | 6 +--
9 files changed, 82 insertions(+), 37 deletions(-)
diff --git a/pom.xml b/pom.xml
index 39b9360f6cd..e37eba9579a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2120,12 +2120,9 @@
1.3
1.0.3
1.6
- org.glassfish.hk2.*;version="[3.0,4)"
- org.jvnet.hk2.*;version="[3.0,4)"
- 6.0.0
4.5.13
2.13.0
- 3.25.0-GA
+ 3.28.0-GA
3.3.0.Final
1.19.3
${jersey1.version}
@@ -2159,7 +2156,6 @@
4.0.2.Final
- 3.1.7.SP1
7.0.1.Final
2.11.0
@@ -2168,43 +2164,46 @@
20.3.2
- 6.0.0
+ 7.0.0-M2
3.0.0
4.0.0
3.0.1
2.0.0
- 3.0.2
- 3.0.0
- 2.0.0
+ 3.0.3
+ org.glassfish.hk2.*;version="[3.0,4)"
+ org.jvnet.hk2.*;version="[3.0,4)"
+ 7.0.0-M2
+ 3.1.0
+ 3.0.0
2.0.0
5.0.0
6.0.0
5.0.0
4.0.0
- 2.0.1
+ 2.1.0
2.0.1
4.0.0
4.0.2
jakarta.annotation.*;version="[2.0,3)"
- 2.0.0
+ 2.1.0
2.0.1
- 2.0.0
+ 2.1.0
2.1.0
- 3.0.0
+ 3.1.0
3.0.1
- 3.0.1
- 3.0.2
+ 4.0.0
+ 4.0.0-M3
3.1
3.1.0
11.0.7
11.0.7
6.1.14
- 2.0.0
- 1.0.0
- 1.0.0
- 3.0.2
- 2.0.3
+ 3.0.0
+ 1.1.0
+ 1.1.0
+ 4.0.0-M3
+ 3.0.0-RC1
1.3.2
diff --git a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/validation/validateonexecution/AnotherContactBean.java b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/validation/validateonexecution/AnotherContactBean.java
index fa65eae7447..2d88b34ad08 100644
--- a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/validation/validateonexecution/AnotherContactBean.java
+++ b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/validation/validateonexecution/AnotherContactBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,6 +18,8 @@
import java.io.Serializable;
+import jakarta.validation.constraints.Email;
+import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.executable.ExecutableType;
@@ -26,9 +28,6 @@
import org.glassfish.jersey.tests.e2e.server.validation.Extended;
-import org.hibernate.validator.constraints.Email;
-import org.hibernate.validator.constraints.NotBlank;
-
/**
* @author Michal Gajdos
*/
diff --git a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/validation/validateonexecution/ValidateOnExecutionBasicTest.java b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/validation/validateonexecution/ValidateOnExecutionBasicTest.java
index 3c3c9463403..f3ecf18de98 100644
--- a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/validation/validateonexecution/ValidateOnExecutionBasicTest.java
+++ b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/validation/validateonexecution/ValidateOnExecutionBasicTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,12 +32,22 @@
import jakarta.validation.executable.ExecutableType;
import jakarta.validation.executable.ValidateOnExecution;
+import jakarta.ws.rs.ext.ContextResolver;
+import jakarta.xml.bind.JAXBContext;
+import jakarta.xml.bind.JAXBException;
+import org.eclipse.persistence.jaxb.BeanValidationMode;
+import org.eclipse.persistence.jaxb.MarshallerProperties;
+import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.test.TestProperties;
import org.glassfish.jersey.test.util.runner.RunSeparately;
import org.junit.Test;
+
+import java.util.HashMap;
+import java.util.Map;
+
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
@@ -289,6 +299,28 @@ public String getNull() {
}
}
+ /**
+ * Do not validate the bean by Moxy, validate just by Jersey
+ */
+ public static class MoxyNotValidateContextResolver implements ContextResolver {
+ @Override
+ public JAXBContext getContext(Class> type) {
+ Map properties = new HashMap<>();
+ properties.put(MarshallerProperties.BEAN_VALIDATION_MODE, BeanValidationMode.NONE);
+ try {
+ return JAXBContext.newInstance(new Class[]{type}, properties);
+ } catch (JAXBException e) {
+ throw new RuntimeException(e);
+ }
+ }
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.register(MoxyNotValidateContextResolver.class);
+ super.configureClient(config);
+ }
+
@Override
protected Application configure() {
enable(TestProperties.LOG_TRAFFIC);
@@ -309,7 +341,8 @@ protected Application configure() {
ValidateGetterExecutableOnTypeMatch.class,
ValidateGetterExecutableOnBeans.class,
ValidateGetterResourceMethod.class,
- ValidateExecutableResource.class)
+ ValidateExecutableResource.class,
+ MoxyNotValidateContextResolver.class)
.property(ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true);
}
diff --git a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlBeanParamTest.java b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlBeanParamTest.java
index 195c6755aa7..481c20c3b7d 100644
--- a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlBeanParamTest.java
+++ b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlBeanParamTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,6 +22,7 @@
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
+import java.util.Properties;
import jakarta.ws.rs.BeanParam;
import jakarta.ws.rs.CookieParam;
@@ -38,9 +39,13 @@
import jakarta.ws.rs.core.Request;
import jakarta.ws.rs.core.Response;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.Result;
+import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.URIResolver;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.xpath.XPath;
@@ -89,8 +94,9 @@ public class WadlBeanParamTest extends JerseyTest {
*/
@Override
public boolean qualifyForComparison(final Element control, final Element test) {
- if (test != null && !"param".equals(test.getNodeName())) {
- return super.qualifyForComparison(control, test);
+ if (test != null && !"param".equals(test.getNodeName()) && !"ns0:param".equals(test.getNodeName())) {
+ boolean spr = super.qualifyForComparison(control, test);
+ return spr;
}
if (!(control != null && test != null
&& equalsNamespace(control, test)
diff --git a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlResourceTest.java b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlResourceTest.java
index 72371288ed5..da2d78749a3 100644
--- a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlResourceTest.java
+++ b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -1009,7 +1009,12 @@ public void testGetWithPathAndLeadingSlash() throws Exception {
final String document = response.readEntity(String.class);
// check that the resulting document contains a method element with id="fooX"
- assertTrue(document.replaceAll("\n", " ").matches(".*]+id=\"foo" + i + "\"[^>]*>.*"));
+ assertTrue(document
+ .replaceAll("\n", " ")
+ .replaceAll("\r", "")
+ .replaceAll("ns0:", "")
+ .matches(".*]+id=\"foo" + i + "\"[^>]*>.*")
+ );
}
}
}
diff --git a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonJacksonTest.java b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonJacksonTest.java
index 7d06f02d486..7aebd55951f 100644
--- a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonJacksonTest.java
+++ b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonJacksonTest.java
@@ -41,6 +41,9 @@ public static Option[] configuration() {
options.addAll(Helper.expandedList(
// vmOption("-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"),
+ // TODO - remove when jackson-module-jakarta-xmlbind-annotations supports JAX-B/4
+ mavenBundle().groupId("jakarta.xml.bind").artifactId("jakarta.xml.bind-api").version("3.0.1"),
+
mavenBundle().groupId("org.glassfish.jersey.media").artifactId("jersey-media-json-jackson").versionAsInProject(),
mavenBundle().groupId("org.glassfish.jersey.ext").artifactId("jersey-entity-filtering").versionAsInProject(),
diff --git a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonMoxyTest.java b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonMoxyTest.java
index 0f7eb6f9686..c4558a8c4c6 100644
--- a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonMoxyTest.java
+++ b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonMoxyTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -57,7 +57,7 @@ public static Option[] configuration() {
mavenBundle().groupId("org.eclipse.persistence").artifactId("org.eclipse.persistence.moxy").versionAsInProject(),
mavenBundle().groupId("org.eclipse.persistence").artifactId("org.eclipse.persistence.core").versionAsInProject(),
mavenBundle().groupId("org.eclipse.persistence").artifactId("org.eclipse.persistence.asm").versionAsInProject(),
- mavenBundle().groupId("org.glassfish").artifactId("jakarta.json").versionAsInProject(),
+ mavenBundle().groupId("jakarta.json").artifactId("jakarta.json-api").versionAsInProject(),
// validation
mavenBundle().groupId("org.hibernate.validator").artifactId("hibernate-validator").versionAsInProject(),
diff --git a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/PackageScanningTest.java b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/PackageScanningTest.java
index 424b1babfbc..c3a2fcaef77 100644
--- a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/PackageScanningTest.java
+++ b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/PackageScanningTest.java
@@ -79,7 +79,7 @@ public static Option[] configuration() {
.versionAsInProject(),
// MBR/MBW for JSON-P is on the classpath.
- mavenBundle().groupId("org.glassfish").artifactId("jakarta.json").versionAsInProject()
+ mavenBundle().groupId("jakarta.json").artifactId("jakarta.json-api").versionAsInProject()
));
options = Helper.addPaxExamMavenLocalRepositoryProperty(options);
diff --git a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/util/Helper.java b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/util/Helper.java
index 76a1515b0ad..4be49dd0e3f 100644
--- a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/util/Helper.java
+++ b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/util/Helper.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -183,9 +183,9 @@ public static List getCommonOsgiOptions(final boolean includeJerseyJaxRs
mavenBundle().groupId("org.glassfish.jersey.core").artifactId("jersey-client").versionAsInProject(),
// Jersey Injection provider
- mavenBundle().groupId("org.glassfish.jersey.inject").artifactId("jersey-hk2").versionAsInProject(),
+ mavenBundle().groupId("org.glassfish.jersey.inject").artifactId("jersey-hk2").versionAsInProject()
// Jaxb - api
- getActivationBundle()
+// getActivationBundle()
));
}
From 8a4ee718d4366f61cd0afaf8ebdf944e1cb2fbe9 Mon Sep 17 00:00:00 2001
From: Nuno Santos
Date: Fri, 18 Mar 2022 13:16:55 +0000
Subject: [PATCH 004/305] Fix regression on LoggingFeature's max entity size
(#5007)
---
.../jersey/logging/LoggingInterceptor.java | 4 ++--
.../tests/e2e/common/LoggingFeatureTest.java | 19 ++++++++++++++++++-
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/core-common/src/main/java/org/glassfish/jersey/logging/LoggingInterceptor.java b/core-common/src/main/java/org/glassfish/jersey/logging/LoggingInterceptor.java
index 601d6b2828e..fd1791b7d8f 100644
--- a/core-common/src/main/java/org/glassfish/jersey/logging/LoggingInterceptor.java
+++ b/core-common/src/main/java/org/glassfish/jersey/logging/LoggingInterceptor.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -305,7 +305,7 @@ public void write(byte[] ba, int off, int len) throws IOException {
if ((off | len | ba.length - (len + off) | off + len) < 0) {
throw new IndexOutOfBoundsException();
}
- if ((baos.size() + len) <= maxEntitySize) {
+ if (baos.size() <= maxEntitySize) {
baos.write(ba, off, len);
}
out.write(ba, off, len);
diff --git a/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java b/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java
index b85b8dfbd14..3f3522e192a 100644
--- a/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java
+++ b/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -284,6 +284,23 @@ public void testLoggingFeatureBuilderProperty() {
assertThat(record.getMessage(), containsString(SEPARATOR));
}
+ @Test
+ public void testLoggingFeatureMaxEntitySize() {
+ final Response response = target("/text")
+ .register(LoggingFeature.class)
+ .property(LoggingFeature.LOGGING_FEATURE_LOGGER_NAME, LOGGER_NAME)
+ .property(LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE, 1)
+ .request()
+ .post(Entity.text(ENTITY));
+
+ // Correct response status.
+ assertThat(response.getStatus(), is(Response.Status.OK.getStatusCode()));
+ // Check logs for trimmedEntity.
+ String trimmedEntity = ENTITY.charAt(0) + "...more...";
+ List logRecords = getLoggedRecords();
+ assertThat(getLoggingFilterRequestLogRecord(logRecords).getMessage(), containsString(trimmedEntity));
+ assertThat(getLoggingFilterResponseLogRecord(logRecords).getMessage(), containsString(trimmedEntity));
+ }
}
/**
From db2f8a2ba9f91b3dfa870bf822476e4e82647c6f Mon Sep 17 00:00:00 2001
From: Nuno Santos
Date: Fri, 18 Mar 2022 13:18:49 +0000
Subject: [PATCH 005/305] Fix logging delimiter parameterization (#5003)
---
.../java/org/glassfish/jersey/logging/LoggingFeature.java | 4 ++--
docs/src/main/docbook/jersey.ent | 2 +-
.../jersey/tests/e2e/common/LoggingFeatureTest.java | 8 +++-----
3 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeature.java b/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeature.java
index e6ed421d5f1..f9b4d51a5d9 100644
--- a/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeature.java
+++ b/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeature.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -49,6 +49,7 @@
* logger level: {@link Level#FINE}
* verbosity: {@link Verbosity#PAYLOAD_TEXT}
* maximum entity size: {@value #DEFAULT_MAX_ENTITY_SIZE}
+ * line separator: {@link #DEFAULT_SEPARATOR}
*
*
* Server configurable properties:
@@ -222,7 +223,6 @@ public LoggingFeature(Logger logger, Level level, Verbosity verbosity, Integer m
.level(level)
.verbosity(verbosity)
.maxEntitySize(maxEntitySize)
- .separator(DEFAULT_SEPARATOR)
);
}
diff --git a/docs/src/main/docbook/jersey.ent b/docs/src/main/docbook/jersey.ent
index 9ebf17b6e5d..1775c4c083e 100644
--- a/docs/src/main/docbook/jersey.ent
+++ b/docs/src/main/docbook/jersey.ent
@@ -919,7 +919,7 @@
LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL_CLIENT">
LoggingFeature.LOGGING_FEATURE_VERBOSITY_CLIENT">
LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE_CLIENT">
-LoggingFeature.LOGGING_FEATURE_SEPARATORE_CLIENT">
+LoggingFeature.LOGGING_FEATURE_SEPARATOR_CLIENT">
LoggingFeature.LOGGING_FEATURE_LOGGER_NAME_SERVER">
LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL_SERVER">
LoggingFeature.LOGGING_FEATURE_VERBOSITY_SERVER">
diff --git a/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java b/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java
index 3f3522e192a..45ed7343ca6 100644
--- a/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java
+++ b/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/LoggingFeatureTest.java
@@ -269,11 +269,9 @@ public void testLoggingFeatureBuilderSeparator() {
@Test
public void testLoggingFeatureBuilderProperty() {
final Response response = target("/text")
- .register(LoggingFeature
- .builder()
- .withLogger(Logger.getLogger(LOGGER_NAME))
- .build()
- ).property(LoggingFeature.LOGGING_FEATURE_SEPARATOR, SEPARATOR)
+ .register(LoggingFeature.class)
+ .property(LoggingFeature.LOGGING_FEATURE_LOGGER_NAME, LOGGER_NAME)
+ .property(LoggingFeature.LOGGING_FEATURE_SEPARATOR, SEPARATOR)
.request()
.post(Entity.text(ENTITY));
From c5e71d03a02f0f79a3df451c4d325d90a5953542 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Fri, 18 Mar 2022 18:03:33 +0100
Subject: [PATCH 006/305] honor @Vetoed on a bean
Signed-off-by: jansupol
---
.../cdi1x/internal/CdiComponentProvider.java | 7 +-
.../resources/CdiComponentProviderTest.java | 84 +++++++++++++++++++
2 files changed, 90 insertions(+), 1 deletion(-)
create mode 100644 tests/integration/cdi-integration/cdi-test-webapp/src/test/java/org/glassfish/jersey/tests/cdi/resources/CdiComponentProviderTest.java
diff --git a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
index 9d42f002c57..7488e5152d8 100644
--- a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
+++ b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -39,6 +39,7 @@
import java.util.logging.Level;
import java.util.logging.Logger;
+import javax.enterprise.inject.Vetoed;
import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.BeforeBeanDiscovery;
import javax.inject.Singleton;
@@ -189,6 +190,10 @@ private boolean bind(final Class> clazz, final Set> providerContracts
return false;
}
+ if (clazz.isAnnotationPresent(Vetoed.class)) {
+ return false;
+ }
+
if (isJerseyOrDependencyType(clazz)) {
return false;
}
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/src/test/java/org/glassfish/jersey/tests/cdi/resources/CdiComponentProviderTest.java b/tests/integration/cdi-integration/cdi-test-webapp/src/test/java/org/glassfish/jersey/tests/cdi/resources/CdiComponentProviderTest.java
new file mode 100644
index 00000000000..ca9891446a8
--- /dev/null
+++ b/tests/integration/cdi-integration/cdi-test-webapp/src/test/java/org/glassfish/jersey/tests/cdi/resources/CdiComponentProviderTest.java
@@ -0,0 +1,84 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.cdi.resources;
+
+import org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.jboss.weld.environment.se.Weld;
+import org.junit.Test;
+
+import javax.enterprise.inject.Vetoed;
+import javax.enterprise.inject.spi.BeanManager;
+import javax.enterprise.inject.spi.CDI;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.core.Application;
+import java.util.Collections;
+
+import static org.junit.Assert.assertFalse;
+
+public class CdiComponentProviderTest extends JerseyTest {
+ Weld weld;
+
+ @Override
+ public void setUp() throws Exception {
+ weld = new Weld();
+ weld.initialize();
+ super.setUp();
+ }
+
+ @Override
+ public void tearDown() throws Exception {
+ weld.shutdown();
+ super.tearDown();
+ }
+
+ @Override
+ protected Application configure() {
+ return new ResourceConfig();
+ }
+
+ @Test
+ public void testVetoedClassIsNotBound() {
+ BeanManager beanManager = CDI.current().getBeanManager();
+ CdiComponentProvider provider = beanManager.getExtension(CdiComponentProvider.class);
+ assertFalse(provider.bind(VetoedResourceClass.class, Collections.singleton(Path.class)));
+ }
+
+ @Test
+ public void testInterfaceIsNotBound() {
+ BeanManager beanManager = CDI.current().getBeanManager();
+ CdiComponentProvider provider = beanManager.getExtension(CdiComponentProvider.class);
+ assertFalse(provider.bind(InterfaceResource.class, Collections.singleton(Path.class)));
+ }
+
+ @Path("/vetoed")
+ @Vetoed
+ public static class VetoedResourceClass {
+ @GET
+ public String get() {
+ return null;
+ }
+ }
+
+ @Path("/iface")
+ public static interface InterfaceResource {
+ @GET
+ public String get();
+ }
+}
From bdf758c65f4c6a990d570b277e2d8ca74fb97fb9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Mat=C4=9Bj=C4=8Dek?=
Date: Fri, 18 Mar 2022 13:56:20 +0100
Subject: [PATCH 007/305] Issue #5006 Dependency on servlet-api updated to
version 6.0.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: David Matějček
---
containers/jetty-http/pom.xml | 1 -
.../jersey/jetty/JettyHttpContainer.java | 4 +-
.../jetty/AbstractJettyServerTester.java | 3 +-
containers/jetty-servlet/pom.xml | 1 -
examples/bookstore-webapp/pom.xml | 1 -
examples/freemarker-webapp/pom.xml | 1 -
examples/helloworld-webapp/pom.xml | 1 -
.../osgi-helloworld-webapp/war-bundle/pom.xml | 1 -
examples/osgi-http-service/bundle/pom.xml | 1 -
examples/servlet3-webapp/pom.xml | 1 -
.../ServerBootstrapPreinitialization.java | 22 +--------
pom.xml | 11 ++---
test-framework/core/pom.xml | 1 -
tests/integration/j-441/war1/pom.xml | 1 -
tests/integration/j-441/war2/pom.xml | 1 -
tests/integration/jersey-1960/pom.xml | 1 -
tests/integration/jersey-1964/pom.xml | 1 -
tests/integration/jersey-2031/pom.xml | 1 -
tests/integration/jersey-2160/pom.xml | 1 -
tests/integration/jersey-2176/pom.xml | 1 -
tests/integration/jersey-2184/pom.xml | 1 -
tests/integration/jersey-2637/pom.xml | 1 -
tests/integration/jersey-2673/pom.xml | 1 -
tests/integration/jersey-2689/pom.xml | 1 -
tests/integration/jersey-2704/pom.xml | 1 -
tests/integration/jersey-3796/pom.xml | 1 -
tests/integration/jersey-4722/pom.xml | 2 -
.../servlet-2.5-inflector-1/pom.xml | 1 -
tests/integration/servlet-2.5-init-1/pom.xml | 1 -
tests/integration/servlet-2.5-mvc-1/pom.xml | 1 -
tests/integration/servlet-2.5-mvc-2/pom.xml | 1 -
tests/integration/servlet-2.5-mvc-3/pom.xml | 1 -
.../integration/servlet-3-inflector-1/pom.xml | 1 -
tests/integration/servlet-3-init-9/pom.xml | 1 -
.../servlet-3-init-provider/pom.xml | 1 -
tests/integration/servlet-3-params/pom.xml | 1 -
tests/integration/servlet-4.0-mvc-1/pom.xml | 4 +-
.../servlet-request-wrapper-binding-2/pom.xml | 2 +-
.../RequestResponseWrapperProvider.java | 46 +++++++++----------
.../servlet-request-wrapper-binding/pom.xml | 1 -
tests/integration/servlet-tests/pom.xml | 2 +-
.../redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment-threadlocals-app/pom.xml | 1 -
tests/osgi/functional/pom.xml | 2 +-
44 files changed, 36 insertions(+), 97 deletions(-)
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index 52930aaee6e..180b8213d9d 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -50,7 +50,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainer.java b/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainer.java
index ec14d86068d..fb0b790b225 100644
--- a/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainer.java
+++ b/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainer.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Contributors to the Eclipse Foundation
* Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -36,7 +37,6 @@
import jakarta.servlet.AsyncListener;
import jakarta.ws.rs.core.Application;
import jakarta.ws.rs.core.GenericType;
-import jakarta.ws.rs.core.Response.Status;
import jakarta.ws.rs.core.SecurityContext;
import jakarta.inject.Inject;
@@ -198,7 +198,7 @@ private void setResponseForInvalidUri(final HttpServletResponse response, final
if (configSetStatusOverSendError) {
response.reset();
//noinspection deprecation
- response.setStatus(BAD_REQUEST_STATUS.getStatusCode(), BAD_REQUEST_STATUS.getReasonPhrase());
+ response.setStatus(BAD_REQUEST_STATUS.getStatusCode());
} else {
response.sendError(BAD_REQUEST_STATUS.getStatusCode(), BAD_REQUEST_STATUS.getReasonPhrase());
}
diff --git a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AbstractJettyServerTester.java b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AbstractJettyServerTester.java
index e4314ae0592..e8c700d1fe8 100644
--- a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AbstractJettyServerTester.java
+++ b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AbstractJettyServerTester.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Contributors to the Eclipse Foundation
* Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -82,7 +83,7 @@ public UriBuilder getUri() {
return UriBuilder.fromUri("http://localhost").port(getPort()).path(CONTEXT);
}
- public void startServer(Class... resources) {
+ public void startServer(Class>... resources) {
ResourceConfig config = new ResourceConfig(resources);
config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
startServer(config);
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 62d7adc8a32..aad11987274 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -46,7 +46,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
org.eclipse.jetty
diff --git a/examples/bookstore-webapp/pom.xml b/examples/bookstore-webapp/pom.xml
index 5cb689572f0..52d4199ca43 100644
--- a/examples/bookstore-webapp/pom.xml
+++ b/examples/bookstore-webapp/pom.xml
@@ -56,7 +56,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/examples/freemarker-webapp/pom.xml b/examples/freemarker-webapp/pom.xml
index fb06cc05386..cee0d386388 100644
--- a/examples/freemarker-webapp/pom.xml
+++ b/examples/freemarker-webapp/pom.xml
@@ -40,7 +40,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/examples/helloworld-webapp/pom.xml b/examples/helloworld-webapp/pom.xml
index 17d288b43c3..aecb50d4507 100644
--- a/examples/helloworld-webapp/pom.xml
+++ b/examples/helloworld-webapp/pom.xml
@@ -32,7 +32,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
diff --git a/examples/osgi-helloworld-webapp/war-bundle/pom.xml b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
index ccd3eaf6ad4..b789a5b8a69 100644
--- a/examples/osgi-helloworld-webapp/war-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
@@ -57,7 +57,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/examples/osgi-http-service/bundle/pom.xml b/examples/osgi-http-service/bundle/pom.xml
index efd62d4fa1b..08c440a609b 100644
--- a/examples/osgi-http-service/bundle/pom.xml
+++ b/examples/osgi-http-service/bundle/pom.xml
@@ -36,7 +36,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
org.glassfish.jersey.containers
diff --git a/examples/servlet3-webapp/pom.xml b/examples/servlet3-webapp/pom.xml
index ea52217633d..d44fe5a0d6d 100644
--- a/examples/servlet3-webapp/pom.xml
+++ b/examples/servlet3-webapp/pom.xml
@@ -37,7 +37,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/ServerBootstrapPreinitialization.java b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/ServerBootstrapPreinitialization.java
index c995f48fb78..826c52f8b8f 100644
--- a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/ServerBootstrapPreinitialization.java
+++ b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/ServerBootstrapPreinitialization.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Contributors to the Eclipse Foundation
* Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -46,7 +47,6 @@
import org.glassfish.jersey.internal.inject.Binding;
import org.glassfish.jersey.internal.inject.ClassBinding;
import org.glassfish.jersey.internal.inject.ReferencingFactory;
-import org.glassfish.jersey.internal.spi.AutoDiscoverable;
import org.glassfish.jersey.internal.util.collection.Ref;
import org.glassfish.jersey.model.internal.CommonConfig;
import org.glassfish.jersey.model.internal.ComponentBag;
@@ -230,31 +230,11 @@ public RequestDispatcher getNamedDispatcher(String name) {
return null;
}
- @Override
- public Servlet getServlet(String name) throws ServletException {
- return null;
- }
-
- @Override
- public Enumeration getServlets() {
- return null;
- }
-
- @Override
- public Enumeration getServletNames() {
- return null;
- }
-
@Override
public void log(String msg) {
}
- @Override
- public void log(Exception exception, String msg) {
-
- }
-
@Override
public void log(String message, Throwable throwable) {
diff --git a/pom.xml b/pom.xml
index e37eba9579a..426ec8a58ba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1530,7 +1530,7 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet.version}
+ ${servlet6.version}
@@ -2145,8 +2145,10 @@
1.2.4
1.2.5
2.0.4
- 3.0.1
+
4.0.3
+ 6.0.0
+
6.0.1
false
1.7.21
@@ -2168,7 +2170,7 @@
3.0.0
4.0.0
- 3.0.1
+ 4.0.0-M1
2.0.0
3.0.3
org.glassfish.hk2.*;version="[3.0,4)"
@@ -2177,9 +2179,6 @@
3.1.0
3.0.0
2.0.0
- 5.0.0
- 6.0.0
- 5.0.0
4.0.0
2.1.0
2.0.1
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index eeb186a0c2c..cf14a948ad4 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -40,7 +40,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
org.glassfish.jersey.core
diff --git a/tests/integration/j-441/war1/pom.xml b/tests/integration/j-441/war1/pom.xml
index 822b8a6711d..5a1ebb5e72e 100644
--- a/tests/integration/j-441/war1/pom.xml
+++ b/tests/integration/j-441/war1/pom.xml
@@ -42,7 +42,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/j-441/war2/pom.xml b/tests/integration/j-441/war2/pom.xml
index f13ec2f7bc9..fc0e19a7a6b 100644
--- a/tests/integration/j-441/war2/pom.xml
+++ b/tests/integration/j-441/war2/pom.xml
@@ -42,7 +42,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/jersey-1960/pom.xml b/tests/integration/jersey-1960/pom.xml
index 9a1124f1bb1..73c7cf21313 100644
--- a/tests/integration/jersey-1960/pom.xml
+++ b/tests/integration/jersey-1960/pom.xml
@@ -36,7 +36,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/jersey-1964/pom.xml b/tests/integration/jersey-1964/pom.xml
index e639fb95dd4..d54819dc911 100644
--- a/tests/integration/jersey-1964/pom.xml
+++ b/tests/integration/jersey-1964/pom.xml
@@ -48,7 +48,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/jersey-2031/pom.xml b/tests/integration/jersey-2031/pom.xml
index 684455a8d6a..17764682004 100644
--- a/tests/integration/jersey-2031/pom.xml
+++ b/tests/integration/jersey-2031/pom.xml
@@ -46,7 +46,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/jersey-2160/pom.xml b/tests/integration/jersey-2160/pom.xml
index e22af069b1c..5d2cc162960 100644
--- a/tests/integration/jersey-2160/pom.xml
+++ b/tests/integration/jersey-2160/pom.xml
@@ -36,7 +36,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/jersey-2176/pom.xml b/tests/integration/jersey-2176/pom.xml
index 84d8735037f..ce80a2e71eb 100644
--- a/tests/integration/jersey-2176/pom.xml
+++ b/tests/integration/jersey-2176/pom.xml
@@ -41,7 +41,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/jersey-2184/pom.xml b/tests/integration/jersey-2184/pom.xml
index 5e635ea194d..0599984b6a9 100644
--- a/tests/integration/jersey-2184/pom.xml
+++ b/tests/integration/jersey-2184/pom.xml
@@ -42,7 +42,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/jersey-2637/pom.xml b/tests/integration/jersey-2637/pom.xml
index c20582d8fcf..5d6d2b983b4 100644
--- a/tests/integration/jersey-2637/pom.xml
+++ b/tests/integration/jersey-2637/pom.xml
@@ -38,7 +38,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/jersey-2673/pom.xml b/tests/integration/jersey-2673/pom.xml
index 8c23d2391df..bcd11d5ab4c 100644
--- a/tests/integration/jersey-2673/pom.xml
+++ b/tests/integration/jersey-2673/pom.xml
@@ -53,7 +53,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index 1780f966c14..cf66de835d3 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -81,7 +81,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/jersey-2704/pom.xml b/tests/integration/jersey-2704/pom.xml
index cb57dc86e65..c804bee61d0 100644
--- a/tests/integration/jersey-2704/pom.xml
+++ b/tests/integration/jersey-2704/pom.xml
@@ -48,7 +48,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/jersey-3796/pom.xml b/tests/integration/jersey-3796/pom.xml
index 4bbaf5f7396..5eca63fe282 100644
--- a/tests/integration/jersey-3796/pom.xml
+++ b/tests/integration/jersey-3796/pom.xml
@@ -47,7 +47,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/jersey-4722/pom.xml b/tests/integration/jersey-4722/pom.xml
index f13e71c3699..43fabebd762 100644
--- a/tests/integration/jersey-4722/pom.xml
+++ b/tests/integration/jersey-4722/pom.xml
@@ -39,13 +39,11 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
org.glassfish.jersey.test-framework.providers
jersey-test-framework-provider-grizzly2
- ${project.version}
org.glassfish.jersey.media
diff --git a/tests/integration/servlet-2.5-inflector-1/pom.xml b/tests/integration/servlet-2.5-inflector-1/pom.xml
index 0c4a305309d..b8af7662a95 100644
--- a/tests/integration/servlet-2.5-inflector-1/pom.xml
+++ b/tests/integration/servlet-2.5-inflector-1/pom.xml
@@ -43,7 +43,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/servlet-2.5-init-1/pom.xml b/tests/integration/servlet-2.5-init-1/pom.xml
index 54f437b6c97..04e2cc9ef72 100644
--- a/tests/integration/servlet-2.5-init-1/pom.xml
+++ b/tests/integration/servlet-2.5-init-1/pom.xml
@@ -36,7 +36,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/servlet-2.5-mvc-1/pom.xml b/tests/integration/servlet-2.5-mvc-1/pom.xml
index ddf4d532ecf..63892cdb20b 100644
--- a/tests/integration/servlet-2.5-mvc-1/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-1/pom.xml
@@ -57,7 +57,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/servlet-2.5-mvc-2/pom.xml b/tests/integration/servlet-2.5-mvc-2/pom.xml
index 7e8cd2117be..cf3515d7a11 100644
--- a/tests/integration/servlet-2.5-mvc-2/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-2/pom.xml
@@ -57,7 +57,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/servlet-2.5-mvc-3/pom.xml b/tests/integration/servlet-2.5-mvc-3/pom.xml
index 83bf515a132..32d989dda22 100644
--- a/tests/integration/servlet-2.5-mvc-3/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-3/pom.xml
@@ -57,7 +57,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/servlet-3-inflector-1/pom.xml b/tests/integration/servlet-3-inflector-1/pom.xml
index af1d92971ed..95bb384d1f1 100644
--- a/tests/integration/servlet-3-inflector-1/pom.xml
+++ b/tests/integration/servlet-3-inflector-1/pom.xml
@@ -43,7 +43,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/servlet-3-init-9/pom.xml b/tests/integration/servlet-3-init-9/pom.xml
index 209e822aa16..bddea9f108d 100644
--- a/tests/integration/servlet-3-init-9/pom.xml
+++ b/tests/integration/servlet-3-init-9/pom.xml
@@ -42,7 +42,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/servlet-3-init-provider/pom.xml b/tests/integration/servlet-3-init-provider/pom.xml
index 0406650fc5f..07459d7b757 100644
--- a/tests/integration/servlet-3-init-provider/pom.xml
+++ b/tests/integration/servlet-3-init-provider/pom.xml
@@ -40,7 +40,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/servlet-3-params/pom.xml b/tests/integration/servlet-3-params/pom.xml
index 48177f9a876..967c2d07ac2 100644
--- a/tests/integration/servlet-3-params/pom.xml
+++ b/tests/integration/servlet-3-params/pom.xml
@@ -40,7 +40,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/servlet-4.0-mvc-1/pom.xml b/tests/integration/servlet-4.0-mvc-1/pom.xml
index ec38922587a..2aa24919af2 100644
--- a/tests/integration/servlet-4.0-mvc-1/pom.xml
+++ b/tests/integration/servlet-4.0-mvc-1/pom.xml
@@ -49,7 +49,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
jakarta.xml.bind
@@ -85,12 +84,11 @@
org.eclipse.jetty
jetty-maven-plugin
-
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
+ ${servlet6.version}
diff --git a/tests/integration/servlet-request-wrapper-binding-2/pom.xml b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
index b1d32dec3e5..e5440a0817e 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
@@ -40,7 +40,7 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
+ ${servlet6.version}
provided
diff --git a/tests/integration/servlet-request-wrapper-binding-2/src/main/java/org/glassfish/jersey/tests/integration/servlet_request_wrapper_binding2/RequestResponseWrapperProvider.java b/tests/integration/servlet-request-wrapper-binding-2/src/main/java/org/glassfish/jersey/tests/integration/servlet_request_wrapper_binding2/RequestResponseWrapperProvider.java
index 86017ec1911..e152f646f33 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/src/main/java/org/glassfish/jersey/tests/integration/servlet_request_wrapper_binding2/RequestResponseWrapperProvider.java
+++ b/tests/integration/servlet-request-wrapper-binding-2/src/main/java/org/glassfish/jersey/tests/integration/servlet_request_wrapper_binding2/RequestResponseWrapperProvider.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Contributors to the Eclipse Foundation
* Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -39,6 +40,7 @@
import jakarta.servlet.AsyncContext;
import jakarta.servlet.DispatcherType;
import jakarta.servlet.RequestDispatcher;
+import jakarta.servlet.ServletConnection;
import jakarta.servlet.ServletContext;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletInputStream;
@@ -290,16 +292,6 @@ public String encodeRedirectURL(String s) {
return getHttpServletResponse().encodeRedirectURL(s);
}
- @Override
- public String encodeUrl(String s) {
- return getHttpServletResponse().encodeUrl(s);
- }
-
- @Override
- public String encodeRedirectUrl(String s) {
- return getHttpServletResponse().encodeRedirectUrl(s);
- }
-
@Override
public void sendError(int i, String s) throws IOException {
getHttpServletResponse().sendError(i, s);
@@ -330,14 +322,17 @@ public void setHeader(String h, String v) {
getHttpServletResponse().setHeader(h, v);
}
+ @Override
public Collection getHeaderNames() {
return getHttpServletResponse().getHeaderNames();
}
+ @Override
public Collection getHeaders(String s) {
return getHttpServletResponse().getHeaders(s);
}
+ @Override
public String getHeader(String s) {
return getHttpServletResponse().getHeader(s);
}
@@ -367,11 +362,6 @@ public int getStatus() {
return getHttpServletResponse().getStatus();
}
- @Override
- public void setStatus(int i, String s) {
- getHttpServletResponse().setStatus(i, s);
- }
-
@Override
public String getCharacterEncoding() {
return getHttpServletResponse().getCharacterEncoding();
@@ -500,6 +490,22 @@ private HttpServletResponse finalWrap(final HttpServletResponse response) {
private abstract static class MyHttpServletRequestImpl implements HttpServletRequest {
+ @Override
+ public String getRequestId() {
+ return getHttpServletRequest().getRequestId();
+ }
+
+ @Override
+ public String getProtocolRequestId() {
+ return getHttpServletRequest().getProtocolRequestId();
+ }
+
+ @Override
+ public ServletConnection getServletConnection() {
+ return getHttpServletRequest().getServletConnection();
+ }
+
+
@Override
public String getAuthType() {
return getHttpServletRequest().getAuthType();
@@ -657,11 +663,6 @@ public boolean isRequestedSessionIdFromURL() {
return getHttpServletRequest().isRequestedSessionIdFromURL();
}
- @Override
- public boolean isRequestedSessionIdFromUrl() {
- return getHttpServletRequest().isRequestedSessionIdFromUrl();
- }
-
@Override
public Object getAttribute(String s) {
return getHttpServletRequest().getAttribute(s);
@@ -782,11 +783,6 @@ public RequestDispatcher getRequestDispatcher(String s) {
return getHttpServletRequest().getRequestDispatcher(s);
}
- @Override
- public String getRealPath(String s) {
- return getHttpServletRequest().getRealPath(s);
- }
-
@Override
public int getRemotePort() {
return getHttpServletRequest().getRemotePort();
diff --git a/tests/integration/servlet-request-wrapper-binding/pom.xml b/tests/integration/servlet-request-wrapper-binding/pom.xml
index e47b2739981..375227a8d25 100644
--- a/tests/integration/servlet-request-wrapper-binding/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding/pom.xml
@@ -40,7 +40,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/integration/servlet-tests/pom.xml b/tests/integration/servlet-tests/pom.xml
index b7a2eb5e70f..329b1b57263 100644
--- a/tests/integration/servlet-tests/pom.xml
+++ b/tests/integration/servlet-tests/pom.xml
@@ -36,7 +36,7 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
+ ${servlet6.version}
provided
diff --git a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
index c92c5bf34b8..77337b8ffc9 100644
--- a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
@@ -125,7 +125,7 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
+ ${servlet6.version}
provided
diff --git a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
index af0c7e3aa31..459badbace3 100644
--- a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
@@ -106,7 +106,6 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
provided
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index b72e906079c..eb31c6b6aaa 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -275,7 +275,7 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
+ ${servlet6.version}
test
From 9aa9a4d80919f038456043a7755ca736c86e2d82 Mon Sep 17 00:00:00 2001
From: jansupol <15908245+jansupol@users.noreply.github.com>
Date: Tue, 29 Mar 2022 16:54:42 +0200
Subject: [PATCH 008/305] Bring back Helidon Connector (#5012)
Signed-off-by: jansupol
---
bom/pom.xml | 12 +-
connectors/helidon-connector/pom.xml | 152 +++++++++++++++++-
.../connector/HelidonClientProperties.java | 7 +-
.../connector/HelidonConnectorProvider.java | 4 +-
.../connector/HelidonClientProperties.java | 31 ++++
.../connector/HelidonConnectorProvider.java | 42 +++++
.../connector/HelidonPropertiesTest.java | 31 ++++
connectors/pom.xml | 1 +
8 files changed, 264 insertions(+), 16 deletions(-)
rename connectors/helidon-connector/src/main/{java => java17}/org/glassfish/jersey/helidon/connector/HelidonClientProperties.java (82%)
rename connectors/helidon-connector/src/main/{java => java17}/org/glassfish/jersey/helidon/connector/HelidonConnectorProvider.java (96%)
create mode 100644 connectors/helidon-connector/src/main/java8/org/glassfish/jersey/helidon/connector/HelidonClientProperties.java
create mode 100644 connectors/helidon-connector/src/main/java8/org/glassfish/jersey/helidon/connector/HelidonConnectorProvider.java
create mode 100644 connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/HelidonPropertiesTest.java
diff --git a/bom/pom.xml b/bom/pom.xml
index f7af29caa1f..d211436fbed 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -24,7 +24,7 @@
org.eclipse.ee4j
project
- 1.0.6
+ 1.0.7
@@ -63,11 +63,11 @@
jersey-apache-connector
${project.version}
-
-
-
-
-
+
+ org.glassfish.jersey.connectors
+ jersey-helidon-connector
+ ${project.version}
+
org.glassfish.jersey.connectors
jersey-grizzly-connector
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index 775535b4ec2..2da4ae3b9b9 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -30,11 +30,19 @@
jar
jersey-connectors-helidon
+
+ UTF-8
+ ${project.basedir}/target
+ ${project.basedir}/src/main/java8
+ ${project.basedir}/target17
+ ${project.basedir}/src/main/java17
+
+
io.helidon.jersey
helidon-jersey-connector
- 2.2.1
+ 3.0.0-M1
provided
@@ -67,10 +75,6 @@
org.apache.maven.plugins
maven-compiler-plugin
false
-
- 11
- 11
-
org.apache.maven.plugins
@@ -81,4 +85,142 @@
+
+
+
+ HelidonExclude
+
+ [1.8,17)
+
+
+ ${java8.build.outputDirectory}
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ generate-sources
+
+ add-source
+
+
+
+ ${java8.sourceDirectory}
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ org/glassfish/jersey/helidon/connector/sse/*.java
+ org/glassfish/jersey/helidon/connector/*.java
+
+
+
+
+
+
+
+ HelidonInclude
+
+ [17,)
+
+
+ ${java17.build.outputDirectory}
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ generate-sources
+
+ add-source
+
+
+
+ ${java17.sourceDirectory}
+
+
+
+
+
+
+
+
+
+ copyJDK17FilesToMultiReleaseJar
+
+
+
+ target17/classes/org/glassfish/jersey/helidon/connector/HelidonConnectorProvider.class
+
+ [1.8,17)
+
+
+
+
+ org.apache.felix
+ maven-bundle-plugin
+ true
+ true
+
+
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ true
+
+
+ copy-jdk17-classes
+ prepare-package
+
+ copy-resources
+
+
+ ${java8.build.outputDirectory}/classes/META-INF/versions/17
+
+
+ ${java17.build.outputDirectory}/classes
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-antrun-plugin
+
+
+ copy-jdk17-sources
+ package
+
+
+
+ sources-jar: ${sources-jar}
+
+
+
+
+
+
+ run
+
+
+
+
+
+
+
+
diff --git a/connectors/helidon-connector/src/main/java/org/glassfish/jersey/helidon/connector/HelidonClientProperties.java b/connectors/helidon-connector/src/main/java17/org/glassfish/jersey/helidon/connector/HelidonClientProperties.java
similarity index 82%
rename from connectors/helidon-connector/src/main/java/org/glassfish/jersey/helidon/connector/HelidonClientProperties.java
rename to connectors/helidon-connector/src/main/java17/org/glassfish/jersey/helidon/connector/HelidonClientProperties.java
index 7e7c10de0c3..93baa42135f 100644
--- a/connectors/helidon-connector/src/main/java/org/glassfish/jersey/helidon/connector/HelidonClientProperties.java
+++ b/connectors/helidon-connector/src/main/java17/org/glassfish/jersey/helidon/connector/HelidonClientProperties.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -15,13 +15,14 @@
*/
package org.glassfish.jersey.helidon.connector;
+import io.helidon.jersey.connector.HelidonProperties;
import org.glassfish.jersey.internal.util.PropertiesClass;
import io.helidon.config.Config;
import io.helidon.webclient.WebClient;
/**
- * Configuration options specific to the Client API that utilizes {@link HelidonConnectorProvider}
+ * Configuration options specific to the Client API that utilizes {@code HelidonConnectorProvider}.
* @since 2.31
*/
@PropertiesClass
@@ -30,5 +31,5 @@ public final class HelidonClientProperties {
/**
* A Helidon {@link Config} instance that is passed to {@link WebClient.Builder#config(Config)} if available
*/
- public static final String CONFIG = io.helidon.jersey.connector.HelidonProperties.CONFIG;
+ public static final String CONFIG = HelidonProperties.CONFIG;
}
diff --git a/connectors/helidon-connector/src/main/java/org/glassfish/jersey/helidon/connector/HelidonConnectorProvider.java b/connectors/helidon-connector/src/main/java17/org/glassfish/jersey/helidon/connector/HelidonConnectorProvider.java
similarity index 96%
rename from connectors/helidon-connector/src/main/java/org/glassfish/jersey/helidon/connector/HelidonConnectorProvider.java
rename to connectors/helidon-connector/src/main/java17/org/glassfish/jersey/helidon/connector/HelidonConnectorProvider.java
index 1da44f9744a..aa1540a6e5d 100644
--- a/connectors/helidon-connector/src/main/java/org/glassfish/jersey/helidon/connector/HelidonConnectorProvider.java
+++ b/connectors/helidon-connector/src/main/java17/org/glassfish/jersey/helidon/connector/HelidonConnectorProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -68,7 +68,7 @@
public class HelidonConnectorProvider extends io.helidon.jersey.connector.HelidonConnectorProvider {
@Override
public Connector getConnector(Client client, Configuration runtimeConfig) {
- if (JdkVersion.getJdkVersion().getMajor() < 11) {
+ if (JdkVersion.getJdkVersion().getMajor() < 17) {
throw new ProcessingException(LocalizationMessages.NOT_SUPPORTED());
}
return super.getConnector(client, runtimeConfig);
diff --git a/connectors/helidon-connector/src/main/java8/org/glassfish/jersey/helidon/connector/HelidonClientProperties.java b/connectors/helidon-connector/src/main/java8/org/glassfish/jersey/helidon/connector/HelidonClientProperties.java
new file mode 100644
index 00000000000..d1e8ee14ad2
--- /dev/null
+++ b/connectors/helidon-connector/src/main/java8/org/glassfish/jersey/helidon/connector/HelidonClientProperties.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+package org.glassfish.jersey.helidon.connector;
+
+import org.glassfish.jersey.internal.util.PropertiesClass;
+
+/**
+ * Configuration options specific to the Client API that utilizes {@code HelidonConnectorProvider}
+ * @since 2.31
+ */
+@PropertiesClass
+public final class HelidonClientProperties {
+
+ /**
+ * A Helidon {@code Config} instance that is passed to {@code WebClient.Builder#config(Config)} if available.
+ */
+ public static final String CONFIG = "jersey.connector.helidon.config";
+}
diff --git a/connectors/helidon-connector/src/main/java8/org/glassfish/jersey/helidon/connector/HelidonConnectorProvider.java b/connectors/helidon-connector/src/main/java8/org/glassfish/jersey/helidon/connector/HelidonConnectorProvider.java
new file mode 100644
index 00000000000..932155a0581
--- /dev/null
+++ b/connectors/helidon-connector/src/main/java8/org/glassfish/jersey/helidon/connector/HelidonConnectorProvider.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.helidon.connector;
+
+import org.glassfish.jersey.client.spi.Connector;
+import org.glassfish.jersey.client.spi.ConnectorProvider;
+import org.glassfish.jersey.internal.util.JdkVersion;
+
+import jakarta.ws.rs.ProcessingException;
+import jakarta.ws.rs.client.Client;
+import jakarta.ws.rs.core.Configuration;
+import java.io.OutputStream;
+
+/**
+ * Helidon Connector stub which only throws exception when running on JDK prior to 17.
+ * New Helidon 3 does not support JDKs prior to 17.
+ *
+ * @since 3.0.5
+ */
+public class HelidonConnectorProvider implements ConnectorProvider {
+ @Override
+ public Connector getConnector(Client client, Configuration runtimeConfig) {
+ if (JdkVersion.getJdkVersion().getMajor() < 17) {
+ throw new ProcessingException(LocalizationMessages.NOT_SUPPORTED());
+ }
+ return null;
+ }
+}
diff --git a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/HelidonPropertiesTest.java b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/HelidonPropertiesTest.java
new file mode 100644
index 00000000000..a858e6732a1
--- /dev/null
+++ b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/HelidonPropertiesTest.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.helidon.connector;
+
+import io.helidon.jersey.connector.HelidonProperties;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class HelidonPropertiesTest {
+
+ @Test
+ public void testHelidonStrings() {
+ String jerseyValue = HelidonClientProperties.CONFIG;
+ String helidonConfig = HelidonProperties.CONFIG;
+ Assert.assertEquals(jerseyValue, helidonConfig);
+ }
+}
diff --git a/connectors/pom.xml b/connectors/pom.xml
index ba3844a075f..d2face2f8d7 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -36,6 +36,7 @@
apache-connector
grizzly-connector
+ helidon-connector
jdk-connector
jetty-connector
netty-connector
From dfa116912098c824a040d49a69f77604b55214ea Mon Sep 17 00:00:00 2001
From: jansupol
Date: Tue, 22 Mar 2022 21:38:25 +0100
Subject: [PATCH 009/305] Update MP Config version 3.0
Signed-off-by: jansupol
---
ext/microprofile/mp-config/pom.xml | 36 ++++++++++++----
ext/microprofile/mp-rest-client/pom.xml | 10 +----
pom.xml | 11 +++--
.../microprofile/config/helidon/pom.xml | 43 +++++++++++++------
.../microprofile/rest-client-tck/pom.xml | 6 +--
.../microprofile/rest-client/pom.xml | 4 +-
6 files changed, 74 insertions(+), 36 deletions(-)
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index bffe705a15f..97451e71b7e 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -67,14 +67,6 @@
junit
test
-
-
- io.helidon.microprofile.config
- helidon-microprofile-config
- ${helidon.version}
- test
-
-
@@ -133,6 +125,34 @@
+
+ smallrye-dependency
+
+ [1.8,17)
+
+
+
+ io.smallrye.config
+ smallrye-config
+ ${smallrye.config.version}
+ test
+
+
+
+
+ helidon-config-dependency
+
+ [17,)
+
+
+
+ io.helidon.microprofile.config
+ helidon-microprofile-config
+ ${helidon.config.version}
+ test
+
+
+
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index 553e1b21b83..4a60f3213ef 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -32,18 +32,12 @@
org.eclipse.microprofile.rest.client
microprofile-rest-client-api
- 3.0
-
-
- org.testng
- testng
-
-
+ ${microprofile.rest.client.version}
org.eclipse.microprofile.config
microprofile-config-api
- 1.3
+ ${microprofile.config.version}
org.glassfish.jersey.core
diff --git a/pom.xml b/pom.xml
index e55a8244a20..d50aee81501 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
org.eclipse.ee4j
project
- 1.0.6
+ 1.0.7
org.glassfish.jersey
@@ -2087,7 +2087,6 @@
1.68
3.3.2
- 2.0
3.1.0
8.28
3.3
@@ -2099,9 +2098,15 @@
1.9.59
1.16
+
+ 3.0
+ 3.0
+ 3.0.0-M1
+ 3.0.0-RC1
+
+
18.0
1.3
- 1.0.3
1.6
org.glassfish.hk2.*;version="[2.5,4)"
org.jvnet.hk2.*;version="[2.5,4)"
diff --git a/tests/integration/microprofile/config/helidon/pom.xml b/tests/integration/microprofile/config/helidon/pom.xml
index 1b516c3a093..4252efc714b 100644
--- a/tests/integration/microprofile/config/helidon/pom.xml
+++ b/tests/integration/microprofile/config/helidon/pom.xml
@@ -41,18 +41,6 @@
jersey-mp-config
test
-
- io.helidon.config
- helidon-config
- ${helidon.version}
- test
-
-
- io.helidon.microprofile.config
- helidon-microprofile-config
- ${helidon.version}
- test
-
org.glassfish.jersey.test-framework
jersey-test-framework-core
@@ -89,4 +77,35 @@
+
+
+ smallrye-dependency
+
+ [1.8,17)
+
+
+
+ io.smallrye.config
+ smallrye-config
+ ${smallrye.config.version}
+ test
+
+
+
+
+ helidon-config-dependency
+
+ [17,)
+
+
+
+ io.helidon.microprofile.config
+ helidon-microprofile-config
+ ${helidon.config.version}
+ test
+
+
+
+
+
diff --git a/tests/integration/microprofile/rest-client-tck/pom.xml b/tests/integration/microprofile/rest-client-tck/pom.xml
index c05cb9968a8..14e233474af 100644
--- a/tests/integration/microprofile/rest-client-tck/pom.xml
+++ b/tests/integration/microprofile/rest-client-tck/pom.xml
@@ -56,9 +56,9 @@
4.0.1
- io.smallrye
+ io.smallrye.config
smallrye-config
- 1.3.6
+ ${smallrye.config.version}
test
@@ -70,7 +70,7 @@
org.eclipse.microprofile.rest.client
microprofile-rest-client-tck
- 3.0
+ ${microprofile.rest.client.version}
test
diff --git a/tests/integration/microprofile/rest-client/pom.xml b/tests/integration/microprofile/rest-client/pom.xml
index 7c0c31762c4..bce2a0da56d 100644
--- a/tests/integration/microprofile/rest-client/pom.xml
+++ b/tests/integration/microprofile/rest-client/pom.xml
@@ -47,9 +47,9 @@
test
- io.smallrye
+ io.smallrye.config
smallrye-config
- 1.3.6
+ ${smallrye.config.version}
test
From bf4d9f4294ff977ae742c53fcb302ec831696e81 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Tue, 29 Mar 2022 19:14:08 +0200
Subject: [PATCH 010/305] Updated CDI, BV, and EL.
Signed-off-by: jansupol
---
containers/grizzly2-http/pom.xml | 37 +++++--------------
containers/grizzly2-servlet/pom.xml | 1 +
.../src/main/resources/META-INF/beans.xml | 9 ++++-
.../src/main/webapp/WEB-INF/beans.xml | 9 ++++-
.../src/main/resources/META-INF/beans.xml | 9 ++++-
.../CdiExternalRequestScopeExtension.java | 2 +-
.../CdiInterceptorWrapperExtension.java | 2 +-
.../cdi1x/internal/CdiComponentProvider.java | 4 +-
.../restclient/RestClientProducer.java | 4 +-
.../inject/weld/internal/bean/BeanHelper.java | 9 +++--
.../inject/weld/internal/bean/JerseyBean.java | 4 +-
.../weld/internal/scope/RequestScopeBean.java | 2 +-
.../inject/cdi/se/RequestScopeBean.java | 2 +-
.../jersey/inject/cdi/se/bean/BeanHelper.java | 7 ++--
.../jersey/inject/cdi/se/bean/JerseyBean.java | 4 +-
pom.xml | 10 ++---
.../src/main/resources/META-INF/beans.xml | 8 +++-
.../src/main/resources/META-INF/beans.xml | 9 ++++-
.../src/main/webapp/WEB-INF/beans.xml | 9 ++++-
.../src/test/resources/META-INF/beans.xml | 9 ++++-
20 files changed, 85 insertions(+), 65 deletions(-)
diff --git a/containers/grizzly2-http/pom.xml b/containers/grizzly2-http/pom.xml
index 908323864bd..8173ba3eef0 100644
--- a/containers/grizzly2-http/pom.xml
+++ b/containers/grizzly2-http/pom.xml
@@ -107,6 +107,15 @@
org.apache.felix
maven-bundle-plugin
true
+
+
+
+ org.glassfish.grizzly.*;version="[3.0,5.0)",
+ *
+
+
+ true
+
@@ -162,33 +171,5 @@
-
- jdk8
-
- 1.8
-
-
-
-
-
- maven-compiler-plugin
-
-
- default-testCompile
-
-
- true
-
-
-
-
-
-
-
-
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index 02fe0f2aa75..f44f63cd3f7 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -71,6 +71,7 @@
jakarta.servlet.*;version="[5.0,7.0)",
+ org.glassfish.grizzly.*;version="[3.0,5.0)",
*
diff --git a/examples/cdi-webapp/src/main/resources/META-INF/beans.xml b/examples/cdi-webapp/src/main/resources/META-INF/beans.xml
index 5d361e9284a..77e336a6161 100644
--- a/examples/cdi-webapp/src/main/resources/META-INF/beans.xml
+++ b/examples/cdi-webapp/src/main/resources/META-INF/beans.xml
@@ -1,7 +1,7 @@
-
+
+
diff --git a/examples/cdi-webapp/src/main/webapp/WEB-INF/beans.xml b/examples/cdi-webapp/src/main/webapp/WEB-INF/beans.xml
index 5d361e9284a..77e336a6161 100644
--- a/examples/cdi-webapp/src/main/webapp/WEB-INF/beans.xml
+++ b/examples/cdi-webapp/src/main/webapp/WEB-INF/beans.xml
@@ -1,7 +1,7 @@
-
+
+
diff --git a/examples/helloworld-weld/src/main/resources/META-INF/beans.xml b/examples/helloworld-weld/src/main/resources/META-INF/beans.xml
index 5d361e9284a..77e336a6161 100644
--- a/examples/helloworld-weld/src/main/resources/META-INF/beans.xml
+++ b/examples/helloworld-weld/src/main/resources/META-INF/beans.xml
@@ -1,7 +1,7 @@
-
+
+
diff --git a/ext/cdi/jersey-cdi1x-servlet/src/main/java/org/glassfish/jersey/ext/cdi1x/servlet/internal/CdiExternalRequestScopeExtension.java b/ext/cdi/jersey-cdi1x-servlet/src/main/java/org/glassfish/jersey/ext/cdi1x/servlet/internal/CdiExternalRequestScopeExtension.java
index 3a17677b942..ce367f5fbd9 100644
--- a/ext/cdi/jersey-cdi1x-servlet/src/main/java/org/glassfish/jersey/ext/cdi1x/servlet/internal/CdiExternalRequestScopeExtension.java
+++ b/ext/cdi/jersey-cdi1x-servlet/src/main/java/org/glassfish/jersey/ext/cdi1x/servlet/internal/CdiExternalRequestScopeExtension.java
@@ -124,7 +124,7 @@ public boolean isAlternative() {
return false;
}
- @Override
+ // @Override - Removed in CDI 4
public boolean isNullable() {
return false;
}
diff --git a/ext/cdi/jersey-cdi1x-validation/src/main/java/org/glassfish/jersey/ext/cdi1x/validation/internal/CdiInterceptorWrapperExtension.java b/ext/cdi/jersey-cdi1x-validation/src/main/java/org/glassfish/jersey/ext/cdi1x/validation/internal/CdiInterceptorWrapperExtension.java
index 6cced302420..875f63c9e3f 100644
--- a/ext/cdi/jersey-cdi1x-validation/src/main/java/org/glassfish/jersey/ext/cdi1x/validation/internal/CdiInterceptorWrapperExtension.java
+++ b/ext/cdi/jersey-cdi1x-validation/src/main/java/org/glassfish/jersey/ext/cdi1x/validation/internal/CdiInterceptorWrapperExtension.java
@@ -155,7 +155,7 @@ public boolean isAlternative() {
return false;
}
- @Override
+ // @Override - Removed in CDI 4
public boolean isNullable() {
return false;
}
diff --git a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
index 2cbc60ff71c..63a3eac491d 100644
--- a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
+++ b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -823,7 +823,7 @@ public Set getInjectionPoints() {
return Collections.emptySet();
}
- @Override
+ // @Override - Removed in CDI 4
public boolean isNullable() {
return true;
}
diff --git a/ext/microprofile/mp-rest-client/src/main/java/org/glassfish/jersey/microprofile/restclient/RestClientProducer.java b/ext/microprofile/mp-rest-client/src/main/java/org/glassfish/jersey/microprofile/restclient/RestClientProducer.java
index 48bc397b188..d58341942ee 100644
--- a/ext/microprofile/mp-rest-client/src/main/java/org/glassfish/jersey/microprofile/restclient/RestClientProducer.java
+++ b/ext/microprofile/mp-rest-client/src/main/java/org/glassfish/jersey/microprofile/restclient/RestClientProducer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -123,7 +123,7 @@ public Set getInjectionPoints() {
return Collections.emptySet();
}
- @Override
+ // @Override - Removed in CDI 4
public boolean isNullable() {
return false;
}
diff --git a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/bean/BeanHelper.java b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/bean/BeanHelper.java
index c5c4cfea5e2..b653b549cfe 100644
--- a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/bean/BeanHelper.java
+++ b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/bean/BeanHelper.java
@@ -157,7 +157,8 @@ public static BindingBeanPair registerSupplier(RuntimeType runtimeType, Supp
Class> supplierClass = (Class>) binding.getSupplierClass();
AnnotatedType> annotatedType = beanManager.createAnnotatedType(supplierClass);
- InjectionTarget> injectionTarget = beanManager.createInjectionTarget(annotatedType);
+ final InjectionTargetFactory> injectionTargetFactory = beanManager.getInjectionTargetFactory(annotatedType);
+ final InjectionTarget> injectionTarget = injectionTargetFactory.createInjectionTarget(null);
SupplierClassBean supplierBean = new SupplierClassBean<>(runtimeType, binding);
InjectionTarget> jit = getJerseyInjectionTarget(supplierClass, injectionTarget, supplierBean, resolvers);
@@ -218,7 +219,8 @@ private static ConstructorInjectionPoint createConstructorInjectionPoint(
final Class> bindingClass = (Class>) binding.getSupplierClass();
final AnnotatedType> annotatedType = beanManager.createAnnotatedType(bindingClass);
- final InjectionTarget> injectionTarget = beanManager.createInjectionTarget(annotatedType);
+ final InjectionTargetFactory> injectionTargetFactory = beanManager.getInjectionTargetFactory(annotatedType);
+ final InjectionTarget> injectionTarget = injectionTargetFactory.createInjectionTarget(null);
final CachedConstructorAnalyzer> analyzer =
new CachedConstructorAnalyzer<>(bindingClass, InjectionUtils.getInjectAnnotations(resolvers));
@@ -239,7 +241,8 @@ private static ConstructorInjectionPoint createConstructorInjectionPoint(
final Class bindingClass = binding.getImplementationType();
final AnnotatedType annotatedType = beanManager.createAnnotatedType(bindingClass);
- final InjectionTarget injectionTarget = beanManager.createInjectionTarget(annotatedType);
+ final InjectionTargetFactory injectionTargetFactory = beanManager.getInjectionTargetFactory(annotatedType);
+ final InjectionTarget injectionTarget = injectionTargetFactory.createInjectionTarget(null);
final CachedConstructorAnalyzer analyzer =
new CachedConstructorAnalyzer<>(bindingClass, InjectionUtils.getInjectAnnotations(resolvers));
diff --git a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/bean/JerseyBean.java b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/bean/JerseyBean.java
index 2f4da94d3ae..a56f23bac3d 100644
--- a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/bean/JerseyBean.java
+++ b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/bean/JerseyBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -142,7 +142,7 @@ public boolean isAlternative() {
return false;
}
- @Override
+ // @Override - Removed in CDI 4
public boolean isNullable() {
return false;
}
diff --git a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/scope/RequestScopeBean.java b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/scope/RequestScopeBean.java
index eff570f8589..7dd99c8f894 100644
--- a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/scope/RequestScopeBean.java
+++ b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/scope/RequestScopeBean.java
@@ -54,7 +54,7 @@ public RequestScopeBean(BeanManager beanManager) {
this.injectionTarget = injectionTargetFactory.createInjectionTarget(null);
}
- @Override
+ // @Override - Removed in CDI 4
public boolean isNullable() {
return false;
}
diff --git a/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/RequestScopeBean.java b/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/RequestScopeBean.java
index 4bf816fd7fc..86e97abfd40 100644
--- a/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/RequestScopeBean.java
+++ b/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/RequestScopeBean.java
@@ -54,7 +54,7 @@ public RequestScopeBean(BeanManager beanManager) {
this.injectionTarget = injectionTargetFactory.createInjectionTarget(null);
}
- @Override
+ // @Override - Removed in CDI 4
public boolean isNullable() {
return false;
}
diff --git a/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/bean/BeanHelper.java b/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/bean/BeanHelper.java
index 2ae0ebc5416..584193f5bd4 100644
--- a/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/bean/BeanHelper.java
+++ b/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/bean/BeanHelper.java
@@ -147,9 +147,10 @@ public static void registerSupplier(SupplierInstanceBinding binding, Afte
public static void registerSupplier(SupplierClassBinding binding, AfterBeanDiscovery abd,
Collection resolvers, BeanManager beanManager) {
- Class> supplierClass = (Class>) binding.getSupplierClass();
- AnnotatedType> annotatedType = beanManager.createAnnotatedType(supplierClass);
- InjectionTarget> injectionTarget = beanManager.createInjectionTarget(annotatedType);
+ final Class> supplierClass = (Class>) binding.getSupplierClass();
+ final AnnotatedType> annotatedType = beanManager.createAnnotatedType(supplierClass);
+ final InjectionTargetFactory> injectionTargetFactory = beanManager.getInjectionTargetFactory(annotatedType);
+ final InjectionTarget> injectionTarget = injectionTargetFactory.createInjectionTarget(null);
SupplierClassBean supplierBean = new SupplierClassBean<>(binding);
InjectionTarget> jit = getJerseyInjectionTarget(supplierClass, injectionTarget, supplierBean, resolvers);
diff --git a/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/bean/JerseyBean.java b/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/bean/JerseyBean.java
index 9b947506752..c6bd602a75b 100644
--- a/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/bean/JerseyBean.java
+++ b/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/bean/JerseyBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -133,7 +133,7 @@ public boolean isAlternative() {
return false;
}
- @Override
+ // @Override - Removed in CDI 4
public boolean isNullable() {
return false;
}
diff --git a/pom.xml b/pom.xml
index 426ec8a58ba..dc41f0b93fc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2157,8 +2157,8 @@
3.0.0-M5
- 4.0.2.Final
- 7.0.1.Final
+ 5.0.0.CR2
+ 8.0.0.Alpha1
2.11.0
@@ -2168,7 +2168,7 @@
7.0.0-M2
- 3.0.0
+ 4.0.0
4.0.0
4.0.0-M1
2.0.0
@@ -2182,8 +2182,8 @@
4.0.0
2.1.0
2.0.1
- 4.0.0
- 4.0.2
+ 5.0.0
+ 5.0.0-M1
jakarta.annotation.*;version="[2.0,3)"
2.1.0
2.0.1
diff --git a/tests/e2e-inject/cdi2-se/src/main/resources/META-INF/beans.xml b/tests/e2e-inject/cdi2-se/src/main/resources/META-INF/beans.xml
index ae8422432b5..c2146b486f5 100644
--- a/tests/e2e-inject/cdi2-se/src/main/resources/META-INF/beans.xml
+++ b/tests/e2e-inject/cdi2-se/src/main/resources/META-INF/beans.xml
@@ -1,7 +1,7 @@
-
+
org.glassfish.jersey.tests.e2e.inject.cdi.se.SecurityInterceptor
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/src/main/resources/META-INF/beans.xml b/tests/integration/cdi-integration/cdi-test-webapp/src/main/resources/META-INF/beans.xml
index 14ea61ec342..8d3e4b2f532 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/src/main/resources/META-INF/beans.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/src/main/resources/META-INF/beans.xml
@@ -1,7 +1,7 @@
-
+
+
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/src/main/webapp/WEB-INF/beans.xml b/tests/integration/cdi-integration/cdi-test-webapp/src/main/webapp/WEB-INF/beans.xml
index 14ea61ec342..8d3e4b2f532 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/src/main/webapp/WEB-INF/beans.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/src/main/webapp/WEB-INF/beans.xml
@@ -1,7 +1,7 @@
-
+
+
diff --git a/tests/integration/jersey-4542/src/test/resources/META-INF/beans.xml b/tests/integration/jersey-4542/src/test/resources/META-INF/beans.xml
index d773c46699d..d6b4b48da51 100644
--- a/tests/integration/jersey-4542/src/test/resources/META-INF/beans.xml
+++ b/tests/integration/jersey-4542/src/test/resources/META-INF/beans.xml
@@ -1,7 +1,7 @@
-
\ No newline at end of file
+
+
\ No newline at end of file
From f28321b3f402b34f7bd4068f0a90afb1464325ad Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Thu, 31 Mar 2022 14:12:20 +0200
Subject: [PATCH 011/305] maven-bundle-plugin version update
Signed-off-by: Maxim Nesen
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index dc41f0b93fc..c723798a278 100644
--- a/pom.xml
+++ b/pom.xml
@@ -668,7 +668,7 @@
org.apache.felix
maven-bundle-plugin
- 3.5.0
+ 5.1.4
true
From a5c83ec8d0ac739309b50ec32afbe0fe84831456 Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Mon, 4 Apr 2022 09:20:04 +0200
Subject: [PATCH 012/305] Jakartification
Signed-off-by: Maxim Nesen
---
.../cdi/resources/CdiComponentProviderTest.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/src/test/java/org/glassfish/jersey/tests/cdi/resources/CdiComponentProviderTest.java b/tests/integration/cdi-integration/cdi-test-webapp/src/test/java/org/glassfish/jersey/tests/cdi/resources/CdiComponentProviderTest.java
index ca9891446a8..12193c13072 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/src/test/java/org/glassfish/jersey/tests/cdi/resources/CdiComponentProviderTest.java
+++ b/tests/integration/cdi-integration/cdi-test-webapp/src/test/java/org/glassfish/jersey/tests/cdi/resources/CdiComponentProviderTest.java
@@ -22,12 +22,12 @@
import org.jboss.weld.environment.se.Weld;
import org.junit.Test;
-import javax.enterprise.inject.Vetoed;
-import javax.enterprise.inject.spi.BeanManager;
-import javax.enterprise.inject.spi.CDI;
-import javax.ws.rs.GET;
-import javax.ws.rs.Path;
-import javax.ws.rs.core.Application;
+import jakarta.enterprise.inject.Vetoed;
+import jakarta.enterprise.inject.spi.BeanManager;
+import jakarta.enterprise.inject.spi.CDI;
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.core.Application;
import java.util.Collections;
import static org.junit.Assert.assertFalse;
From ba0efa720998b83b80216dd1dfcd40535ef6cdac Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Tue, 5 Apr 2022 08:50:24 +0200
Subject: [PATCH 013/305] JavaDoc plugin update
Signed-off-by: Maxim Nesen
---
connectors/helidon-connector/pom.xml | 1 +
pom.xml | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index 2da4ae3b9b9..c50199454c8 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -81,6 +81,7 @@
maven-javadoc-plugin
8
+ false
diff --git a/pom.xml b/pom.xml
index 8a91c46545e..f50a744b025 100644
--- a/pom.xml
+++ b/pom.xml
@@ -451,7 +451,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.2.0
+ 3.3.2
Jersey ${jersey.version} API Documentation
Jersey ${jersey.version} API
From 167910e2ffc0b63472c1d4d4989534de0f481ac0 Mon Sep 17 00:00:00 2001
From: jansupol <15908245+jansupol@users.noreply.github.com>
Date: Tue, 5 Apr 2022 11:38:52 +0200
Subject: [PATCH 014/305] Update Xerces to prevent CVEs (#5018)
Signed-off-by: jansupol
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 2abb04d3c4f..62bcb7be692 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
org.eclipse.ee4j
project
- 1.0.6
+ 1.0.7
org.glassfish.jersey
@@ -2165,7 +2165,7 @@
6.2.0.Final
2.2.14.Final
3.1.7.SP1
- 2.11.0
+ 2.12.2
20.3.2
From d3326e8fb482794c0c0dd69b65aa134c2d12b2a0 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Fri, 1 Apr 2022 15:22:13 +0200
Subject: [PATCH 015/305] Fix localization message for Helidon
Signed-off-by: jansupol
---
.../jersey/helidon/connector/localization.properties | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/connectors/helidon-connector/src/main/resources/org/glassfish/jersey/helidon/connector/localization.properties b/connectors/helidon-connector/src/main/resources/org/glassfish/jersey/helidon/connector/localization.properties
index 7b062886e5f..fb56d5c4f99 100644
--- a/connectors/helidon-connector/src/main/resources/org/glassfish/jersey/helidon/connector/localization.properties
+++ b/connectors/helidon-connector/src/main/resources/org/glassfish/jersey/helidon/connector/localization.properties
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
@@ -14,4 +14,4 @@
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
#
-not.supported=Helidon connector is not supported on JDK version less than 11.
\ No newline at end of file
+not.supported=Helidon connector is not supported on JDK version less than 17.
\ No newline at end of file
From f6af99b21f5a417d41f2d52b38346b0a7284b0f7 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Tue, 5 Apr 2022 11:43:13 +0200
Subject: [PATCH 016/305] Add MP RestClient module to BOM
Signed-off-by: jansupol
---
bom/pom.xml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/bom/pom.xml b/bom/pom.xml
index d211436fbed..2746bf6d0bd 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -258,11 +258,11 @@
jersey-rx-client-rxjava2
${project.version}
-
-
-
-
-
+
+ org.glassfish.jersey.ext.microprofile
+ jersey-mp-rest-client
+ ${project.version}
+
org.glassfish.jersey.media
jersey-media-jaxb
From 8f7fa9917626095a816dc2114a5c1e99a89ea11b Mon Sep 17 00:00:00 2001
From: johnmarquez12 <42983443+johnmarquez12@users.noreply.github.com>
Date: Fri, 8 Apr 2022 00:03:30 -0700
Subject: [PATCH 017/305] Fixed NullpointerException when getting methodtree
(#5024)
Co-authored-by: jm041977
---
.../org/glassfish/jersey/wadl/doclet/ResourceDoclet.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/ResourceDoclet.java b/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/ResourceDoclet.java
index 944413f53b2..ff94b7595b2 100644
--- a/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/ResourceDoclet.java
+++ b/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/ResourceDoclet.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -162,8 +162,10 @@ public boolean run(DocletEnvironment docEnv) {
Map> tags = getTags(docTrees.getDocCommentTree(method));
MethodTree methodTree = docTrees.getTree(method);
MethodDocType methodDocType = new MethodDocType();
- methodDocType.setMethodName(methodTree.getName().toString());
- methodDocType.setCommentText(getComments(docTrees.getDocCommentTree(method)));
+ if (methodTree != null) {
+ methodDocType.setMethodName(methodTree.getName().toString());
+ methodDocType.setCommentText(getComments(docTrees.getDocCommentTree(method)));
+ }
getTags(docTrees.getDocCommentTree(method));
StringBuilder arguments = new StringBuilder("(");
Map paramTags = tags.get(DocTree.Kind.PARAM);
From 6b59ed84772820b7c4d3a0447ed24c74cd547096 Mon Sep 17 00:00:00 2001
From: Maxim Nesen <24524084+senivam@users.noreply.github.com>
Date: Mon, 11 Apr 2022 11:12:43 +0200
Subject: [PATCH 018/305] Updated Jetty dependency versions (#5033)
Signed-off-by: Maxim Nesen
Co-authored-by: jansupol
---
containers/glassfish/jersey-gf-ejb/pom.xml | 8 ++---
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
examples/osgi-http-service/bundle/pom.xml | 2 +-
pom.xml | 31 ++++++++++---------
.../e2e/container/LeadingSlashesTest.java | 13 +++++++-
8 files changed, 37 insertions(+), 25 deletions(-)
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index cb47571cd7f..b261c00f25d 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -112,12 +112,12 @@
true
-
+
- com.sun.*;version="[4.0,7)",
+ com.sun.*;version="[6.0,8)",
${jakarta.annotation.osgi.version},
- org.glassfish.ejb.*;version="[4.0,7)",
- org.glassfish.internal.*;version="[4.0,7)",
+ org.glassfish.ejb.*;version="[6.0,8)",
+ org.glassfish.internal.*;version="[6.0,8)",
${hk2.osgi.version},
*
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index feaf63ac2bd..dbe618fa3d9 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -71,7 +71,7 @@
- jakarta.servlet.*;version="[5.0,6.0)",
+ jakarta.servlet.*;version="[5.0,7.0)",
*
diff --git a/containers/jersey-servlet-core/pom.xml b/containers/jersey-servlet-core/pom.xml
index 439888c2899..2348e36b13c 100644
--- a/containers/jersey-servlet-core/pom.xml
+++ b/containers/jersey-servlet-core/pom.xml
@@ -71,7 +71,7 @@
jakarta.persistence.*;resolution:=optional,
- jakarta.servlet.*;version="[5.0,6.0)",
+ jakarta.servlet.*;version="[5.0,7.0)",
${jakarta.annotation.osgi.version},
*
diff --git a/containers/jersey-servlet/pom.xml b/containers/jersey-servlet/pom.xml
index db15edeee95..578e1e15761 100644
--- a/containers/jersey-servlet/pom.xml
+++ b/containers/jersey-servlet/pom.xml
@@ -74,7 +74,7 @@
- jakarta.servlet.*;version="[5.0,6.0)",
+ jakarta.servlet.*;version="[5.0,7.0)",
${jakarta.annotation.osgi.version},
*
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 15537d30b0b..f14891f8758 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -65,7 +65,7 @@
- jakarta.servlet.*;version="[5.0,6.0)",
+ jakarta.servlet.*;version="[5.0,7.0)",
*
diff --git a/examples/osgi-http-service/bundle/pom.xml b/examples/osgi-http-service/bundle/pom.xml
index 6c79fb4d4e5..efd62d4fa1b 100644
--- a/examples/osgi-http-service/bundle/pom.xml
+++ b/examples/osgi-http-service/bundle/pom.xml
@@ -72,7 +72,7 @@
org.glassfish.jersey.examples.osgihttpservice
- jakarta.servlet.*;version="[5.0,6.0)",*
+ jakarta.servlet.*;version="[5.0,7.0)",*
org.glassfish.jersey.examples.osgihttpservice.Activator
jersey-osgi-http-service-bundle
${project.version}
diff --git a/pom.xml b/pom.xml
index d50aee81501..876f4cff6b6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1829,7 +1829,7 @@
jakarta.json
jakarta.json-api
- ${jsonp.ri.version}
+ ${jakarta.jsonp.version}
org.glassfish
@@ -2143,12 +2143,12 @@
1.7.21
4.3.20.RELEASE
5.1.5.RELEASE
- 3.0.0-M3
+ 3.0.0-M5
4.0.2.Final
3.1.7.SP1
- 7.0.0.Final
+ 7.0.1.Final
2.11.0
@@ -2160,36 +2160,37 @@
3.0.0
4.0.0
- 3.0.0
+ 3.0.1
2.0.0
- 3.0.1
+ 3.0.2
3.0.0
2.0.0
2.0.0
5.0.0
4.0.0
- 2.0.0
+ 2.0.1
2.0.1
4.0.0
- 4.0.0
+ 4.0.2
jakarta.annotation.*;version="[2.0,3)"
2.0.0
- 2.0.0
+ 2.0.1
2.0.0
+ 2.0.1
3.0.0
- 3.0.0
+ 3.0.0
3.0.1
3.0.2
3.0
3.0.0
- 11.0.0
- 11.0.0
+ 11.0.7
+ 11.0.7
6.1.14
2.0.0
- 2.0.0
- 2.0.0
- 3.0.0
- 2.0.1
+ 2.0.1
+ 2.0.1
+ 3.0.2
+ 2.0.3
1.3.2
diff --git a/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/container/LeadingSlashesTest.java b/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/container/LeadingSlashesTest.java
index 18de2d603d6..19ce489e1a8 100644
--- a/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/container/LeadingSlashesTest.java
+++ b/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/container/LeadingSlashesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,6 +31,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.ServerProperties;
+import org.glassfish.jersey.test.jetty.JettyTestContainerFactory;
import org.junit.Test;
import static org.junit.Assert.assertNotEquals;
@@ -118,12 +119,19 @@ public void testSlashesWithBeginningEmpty() {
@Test
public void testSlashesWithBeginningEmptyPathParam() {
+ if (JettyTestContainerFactory.class.isInstance(factory)) {
+ return; // since Jetty 11.0.5
+ }
Response result = call("///test");
assertEquals("-", result.readEntity(String.class));
}
@Test
public void testSlashesWithBeginningEmptyPathParamWithQueryParams() {
+ if (JettyTestContainerFactory.class.isInstance(factory)) {
+ return; // since Jetty 11.0.5
+ }
+
URI hostPort = UriBuilder.fromUri("http://localhost/").port(getPort()).build();
WebTarget target = client().target(hostPort).path("///testParams")
.queryParam("bar", "Container")
@@ -135,6 +143,9 @@ public void testSlashesWithBeginningEmptyPathParamWithQueryParams() {
@Test
public void testEncodedQueryParams() {
+ if (JettyTestContainerFactory.class.isInstance(factory)) {
+ return; // Jetty 11.0.5
+ }
URI hostPort = UriBuilder.fromUri("http://localhost/").port(getPort()).build();
WebTarget target = client().target(hostPort).path("///encoded")
.queryParam("query", "%dummy23+a");
From 673e2291ee57d10dfb0d318ca42058c01e7a5fca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Steffen=20Nie=C3=9Fing?=
<36885591+zUniQueX@users.noreply.github.com>
Date: Wed, 13 Apr 2022 15:13:18 +0200
Subject: [PATCH 019/305] Apache httpclient 5 (#4950)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Steffen Nießing
---
connectors/apache5-connector/pom.xml | 89 ++
.../connector/Apache5ClientProperties.java | 207 +++++
.../Apache5ConnectionClosingStrategy.java | 86 ++
.../apache5/connector/Apache5Connector.java | 814 ++++++++++++++++++
.../connector/Apache5ConnectorProvider.java | 157 ++++
.../Apache5HttpClientBuilderConfigurator.java | 36 +
.../apache5/connector/package-info.java | 21 +
.../apache5/connector/localization.properties | 25 +
.../jersey/apache5/connector/AsyncTest.java | 242 ++++++
.../jersey/apache5/connector/AuthTest.java | 595 +++++++++++++
.../jersey/apache5/connector/CookieTest.java | 111 +++
.../connector/CustomLoggingFilter.java | 70 ++
.../connector/DisableContentEncodingTest.java | 103 +++
.../connector/FollowRedirectsTest.java | 106 +++
.../connector/GZIPContentEncodingTest.java | 94 ++
.../apache5/connector/HelloWorldTest.java | 400 +++++++++
.../apache5/connector/HttpEntityTest.java | 83 ++
.../apache5/connector/HttpHeadersTest.java | 133 +++
.../apache5/connector/HttpMethodTest.java | 311 +++++++
.../HttpMethodWithClientFilterTest.java | 39 +
.../apache5/connector/LargeDataTest.java | 156 ++++
.../apache5/connector/ManagedClientTest.java | 268 ++++++
.../apache5/connector/NoEntityTest.java | 102 +++
.../apache5/connector/RetryStrategyTest.java | 142 +++
.../apache5/connector/SpecialHeaderTest.java | 89 ++
.../apache5/connector/StreamingTest.java | 167 ++++
.../jersey/apache5/connector/TimeoutTest.java | 104 +++
.../apache5/connector/TraceSupportTest.java | 235 +++++
.../UnderlyingCookieStoreAccessTest.java | 52 ++
.../UnderlyingHttpClientAccessTest.java | 57 ++
connectors/pom.xml | 3 +-
pom.xml | 6 +
32 files changed, 5102 insertions(+), 1 deletion(-)
create mode 100644 connectors/apache5-connector/pom.xml
create mode 100644 connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ClientProperties.java
create mode 100644 connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectionClosingStrategy.java
create mode 100644 connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java
create mode 100644 connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectorProvider.java
create mode 100644 connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5HttpClientBuilderConfigurator.java
create mode 100644 connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/package-info.java
create mode 100644 connectors/apache5-connector/src/main/resources/org/glassfish/jersey/apache5/connector/localization.properties
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AsyncTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AuthTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CookieTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CustomLoggingFilter.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/DisableContentEncodingTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/FollowRedirectsTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/GZIPContentEncodingTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HelloWorldTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpEntityTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpHeadersTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpMethodTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpMethodWithClientFilterTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/LargeDataTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/ManagedClientTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/NoEntityTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/RetryStrategyTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/SpecialHeaderTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/StreamingTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TimeoutTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TraceSupportTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingCookieStoreAccessTest.java
create mode 100644 connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingHttpClientAccessTest.java
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
new file mode 100644
index 00000000000..669ac11e793
--- /dev/null
+++ b/connectors/apache5-connector/pom.xml
@@ -0,0 +1,89 @@
+
+
+
+
+ 4.0.0
+
+
+ org.glassfish.jersey.connectors
+ project
+ 2.36-SNAPSHOT
+
+
+ jersey-apache5-connector
+ jar
+ jersey-connectors-apache5
+
+ Jersey Client Transport via Apache HttpClient 5.x
+
+
+ UTF-8
+
+
+
+
+ org.apache.httpcomponents.client5
+ httpclient5
+
+
+
+ org.glassfish.jersey.containers
+ jersey-container-grizzly2-http
+ ${project.version}
+ test
+
+
+
+ org.glassfish.jersey.test-framework.providers
+ jersey-test-framework-provider-grizzly2
+ ${project.version}
+ test
+
+
+ com.google.guava
+ guava
+ test
+
+
+
+
+
+
+ com.sun.istack
+ istack-commons-maven-plugin
+ true
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ true
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ org.apache.felix
+ maven-bundle-plugin
+ true
+
+
+
+
+
diff --git a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ClientProperties.java b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ClientProperties.java
new file mode 100644
index 00000000000..eac5be5f2fc
--- /dev/null
+++ b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ClientProperties.java
@@ -0,0 +1,207 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.util.Map;
+
+import org.glassfish.jersey.internal.util.PropertiesClass;
+import org.glassfish.jersey.internal.util.PropertiesHelper;
+
+/**
+ * Configuration options specific to the Client API that utilizes {@link Apache5ConnectorProvider}.
+ *
+ * @author jorgeluisw@mac.com
+ * @author Paul Sandoz
+ * @author Pavel Bucek
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ * @author Steffen Nießing
+ */
+@PropertiesClass
+public final class Apache5ClientProperties {
+
+ /**
+ * The credential provider that should be used to retrieve
+ * credentials from a user. Credentials needed for proxy authentication
+ * are stored here as well.
+ *
+ * The value MUST be an instance of {@link org.apache.hc.client5.http.auth.CredentialsProvider}.
+ *
+ * If the property is absent a default provider will be used.
+ *
+ * The name of the configuration property is {@value} .
+ */
+ public static final String CREDENTIALS_PROVIDER = "jersey.config.apache5.client.credentialsProvider";
+
+ /**
+ * A value of {@code false} indicates the client should handle cookies
+ * automatically using HttpClient's default cookie policy. A value
+ * of {@code true} will cause the client to ignore all cookies.
+ *
+ * The value MUST be an instance of {@link java.lang.Boolean}.
+ *
+ * The default value is {@code false}.
+ *
+ * The name of the configuration property is {@value} .
+ */
+ public static final String DISABLE_COOKIES = "jersey.config.apache5.client.handleCookies";
+
+ /**
+ * A value of {@code true} indicates that a client should send an
+ * authentication request even before the server gives a 401
+ * response.
+ *
+ * This property may only be set prior to constructing Apache connector using {@link Apache5ConnectorProvider}.
+ *
+ * The value MUST be an instance of {@link java.lang.Boolean}.
+ *
+ * The default value is {@code false}.
+ *
+ * The name of the configuration property is {@value} .
+ */
+ public static final String PREEMPTIVE_BASIC_AUTHENTICATION = "jersey.config.apache5.client.preemptiveBasicAuthentication";
+
+ /**
+ * Connection Manager which will be used to create {@link org.apache.hc.client5.http.classic.HttpClient}.
+ *
+ * The value MUST be an instance of {@link org.apache.hc.client5.http.io.HttpClientConnectionManager}.
+ *
+ * If the property is absent a default Connection Manager will be used
+ * ({@link org.apache.hc.client5.http.impl.io.BasicHttpClientConnectionManager}).
+ * If you want to use this client in multi-threaded environment, be sure you override default value with
+ * {@link org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager} instance.
+ *
+ * The name of the configuration property is {@value} .
+ */
+ public static final String CONNECTION_MANAGER = "jersey.config.apache5.client.connectionManager";
+
+ /**
+ * A value of {@code true} indicates that configured connection manager should be shared
+ * among multiple Jersey {@link org.glassfish.jersey.client.ClientRuntime} instances. It means that closing
+ * a particular {@link org.glassfish.jersey.client.ClientRuntime} instance does not shut down the underlying
+ * connection manager automatically. In such case, the connection manager life-cycle
+ * should be fully managed by the application code. To release all allocated resources,
+ * caller code should especially ensure {@link org.apache.hc.client5.http.io.HttpClientConnectionManager#close()} gets
+ * invoked eventually.
+ *
+ * This property may only be set prior to constructing Apache connector using {@link Apache5ConnectorProvider}.
+ *
+ * The value MUST be an instance of {@link java.lang.Boolean}.
+ *
+ * The default value is {@code false}.
+ *
+ * The name of the configuration property is {@value} .
+ *
+ * @since 2.18
+ */
+ public static final String CONNECTION_MANAGER_SHARED = "jersey.config.apache5.client.connectionManagerShared";
+
+ /**
+ * Request configuration for the {@link org.apache.hc.client5.http.classic.HttpClient}.
+ * Http parameters which will be used to create {@link org.apache.hc.client5.http.classic.HttpClient}.
+ *
+ * The value MUST be an instance of {@link org.apache.hc.client5.http.config.RequestConfig}.
+ *
+ * If the property is absent default request configuration will be used.
+ *
+ * The name of the configuration property is {@value} .
+ *
+ * @since 2.5
+ */
+ public static final String REQUEST_CONFIG = "jersey.config.apache5.client.requestConfig";
+
+ /**
+ * HttpRequestRetryHandler which will be used to create {@link org.apache.hc.client5.http.classic.HttpClient}.
+ *
+ * The value MUST be an instance of {@link org.apache.hc.client5.http.HttpRequestRetryStrategy}.
+ *
+ * If the property is absent a default retry handler will be used
+ * ({@link org.apache.hc.client5.http.impl.DefaultHttpRequestRetryStrategy}).
+ *
+ * The name of the configuration property is {@value} .
+ */
+ public static final String RETRY_STRATEGY = "jersey.config.apache5.client.retryStrategy";
+
+ /**
+ * ConnectionReuseStrategy for the {@link org.apache.hc.client5.http.classic.HttpClient}.
+ *
+ * The value MUST be an instance of {@link org.apache.hc.core5.http.ConnectionReuseStrategy}.
+ *
+ * If the property is absent the default reuse strategy of the Apache HTTP library will be used
+ *
+ * The name of the configuration property is {@value} .
+ */
+ public static final String REUSE_STRATEGY = "jersey.config.apache5.client.reuseStrategy";
+
+ /**
+ * ConnectionKeepAliveStrategy for the {@link org.apache.hc.client5.http.classic.HttpClient}.
+ *
+ * The value MUST be an instance of {@link org.apache.hc.client5.http.ConnectionKeepAliveStrategy}.
+ *
+ * If the property is absent the default keepalive strategy of the Apache HTTP library will be used
+ *
+ * The name of the configuration property is {@value} .
+ */
+ public static final String KEEPALIVE_STRATEGY = "jersey.config.apache5.client.keepAliveStrategy";
+
+
+ /**
+ * Strategy that closes the Apache Connection. Accepts an instance of {@link Apache5ConnectionClosingStrategy}.
+ *
+ * @see Apache5ConnectionClosingStrategy
+ * @since 2.30
+ */
+ public static final String CONNECTION_CLOSING_STRATEGY = "jersey.config.apache5.client.connectionClosingStrategy";
+
+ /**
+ * A value of {@code false} indicates the client will use default ApacheConnector params. A value
+ * of {@code true} will cause the client to take into account the system properties
+ * {@code https.protocols}, {@code https.cipherSuites}, {@code http.keepAlive},
+ * {@code http.maxConnections}.
+ *
+ * The value MUST be an instance of {@link java.lang.Boolean}.
+ *
+ * The default value is {@code false}.
+ *
+ * The name of the configuration property is {@value} .
+ */
+ public static final String USE_SYSTEM_PROPERTIES = "jersey.config.apache5.client.useSystemProperties";
+
+ /**
+ * Get the value of the specified property.
+ *
+ * If the property is not set or the actual property value type is not compatible with the specified type, the method will
+ * return {@code null}.
+ *
+ * @param properties Map of properties to get the property value from.
+ * @param key Name of the property.
+ * @param type Type to retrieve the value as.
+ * @param Type of the property value.
+ * @return Value of the property or {@code null}.
+ *
+ * @since 2.8
+ */
+ public static T getValue(final Map properties, final String key, final Class type) {
+ return PropertiesHelper.getValue(properties, key, type, null);
+ }
+
+ /**
+ * Prevents instantiation.
+ */
+ private Apache5ClientProperties() {
+ throw new AssertionError("No instances allowed.");
+ }
+}
diff --git a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectionClosingStrategy.java b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectionClosingStrategy.java
new file mode 100644
index 00000000000..ad23f2d53f6
--- /dev/null
+++ b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectionClosingStrategy.java
@@ -0,0 +1,86 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import org.apache.hc.client5.http.classic.methods.HttpUriRequest;
+import org.apache.hc.client5.http.impl.classic.CloseableHttpResponse;
+import org.glassfish.jersey.client.ClientRequest;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URISyntaxException;
+
+/**
+ * Strategy that defines the way the Apache client releases resources. The client enables closing the content stream
+ * and the response. From the Apache documentation:
+ *
+ * The difference between closing the content stream and closing the response is that
+ * the former will attempt to keep the underlying connection alive by consuming the
+ * entity content while the latter immediately shuts down and discards the connection.
+ *
+ * In the case of Chunk content stream, the stream is not closed on the server side, and the client can hang on reading
+ * the closing chunk. Using the {@link org.glassfish.jersey.client.ClientProperties#READ_TIMEOUT} property can prevent
+ * this hanging forever and the reading of the closing chunk is terminated when the time is out. The other option, when
+ * the timeout is not set, is to abort the Apache client request. This is the default for Apache Client 4.5.1+ when the
+ * read timeout is not set.
+ *
+ * Another option is not to close the content stream, which is possible by the Apache client documentation. In this case,
+ * however, the server side may not be notified and would not close its chunk stream.
+ */
+public interface Apache5ConnectionClosingStrategy {
+ /**
+ * Method to close the connection.
+ * @param clientRequest The {@link ClientRequest} to get {@link ClientRequest#getConfiguration() configuration},
+ * and {@link ClientRequest#resolveProperty(String, Class) resolve properties}.
+ * @param request Apache {@code HttpUriRequest} that can be {@code abort}ed.
+ * @param response Apache {@code CloseableHttpResponse} that can be {@code close}d.
+ * @param stream The entity stream that can be {@link InputStream#close() closed}.
+ * @throws IOException In case of some of the closing methods throws {@link IOException}
+ */
+ void close(ClientRequest clientRequest, HttpUriRequest request, CloseableHttpResponse response, InputStream stream)
+ throws IOException;
+
+ /**
+ * Strategy that aborts Apache HttpRequests for the case of Chunked Stream, closes the stream, and response next.
+ */
+ class Apache5GracefulClosingStrategy implements Apache5ConnectionClosingStrategy {
+ private static final String UNIX_PROTOCOL = "unix";
+
+ static final Apache5GracefulClosingStrategy INSTANCE = new Apache5GracefulClosingStrategy();
+
+ @Override
+ public void close(ClientRequest clientRequest, HttpUriRequest request, CloseableHttpResponse response, InputStream stream)
+ throws IOException {
+ boolean isUnixProtocol = false;
+ try {
+ isUnixProtocol = UNIX_PROTOCOL.equals(request.getUri().getScheme());
+ } catch (URISyntaxException ex) {
+ // Ignore
+ }
+ if (response.getEntity() != null && response.getEntity().isChunked() && !isUnixProtocol) {
+ request.abort();
+ }
+ try {
+ stream.close();
+ } catch (IOException ex) {
+ // Ignore
+ } finally {
+ response.close();
+ }
+ }
+ }
+}
diff --git a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java
new file mode 100644
index 00000000000..13b827910fc
--- /dev/null
+++ b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java
@@ -0,0 +1,814 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.io.BufferedInputStream;
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.Closeable;
+import java.io.FilterInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.CompletableFuture;
+import java.util.concurrent.Future;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import java.util.stream.Collectors;
+
+import javax.ws.rs.ProcessingException;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.core.Configuration;
+import javax.ws.rs.core.HttpHeaders;
+import javax.ws.rs.core.MultivaluedMap;
+import javax.ws.rs.core.Response;
+
+import javax.net.ssl.HostnameVerifier;
+import javax.net.ssl.SSLContext;
+import javax.net.ssl.SSLSocketFactory;
+
+import org.apache.hc.client5.http.ConnectionKeepAliveStrategy;
+import org.apache.hc.client5.http.HttpRequestRetryStrategy;
+import org.apache.hc.client5.http.auth.AuthCache;
+import org.apache.hc.client5.http.auth.AuthScope;
+import org.apache.hc.client5.http.auth.CredentialsProvider;
+import org.apache.hc.client5.http.auth.CredentialsStore;
+import org.apache.hc.client5.http.auth.UsernamePasswordCredentials;
+import org.apache.hc.client5.http.classic.HttpClient;
+import org.apache.hc.client5.http.classic.methods.HttpUriRequest;
+import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
+import org.apache.hc.client5.http.config.RequestConfig;
+import org.apache.hc.client5.http.cookie.BasicCookieStore;
+import org.apache.hc.client5.http.cookie.CookieStore;
+import org.apache.hc.client5.http.cookie.StandardCookieSpec;
+import org.apache.hc.client5.http.impl.auth.BasicAuthCache;
+import org.apache.hc.client5.http.impl.auth.BasicCredentialsProvider;
+import org.apache.hc.client5.http.impl.auth.BasicScheme;
+import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
+import org.apache.hc.client5.http.impl.classic.CloseableHttpResponse;
+import org.apache.hc.client5.http.impl.classic.HttpClientBuilder;
+import org.apache.hc.client5.http.impl.io.ManagedHttpClientConnectionFactory;
+import org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager;
+import org.apache.hc.client5.http.io.HttpClientConnectionManager;
+import org.apache.hc.client5.http.protocol.HttpClientContext;
+import org.apache.hc.client5.http.socket.ConnectionSocketFactory;
+import org.apache.hc.client5.http.socket.LayeredConnectionSocketFactory;
+import org.apache.hc.client5.http.socket.PlainConnectionSocketFactory;
+import org.apache.hc.client5.http.ssl.SSLConnectionSocketFactory;
+import org.apache.hc.core5.http.ConnectionReuseStrategy;
+import org.apache.hc.core5.http.Header;
+import org.apache.hc.core5.http.HttpEntity;
+import org.apache.hc.core5.http.HttpHost;
+import org.apache.hc.core5.http.config.Http1Config;
+import org.apache.hc.core5.http.config.Registry;
+import org.apache.hc.core5.http.config.RegistryBuilder;
+import org.apache.hc.core5.http.impl.DefaultContentLengthStrategy;
+import org.apache.hc.core5.http.io.entity.AbstractHttpEntity;
+import org.apache.hc.core5.http.io.entity.BufferedHttpEntity;
+import org.apache.hc.core5.ssl.SSLContexts;
+import org.apache.hc.core5.util.TextUtils;
+import org.apache.hc.core5.util.Timeout;
+import org.apache.hc.core5.util.VersionInfo;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.client.ClientRequest;
+import org.glassfish.jersey.client.ClientResponse;
+import org.glassfish.jersey.client.RequestEntityProcessing;
+import org.glassfish.jersey.client.spi.AsyncConnectorCallback;
+import org.glassfish.jersey.client.spi.Connector;
+import org.glassfish.jersey.internal.util.PropertiesHelper;
+import org.glassfish.jersey.message.internal.HeaderUtils;
+import org.glassfish.jersey.message.internal.OutboundMessageContext;
+import org.glassfish.jersey.message.internal.ReaderWriter;
+import org.glassfish.jersey.message.internal.Statuses;
+
+/**
+ * A {@link Connector} that utilizes the Apache HTTP Client to send and receive
+ * HTTP request and responses.
+ *
+ * The following properties are only supported at construction of this class:
+ *
+ * {@link Apache5ClientProperties#CONNECTION_MANAGER}
+ * {@link Apache5ClientProperties#REQUEST_CONFIG}
+ * {@link Apache5ClientProperties#CREDENTIALS_PROVIDER}
+ * {@link Apache5ClientProperties#DISABLE_COOKIES}
+ * {@link Apache5ClientProperties#KEEPALIVE_STRATEGY}
+ * {@link org.glassfish.jersey.client.ClientProperties#PROXY_URI}
+ * {@link org.glassfish.jersey.client.ClientProperties#PROXY_USERNAME}
+ * {@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}
+ * {@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING} - default value is {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED}
+ * {@link Apache5ClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}
+ * {@link Apache5ClientProperties#RETRY_STRATEGY}
+ * {@link Apache5ClientProperties#REUSE_STRATEGY}
+ *
+ *
+ * This connector uses {@link RequestEntityProcessing#CHUNKED chunked encoding} as a default setting. This can
+ * be overridden by the {@link ClientProperties#REQUEST_ENTITY_PROCESSING}. By default the
+ * {@link ClientProperties#CHUNKED_ENCODING_SIZE} property is only supported by using default connection manager. If custom
+ * connection manager needs to be used then chunked encoding size can be set by providing a custom
+ * {@link org.apache.hc.core5.http.io.HttpClientConnection} (via custom {@link org.apache.hc.client5.http.impl.io.ManagedHttpClientConnectionFactory})
+ * and overriding {@code createOutputStream} method.
+ *
+ *
+ * Using of authorization is dependent on the chunk encoding setting. If the entity
+ * buffering is enabled, the entity is buffered and authorization can be performed
+ * automatically in response to a 401 by sending the request again. When entity buffering
+ * is disabled (chunked encoding is used) then the property
+ * {@link Apache5ClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION} must
+ * be set to {@code true}.
+ *
+ *
+ * Registration of {@link Apache5HttpClientBuilderConfigurator} instance on the
+ * {@link javax.ws.rs.client.Client#register(Object) Client} is supported. A configuration provided by
+ * {@link Apache5HttpClientBuilderConfigurator} will override the {@link org.apache.hc.client5.http.impl.classic.HttpClientBuilder}
+ * configuration set by using the properties.
+ *
+ *
+ * If a {@link org.glassfish.jersey.client.ClientResponse} is obtained and an
+ * entity is not read from the response then
+ * {@link org.glassfish.jersey.client.ClientResponse#close()} MUST be called
+ * after processing the response to release connection-based resources.
+ *
+ *
+ * Client operations are thread safe, the HTTP connection may
+ * be shared between different threads.
+ *
+ *
+ * If a response entity is obtained that is an instance of {@link Closeable}
+ * then the instance MUST be closed after processing the entity to release
+ * connection-based resources.
+ *
+ *
+ * The following methods are currently supported: HEAD, GET, POST, PUT, DELETE, OPTIONS, PATCH and TRACE.
+ *
+ *
+ * @author jorgeluisw@mac.com
+ * @author Paul Sandoz
+ * @author Pavel Bucek
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ * @author Steffen Nießing
+ * @see Apache5ClientProperties#CONNECTION_MANAGER
+ */
+class Apache5Connector implements Connector {
+
+ private static final Logger LOGGER = Logger.getLogger(Apache5Connector.class.getName());
+ private static final VersionInfo vi;
+ private static final String release;
+
+ static {
+ vi = VersionInfo.loadVersionInfo("org.apache.hc.client5", HttpClientBuilder.class.getClassLoader());
+ release = (vi != null) ? vi.getRelease() : VersionInfo.UNAVAILABLE;
+ }
+
+ private final CloseableHttpClient client;
+ private final CookieStore cookieStore;
+ private final boolean preemptiveBasicAuth;
+ private final RequestConfig requestConfig;
+
+ /**
+ * Create the new Apache HTTP Client connector.
+ *
+ * @param client JAX-RS client instance for which the connector is being created.
+ * @param config client configuration.
+ */
+ Apache5Connector(final Client client, final Configuration config) {
+ final Object connectionManager = config.getProperties().get(Apache5ClientProperties.CONNECTION_MANAGER);
+ if (connectionManager != null) {
+ if (!(connectionManager instanceof HttpClientConnectionManager)) {
+ LOGGER.log(
+ Level.WARNING,
+ LocalizationMessages.IGNORING_VALUE_OF_PROPERTY(
+ Apache5ClientProperties.CONNECTION_MANAGER,
+ connectionManager.getClass().getName(),
+ HttpClientConnectionManager.class.getName())
+ );
+ }
+ }
+
+ Object keepAliveStrategy = config.getProperties().get(Apache5ClientProperties.KEEPALIVE_STRATEGY);
+ if (keepAliveStrategy != null) {
+ if (!(keepAliveStrategy instanceof ConnectionKeepAliveStrategy)) {
+ LOGGER.log(
+ Level.WARNING,
+ LocalizationMessages.IGNORING_VALUE_OF_PROPERTY(
+ Apache5ClientProperties.KEEPALIVE_STRATEGY,
+ keepAliveStrategy.getClass().getName(),
+ ConnectionKeepAliveStrategy.class.getName())
+ );
+ keepAliveStrategy = null;
+ }
+ }
+
+ Object reuseStrategy = config.getProperties().get(Apache5ClientProperties.REUSE_STRATEGY);
+ if (reuseStrategy != null) {
+ if (!(reuseStrategy instanceof ConnectionReuseStrategy)) {
+ LOGGER.log(
+ Level.WARNING,
+ LocalizationMessages.IGNORING_VALUE_OF_PROPERTY(
+ Apache5ClientProperties.REUSE_STRATEGY,
+ reuseStrategy.getClass().getName(),
+ ConnectionReuseStrategy.class.getName())
+ );
+ reuseStrategy = null;
+ }
+ }
+
+ Object reqConfig = config.getProperties().get(Apache5ClientProperties.REQUEST_CONFIG);
+ if (reqConfig != null) {
+ if (!(reqConfig instanceof RequestConfig)) {
+ LOGGER.log(
+ Level.WARNING,
+ LocalizationMessages.IGNORING_VALUE_OF_PROPERTY(
+ Apache5ClientProperties.REQUEST_CONFIG,
+ reqConfig.getClass().getName(),
+ RequestConfig.class.getName())
+ );
+ reqConfig = null;
+ }
+ }
+
+ final SSLContext sslContext = client.getSslContext();
+ final HttpClientBuilder clientBuilder = HttpClientBuilder.create();
+
+ clientBuilder.setConnectionManager(getConnectionManager(client, config, sslContext));
+ clientBuilder.setConnectionManagerShared(
+ PropertiesHelper.getValue(
+ config.getProperties(),
+ Apache5ClientProperties.CONNECTION_MANAGER_SHARED,
+ false,
+ null
+ )
+ );
+ if (keepAliveStrategy != null) {
+ clientBuilder.setKeepAliveStrategy((ConnectionKeepAliveStrategy) keepAliveStrategy);
+ }
+ if (reuseStrategy != null) {
+ clientBuilder.setConnectionReuseStrategy((ConnectionReuseStrategy) reuseStrategy);
+ }
+
+ final RequestConfig.Builder requestConfigBuilder = RequestConfig.custom();
+
+ final Object credentialsProvider = config.getProperty(Apache5ClientProperties.CREDENTIALS_PROVIDER);
+ if (credentialsProvider != null && (credentialsProvider instanceof CredentialsProvider)) {
+ clientBuilder.setDefaultCredentialsProvider((CredentialsProvider) credentialsProvider);
+ }
+
+ final Object retryHandler = config.getProperties().get(Apache5ClientProperties.RETRY_STRATEGY);
+ if (retryHandler != null && (retryHandler instanceof HttpRequestRetryStrategy)) {
+ clientBuilder.setRetryStrategy((HttpRequestRetryStrategy) retryHandler);
+ }
+
+ final Object proxyUri;
+ proxyUri = config.getProperty(ClientProperties.PROXY_URI);
+ if (proxyUri != null) {
+ final URI u = getProxyUri(proxyUri);
+ final HttpHost proxy = new HttpHost(u.getScheme(), u.getHost(), u.getPort());
+ final String userName;
+ userName = ClientProperties.getValue(config.getProperties(), ClientProperties.PROXY_USERNAME, String.class);
+ if (userName != null) {
+ final String password;
+ password = ClientProperties.getValue(config.getProperties(), ClientProperties.PROXY_PASSWORD, String.class);
+
+ if (password != null) {
+ final CredentialsStore credsProvider = new BasicCredentialsProvider();
+ credsProvider.setCredentials(
+ new AuthScope(u.getHost(), u.getPort()),
+ new UsernamePasswordCredentials(userName, password.toCharArray())
+ );
+ clientBuilder.setDefaultCredentialsProvider(credsProvider);
+ }
+ }
+ clientBuilder.setProxy(proxy);
+ }
+
+ final Boolean preemptiveBasicAuthProperty = (Boolean) config.getProperties()
+ .get(Apache5ClientProperties.PREEMPTIVE_BASIC_AUTHENTICATION);
+ this.preemptiveBasicAuth = (preemptiveBasicAuthProperty != null) ? preemptiveBasicAuthProperty : false;
+
+ final boolean ignoreCookies = PropertiesHelper.isProperty(
+ config.getProperties(),
+ Apache5ClientProperties.DISABLE_COOKIES
+ );
+
+ if (reqConfig != null) {
+ final RequestConfig.Builder reqConfigBuilder = RequestConfig.copy((RequestConfig) reqConfig);
+ if (ignoreCookies) {
+ reqConfigBuilder.setCookieSpec(StandardCookieSpec.IGNORE);
+ }
+ requestConfig = reqConfigBuilder.build();
+ } else {
+ if (ignoreCookies) {
+ requestConfigBuilder.setCookieSpec(StandardCookieSpec.IGNORE);
+ }
+ requestConfig = requestConfigBuilder.build();
+ }
+
+ if (requestConfig.getCookieSpec() == null || !requestConfig.getCookieSpec().equals(StandardCookieSpec.IGNORE)) {
+ this.cookieStore = new BasicCookieStore();
+ clientBuilder.setDefaultCookieStore(cookieStore);
+ } else {
+ this.cookieStore = null;
+ }
+ clientBuilder.setDefaultRequestConfig(requestConfig);
+
+ LinkedList contracts = config.getInstances().stream()
+ .filter(Apache5HttpClientBuilderConfigurator.class::isInstance)
+ .collect(Collectors.toCollection(LinkedList::new));
+
+ HttpClientBuilder configuredBuilder = clientBuilder;
+ for (Object configurator : contracts) {
+ configuredBuilder = ((Apache5HttpClientBuilderConfigurator) configurator).configure(configuredBuilder);
+ }
+
+ this.client = configuredBuilder.build();
+ }
+
+ private HttpClientConnectionManager getConnectionManager(final Client client,
+ final Configuration config,
+ final SSLContext sslContext) {
+ final Object cmObject = config.getProperties().get(Apache5ClientProperties.CONNECTION_MANAGER);
+
+ // Connection manager from configuration.
+ if (cmObject != null) {
+ if (cmObject instanceof HttpClientConnectionManager) {
+ return (HttpClientConnectionManager) cmObject;
+ } else {
+ LOGGER.log(
+ Level.WARNING,
+ LocalizationMessages.IGNORING_VALUE_OF_PROPERTY(
+ Apache5ClientProperties.CONNECTION_MANAGER,
+ cmObject.getClass().getName(),
+ HttpClientConnectionManager.class.getName())
+ );
+ }
+ }
+
+ final boolean useSystemProperties =
+ PropertiesHelper.isProperty(config.getProperties(), Apache5ClientProperties.USE_SYSTEM_PROPERTIES);
+
+ // Create custom connection manager.
+ return createConnectionManager(
+ client,
+ config,
+ sslContext,
+ useSystemProperties);
+ }
+
+ private HttpClientConnectionManager createConnectionManager(
+ final Client client,
+ final Configuration config,
+ final SSLContext sslContext,
+ final boolean useSystemProperties) {
+
+ final String[] supportedProtocols = useSystemProperties ? split(
+ System.getProperty("https.protocols")) : null;
+ final String[] supportedCipherSuites = useSystemProperties ? split(
+ System.getProperty("https.cipherSuites")) : null;
+
+ HostnameVerifier hostnameVerifier = client.getHostnameVerifier();
+
+ final LayeredConnectionSocketFactory sslSocketFactory;
+ if (sslContext != null) {
+ sslSocketFactory = new SSLConnectionSocketFactory(
+ sslContext, supportedProtocols, supportedCipherSuites, hostnameVerifier);
+ } else {
+ if (useSystemProperties) {
+ sslSocketFactory = new SSLConnectionSocketFactory(
+ (SSLSocketFactory) SSLSocketFactory.getDefault(),
+ supportedProtocols, supportedCipherSuites, hostnameVerifier);
+ } else {
+ sslSocketFactory = new SSLConnectionSocketFactory(
+ SSLContexts.createDefault(),
+ hostnameVerifier);
+ }
+ }
+
+ final Registry registry = RegistryBuilder.create()
+ .register("http", PlainConnectionSocketFactory.getSocketFactory())
+ .register("https", sslSocketFactory)
+ .build();
+
+ final Integer chunkSize = ClientProperties.getValue(config.getProperties(),
+ ClientProperties.CHUNKED_ENCODING_SIZE, ClientProperties.DEFAULT_CHUNK_SIZE, Integer.class);
+
+ final PoolingHttpClientConnectionManager connectionManager =
+ new PoolingHttpClientConnectionManager(registry, new ConnectionFactory(chunkSize));
+
+ if (useSystemProperties) {
+ String s = System.getProperty("http.keepAlive", "true");
+ if ("true".equalsIgnoreCase(s)) {
+ s = System.getProperty("http.maxConnections", "5");
+ final int max = Integer.parseInt(s);
+ connectionManager.setDefaultMaxPerRoute(max);
+ connectionManager.setMaxTotal(2 * max);
+ }
+ }
+
+ return connectionManager;
+ }
+
+ private static String[] split(final String s) {
+ if (TextUtils.isBlank(s)) {
+ return null;
+ }
+ return s.split(" *, *");
+ }
+
+ /**
+ * Get the {@link HttpClient}.
+ *
+ * @return the {@link HttpClient}.
+ */
+ @SuppressWarnings("UnusedDeclaration")
+ public HttpClient getHttpClient() {
+ return client;
+ }
+
+ /**
+ * Get the {@link CookieStore}.
+ *
+ * @return the {@link CookieStore} instance or {@code null} when {@value Apache5ClientProperties#DISABLE_COOKIES} set to
+ * {@code true}.
+ */
+ public CookieStore getCookieStore() {
+ return cookieStore;
+ }
+
+ private static URI getProxyUri(final Object proxy) {
+ if (proxy instanceof URI) {
+ return (URI) proxy;
+ } else if (proxy instanceof String) {
+ return URI.create((String) proxy);
+ } else {
+ throw new ProcessingException(LocalizationMessages.WRONG_PROXY_URI_TYPE(ClientProperties.PROXY_URI));
+ }
+ }
+
+ @Override
+ public ClientResponse apply(final ClientRequest clientRequest) throws ProcessingException {
+ final HttpUriRequest request = getUriHttpRequest(clientRequest);
+ final Map clientHeadersSnapshot = writeOutBoundHeaders(clientRequest, request);
+
+ try {
+ final CloseableHttpResponse response;
+ final HttpClientContext context = HttpClientContext.create();
+ if (preemptiveBasicAuth) {
+ final AuthCache authCache = new BasicAuthCache();
+ final BasicScheme basicScheme = new BasicScheme();
+ authCache.put(getHost(request), basicScheme);
+ context.setAuthCache(authCache);
+ }
+
+ // If a request-specific CredentialsProvider exists, use it instead of the default one
+ CredentialsProvider credentialsProvider =
+ clientRequest.resolveProperty(Apache5ClientProperties.CREDENTIALS_PROVIDER, CredentialsProvider.class);
+ if (credentialsProvider != null) {
+ context.setCredentialsProvider(credentialsProvider);
+ }
+
+ response = client.execute(getHost(request), request, context);
+ HeaderUtils.checkHeaderChanges(clientHeadersSnapshot, clientRequest.getHeaders(),
+ this.getClass().getName(), clientRequest.getConfiguration());
+
+ final Response.StatusType status = response.getReasonPhrase() == null
+ ? Statuses.from(response.getCode())
+ : Statuses.from(response.getCode(), response.getReasonPhrase());
+
+ final ClientResponse responseContext = new ClientResponse(status, clientRequest);
+ final List redirectLocations = context.getRedirectLocations().getAll();
+ if (redirectLocations != null && !redirectLocations.isEmpty()) {
+ responseContext.setResolvedRequestUri(redirectLocations.get(redirectLocations.size() - 1));
+ }
+
+ final Header[] respHeaders = response.getHeaders();
+ final MultivaluedMap headers = responseContext.getHeaders();
+ for (final Header header : respHeaders) {
+ final String headerName = header.getName();
+ List list = headers.get(headerName);
+ if (list == null) {
+ list = new ArrayList<>();
+ }
+ list.add(header.getValue());
+ headers.put(headerName, list);
+ }
+
+ final HttpEntity entity = response.getEntity();
+
+ if (entity != null) {
+ if (headers.get(HttpHeaders.CONTENT_LENGTH) == null) {
+ headers.add(HttpHeaders.CONTENT_LENGTH, String.valueOf(entity.getContentLength()));
+ }
+
+ final String contentEncoding = entity.getContentEncoding();
+ if (headers.get(HttpHeaders.CONTENT_ENCODING) == null && contentEncoding != null && !contentEncoding.isEmpty()) {
+ headers.add(HttpHeaders.CONTENT_ENCODING, contentEncoding);
+ }
+ }
+
+ try {
+ final ConnectionClosingMechanism closingMechanism = new ConnectionClosingMechanism(clientRequest, request);
+ responseContext.setEntityStream(getInputStream(response, closingMechanism));
+ } catch (final IOException e) {
+ LOGGER.log(Level.SEVERE, null, e);
+ }
+
+ return responseContext;
+ } catch (final Exception e) {
+ throw new ProcessingException(e);
+ }
+ }
+
+ @Override
+ public Future> apply(final ClientRequest request, final AsyncConnectorCallback callback) {
+ try {
+ ClientResponse response = apply(request);
+ callback.response(response);
+ return CompletableFuture.completedFuture(response);
+ } catch (Throwable t) {
+ callback.failure(t);
+ CompletableFuture future = new CompletableFuture<>();
+ future.completeExceptionally(t);
+ return future;
+ }
+ }
+
+ @Override
+ public String getName() {
+ return "Apache HttpClient " + release;
+ }
+
+ @Override
+ public void close() {
+ try {
+ client.close();
+ } catch (final IOException e) {
+ throw new ProcessingException(LocalizationMessages.FAILED_TO_STOP_CLIENT(), e);
+ }
+ }
+
+ private HttpHost getHost(final HttpUriRequest request) throws URISyntaxException {
+ return new HttpHost(request.getUri().getScheme(), request.getUri().getHost(), request.getUri().getPort());
+ }
+
+ private HttpUriRequest getUriHttpRequest(final ClientRequest clientRequest) {
+ final RequestConfig.Builder requestConfigBuilder = RequestConfig.copy(requestConfig);
+
+ final int connectTimeout = clientRequest.resolveProperty(ClientProperties.CONNECT_TIMEOUT, -1);
+ final int socketTimeout = clientRequest.resolveProperty(ClientProperties.READ_TIMEOUT, -1);
+
+ if (connectTimeout >= 0) {
+ requestConfigBuilder.setConnectTimeout(Timeout.ofMilliseconds(connectTimeout));
+ }
+ if (socketTimeout >= 0) {
+ requestConfigBuilder.setResponseTimeout(Timeout.ofMilliseconds(socketTimeout));
+ }
+
+ final Boolean redirectsEnabled =
+ clientRequest.resolveProperty(ClientProperties.FOLLOW_REDIRECTS, requestConfig.isRedirectsEnabled());
+ requestConfigBuilder.setRedirectsEnabled(redirectsEnabled);
+
+ final Boolean bufferingEnabled = clientRequest.resolveProperty(ClientProperties.REQUEST_ENTITY_PROCESSING,
+ RequestEntityProcessing.class) == RequestEntityProcessing.BUFFERED;
+ final HttpEntity entity = getHttpEntity(clientRequest, bufferingEnabled);
+
+ HttpUriRequestBase httpUriRequestBase = new HttpUriRequestBase(clientRequest.getMethod(), clientRequest.getUri());
+ httpUriRequestBase.setConfig(requestConfigBuilder.build());
+ httpUriRequestBase.setEntity(entity);
+
+ return httpUriRequestBase;
+ }
+
+ private HttpEntity getHttpEntity(final ClientRequest clientRequest, final boolean bufferingEnabled) {
+ final Object entity = clientRequest.getEntity();
+
+ if (entity == null) {
+ return null;
+ }
+
+ if (HttpEntity.class.isInstance(entity)) {
+ return wrapHttpEntity(clientRequest, (HttpEntity) entity);
+ }
+
+ String contentType = clientRequest.getHeaderString(HttpHeaders.CONTENT_TYPE);
+ String contentEncoding = clientRequest.getHeaderString(HttpHeaders.CONTENT_ENCODING);
+
+ final AbstractHttpEntity httpEntity = new AbstractHttpEntity(contentType, contentEncoding) {
+ @Override
+ public void close() throws IOException {
+
+ }
+
+ @Override
+ public boolean isRepeatable() {
+ return false;
+ }
+
+ @Override
+ public long getContentLength() {
+ return -1;
+ }
+
+ @Override
+ public InputStream getContent() throws IOException, IllegalStateException {
+ if (bufferingEnabled) {
+ final ByteArrayOutputStream buffer = new ByteArrayOutputStream(512);
+ writeTo(buffer);
+ return new ByteArrayInputStream(buffer.toByteArray());
+ } else {
+ return null;
+ }
+ }
+
+ @Override
+ public void writeTo(final OutputStream outputStream) throws IOException {
+ clientRequest.setStreamProvider(new OutboundMessageContext.StreamProvider() {
+ @Override
+ public OutputStream getOutputStream(final int contentLength) throws IOException {
+ return outputStream;
+ }
+ });
+ clientRequest.writeEntity();
+ }
+
+ @Override
+ public boolean isStreaming() {
+ return false;
+ }
+ };
+
+ return bufferEntity(httpEntity, bufferingEnabled);
+ }
+
+ private HttpEntity wrapHttpEntity(final ClientRequest clientRequest, final HttpEntity originalEntity) {
+ final boolean bufferingEnabled = BufferedHttpEntity.class.isInstance(originalEntity);
+
+ try {
+ clientRequest.setEntity(originalEntity.getContent());
+ } catch (IOException e) {
+ throw new ProcessingException(LocalizationMessages.ERROR_READING_HTTPENTITY_STREAM(e.getMessage()), e);
+ }
+
+ final AbstractHttpEntity httpEntity = new AbstractHttpEntity(
+ originalEntity.getContentType(),
+ originalEntity.getContentEncoding(),
+ originalEntity.isChunked()
+ ) {
+ @Override
+ public void close() throws IOException {
+
+ }
+
+ @Override
+ public boolean isRepeatable() {
+ return originalEntity.isRepeatable();
+ }
+
+ @Override
+ public long getContentLength() {
+ return originalEntity.getContentLength();
+ }
+
+ @Override
+ public InputStream getContent() throws IOException, IllegalStateException {
+ return originalEntity.getContent();
+ }
+
+ @Override
+ public void writeTo(final OutputStream outputStream) throws IOException {
+ clientRequest.setStreamProvider(new OutboundMessageContext.StreamProvider() {
+ @Override
+ public OutputStream getOutputStream(final int contentLength) throws IOException {
+ return outputStream;
+ }
+ });
+ clientRequest.writeEntity();
+ }
+
+ @Override
+ public boolean isStreaming() {
+ return originalEntity.isStreaming();
+ }
+ };
+
+ return bufferEntity(httpEntity, bufferingEnabled);
+ }
+
+ private static HttpEntity bufferEntity(HttpEntity httpEntity, boolean bufferingEnabled) {
+ if (bufferingEnabled) {
+ try {
+ return new BufferedHttpEntity(httpEntity);
+ } catch (final IOException e) {
+ throw new ProcessingException(LocalizationMessages.ERROR_BUFFERING_ENTITY(), e);
+ }
+ } else {
+ return httpEntity;
+ }
+ }
+
+ private static Map writeOutBoundHeaders(final ClientRequest clientRequest,
+ final HttpUriRequest request) {
+ final Map stringHeaders =
+ HeaderUtils.asStringHeadersSingleValue(clientRequest.getHeaders(), clientRequest.getConfiguration());
+
+ for (final Map.Entry e : stringHeaders.entrySet()) {
+ request.addHeader(e.getKey(), e.getValue());
+ }
+ return stringHeaders;
+ }
+
+ private static InputStream getInputStream(final CloseableHttpResponse response,
+ final ConnectionClosingMechanism closingMechanism) throws IOException {
+ final InputStream inputStream;
+
+ if (response.getEntity() == null) {
+ inputStream = new ByteArrayInputStream(new byte[0]);
+ } else {
+ final InputStream i = response.getEntity().getContent();
+ if (i.markSupported()) {
+ inputStream = i;
+ } else {
+ inputStream = new BufferedInputStream(i, ReaderWriter.BUFFER_SIZE);
+ }
+ }
+
+ return closingMechanism.getEntityStream(inputStream, response);
+ }
+
+ /**
+ * The way the Apache CloseableHttpResponse is to be closed.
+ * See https://github.com/eclipse-ee4j/jersey/issues/4321
+ * {@link Apache5ClientProperties#CONNECTION_CLOSING_STRATEGY}
+ */
+ private final class ConnectionClosingMechanism {
+ private Apache5ConnectionClosingStrategy connectionClosingStrategy = null;
+ private final ClientRequest clientRequest;
+ private final HttpUriRequest apacheRequest;
+
+ private ConnectionClosingMechanism(ClientRequest clientRequest, HttpUriRequest apacheRequest) {
+ this.clientRequest = clientRequest;
+ this.apacheRequest = apacheRequest;
+ Object closingStrategyProperty = clientRequest
+ .resolveProperty(Apache5ClientProperties.CONNECTION_CLOSING_STRATEGY, Object.class);
+ if (closingStrategyProperty != null) {
+ if (Apache5ConnectionClosingStrategy.class.isInstance(closingStrategyProperty)) {
+ connectionClosingStrategy = (Apache5ConnectionClosingStrategy) closingStrategyProperty;
+ } else {
+ LOGGER.log(
+ Level.WARNING,
+ LocalizationMessages.IGNORING_VALUE_OF_PROPERTY(
+ Apache5ClientProperties.CONNECTION_CLOSING_STRATEGY,
+ closingStrategyProperty,
+ Apache5ConnectionClosingStrategy.class.getName())
+ );
+ }
+ }
+
+ if (connectionClosingStrategy == null) {
+ connectionClosingStrategy = Apache5ConnectionClosingStrategy.Apache5GracefulClosingStrategy.INSTANCE;
+ }
+ }
+
+ private InputStream getEntityStream(final InputStream inputStream,
+ final CloseableHttpResponse response) {
+ InputStream filterStream = new FilterInputStream(inputStream) {
+ @Override
+ public void close() throws IOException {
+ connectionClosingStrategy.close(clientRequest, apacheRequest, response, in);
+ }
+ };
+ return filterStream;
+ }
+ }
+
+ private static class ConnectionFactory extends ManagedHttpClientConnectionFactory {
+ private ConnectionFactory(final int chunkSize) {
+ super(
+ Http1Config.custom().setChunkSizeHint(chunkSize).build(),
+ null,
+ null,
+ null,
+ DefaultContentLengthStrategy.INSTANCE,
+ DefaultContentLengthStrategy.INSTANCE
+ );
+ }
+ }
+}
diff --git a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectorProvider.java b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectorProvider.java
new file mode 100644
index 00000000000..9a32a2ce3cd
--- /dev/null
+++ b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectorProvider.java
@@ -0,0 +1,157 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import javax.ws.rs.client.Client;
+import javax.ws.rs.core.Configurable;
+import javax.ws.rs.core.Configuration;
+
+import org.apache.hc.client5.http.classic.HttpClient;
+import org.apache.hc.client5.http.cookie.CookieStore;
+import org.glassfish.jersey.client.Initializable;
+import org.glassfish.jersey.client.spi.Connector;
+import org.glassfish.jersey.client.spi.ConnectorProvider;
+
+/**
+ * Connector provider for Jersey {@link Connector connectors} that utilize
+ * Apache HTTP Client to send and receive HTTP request and responses.
+ *
+ * The following connector configuration properties are supported:
+ *
+ * {@link Apache5ClientProperties#CONNECTION_MANAGER}
+ * {@link Apache5ClientProperties#REQUEST_CONFIG}
+ * {@link Apache5ClientProperties#CREDENTIALS_PROVIDER}
+ * {@link Apache5ClientProperties#DISABLE_COOKIES}
+ * {@link Apache5ClientProperties#KEEPALIVE_STRATEGY}
+ * {@link org.glassfish.jersey.client.ClientProperties#PROXY_URI}
+ * {@link org.glassfish.jersey.client.ClientProperties#PROXY_USERNAME}
+ * {@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}
+ * {@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING}
+ * - default value is {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED}
+ * {@link Apache5ClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}
+ * {@link Apache5ClientProperties#RETRY_STRATEGY}
+ * {@link Apache5ClientProperties#REUSE_STRATEGY}
+ *
+ *
+ *
+ * Connector instances created via this connector provider use
+ * {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED chunked encoding} as a default setting.
+ * This can be overridden by the {@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING}.
+ * By default the {@link org.glassfish.jersey.client.ClientProperties#CHUNKED_ENCODING_SIZE} property is only supported
+ * when using the default {@link org.apache.hc.core5.http.io.HttpClientConnection} instance. If custom
+ * connection manager is used, then chunked encoding size can be set by providing a custom
+ * {@link org.apache.hc.core5.http.io.HttpClientConnection} (via custom {@link org.apache.hc.client5.http.impl.io.ManagedHttpClientConnectionFactory})
+ * and overriding it's {@code createOutputStream} method.
+ *
+ *
+ * Use of authorization by the AHC-based connectors is dependent on the chunk encoding setting.
+ * If the entity buffering is enabled, the entity is buffered and authorization can be performed
+ * automatically in response to a 401 by sending the request again. When entity buffering
+ * is disabled (chunked encoding is used) then the property
+ * {@link Apache5ClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION} must
+ * be set to {@code true}.
+ *
+ *
+ * If a {@link org.glassfish.jersey.client.ClientResponse} is obtained and an entity is not read from the response then
+ * {@link org.glassfish.jersey.client.ClientResponse#close()} MUST be called after processing the response to release
+ * connection-based resources.
+ *
+ *
+ * Registration of {@link Apache5HttpClientBuilderConfigurator} instance on the
+ * {@link javax.ws.rs.client.Client#register(Object) Client} is supported. A configuration provided by
+ * {@link Apache5HttpClientBuilderConfigurator} will override the {@link org.apache.hc.client5.http.impl.classic.HttpClientBuilder}
+ * configuration set by using the properties.
+ *
+ *
+ * If a response entity is obtained that is an instance of {@link java.io.Closeable}
+ * then the instance MUST be closed after processing the entity to release
+ * connection-based resources.
+ *
+ *
+ * The following methods are currently supported: HEAD, GET, POST, PUT, DELETE, OPTIONS, PATCH and TRACE.
+ *
+ *
+ * @author Pavel Bucek
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ * @author jorgeluisw at mac.com
+ * @author Marek Potociar
+ * @author Paul Sandoz
+ * @author Maksim Mukosey (mmukosey at gmail.com)
+ * @since 2.5
+ */
+public class Apache5ConnectorProvider implements ConnectorProvider {
+
+ @Override
+ public Connector getConnector(final Client client, final Configuration runtimeConfig) {
+ return new Apache5Connector(client, runtimeConfig);
+ }
+
+ /**
+ * Retrieve the underlying Apache {@link org.apache.hc.client5.http.classic.HttpClient} instance from
+ * {@link org.glassfish.jersey.client.JerseyClient} or {@link org.glassfish.jersey.client.JerseyWebTarget}
+ * configured to use {@code ApacheConnectorProvider}.
+ *
+ * @param component {@code JerseyClient} or {@code JerseyWebTarget} instance that is configured to use
+ * {@code ApacheConnectorProvider}.
+ * @return underlying Apache {@code HttpClient} instance.
+ *
+ * @throws java.lang.IllegalArgumentException in case the {@code component} is neither {@code JerseyClient}
+ * nor {@code JerseyWebTarget} instance or in case the component
+ * is not configured to use a {@code ApacheConnectorProvider}.
+ * @since 2.8
+ */
+ public static HttpClient getHttpClient(final Configurable> component) {
+ return getConnector(component).getHttpClient();
+ }
+
+ /**
+ * Retrieve the underlying Apache {@link CookieStore} instance from
+ * {@link org.glassfish.jersey.client.JerseyClient} or {@link org.glassfish.jersey.client.JerseyWebTarget}
+ * configured to use {@code ApacheConnectorProvider}.
+ *
+ * @param component {@code JerseyClient} or {@code JerseyWebTarget} instance that is configured to use
+ * {@code ApacheConnectorProvider}.
+ * @return underlying Apache {@code CookieStore} instance.
+ * @throws java.lang.IllegalArgumentException in case the {@code component} is neither {@code JerseyClient}
+ * nor {@code JerseyWebTarget} instance or in case the component
+ * is not configured to use a {@code ApacheConnectorProvider}.
+ * @since 2.16
+ */
+ public static CookieStore getCookieStore(final Configurable> component) {
+ return getConnector(component).getCookieStore();
+ }
+
+ private static Apache5Connector getConnector(final Configurable> component) {
+ if (!(component instanceof Initializable)) {
+ throw new IllegalArgumentException(
+ LocalizationMessages.INVALID_CONFIGURABLE_COMPONENT_TYPE(component.getClass().getName()));
+ }
+
+ final Initializable> initializable = (Initializable>) component;
+ Connector connector = initializable.getConfiguration().getConnector();
+ if (connector == null) {
+ initializable.preInitialize();
+ connector = initializable.getConfiguration().getConnector();
+ }
+
+ if (connector instanceof Apache5Connector) {
+ return (Apache5Connector) connector;
+ } else {
+ throw new IllegalArgumentException(LocalizationMessages.EXPECTED_CONNECTOR_PROVIDER_NOT_USED());
+ }
+ }
+}
diff --git a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5HttpClientBuilderConfigurator.java b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5HttpClientBuilderConfigurator.java
new file mode 100644
index 00000000000..d179f5c6203
--- /dev/null
+++ b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5HttpClientBuilderConfigurator.java
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import org.apache.hc.client5.http.impl.classic.HttpClientBuilder;
+import org.glassfish.jersey.spi.Contract;
+
+/**
+ * A callback interface used to configure {@link org.apache.hc.client5.http.impl.classic.HttpClientBuilder}. It is called immediately before
+ * the {@link Apache5ConnectorProvider} creates {@link org.apache.hc.client5.http.classic.HttpClient}, after the
+ * {@link org.apache.hc.client5.http.impl.classic.HttpClientBuilder} is configured using the properties.
+ */
+@Contract
+public interface Apache5HttpClientBuilderConfigurator {
+ /**
+ * A callback method to configure the {@link org.apache.hc.client5.http.impl.classic.HttpClientBuilder}
+ * @param httpClientBuilder {@link org.apache.hc.client5.http.impl.classic.HttpClientBuilder} object to be further configured
+ * @return the configured {@link org.apache.hc.client5.http.impl.classic.HttpClientBuilder}. If {@code null} is returned the
+ * {@code httpClientBuilder} is used by {@link Apache5ConnectorProvider} instead.
+ */
+ HttpClientBuilder configure(HttpClientBuilder httpClientBuilder);
+}
diff --git a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/package-info.java b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/package-info.java
new file mode 100644
index 00000000000..0b05d4b425f
--- /dev/null
+++ b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/package-info.java
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+/**
+ * Jersey client {@link org.glassfish.jersey.client.spi.Connector connector} based on the
+ * Apache Http Client.
+ */
+package org.glassfish.jersey.apache5.connector;
diff --git a/connectors/apache5-connector/src/main/resources/org/glassfish/jersey/apache5/connector/localization.properties b/connectors/apache5-connector/src/main/resources/org/glassfish/jersey/apache5/connector/localization.properties
new file mode 100644
index 00000000000..16dbc30eca5
--- /dev/null
+++ b/connectors/apache5-connector/src/main/resources/org/glassfish/jersey/apache5/connector/localization.properties
@@ -0,0 +1,25 @@
+#
+# Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License v. 2.0, which is available at
+# http://www.eclipse.org/legal/epl-2.0.
+#
+# This Source Code may also be made available under the following Secondary
+# Licenses when the conditions for such availability set forth in the
+# Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+# version 2 with the GNU Classpath Exception, which is available at
+# https://www.gnu.org/software/classpath/license.html.
+#
+# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+#
+
+error.buffering.entity=Error buffering the entity.
+error.reading.httpentity.stream=Error reading InputStream from HttpEntity: "{0}"
+failed.to.stop.client=Failed to stop the client.
+# {0} - property name, e.g. jersey.config.client.httpclient.connectionManager; {1}, {2} - full class name
+ignoring.value.of.property=Ignoring value of property "{0}" ("{1}") - not instance of "{2}".
+# {0} - property name - jersey.config.client.httpclient.proxyUri
+wrong.proxy.uri.type=The proxy URI ("{0}") property MUST be an instance of String or URI.
+invalid.configurable.component.type=The supplied component "{0}" is not assignable from JerseyClient or JerseyWebTarget.
+expected.connector.provider.not.used=The supplied component is not configured to use a ApacheConnectorProvider.
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AsyncTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AsyncTest.java
new file mode 100644
index 00000000000..50e8f6571ff
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AsyncTest.java
@@ -0,0 +1,242 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.util.concurrent.Callable;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.logging.Logger;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.container.AsyncResponse;
+import javax.ws.rs.container.Suspended;
+import javax.ws.rs.container.TimeoutHandler;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Response;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.hamcrest.Matchers;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assert.assertTrue;
+
+/**
+ * Asynchronous connector test.
+ *
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ * @author Marek Potociar
+ */
+public class AsyncTest extends JerseyTest {
+ private static final Logger LOGGER = Logger.getLogger(AsyncTest.class.getName());
+ private static final String PATH = "async";
+
+ /**
+ * Asynchronous test resource.
+ */
+ @Path(PATH)
+ public static class AsyncResource {
+ /**
+ * Typical long-running operation duration.
+ */
+ public static final long OPERATION_DURATION = 1000;
+
+ /**
+ * Long-running asynchronous post.
+ *
+ * @param asyncResponse async response.
+ * @param id post request id (received as request payload).
+ */
+ @POST
+ public void asyncPost(@Suspended final AsyncResponse asyncResponse, final String id) {
+ LOGGER.info("Long running post operation called with id " + id + " on thread " + Thread.currentThread().getName());
+ new Thread(new Runnable() {
+
+ @Override
+ public void run() {
+ String result = veryExpensiveOperation();
+ asyncResponse.resume(result);
+ }
+
+ private String veryExpensiveOperation() {
+ // ... very expensive operation that typically finishes within 1 seconds, simulated using sleep()
+ try {
+ Thread.sleep(OPERATION_DURATION);
+ return "DONE-" + id;
+ } catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ return "INTERRUPTED-" + id;
+ } finally {
+ LOGGER.info("Long running post operation finished on thread " + Thread.currentThread().getName());
+ }
+ }
+ }, "async-post-runner-" + id).start();
+ }
+
+ /**
+ * Long-running async get request that times out.
+ *
+ * @param asyncResponse async response.
+ */
+ @GET
+ @Path("timeout")
+ public void asyncGetWithTimeout(@Suspended final AsyncResponse asyncResponse) {
+ LOGGER.info("Async long-running get with timeout called on thread " + Thread.currentThread().getName());
+ asyncResponse.setTimeoutHandler(new TimeoutHandler() {
+
+ @Override
+ public void handleTimeout(AsyncResponse asyncResponse) {
+ asyncResponse.resume(Response.status(Response.Status.SERVICE_UNAVAILABLE)
+ .entity("Operation time out.").build());
+ }
+ });
+ asyncResponse.setTimeout(1, TimeUnit.SECONDS);
+
+ new Thread(new Runnable() {
+
+ @Override
+ public void run() {
+ String result = veryExpensiveOperation();
+ asyncResponse.resume(result);
+ }
+
+ private String veryExpensiveOperation() {
+ // very expensive operation that typically finishes within 1 second but can take up to 5 seconds,
+ // simulated using sleep()
+ try {
+ Thread.sleep(5 * OPERATION_DURATION);
+ return "DONE";
+ } catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ return "INTERRUPTED";
+ } finally {
+ LOGGER.info("Async long-running get with timeout finished on thread " + Thread.currentThread().getName());
+ }
+ }
+ }).start();
+ }
+
+ }
+
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(AsyncResource.class)
+ .register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ config.connectorProvider(new Apache5ConnectorProvider());
+ }
+
+ /**
+ * Test asynchronous POST.
+ *
+ * Send 3 async POST requests and wait to receive the responses. Check the response content and
+ * assert that the operation did not take more than twice as long as a single long operation duration
+ * (this ensures async request execution).
+ *
+ * @throws Exception in case of a test error.
+ */
+ @Test
+ public void testAsyncPost() throws Exception {
+ final long tic = System.currentTimeMillis();
+
+ // Submit requests asynchronously.
+ final Future rf1 = target(PATH).request().async().post(Entity.text("1"));
+ final Future rf2 = target(PATH).request().async().post(Entity.text("2"));
+ final Future rf3 = target(PATH).request().async().post(Entity.text("3"));
+ // get() waits for the response
+
+ // workaround for AHC default connection manager limitation of
+ // only 2 open connections per host that may intermittently block
+ // the test
+ final CountDownLatch latch = new CountDownLatch(3);
+ ExecutorService executor = Executors.newFixedThreadPool(3);
+
+ final Future r1 = executor.submit(new Callable() {
+ @Override
+ public String call() throws Exception {
+ try {
+ return rf1.get().readEntity(String.class);
+ } finally {
+ latch.countDown();
+ }
+ }
+ });
+ final Future r2 = executor.submit(new Callable() {
+ @Override
+ public String call() throws Exception {
+ try {
+ return rf2.get().readEntity(String.class);
+ } finally {
+ latch.countDown();
+ }
+ }
+ });
+ final Future r3 = executor.submit(new Callable() {
+ @Override
+ public String call() throws Exception {
+ try {
+ return rf3.get().readEntity(String.class);
+ } finally {
+ latch.countDown();
+ }
+ }
+ });
+
+ assertTrue("Waiting for results has timed out.", latch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS));
+ final long toc = System.currentTimeMillis();
+
+ assertEquals("DONE-1", r1.get());
+ assertEquals("DONE-2", r2.get());
+ assertEquals("DONE-3", r3.get());
+
+ final int asyncTimeoutMultiplier = getAsyncTimeoutMultiplier();
+ LOGGER.info("Using async timeout multiplier: " + asyncTimeoutMultiplier);
+ assertThat("Async processing took too long.", toc - tic, Matchers.lessThan(4 * AsyncResource.OPERATION_DURATION
+ * asyncTimeoutMultiplier));
+
+ }
+
+ /**
+ * Test accessing an operation that times out on the server.
+ *
+ * @throws Exception in case of a test error.
+ */
+ @Test
+ public void testAsyncGetWithTimeout() throws Exception {
+ final Future responseFuture = target(PATH).path("timeout").request().async().get();
+ // Request is being processed asynchronously.
+ final Response response = responseFuture.get();
+
+ // get() waits for the response
+ assertEquals(503, response.getStatus());
+ assertEquals("Operation time out.", response.readEntity(String.class));
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AuthTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AuthTest.java
new file mode 100644
index 00000000000..f59c0cf9bf9
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AuthTest.java
@@ -0,0 +1,595 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import javax.ws.rs.DELETE;
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.WebApplicationException;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.HttpHeaders;
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.UriInfo;
+
+import javax.inject.Singleton;
+
+import org.apache.hc.client5.http.auth.AuthScope;
+import org.apache.hc.client5.http.auth.CredentialsStore;
+import org.apache.hc.client5.http.auth.UsernamePasswordCredentials;
+import org.apache.hc.client5.http.impl.auth.BasicCredentialsProvider;
+import org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.authentication.HttpAuthenticationFeature;
+import org.glassfish.jersey.client.authentication.ResponseAuthenticationException;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Ignore;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
+/**
+ * @author Paul Sandoz
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ */
+public class AuthTest extends JerseyTest {
+
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(PreemptiveAuthResource.class, AuthResource.class);
+ }
+
+ @Path("/")
+ public static class PreemptiveAuthResource {
+
+ @GET
+ public String get(@Context HttpHeaders h) {
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ assertNotNull(value);
+ return "GET";
+ }
+
+ @POST
+ public String post(@Context HttpHeaders h, String e) {
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ assertNotNull(value);
+ return e;
+ }
+ }
+
+ @Test
+ public void testPreemptiveAuth() {
+ CredentialsStore credentialsProvider = new BasicCredentialsProvider();
+ credentialsProvider.setCredentials(
+ new AuthScope("localhost", getPort()),
+ new UsernamePasswordCredentials("name", "password".toCharArray())
+ );
+
+ ClientConfig cc = new ClientConfig();
+ cc.property(Apache5ClientProperties.CREDENTIALS_PROVIDER, credentialsProvider)
+ .property(Apache5ClientProperties.PREEMPTIVE_BASIC_AUTHENTICATION, true);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+
+ WebTarget r = client.target(getBaseUri());
+ assertEquals("GET", r.request().get(String.class));
+ }
+
+ @Test
+ public void testPreemptiveAuthPost() {
+ CredentialsStore credentialsProvider = new BasicCredentialsProvider();
+ credentialsProvider.setCredentials(
+ new AuthScope("localhost", getPort()),
+ new UsernamePasswordCredentials("name", "password".toCharArray())
+ );
+
+ ClientConfig cc = new ClientConfig();
+ cc.property(Apache5ClientProperties.CREDENTIALS_PROVIDER, credentialsProvider)
+ .property(Apache5ClientProperties.PREEMPTIVE_BASIC_AUTHENTICATION, true);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+
+ WebTarget r = client.target(getBaseUri());
+ assertEquals("POST", r.request().post(Entity.text("POST"), String.class));
+ }
+
+ @Path("/test")
+ @Singleton
+ public static class AuthResource {
+
+ int requestCount = 0;
+ int queryParamsBasicRequestCount = 0;
+ int queryParamsDigestRequestCount = 0;
+
+ @GET
+ public String get(@Context HttpHeaders h) {
+ requestCount++;
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ assertEquals(1, requestCount);
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ } else {
+ assertTrue(requestCount > 1);
+ }
+
+ return "GET";
+ }
+
+ @GET
+ @Path("filter")
+ public String getFilter(@Context HttpHeaders h) {
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ }
+
+ return "GET";
+ }
+
+ @GET
+ @Path("basicAndDigest")
+ public String getBasicAndDigest(@Context HttpHeaders h) {
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"")
+ .header("WWW-Authenticate", "Digest realm=\"WallyWorld\"")
+ .entity("Forbidden").build());
+ } else if (value.startsWith("Basic")) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"")
+ .header("WWW-Authenticate", "Digest realm=\"WallyWorld\"")
+ .entity("Digest authentication expected").build());
+ }
+
+ return "GET";
+ }
+
+ @GET
+ @Path("noauth")
+ public String get() {
+ return "GET";
+ }
+
+ @GET
+ @Path("digest")
+ public String getDigest(@Context HttpHeaders h) {
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Digest realm=\"WallyWorld\"")
+ .entity("Forbidden").build());
+ }
+
+ return "GET";
+ }
+
+ @POST
+ public String post(@Context HttpHeaders h, String e) {
+ requestCount++;
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ assertEquals(1, requestCount);
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ } else {
+ assertTrue(requestCount > 1);
+ }
+
+ return e;
+ }
+
+ @POST
+ @Path("filter")
+ public String postFilter(@Context HttpHeaders h, String e) {
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ }
+
+ return e;
+ }
+
+ @DELETE
+ public void delete(@Context HttpHeaders h) {
+ requestCount++;
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ assertEquals(1, requestCount);
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ } else {
+ assertTrue(requestCount > 1);
+ }
+ }
+
+ @DELETE
+ @Path("filter")
+ public void deleteFilter(@Context HttpHeaders h) {
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ }
+ }
+
+ @DELETE
+ @Path("filter/withEntity")
+ public String deleteFilterWithEntity(@Context HttpHeaders h, String e) {
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ }
+
+ return e;
+ }
+
+ @GET
+ @Path("content")
+ public String getWithContent(@Context HttpHeaders h) {
+ requestCount++;
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ assertEquals(1, requestCount);
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"")
+ .entity("Forbidden").build());
+ } else {
+ assertTrue(requestCount > 1);
+ }
+
+ return "GET";
+ }
+
+ @GET
+ @Path("contentDigestAuth")
+ public String getWithContentDigestAuth(@Context HttpHeaders h) {
+ requestCount++;
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ assertEquals(1, requestCount);
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Digest nonce=\"1234\"")
+ .entity("Forbidden").build());
+ } else {
+ assertTrue(requestCount > 1);
+ }
+
+ return "GET";
+ }
+
+ @GET
+ @Path("queryParamsBasic")
+ public String getQueryParamsBasic(@Context HttpHeaders h, @Context UriInfo uriDetails) {
+ queryParamsBasicRequestCount++;
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ }
+ return "GET " + queryParamsBasicRequestCount;
+ }
+
+ @GET
+ @Path("queryParamsDigest")
+ public String getQueryParamsDigest(@Context HttpHeaders h, @Context UriInfo uriDetails) {
+ queryParamsDigestRequestCount++;
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Digest realm=\"WallyWorld\"").build());
+ }
+ return "GET " + queryParamsDigestRequestCount;
+ }
+ }
+
+ @Test
+ public void testAuthGet() {
+ CredentialsStore credentialsProvider = new BasicCredentialsProvider();
+ credentialsProvider.setCredentials(
+ new AuthScope("localhost", getPort()),
+ new UsernamePasswordCredentials("name", "password".toCharArray())
+ );
+
+ ClientConfig cc = new ClientConfig();
+ cc.property(Apache5ClientProperties.CREDENTIALS_PROVIDER, credentialsProvider);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = client.target(getBaseUri()).path("test");
+
+ assertEquals("GET", r.request().get(String.class));
+ }
+
+ @Test
+ public void testAuthGetWithRequestCredentialsProvider() {
+ CredentialsStore credentialsProvider = new BasicCredentialsProvider();
+ credentialsProvider.setCredentials(
+ new AuthScope("localhost", getPort()),
+ new UsernamePasswordCredentials("name", "password".toCharArray())
+ );
+
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = client.target(getBaseUri()).path("test");
+
+ assertEquals("GET",
+ r.request()
+ .property(Apache5ClientProperties.CREDENTIALS_PROVIDER, credentialsProvider)
+ .get(String.class));
+ }
+
+ @Test
+ public void testAuthGetWithClientFilter() {
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ client.register(HttpAuthenticationFeature.basic("name", "password"));
+ WebTarget r = client.target(getBaseUri()).path("test/filter");
+
+ assertEquals("GET", r.request().get(String.class));
+ }
+
+ @Test
+ public void testAuthGetWithBasicAndDigestFilter() {
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ client.register(HttpAuthenticationFeature.universal("name", "password"));
+ WebTarget r = client.target(getBaseUri()).path("test/basicAndDigest");
+
+ assertEquals("GET", r.request().get(String.class));
+ }
+
+ @Test
+ public void testAuthGetBasicNoChallenge() {
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ client.register(HttpAuthenticationFeature.basicBuilder().build());
+ WebTarget r = client.target(getBaseUri()).path("test/noauth");
+
+ assertEquals("GET", r.request().get(String.class));
+ }
+
+ @Test
+ public void testAuthGetWithDigestFilter() {
+ ClientConfig cc = new ClientConfig();
+ PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnectionManager();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ cc.property(Apache5ClientProperties.CONNECTION_MANAGER, cm);
+ Client client = ClientBuilder.newClient(cc);
+ client.register(HttpAuthenticationFeature.universal("name", "password"));
+ WebTarget r = client.target(getBaseUri()).path("test/digest");
+
+ assertEquals("GET", r.request().get(String.class));
+
+ // Verify the connection that was used for the request is available for reuse
+ // and no connections are leased
+ assertEquals(cm.getTotalStats().getAvailable(), 1);
+ assertEquals(cm.getTotalStats().getLeased(), 0);
+ }
+
+ @Test
+ @Ignore("JERSEY-1750: Cannot retry request with a non-repeatable request entity. How to buffer the entity?"
+ + " Allow repeatable write in jersey?")
+ public void testAuthPost() {
+ CredentialsStore credentialsProvider = new BasicCredentialsProvider();
+ credentialsProvider.setCredentials(
+ new AuthScope("localhost", getPort()),
+ new UsernamePasswordCredentials("name", "password".toCharArray())
+ );
+
+ ClientConfig cc = new ClientConfig();
+ cc.property(Apache5ClientProperties.CREDENTIALS_PROVIDER, credentialsProvider);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = client.target(getBaseUri()).path("test");
+
+ assertEquals("POST", r.request().post(Entity.text("POST"), String.class));
+ }
+
+ @Test
+ public void testAuthPostWithClientFilter() {
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ client.register(HttpAuthenticationFeature.basic("name", "password"));
+ WebTarget r = client.target(getBaseUri()).path("test/filter");
+
+ assertEquals("POST", r.request().post(Entity.text("POST"), String.class));
+ }
+
+ @Test
+ public void testAuthDelete() {
+ CredentialsStore credentialsProvider = new BasicCredentialsProvider();
+ credentialsProvider.setCredentials(
+ new AuthScope("localhost", getPort()),
+ new UsernamePasswordCredentials("name", "password".toCharArray())
+ );
+ ClientConfig cc = new ClientConfig();
+ cc.property(Apache5ClientProperties.CREDENTIALS_PROVIDER, credentialsProvider);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = client.target(getBaseUri()).path("test");
+
+ Response response = r.request().delete();
+ assertEquals(response.getStatus(), 204);
+ }
+
+ @Test
+ public void testAuthDeleteWithClientFilter() {
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ client.register(HttpAuthenticationFeature.basic("name", "password"));
+ WebTarget r = client.target(getBaseUri()).path("test/filter");
+
+ Response response = r.request().delete();
+ assertEquals(204, response.getStatus());
+ }
+
+ @Test
+ public void testAuthInteractiveGet() {
+ CredentialsStore credentialsProvider = new BasicCredentialsProvider();
+ credentialsProvider.setCredentials(
+ new AuthScope("localhost", getPort()),
+ new UsernamePasswordCredentials("name", "password".toCharArray())
+ );
+ ClientConfig cc = new ClientConfig();
+ cc.property(Apache5ClientProperties.CREDENTIALS_PROVIDER, credentialsProvider);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+
+ WebTarget r = client.target(getBaseUri()).path("test");
+
+ assertEquals("GET", r.request().get(String.class));
+ }
+
+ @Test
+ @Ignore("JERSEY-1750: Cannot retry request with a non-repeatable request entity. How to buffer the entity?"
+ + " Allow repeatable write in jersey?")
+ public void testAuthInteractivePost() {
+ CredentialsStore credentialsProvider = new BasicCredentialsProvider();
+ credentialsProvider.setCredentials(
+ new AuthScope("localhost", getPort()),
+ new UsernamePasswordCredentials("name", "password".toCharArray())
+ );
+
+ ClientConfig cc = new ClientConfig();
+ cc.property(Apache5ClientProperties.CREDENTIALS_PROVIDER, credentialsProvider);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = client.target(getBaseUri()).path("test");
+
+ assertEquals("POST", r.request().post(Entity.text("POST"), String.class));
+ }
+
+ @Test
+ public void testAuthGetWithBasicFilterAndContent() {
+ ClientConfig cc = new ClientConfig();
+ PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnectionManager();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ cc.property(Apache5ClientProperties.CONNECTION_MANAGER, cm);
+ Client client = ClientBuilder.newClient(cc);
+ client.register(HttpAuthenticationFeature.universalBuilder().build());
+ WebTarget r = client.target(getBaseUri()).path("test/content");
+
+ try {
+ assertEquals("GET", r.request().get(String.class));
+ fail();
+ } catch (ResponseAuthenticationException ex) {
+ // expected
+ }
+
+ // Verify the connection that was used for the request is available for reuse
+ // and no connections are leased
+ assertEquals(cm.getTotalStats().getAvailable(), 1);
+ assertEquals(cm.getTotalStats().getLeased(), 0);
+ }
+
+ @Test
+ public void testAuthGetWithDigestFilterAndContent() {
+ ClientConfig cc = new ClientConfig();
+ PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnectionManager();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ cc.property(Apache5ClientProperties.CONNECTION_MANAGER, cm);
+ Client client = ClientBuilder.newClient(cc);
+ client.register(HttpAuthenticationFeature.universalBuilder().build());
+ WebTarget r = client.target(getBaseUri()).path("test/contentDigestAuth");
+
+ try {
+ assertEquals("GET", r.request().get(String.class));
+ fail();
+ } catch (ResponseAuthenticationException ex) {
+ // expected
+ }
+
+ // Verify the connection that was used for the request is available for reuse
+ // and no connections are leased
+ assertEquals(cm.getTotalStats().getAvailable(), 1);
+ assertEquals(cm.getTotalStats().getLeased(), 0);
+ }
+
+ @Test
+ public void testAuthGetQueryParamsBasic() {
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ client.register(HttpAuthenticationFeature.universal("name", "password"));
+
+ WebTarget r = client.target(getBaseUri()).path("test/queryParamsBasic");
+ assertEquals("GET 2", r.request().get(String.class));
+
+ r = client.target(getBaseUri())
+ .path("test/queryParamsBasic")
+ .queryParam("param1", "value1")
+ .queryParam("param2", "value2");
+ assertEquals("GET 3", r.request().get(String.class));
+
+ }
+
+ @Test
+ public void testAuthGetQueryParamsDigest() {
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ client.register(HttpAuthenticationFeature.universal("name", "password"));
+
+ WebTarget r = client.target(getBaseUri()).path("test/queryParamsDigest");
+ assertEquals("GET 2", r.request().get(String.class));
+
+ r = client.target(getBaseUri())
+ .path("test/queryParamsDigest")
+ .queryParam("param1", "value1")
+ .queryParam("param2", "value2");
+ assertEquals("GET 3", r.request().get(String.class));
+ }
+
+ @Test
+ public void testAuthGetWithConfigurator() {
+ CredentialsStore credentialsProvider = new BasicCredentialsProvider();
+ credentialsProvider.setCredentials(
+ new AuthScope("localhost", getPort()),
+ new UsernamePasswordCredentials("name", "password".toCharArray())
+ );
+ Apache5HttpClientBuilderConfigurator apache5HttpClientBuilderConfigurator = (httpClientBuilder) -> {
+ return httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider);
+ };
+
+ ClientConfig cc = new ClientConfig();
+ cc.register(apache5HttpClientBuilderConfigurator);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = client.target(getBaseUri()).path("test");
+
+ assertEquals("GET", r.request().get(String.class));
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CookieTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CookieTest.java
new file mode 100644
index 00000000000..0e619a661a3
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CookieTest.java
@@ -0,0 +1,111 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.Cookie;
+import javax.ws.rs.core.HttpHeaders;
+import javax.ws.rs.core.NewCookie;
+import javax.ws.rs.core.Response;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.JerseyClient;
+import org.glassfish.jersey.client.JerseyClientBuilder;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+
+/**
+ * @author Paul Sandoz
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ */
+public class CookieTest extends JerseyTest {
+
+ @Path("/")
+ public static class CookieResource {
+
+ @GET
+ public Response get(@Context HttpHeaders h) {
+ Cookie c = h.getCookies().get("name");
+ String e = (c == null) ? "NO-COOKIE" : c.getValue();
+ return Response.ok(e)
+ .cookie(new NewCookie("name", "value")).build();
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(CookieResource.class);
+ }
+
+ @Test
+ public void testCookieResource() {
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = client.target(getBaseUri());
+
+ assertEquals("NO-COOKIE", r.request().get(String.class));
+ assertEquals("value", r.request().get(String.class));
+ }
+
+ @Test
+ public void testDisabledCookies() {
+ ClientConfig cc = new ClientConfig();
+ cc.property(Apache5ClientProperties.DISABLE_COOKIES, true);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ JerseyClient client = JerseyClientBuilder.createClient(cc);
+ WebTarget r = client.target(getBaseUri());
+
+ assertEquals("NO-COOKIE", r.request().get(String.class));
+ assertEquals("NO-COOKIE", r.request().get(String.class));
+
+ final Apache5Connector connector = (Apache5Connector) client.getConfiguration().getConnector();
+ if (connector.getCookieStore() != null) {
+ assertTrue(connector.getCookieStore().getCookies().isEmpty());
+ } else {
+ assertNull(connector.getCookieStore());
+ }
+ }
+
+ @Test
+ public void testCookies() {
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ JerseyClient client = JerseyClientBuilder.createClient(cc);
+ WebTarget r = client.target(getBaseUri());
+
+ assertEquals("NO-COOKIE", r.request().get(String.class));
+ assertEquals("value", r.request().get(String.class));
+
+ final Apache5Connector connector = (Apache5Connector) client.getConfiguration().getConnector();
+ assertNotNull(connector.getCookieStore().getCookies());
+ assertEquals(1, connector.getCookieStore().getCookies().size());
+ assertEquals("value", connector.getCookieStore().getCookies().get(0).getValue());
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CustomLoggingFilter.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CustomLoggingFilter.java
new file mode 100644
index 00000000000..27caedad533
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CustomLoggingFilter.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.io.IOException;
+
+import javax.ws.rs.client.ClientRequestContext;
+import javax.ws.rs.client.ClientRequestFilter;
+import javax.ws.rs.client.ClientResponseContext;
+import javax.ws.rs.client.ClientResponseFilter;
+import javax.ws.rs.container.ContainerRequestContext;
+import javax.ws.rs.container.ContainerRequestFilter;
+import javax.ws.rs.container.ContainerResponseContext;
+import javax.ws.rs.container.ContainerResponseFilter;
+
+import static org.junit.Assert.assertEquals;
+
+/**
+ * Custom logging filter.
+ *
+ * @author Santiago Pericas-Geertsen (santiago.pericasgeertsen at oracle.com)
+ */
+public class CustomLoggingFilter implements ContainerRequestFilter, ContainerResponseFilter,
+ ClientRequestFilter, ClientResponseFilter {
+
+ static int preFilterCalled = 0;
+ static int postFilterCalled = 0;
+
+ @Override
+ public void filter(ClientRequestContext context) throws IOException {
+ System.out.println("CustomLoggingFilter.preFilter called");
+ assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ preFilterCalled++;
+ }
+
+ @Override
+ public void filter(ClientRequestContext context, ClientResponseContext clientResponseContext) throws IOException {
+ System.out.println("CustomLoggingFilter.postFilter called");
+ assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ postFilterCalled++;
+ }
+
+ @Override
+ public void filter(ContainerRequestContext context) throws IOException {
+ System.out.println("CustomLoggingFilter.preFilter called");
+ assertEquals(context.getProperty("foo"), "bar");
+ preFilterCalled++;
+ }
+
+ @Override
+ public void filter(ContainerRequestContext context, ContainerResponseContext containerResponseContext) throws IOException {
+ System.out.println("CustomLoggingFilter.postFilter called");
+ assertEquals(context.getProperty("foo"), "bar");
+ postFilterCalled++;
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/DisableContentEncodingTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/DisableContentEncodingTest.java
new file mode 100644
index 00000000000..51bc6a007c1
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/DisableContentEncodingTest.java
@@ -0,0 +1,103 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.HeaderParam;
+import javax.ws.rs.Path;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+
+import org.apache.hc.client5.http.config.RequestConfig;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.message.GZipEncoder;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+
+/**
+ * @author Ondrej Kosatka
+ */
+public class DisableContentEncodingTest extends JerseyTest {
+
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(Resource.class);
+ }
+
+ @Path("/")
+ public static class Resource {
+
+ @GET
+ public String get(@HeaderParam("Accept-Encoding") String enc) {
+ return enc;
+ }
+ }
+
+ @Test
+ public void testDisabledByRequestConfig() {
+ ClientConfig cc = new ClientConfig(GZipEncoder.class);
+ final RequestConfig requestConfig = RequestConfig.custom().setContentCompressionEnabled(false).build();
+ cc.property(Apache5ClientProperties.REQUEST_CONFIG, requestConfig);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = client.target(getBaseUri());
+
+ String enc = r.request().get().readEntity(String.class);
+ assertEquals("", enc);
+ }
+
+ @Test
+ public void testEnabledByRequestConfig() {
+ ClientConfig cc = new ClientConfig(GZipEncoder.class);
+ final RequestConfig requestConfig = RequestConfig.custom().setContentCompressionEnabled(true).build();
+ cc.property(Apache5ClientProperties.REQUEST_CONFIG, requestConfig);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = client.target(getBaseUri());
+
+ String enc = r.request().get().readEntity(String.class);
+ assertEquals("gzip, x-gzip, deflate", enc);
+ }
+
+ @Test
+ public void testDefaultEncoding() {
+ ClientConfig cc = new ClientConfig(GZipEncoder.class);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = client.target(getBaseUri());
+
+ String enc = r.request().get().readEntity(String.class);
+ assertEquals("gzip, x-gzip, deflate", enc);
+ }
+
+ @Test
+ public void testDefaultEncodingOverridden() {
+ ClientConfig cc = new ClientConfig(GZipEncoder.class);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = client.target(getBaseUri());
+
+ String enc = r.request().acceptEncoding("gzip").get().readEntity(String.class);
+ assertEquals("gzip", enc);
+ }
+
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/FollowRedirectsTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/FollowRedirectsTest.java
new file mode 100644
index 00000000000..9377a0a7412
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/FollowRedirectsTest.java
@@ -0,0 +1,106 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.io.IOException;
+import java.util.logging.Logger;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.client.ClientRequestContext;
+import javax.ws.rs.client.ClientResponseContext;
+import javax.ws.rs.client.ClientResponseFilter;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.UriBuilder;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.client.ClientResponse;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+
+/**
+ * Apache connector follow redirect tests.
+ *
+ * @author Martin Matula
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ * @author Marek Potociar
+ */
+public class FollowRedirectsTest extends JerseyTest {
+ private static final Logger LOGGER = Logger.getLogger(TimeoutTest.class.getName());
+
+ @Path("/test")
+ public static class RedirectResource {
+ @GET
+ public String get() {
+ return "GET";
+ }
+
+ @GET
+ @Path("redirect")
+ public Response redirect() {
+ return Response.seeOther(UriBuilder.fromResource(RedirectResource.class).build()).build();
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(RedirectResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new Apache5ConnectorProvider());
+ }
+
+ private static class RedirectTestFilter implements ClientResponseFilter {
+ public static final String RESOLVED_URI_HEADER = "resolved-uri";
+
+ @Override
+ public void filter(ClientRequestContext requestContext, ClientResponseContext responseContext) throws IOException {
+ if (responseContext instanceof ClientResponse) {
+ ClientResponse clientResponse = (ClientResponse) responseContext;
+ responseContext.getHeaders().putSingle(RESOLVED_URI_HEADER, clientResponse.getResolvedRequestUri().toString());
+ }
+ }
+ }
+
+ @Test
+ public void testDoFollow() {
+ Response r = target("test/redirect").register(RedirectTestFilter.class).request().get();
+ assertEquals(200, r.getStatus());
+ assertEquals("GET", r.readEntity(String.class));
+ assertEquals(
+ UriBuilder.fromUri(getBaseUri()).path(RedirectResource.class).build().toString(),
+ r.getHeaderString(RedirectTestFilter.RESOLVED_URI_HEADER));
+ }
+
+ @Test
+ public void testDontFollow() {
+ WebTarget t = target("test/redirect");
+ t.property(ClientProperties.FOLLOW_REDIRECTS, false);
+ assertEquals(303, t.request().get().getStatus());
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/GZIPContentEncodingTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/GZIPContentEncodingTest.java
new file mode 100644
index 00000000000..0230ba14e0b
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/GZIPContentEncodingTest.java
@@ -0,0 +1,94 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.util.Arrays;
+
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.message.GZipEncoder;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+
+/**
+ * @author Paul Sandoz
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ */
+public class GZIPContentEncodingTest extends JerseyTest {
+
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(Resource.class);
+ }
+
+ @Path("/")
+ public static class Resource {
+
+ @POST
+ public byte[] post(byte[] content) {
+ return content;
+ }
+ }
+
+ @Test
+ public void testPost() {
+ ClientConfig cc = new ClientConfig(GZipEncoder.class);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = client.target(getBaseUri());
+
+ byte[] content = new byte[1024 * 1024];
+ assertTrue(Arrays.equals(content,
+ r.request().post(Entity.entity(content, MediaType.APPLICATION_OCTET_STREAM_TYPE)).readEntity(byte[].class)));
+
+ Response cr = r.request().post(Entity.entity(content, MediaType.APPLICATION_OCTET_STREAM_TYPE));
+ assertTrue(cr.hasEntity());
+ cr.close();
+ }
+
+ @Test
+ public void testPostChunked() {
+ ClientConfig cc = new ClientConfig(GZipEncoder.class);
+ cc.property(ClientProperties.CHUNKED_ENCODING_SIZE, 1024);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+
+ WebTarget r = client.target(getBaseUri());
+
+ byte[] content = new byte[1024 * 1024];
+ assertTrue(Arrays.equals(content,
+ r.request().post(Entity.entity(content, MediaType.APPLICATION_OCTET_STREAM_TYPE)).readEntity(byte[].class)));
+
+ Response cr = r.request().post(Entity.text("POST"));
+ assertTrue(cr.hasEntity());
+ cr.close();
+ }
+
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HelloWorldTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HelloWorldTest.java
new file mode 100644
index 00000000000..e0f66121776
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HelloWorldTest.java
@@ -0,0 +1,400 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.io.IOException;
+import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicInteger;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.InternalServerErrorException;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.InvocationCallback;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+
+import org.apache.hc.client5.http.HttpRoute;
+import org.apache.hc.client5.http.impl.io.BasicHttpClientConnectionManager;
+import org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager;
+import org.apache.hc.client5.http.io.ConnectionEndpoint;
+import org.apache.hc.client5.http.io.HttpClientConnectionManager;
+import org.apache.hc.client5.http.io.LeaseRequest;
+import org.apache.hc.core5.http.protocol.HttpContext;
+import org.apache.hc.core5.io.CloseMode;
+import org.apache.hc.core5.util.TimeValue;
+import org.apache.hc.core5.util.Timeout;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Assert;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
+/**
+ * @author Jakub Podlesak
+ */
+public class HelloWorldTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(HelloWorldTest.class.getName());
+ private static final String ROOT_PATH = "helloworld";
+
+ @Path("helloworld")
+ public static class HelloWorldResource {
+
+ public static final String CLICHED_MESSAGE = "Hello World!";
+
+ @GET
+ @Produces("text/plain")
+ public String getHello() {
+ return CLICHED_MESSAGE;
+ }
+
+ @GET
+ @Produces("text/plain")
+ @Path("error")
+ public Response getError() {
+ return Response.serverError().entity("Error.").build();
+ }
+
+ @GET
+ @Produces("text/plain")
+ @Path("error2")
+ public Response getError2() {
+ return Response.serverError().entity("Error2.").build();
+ }
+
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(HelloWorldResource.class);
+ config.register(new LoggingFeature(LOGGER, Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY,
+ LoggingFeature.DEFAULT_MAX_ENTITY_SIZE));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new Apache5ConnectorProvider());
+ }
+
+ @Test
+ public void testConnection() {
+ Response response = target().path(ROOT_PATH).request("text/plain").get();
+ assertEquals(200, response.getStatus());
+ }
+
+ @Test
+ public void testClientStringResponse() {
+ String s = target().path(ROOT_PATH).request().get(String.class);
+ assertEquals(HelloWorldResource.CLICHED_MESSAGE, s);
+ }
+
+ @Test
+ public void testConnectionPoolSharingEnabled() throws Exception {
+ _testConnectionPoolSharing(true);
+ }
+
+ @Test
+ public void testConnectionPoolSharingDisabled() throws Exception {
+ _testConnectionPoolSharing(false);
+ }
+
+ public void _testConnectionPoolSharing(final boolean sharingEnabled) throws Exception {
+
+ final HttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager();
+
+ final ClientConfig cc = new ClientConfig();
+ cc.property(Apache5ClientProperties.CONNECTION_MANAGER, connectionManager);
+ cc.property(Apache5ClientProperties.CONNECTION_MANAGER_SHARED, sharingEnabled);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+
+ final Client clientOne = ClientBuilder.newClient(cc);
+ WebTarget target = clientOne.target(getBaseUri()).path(ROOT_PATH);
+ target.request().get();
+ clientOne.close();
+
+ final boolean exceptionExpected = !sharingEnabled;
+
+ final Client clientTwo = ClientBuilder.newClient(cc);
+ target = clientTwo.target(getBaseUri()).path(ROOT_PATH);
+ try {
+ target.request().get();
+ if (exceptionExpected) {
+ Assert.fail("Exception expected");
+ }
+ } catch (Exception e) {
+ if (!exceptionExpected) {
+ Assert.fail("Exception not expected");
+ }
+ } finally {
+ clientTwo.close();
+ }
+
+ if (sharingEnabled) {
+ connectionManager.close();
+ }
+ }
+
+ @Test
+ public void testAsyncClientRequests() throws InterruptedException {
+ HttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager();
+ ClientConfig cc = new ClientConfig();
+ cc.property(Apache5ClientProperties.CONNECTION_MANAGER, connectionManager);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget target = client.target(getBaseUri());
+ final int REQUESTS = 20;
+ final CountDownLatch latch = new CountDownLatch(REQUESTS);
+ final long tic = System.currentTimeMillis();
+ final Map results = new ConcurrentHashMap();
+ for (int i = 0; i < REQUESTS; i++) {
+ final int id = i;
+ target.path(ROOT_PATH).request().async().get(new InvocationCallback() {
+ @Override
+ public void completed(Response response) {
+ try {
+ final String result = response.readEntity(String.class);
+ results.put(id, result);
+ } finally {
+ latch.countDown();
+ }
+ }
+
+ @Override
+ public void failed(Throwable error) {
+ Logger.getLogger(HelloWorldTest.class.getName()).log(Level.SEVERE, "Failed on throwable", error);
+ results.put(id, "error: " + error.getMessage());
+ latch.countDown();
+ }
+ });
+ }
+ assertTrue(latch.await(10 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS));
+ final long toc = System.currentTimeMillis();
+ Logger.getLogger(HelloWorldTest.class.getName()).info("Executed in: " + (toc - tic));
+
+ StringBuilder resultInfo = new StringBuilder("Results:\n");
+ for (int i = 0; i < REQUESTS; i++) {
+ String result = results.get(i);
+ resultInfo.append(i).append(": ").append(result).append('\n');
+ }
+ Logger.getLogger(HelloWorldTest.class.getName()).info(resultInfo.toString());
+
+ for (int i = 0; i < REQUESTS; i++) {
+ String result = results.get(i);
+ assertEquals(HelloWorldResource.CLICHED_MESSAGE, result);
+ }
+ }
+
+ @Test
+ public void testHead() {
+ Response response = target().path(ROOT_PATH).request().head();
+ assertEquals(200, response.getStatus());
+ assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
+ }
+
+ @Test
+ public void testFooBarOptions() {
+ Response response = target().path(ROOT_PATH).request().header("Accept", "foo/bar").options();
+ assertEquals(200, response.getStatus());
+ final String allowHeader = response.getHeaderString("Allow");
+ _checkAllowContent(allowHeader);
+ assertEquals("foo/bar", response.getMediaType().toString());
+ assertEquals(0, response.getLength());
+ }
+
+ @Test
+ public void testTextPlainOptions() {
+ Response response = target().path(ROOT_PATH).request().header("Accept", MediaType.TEXT_PLAIN).options();
+ assertEquals(200, response.getStatus());
+ final String allowHeader = response.getHeaderString("Allow");
+ _checkAllowContent(allowHeader);
+ assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
+ final String responseBody = response.readEntity(String.class);
+ _checkAllowContent(responseBody);
+ }
+
+ private void _checkAllowContent(final String content) {
+ assertTrue(content.contains("GET"));
+ assertTrue(content.contains("HEAD"));
+ assertTrue(content.contains("OPTIONS"));
+ }
+
+ @Test
+ public void testMissingResourceNotFound() {
+ Response response;
+
+ response = target().path(ROOT_PATH + "arbitrary").request().get();
+ assertEquals(404, response.getStatus());
+ response.close();
+
+ response = target().path(ROOT_PATH).path("arbitrary").request().get();
+ assertEquals(404, response.getStatus());
+ response.close();
+ }
+
+ @Test
+ public void testLoggingFilterClientClass() {
+ Client client = client();
+ client.register(CustomLoggingFilter.class).property("foo", "bar");
+ CustomLoggingFilter.preFilterCalled = CustomLoggingFilter.postFilterCalled = 0;
+ String s = target().path(ROOT_PATH).request().get(String.class);
+ assertEquals(HelloWorldResource.CLICHED_MESSAGE, s);
+ assertEquals(1, CustomLoggingFilter.preFilterCalled);
+ assertEquals(1, CustomLoggingFilter.postFilterCalled);
+ }
+
+ @Test
+ public void testLoggingFilterClientInstance() {
+ Client client = client();
+ client.register(new CustomLoggingFilter()).property("foo", "bar");
+ CustomLoggingFilter.preFilterCalled = CustomLoggingFilter.postFilterCalled = 0;
+ String s = target().path(ROOT_PATH).request().get(String.class);
+ assertEquals(HelloWorldResource.CLICHED_MESSAGE, s);
+ assertEquals(1, CustomLoggingFilter.preFilterCalled);
+ assertEquals(1, CustomLoggingFilter.postFilterCalled);
+ }
+
+ @Test
+ public void testLoggingFilterTargetClass() {
+ WebTarget target = target().path(ROOT_PATH);
+ target.register(CustomLoggingFilter.class).property("foo", "bar");
+ CustomLoggingFilter.preFilterCalled = CustomLoggingFilter.postFilterCalled = 0;
+ String s = target.request().get(String.class);
+ assertEquals(HelloWorldResource.CLICHED_MESSAGE, s);
+ assertEquals(1, CustomLoggingFilter.preFilterCalled);
+ assertEquals(1, CustomLoggingFilter.postFilterCalled);
+ }
+
+ @Test
+ public void testLoggingFilterTargetInstance() {
+ WebTarget target = target().path(ROOT_PATH);
+ target.register(new CustomLoggingFilter()).property("foo", "bar");
+ CustomLoggingFilter.preFilterCalled = CustomLoggingFilter.postFilterCalled = 0;
+ String s = target.request().get(String.class);
+ assertEquals(HelloWorldResource.CLICHED_MESSAGE, s);
+ assertEquals(1, CustomLoggingFilter.preFilterCalled);
+ assertEquals(1, CustomLoggingFilter.postFilterCalled);
+ }
+
+ @Test
+ public void testConfigurationUpdate() {
+ Client client1 = client();
+ client1.register(CustomLoggingFilter.class).property("foo", "bar");
+
+ Client client = ClientBuilder.newClient(client1.getConfiguration());
+ CustomLoggingFilter.preFilterCalled = CustomLoggingFilter.postFilterCalled = 0;
+ String s = client.target(getBaseUri()).path(ROOT_PATH).request().get(String.class);
+ assertEquals(HelloWorldResource.CLICHED_MESSAGE, s);
+ assertEquals(1, CustomLoggingFilter.preFilterCalled);
+ assertEquals(1, CustomLoggingFilter.postFilterCalled);
+ }
+
+ /**
+ * JERSEY-2157 reproducer.
+ *
+ * The test ensures that entities of the error responses which cause
+ * WebApplicationException being thrown by a JAX-RS client are buffered
+ * and that the underlying input connections are automatically released
+ * in such case.
+ */
+ @Test
+ public void testConnectionClosingOnExceptionsForErrorResponses() {
+ final BasicHttpClientConnectionManager cm = new BasicHttpClientConnectionManager();
+ final AtomicInteger connectionCounter = new AtomicInteger(0);
+
+ final ClientConfig config = new ClientConfig().property(Apache5ClientProperties.CONNECTION_MANAGER,
+ new HttpClientConnectionManager() {
+ @Override
+ public LeaseRequest lease(String id, HttpRoute route, Timeout requestTimeout, Object state) {
+ connectionCounter.incrementAndGet();
+ return cm.lease(id, route, requestTimeout, state);
+ }
+
+ @Override
+ public void release(ConnectionEndpoint endpoint, Object newState, TimeValue validDuration) {
+ connectionCounter.decrementAndGet();
+ cm.release(endpoint, newState, validDuration);
+ }
+
+ @Override
+ public void connect(
+ ConnectionEndpoint endpoint,
+ TimeValue connectTimeout,
+ HttpContext context
+ ) throws IOException {
+ cm.connect(endpoint, connectTimeout, context);
+ }
+
+ @Override
+ public void upgrade(ConnectionEndpoint endpoint, HttpContext context) throws IOException {
+ cm.upgrade(endpoint, context);
+ }
+
+ @Override
+ public void close(CloseMode closeMode) {
+ cm.close(closeMode);
+ }
+
+ @Override
+ public void close() throws IOException {
+ cm.close();
+ }
+ });
+ config.connectorProvider(new Apache5ConnectorProvider());
+
+ final Client client = ClientBuilder.newClient(config);
+ final WebTarget rootTarget = client.target(getBaseUri()).path(ROOT_PATH);
+
+ // Test that connection is getting closed properly for error responses.
+ try {
+ final String response = rootTarget.path("error").request().get(String.class);
+ fail("Exception expected. Received: " + response);
+ } catch (InternalServerErrorException isee) {
+ // do nothing - connection should be closed properly by now
+ }
+
+ // Fail if the previous connection has not been closed automatically.
+ assertEquals(0, connectionCounter.get());
+
+ try {
+ final String response = rootTarget.path("error2").request().get(String.class);
+ fail("Exception expected. Received: " + response);
+ } catch (InternalServerErrorException isee) {
+ assertEquals("Received unexpected data.", "Error2.", isee.getResponse().readEntity(String.class));
+ // Test buffering:
+ // second read would fail if entity was not buffered
+ assertEquals("Unexpected data in the entity buffer.", "Error2.", isee.getResponse().readEntity(String.class));
+ }
+
+ assertEquals(0, connectionCounter.get());
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpEntityTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpEntityTest.java
new file mode 100644
index 00000000000..cad5ea84949
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpEntityTest.java
@@ -0,0 +1,83 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import org.apache.hc.core5.http.ContentType;
+import org.apache.hc.core5.http.io.entity.ByteArrayEntity;
+import org.apache.hc.core5.http.io.entity.InputStreamEntity;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Assert;
+import org.junit.Test;
+
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+import java.io.ByteArrayInputStream;
+import java.util.logging.Logger;
+
+public class HttpEntityTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(HttpEntityTest.class.getName());
+ private static final String ECHO_MESSAGE = "ECHO MESSAGE";
+
+ @Path("/")
+ public static class Resource {
+ @POST
+ public String echo(String message) {
+ return message;
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(Resource.class)
+ .register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ config.connectorProvider(new Apache5ConnectorProvider());
+ }
+
+ @Test
+ public void testInputStreamEntity() {
+ ByteArrayInputStream bais = new ByteArrayInputStream(ECHO_MESSAGE.getBytes());
+ InputStreamEntity entity = new InputStreamEntity(bais, ContentType.TEXT_PLAIN);
+
+ try (Response response = target().request().post(Entity.entity(entity, MediaType.APPLICATION_OCTET_STREAM))) {
+ Assert.assertEquals(200, response.getStatus());
+ Assert.assertEquals(ECHO_MESSAGE, response.readEntity(String.class));
+ }
+ }
+
+ @Test
+ public void testByteArrayEntity() {
+ ByteArrayEntity entity = new ByteArrayEntity(ECHO_MESSAGE.getBytes(), ContentType.TEXT_PLAIN);
+
+ try (Response response = target().request().post(Entity.entity(entity, MediaType.APPLICATION_OCTET_STREAM))) {
+ Assert.assertEquals(200, response.getStatus());
+ Assert.assertEquals(ECHO_MESSAGE, response.readEntity(String.class));
+ }
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpHeadersTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpHeadersTest.java
new file mode 100644
index 00000000000..c63b7a87ee9
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpHeadersTest.java
@@ -0,0 +1,133 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.io.IOException;
+import java.io.OutputStream;
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Type;
+import java.util.logging.Logger;
+
+import javax.ws.rs.HeaderParam;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.WebApplicationException;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.MultivaluedMap;
+import javax.ws.rs.core.Response;
+import javax.ws.rs.ext.MessageBodyWriter;
+import javax.ws.rs.ext.Provider;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.glassfish.jersey.test.TestProperties;
+
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+/**
+ * @author Paul Sandoz
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ */
+public class HttpHeadersTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(HttpHeadersTest.class.getName());
+
+ @Path("/test")
+ public static class HttpMethodResource {
+
+ @POST
+ public String post(
+ @HeaderParam("Transfer-Encoding") String transferEncoding,
+ @HeaderParam("X-CLIENT") String xClient,
+ @HeaderParam("X-WRITER") String xWriter,
+ String entity) {
+ assertEquals("client", xClient);
+ if (transferEncoding == null || !transferEncoding.equals("chunked")) {
+ assertEquals("writer", xWriter);
+ }
+ return entity;
+ }
+ }
+
+ @Provider
+ @Produces("text/plain")
+ public static class HeaderWriter implements MessageBodyWriter {
+
+ public boolean isWriteable(Class> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
+ return type == String.class;
+ }
+
+ public long getSize(String t, Class> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
+ return -1;
+ }
+
+ public void writeTo(String t,
+ Class> type,
+ Type genericType,
+ Annotation[] annotations,
+ MediaType mediaType,
+ MultivaluedMap httpHeaders,
+ OutputStream entityStream) throws IOException, WebApplicationException {
+ httpHeaders.add("X-WRITER", "writer");
+ entityStream.write(t.getBytes());
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ enable(TestProperties.LOG_TRAFFIC);
+ enable(TestProperties.DUMP_ENTITY);
+
+ ResourceConfig config = new ResourceConfig(HttpMethodResource.class, HeaderWriter.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.property(ClientProperties.READ_TIMEOUT, 1000).connectorProvider(new Apache5ConnectorProvider());
+ }
+
+ @Test
+ public void testPost() {
+ WebTarget r = target("test");
+
+ Response cr = r.request().header("X-CLIENT", "client").post(Entity.text("POST"));
+ assertEquals(200, cr.getStatus());
+ assertTrue(cr.hasEntity());
+ cr.close();
+ }
+
+ @Test
+ public void testPostChunked() {
+ WebTarget r = target("test");
+
+ Response cr = r.request().header("X-CLIENT", "client").post(Entity.text("POST"));
+ assertEquals(200, cr.getStatus());
+ assertTrue(cr.hasEntity());
+ cr.close();
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpMethodTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpMethodTest.java
new file mode 100644
index 00000000000..00a45a15b6d
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpMethodTest.java
@@ -0,0 +1,311 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.ws.rs.ClientErrorException;
+import javax.ws.rs.DELETE;
+import javax.ws.rs.GET;
+import javax.ws.rs.HttpMethod;
+import javax.ws.rs.POST;
+import javax.ws.rs.PUT;
+import javax.ws.rs.Path;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Response;
+
+import org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+
+/**
+ * @author Paul Sandoz
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ */
+public class HttpMethodTest extends JerseyTest {
+
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(HttpMethodResource.class, ErrorResource.class);
+ }
+
+ protected Client createClient() {
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ return ClientBuilder.newClient(cc);
+ }
+
+ protected Client createPoolingClient() {
+ ClientConfig cc = new ClientConfig();
+ PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager();
+ connectionManager.setMaxTotal(100);
+ connectionManager.setDefaultMaxPerRoute(100);
+ cc.property(Apache5ClientProperties.CONNECTION_MANAGER, connectionManager);
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ return ClientBuilder.newClient(cc);
+ }
+
+ private WebTarget getWebTarget(final Client client) {
+ return client.target(getBaseUri()).path("test");
+ }
+
+ private WebTarget getWebTarget() {
+ return getWebTarget(createClient());
+ }
+
+ @Target({ElementType.METHOD})
+ @Retention(RetentionPolicy.RUNTIME)
+ @HttpMethod("PATCH")
+ public @interface PATCH {
+ }
+
+ @Path("/test")
+ public static class HttpMethodResource {
+ @GET
+ public String get() {
+ return "GET";
+ }
+
+ @POST
+ public String post(String entity) {
+ return entity;
+ }
+
+ @PUT
+ public String put(String entity) {
+ return entity;
+ }
+
+ @DELETE
+ public String delete() {
+ return "DELETE";
+ }
+
+ @DELETE
+ @Path("withentity")
+ public String delete(String entity) {
+ return entity;
+ }
+
+ @POST
+ @Path("noproduce")
+ public void postNoProduce(String entity) {
+ }
+
+ @POST
+ @Path("noconsumeproduce")
+ public void postNoConsumeProduce() {
+ }
+
+ @PATCH
+ public String patch(String entity) {
+ return entity;
+ }
+ }
+
+ @Test
+ public void testHead() {
+ WebTarget r = getWebTarget();
+ Response cr = r.request().head();
+ assertFalse(cr.hasEntity());
+ }
+
+ @Test
+ public void testOptions() {
+ WebTarget r = getWebTarget();
+ Response cr = r.request().options();
+ assertTrue(cr.hasEntity());
+ cr.close();
+ }
+
+ @Test
+ public void testOptionsWithEntity() {
+ WebTarget r = getWebTarget();
+ Response response = r.request().build("OPTIONS", Entity.text("OPTIONS")).invoke();
+ assertEquals(200, response.getStatus());
+ response.close();
+ }
+
+ @Test
+ public void testGet() {
+ WebTarget r = getWebTarget();
+ assertEquals("GET", r.request().get(String.class));
+
+ Response cr = r.request().get();
+ assertTrue(cr.hasEntity());
+ cr.close();
+ }
+
+ @Test
+ public void testPost() {
+ WebTarget r = getWebTarget();
+ assertEquals("POST", r.request().post(Entity.text("POST"), String.class));
+
+ Response cr = r.request().post(Entity.text("POST"));
+ assertTrue(cr.hasEntity());
+ cr.close();
+ }
+
+ @Test
+ public void testPostChunked() {
+ ClientConfig cc = new ClientConfig()
+ .property(ClientProperties.CHUNKED_ENCODING_SIZE, 1024)
+ .connectorProvider(new Apache5ConnectorProvider());
+ Client client = ClientBuilder.newClient(cc);
+ WebTarget r = getWebTarget(client);
+
+ assertEquals("POST", r.request().post(Entity.text("POST"), String.class));
+
+ Response cr = r.request().post(Entity.text("POST"));
+ assertTrue(cr.hasEntity());
+ cr.close();
+ }
+
+ @Test
+ public void testPostVoid() {
+ WebTarget r = getWebTarget(createPoolingClient());
+
+ for (int i = 0; i < 100; i++) {
+ r.request().post(Entity.text("POST"));
+ }
+ }
+
+ @Test
+ public void testPostNoProduce() {
+ WebTarget r = getWebTarget();
+ assertEquals(204, r.path("noproduce").request().post(Entity.text("POST")).getStatus());
+
+ Response cr = r.path("noproduce").request().post(Entity.text("POST"));
+ assertFalse(cr.hasEntity());
+ cr.close();
+ }
+
+
+ @Test
+ public void testPostNoConsumeProduce() {
+ WebTarget r = getWebTarget();
+ assertEquals(204, r.path("noconsumeproduce").request().post(null).getStatus());
+
+ Response cr = r.path("noconsumeproduce").request().post(Entity.text("POST"));
+ assertFalse(cr.hasEntity());
+ cr.close();
+ }
+
+ @Test
+ public void testPut() {
+ WebTarget r = getWebTarget();
+ assertEquals("PUT", r.request().put(Entity.text("PUT"), String.class));
+
+ Response cr = r.request().put(Entity.text("PUT"));
+ assertTrue(cr.hasEntity());
+ cr.close();
+ }
+
+ @Test
+ public void testDelete() {
+ WebTarget r = getWebTarget();
+ assertEquals("DELETE", r.request().delete(String.class));
+
+ Response cr = r.request().delete();
+ assertTrue(cr.hasEntity());
+ cr.close();
+ }
+
+ @Test
+ public void testPatch() {
+ WebTarget r = getWebTarget();
+ assertEquals("PATCH", r.request().method("PATCH", Entity.text("PATCH"), String.class));
+
+ Response cr = r.request().method("PATCH", Entity.text("PATCH"));
+ assertTrue(cr.hasEntity());
+ cr.close();
+ }
+
+ @Test
+ public void testAll() {
+ WebTarget r = getWebTarget();
+
+ assertEquals("GET", r.request().get(String.class));
+
+ assertEquals("POST", r.request().post(Entity.text("POST"), String.class));
+
+ assertEquals(204, r.path("noproduce").request().post(Entity.text("POST")).getStatus());
+
+ assertEquals(204, r.path("noconsumeproduce").request().post(null).getStatus());
+
+ assertEquals("PUT", r.request().post(Entity.text("PUT"), String.class));
+
+ assertEquals("DELETE", r.request().delete(String.class));
+ }
+
+
+ @Path("/error")
+ public static class ErrorResource {
+ @POST
+ public Response post(String entity) {
+ return Response.serverError().build();
+ }
+
+ @Path("entity")
+ @POST
+ public Response postWithEntity(String entity) {
+ return Response.serverError().entity("error").build();
+ }
+ }
+
+ @Test
+ public void testPostError() {
+ WebTarget r = createClient().target(getBaseUri()).path("error");
+
+ for (int i = 0; i < 100; i++) {
+ try {
+ final Response post = r.request().post(Entity.text("POST"));
+ post.close();
+ } catch (ClientErrorException ex) {
+ }
+ }
+ }
+
+ @Test
+ public void testPostErrorWithEntity() {
+ WebTarget r = createPoolingClient().target(getBaseUri()).path("error/entity");
+
+ for (int i = 0; i < 100; i++) {
+ try {
+ r.request().post(Entity.text("POST"));
+ } catch (ClientErrorException ex) {
+ String s = ex.getResponse().readEntity(String.class);
+ assertEquals("error", s);
+ }
+ }
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpMethodWithClientFilterTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpMethodWithClientFilterTest.java
new file mode 100644
index 00000000000..35b38c3bdcb
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpMethodWithClientFilterTest.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+
+/**
+ * @author Paul Sandoz
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ */
+public class HttpMethodWithClientFilterTest extends HttpMethodTest {
+
+ @Override
+ protected Client createClient() {
+ ClientConfig cc = new ClientConfig()
+ .register(LoggingFeature.class)
+ .connectorProvider(new Apache5ConnectorProvider());
+ return ClientBuilder.newClient(cc);
+ }
+
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/LargeDataTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/LargeDataTest.java
new file mode 100644
index 00000000000..40f1b4136d5
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/LargeDataTest.java
@@ -0,0 +1,156 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.util.logging.Logger;
+
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.ServerErrorException;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.Response.Status;
+import javax.ws.rs.core.StreamingOutput;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+/**
+ * The LargeDataTest reproduces a problem when bytes of large data sent are incorrectly sent.
+ * As a result, the request body is different than what was sent by the client.
+ *
+ * In order to be able to inspect the request body, the generated data is a sequence of numbers
+ * delimited with new lines. Such as
+ *
+ * 1
+ * 2
+ * 3
+ *
+ * ...
+ *
+ * 57234
+ * 57235
+ * 57236
+ *
+ * ...
+ *
+ * It is also possible to send the data to netcat: {@code nc -l 8080} and verify the problem is
+ * on the client side.
+ *
+ * @author Stepan Vavra
+ * @author Marek Potociar
+ */
+public class LargeDataTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(LargeDataTest.class.getName());
+ private static final int LONG_DATA_SIZE = 1_000_000; // for large set around 5GB, try e.g.: 536_870_912;
+ private static volatile Throwable exception;
+
+ private static StreamingOutput longData(long sequence) {
+ return out -> {
+ long offset = 0;
+ while (offset < sequence) {
+ out.write(Long.toString(offset).getBytes());
+ out.write('\n');
+ offset++;
+ }
+ };
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(HttpMethodResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.HEADERS_ONLY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new Apache5ConnectorProvider());
+ }
+
+ @Test
+ public void postWithLargeData() throws Throwable {
+ WebTarget webTarget = target("test");
+
+ Response response = webTarget.request().post(Entity.entity(longData(LONG_DATA_SIZE), MediaType.TEXT_PLAIN_TYPE));
+
+ try {
+ if (exception != null) {
+
+ // the reason to throw the exception is that IntelliJ gives you an option to compare the expected with the actual
+ throw exception;
+ }
+
+ Assert.assertEquals("Unexpected error: " + response.getStatus(),
+ Status.Family.SUCCESSFUL,
+ response.getStatusInfo().getFamily());
+ } finally {
+ response.close();
+ }
+ }
+
+ @Path("/test")
+ public static class HttpMethodResource {
+
+ @POST
+ public Response post(InputStream content) {
+ try {
+
+ longData(LONG_DATA_SIZE).write(new OutputStream() {
+
+ private long position = 0;
+// private long mbRead = 0;
+
+ @Override
+ public void write(final int generated) throws IOException {
+ int received = content.read();
+
+ if (received != generated) {
+ throw new IOException("Bytes don't match at position " + position
+ + ": received=" + received
+ + ", generated=" + generated);
+ }
+
+ position++;
+// if (position % (1024 * 1024) == 0) {
+// mbRead++;
+// System.out.println("MB read: " + mbRead);
+// }
+ }
+ });
+ } catch (IOException e) {
+ exception = e;
+ throw new ServerErrorException(e.getMessage(), 500, e);
+ }
+
+ return Response.ok().build();
+ }
+
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/ManagedClientTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/ManagedClientTest.java
new file mode 100644
index 00000000000..46ba4ee0182
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/ManagedClientTest.java
@@ -0,0 +1,268 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.io.IOException;
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.util.logging.Logger;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.client.ClientRequestContext;
+import javax.ws.rs.client.ClientRequestFilter;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.container.ContainerRequestContext;
+import javax.ws.rs.container.ContainerRequestFilter;
+import javax.ws.rs.container.DynamicFeature;
+import javax.ws.rs.container.ResourceInfo;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.FeatureContext;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ClientBinding;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.server.Uri;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+
+/**
+ * Jersey programmatic managed client test
+ *
+ * @author Marek Potociar
+ */
+public class ManagedClientTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(ManagedClientTest.class.getName());
+
+ /**
+ * Managed client configuration for client A.
+ *
+ * @author Marek Potociar (marek.potociar at oracle.com)
+ */
+ @ClientBinding(configClass = MyClientAConfig.class)
+ @Documented
+ @Retention(RetentionPolicy.RUNTIME)
+ @Target({ElementType.FIELD, ElementType.PARAMETER})
+ public static @interface ClientA {
+ }
+
+ /**
+ * Managed client configuration for client B.
+ *
+ * @author Marek Potociar (marek.potociar at oracle.com)
+ */
+ @ClientBinding(configClass = MyClientBConfig.class)
+ @Documented
+ @Retention(RetentionPolicy.RUNTIME)
+ @Target({ElementType.FIELD, ElementType.PARAMETER})
+ public @interface ClientB {
+ }
+
+ /**
+ * Dynamic feature that appends a properly configured {@link CustomHeaderFilter} instance
+ * to every method that is annotated with {@link Require @Require} internal feature
+ * annotation.
+ *
+ * @author Marek Potociar
+ */
+ public static class CustomHeaderFeature implements DynamicFeature {
+
+ /**
+ * A method annotation to be placed on those resource methods to which a validating
+ * {@link CustomHeaderFilter} instance should be added.
+ */
+ @Retention(RetentionPolicy.RUNTIME)
+ @Documented
+ @Target(ElementType.METHOD)
+ public static @interface Require {
+
+ /**
+ * Expected custom header name to be validated by the {@link CustomHeaderFilter}.
+ */
+ public String headerName();
+
+ /**
+ * Expected custom header value to be validated by the {@link CustomHeaderFilter}.
+ */
+ public String headerValue();
+ }
+
+ @Override
+ public void configure(ResourceInfo resourceInfo, FeatureContext context) {
+ final Require va = resourceInfo.getResourceMethod().getAnnotation(Require.class);
+ if (va != null) {
+ context.register(new CustomHeaderFilter(va.headerName(), va.headerValue()));
+ }
+ }
+ }
+
+ /**
+ * A filter for appending and validating custom headers.
+ *
+ * On the client side, appends a new custom request header with a configured name and value to each outgoing request.
+ *
+ *
+ * On the server side, validates that each request has a custom header with a configured name and value.
+ * If the validation fails a HTTP 403 response is returned.
+ *
+ *
+ * @author Marek Potociar (marek.potociar at oracle.com)
+ */
+ public static class CustomHeaderFilter implements ContainerRequestFilter, ClientRequestFilter {
+
+ private final String headerName;
+ private final String headerValue;
+
+ public CustomHeaderFilter(String headerName, String headerValue) {
+ if (headerName == null || headerValue == null) {
+ throw new IllegalArgumentException("Header name and value must not be null.");
+ }
+ this.headerName = headerName;
+ this.headerValue = headerValue;
+ }
+
+ @Override
+ public void filter(ContainerRequestContext ctx) throws IOException { // validate
+ if (!headerValue.equals(ctx.getHeaderString(headerName))) {
+ ctx.abortWith(Response.status(Response.Status.FORBIDDEN)
+ .type(MediaType.TEXT_PLAIN)
+ .entity(String
+ .format("Expected header '%s' not present or value not equal to '%s'", headerName, headerValue))
+ .build());
+ }
+ }
+
+ @Override
+ public void filter(ClientRequestContext ctx) throws IOException { // append
+ ctx.getHeaders().putSingle(headerName, headerValue);
+ }
+ }
+
+ /**
+ * Internal resource accessed from the managed client resource.
+ *
+ * @author Marek Potociar (marek.potociar at oracle.com)
+ */
+ @Path("internal")
+ public static class InternalResource {
+
+ @GET
+ @Path("a")
+ @CustomHeaderFeature.Require(headerName = "custom-header", headerValue = "a")
+ public String getA() {
+ return "a";
+ }
+
+ @GET
+ @Path("b")
+ @CustomHeaderFeature.Require(headerName = "custom-header", headerValue = "b")
+ public String getB() {
+ return "b";
+ }
+ }
+
+ /**
+ * A resource that uses managed clients to retrieve values of internal
+ * resources 'A' and 'B', which are protected by a {@link CustomHeaderFilter}
+ * and require a specific custom header in a request to be set to a specific value.
+ *
+ * Properly configured managed clients have a {@code CustomHeaderFilter} instance
+ * configured to insert the {@link CustomHeaderFeature.Require required} custom header
+ * with a proper value into the outgoing client requests.
+ *
+ *
+ * @author Marek Potociar (marek.potociar at oracle.com)
+ */
+ @Path("public")
+ public static class PublicResource {
+
+ @Uri("a")
+ @ClientA // resolves to /internal/a
+ private WebTarget targetA;
+
+ @GET
+ @Produces("text/plain")
+ @Path("a")
+ public String getTargetA() {
+ return targetA.request(MediaType.TEXT_PLAIN).get(String.class);
+ }
+
+ @GET
+ @Produces("text/plain")
+ @Path("b")
+ public Response getTargetB(@Uri("internal/b") @ClientB WebTarget targetB) {
+ return targetB.request(MediaType.TEXT_PLAIN).get();
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(PublicResource.class, InternalResource.class, CustomHeaderFeature.class)
+ .property(ClientA.class.getName() + ".baseUri", this.getBaseUri().toString() + "internal");
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ public static class MyClientAConfig extends ClientConfig {
+
+ public MyClientAConfig() {
+ this.register(new CustomHeaderFilter("custom-header", "a"));
+ }
+ }
+
+ public static class MyClientBConfig extends ClientConfig {
+
+ public MyClientBConfig() {
+ this.register(new CustomHeaderFilter("custom-header", "b"));
+ }
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new Apache5ConnectorProvider());
+ }
+
+ /**
+ * Test that a connection via managed clients works properly.
+ *
+ * @throws Exception in case of test failure.
+ */
+ @Test
+ public void testManagedClient() throws Exception {
+ final WebTarget resource = target().path("public").path("{name}");
+ Response response;
+
+ response = resource.resolveTemplate("name", "a").request(MediaType.TEXT_PLAIN).get();
+ assertEquals(200, response.getStatus());
+ assertEquals("a", response.readEntity(String.class));
+
+ response = resource.resolveTemplate("name", "b").request(MediaType.TEXT_PLAIN).get();
+ assertEquals(200, response.getStatus());
+ assertEquals("b", response.readEntity(String.class));
+ }
+
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/NoEntityTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/NoEntityTest.java
new file mode 100644
index 00000000000..cdea49be4cc
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/NoEntityTest.java
@@ -0,0 +1,102 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.util.logging.Logger;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.Response.Status;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Test;
+
+/**
+ * @author Paul Sandoz
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ */
+public class NoEntityTest extends JerseyTest {
+ private static final Logger LOGGER = Logger.getLogger(NoEntityTest.class.getName());
+
+ @Path("/test")
+ public static class HttpMethodResource {
+ @GET
+ public Response get() {
+ return Response.status(Status.CONFLICT).build();
+ }
+
+ @POST
+ public void post(String entity) {
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(HttpMethodResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new Apache5ConnectorProvider());
+ }
+
+ @Test
+ public void testGet() {
+ WebTarget r = target("test");
+
+ for (int i = 0; i < 5; i++) {
+ Response cr = r.request().get();
+ cr.close();
+ }
+ }
+
+ @Test
+ public void testGetWithClose() {
+ WebTarget r = target("test");
+ for (int i = 0; i < 5; i++) {
+ Response cr = r.request().get();
+ cr.close();
+ }
+ }
+
+ @Test
+ public void testPost() {
+ WebTarget r = target("test");
+ for (int i = 0; i < 5; i++) {
+ Response cr = r.request().post(null);
+ }
+ }
+
+ @Test
+ public void testPostWithClose() {
+ WebTarget r = target("test");
+ for (int i = 0; i < 5; i++) {
+ Response cr = r.request().post(null);
+ cr.close();
+ }
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/RetryStrategyTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/RetryStrategyTest.java
new file mode 100644
index 00000000000..6254c430fcf
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/RetryStrategyTest.java
@@ -0,0 +1,142 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.io.IOException;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.HttpHeaders;
+
+import org.apache.hc.client5.http.HttpRequestRetryStrategy;
+import org.apache.hc.core5.http.HttpRequest;
+import org.apache.hc.core5.http.HttpResponse;
+import org.apache.hc.core5.http.protocol.HttpContext;
+import org.apache.hc.core5.util.TimeValue;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.client.RequestEntityProcessing;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+
+public class RetryStrategyTest extends JerseyTest {
+ private static final int READ_TIMEOUT_MS = 100;
+
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(RetryHandlerResource.class);
+ }
+
+ @Path("/")
+ public static class RetryHandlerResource {
+ private static volatile int postRequestNumber = 0;
+ private static volatile int getRequestNumber = 0;
+
+ // Cause a timeout on the first GET and POST request
+ @GET
+ public String get(@Context HttpHeaders h) {
+ if (getRequestNumber++ == 0) {
+ try {
+ Thread.sleep(READ_TIMEOUT_MS * 10);
+ } catch (InterruptedException ex) {
+ // ignore
+ }
+ }
+ return "GET";
+ }
+
+ @POST
+ public String post(@Context HttpHeaders h, String e) {
+ if (postRequestNumber++ == 0) {
+ try {
+ Thread.sleep(READ_TIMEOUT_MS * 10);
+ } catch (InterruptedException ex) {
+ // ignore
+ }
+ }
+ return "POST";
+ }
+ }
+
+ @Test
+ public void testRetryGet() throws IOException {
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ cc.property(Apache5ClientProperties.RETRY_STRATEGY,
+ new HttpRequestRetryStrategy() {
+ @Override
+ public boolean retryRequest(HttpRequest request, IOException exception, int execCount, HttpContext context) {
+ return true;
+ }
+
+ @Override
+ public boolean retryRequest(HttpResponse response, int execCount, HttpContext context) {
+ return true;
+ }
+
+ @Override
+ public TimeValue getRetryInterval(HttpResponse response, int execCount, HttpContext context) {
+ return TimeValue.ofMilliseconds(200);
+ }
+ });
+ cc.property(ClientProperties.READ_TIMEOUT, READ_TIMEOUT_MS);
+ Client client = ClientBuilder.newClient(cc);
+
+ WebTarget r = client.target(getBaseUri());
+ assertEquals("GET", r.request().get(String.class));
+ }
+
+ @Test
+ public void testRetryPost() throws IOException {
+ ClientConfig cc = new ClientConfig();
+ cc.connectorProvider(new Apache5ConnectorProvider());
+ cc.property(Apache5ClientProperties.RETRY_STRATEGY,
+ new HttpRequestRetryStrategy() {
+ @Override
+ public boolean retryRequest(HttpRequest request, IOException exception, int execCount, HttpContext context) {
+ return true;
+ }
+
+ @Override
+ public boolean retryRequest(HttpResponse response, int execCount, HttpContext context) {
+ return true;
+ }
+
+ @Override
+ public TimeValue getRetryInterval(HttpResponse response, int execCount, HttpContext context) {
+ return TimeValue.ofMilliseconds(200);
+ }
+ });
+ cc.property(ClientProperties.READ_TIMEOUT, READ_TIMEOUT_MS);
+ Client client = ClientBuilder.newClient(cc);
+
+ WebTarget r = client.target(getBaseUri());
+ assertEquals("POST", r.request()
+ .property(ClientProperties.REQUEST_ENTITY_PROCESSING, RequestEntityProcessing.BUFFERED)
+ .post(Entity.text("POST"), String.class));
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/SpecialHeaderTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/SpecialHeaderTest.java
new file mode 100644
index 00000000000..ce6a3778834
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/SpecialHeaderTest.java
@@ -0,0 +1,89 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.HttpHeaders;
+import javax.ws.rs.core.Response;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.message.GZipEncoder;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Assert;
+import org.junit.Ignore;
+import org.junit.Test;
+
+/**
+ *
+ * @author Miroslav Fuksa
+ */
+public class SpecialHeaderTest extends JerseyTest {
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(MyResource.class, GZipEncoder.class, LoggingFeature.class);
+ }
+
+ @Path("resource")
+ public static class MyResource {
+ @GET
+ @Produces("text/plain")
+ @Path("encoded")
+ public Response getEncoded() {
+ return Response.ok("get").header(HttpHeaders.CONTENT_ENCODING, "gzip").build();
+ }
+
+ @GET
+ @Produces("text/plain")
+ @Path("non-encoded")
+ public Response getNormal() {
+ return Response.ok("get").build();
+ }
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new Apache5ConnectorProvider());
+ }
+
+
+ @Test
+ @Ignore("Apache connector does not provide information about encoding for gzip and deflate encoding")
+ public void testEncoded() {
+ final Response response = target().path("resource/encoded").request("text/plain").get();
+ Assert.assertEquals(200, response.getStatus());
+ Assert.assertEquals("get", response.readEntity(String.class));
+ Assert.assertEquals("gzip", response.getHeaderString(HttpHeaders.CONTENT_ENCODING));
+ Assert.assertEquals("text/plain", response.getHeaderString(HttpHeaders.CONTENT_TYPE));
+ Assert.assertEquals(3, response.getHeaderString(HttpHeaders.CONTENT_LENGTH));
+ }
+
+ @Test
+ public void testNonEncoded() {
+ final Response response = target().path("resource/non-encoded").request("text/plain").get();
+ Assert.assertEquals(200, response.getStatus());
+ Assert.assertEquals("get", response.readEntity(String.class));
+ Assert.assertNull(response.getHeaderString(HttpHeaders.CONTENT_ENCODING));
+ Assert.assertEquals("text/plain", response.getHeaderString(HttpHeaders.CONTENT_TYPE));
+ Assert.assertEquals("3", response.getHeaderString(HttpHeaders.CONTENT_LENGTH));
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/StreamingTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/StreamingTest.java
new file mode 100644
index 00000000000..ea90e798790
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/StreamingTest.java
@@ -0,0 +1,167 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.concurrent.atomic.AtomicInteger;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.client.Invocation;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+import javax.inject.Singleton;
+
+import org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.server.ChunkedOutput;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+
+/**
+ * @author Petr Janouch
+ */
+public class StreamingTest extends JerseyTest {
+ private PoolingHttpClientConnectionManager connectionManager;
+
+ /**
+ * Test that a data stream can be terminated from the client side.
+ */
+ @Test
+ public void clientCloseNoTimeoutTest() throws IOException {
+ clientCloseTest(-1);
+ }
+
+ @Test
+ public void clientCloseWithTimeOutTest() throws IOException {
+ clientCloseTest(1_000);
+ }
+
+ /**
+ * Tests that closing a response after completely reading the entity reuses the connection
+ */
+ @Test
+ public void reuseConnectionTest() throws IOException {
+ Response response = target().path("/streamingEndpoint/get").request().get();
+ InputStream is = response.readEntity(InputStream.class);
+ byte[] buf = new byte[8192];
+ is.read(buf);
+ is.close();
+ response.close();
+
+ assertEquals(1, connectionManager.getTotalStats().getAvailable());
+ assertEquals(0, connectionManager.getTotalStats().getLeased());
+ }
+
+ /**
+ * Tests that closing a request without reading the entity does not throw an exception.
+ */
+ @Test
+ public void clientCloseThrowsNoExceptionTest() throws IOException {
+ Response response = target().path("/streamingEndpoint/get").request().get();
+ response.close();
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ connectionManager = new PoolingHttpClientConnectionManager();
+ config.property(Apache5ClientProperties.CONNECTION_MANAGER, connectionManager);
+ config.connectorProvider(new Apache5ConnectorProvider());
+ }
+
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(StreamingEndpoint.class);
+ }
+
+ /**
+ * Test that a data stream can be terminated from the client side.
+ */
+ private void clientCloseTest(int readTimeout) throws IOException {
+ // start streaming
+ AtomicInteger counter = new AtomicInteger(0);
+ Invocation.Builder builder = target().path("/streamingEndpoint").request();
+ if (readTimeout > -1) {
+ counter.set(1);
+ builder.property(ClientProperties.READ_TIMEOUT, readTimeout);
+ builder.property(Apache5ClientProperties.CONNECTION_CLOSING_STRATEGY,
+ (Apache5ConnectionClosingStrategy) (config, request, response, stream) -> {
+ try {
+ stream.close();
+ } catch (Exception e) {
+ // timeout, no chunk ending
+ } finally {
+ counter.set(0);
+ response.close();
+ }
+ });
+ }
+ InputStream inputStream = builder.get(InputStream.class);
+
+ WebTarget sendTarget = target().path("/streamingEndpoint/send");
+ // trigger sending 'A' to the stream; OK is sent if everything on the server was OK
+ assertEquals("OK", sendTarget.request().get().readEntity(String.class));
+ // check 'A' has been sent
+ assertEquals('A', inputStream.read());
+ // closing the stream should tear down the connection
+ inputStream.close();
+ // trigger sending another 'A' to the stream; it should fail
+ // (indicating that the streaming has been terminated on the server)
+ assertEquals("NOK", sendTarget.request().get().readEntity(String.class));
+ assertEquals(0, counter.get());
+ }
+
+ @Singleton
+ @Path("streamingEndpoint")
+ public static class StreamingEndpoint {
+
+ private final ChunkedOutput output = new ChunkedOutput<>(String.class);
+
+ @GET
+ @Path("send")
+ public String sendEvent() {
+ try {
+ output.write("A");
+ } catch (IOException e) {
+ return "NOK";
+ }
+
+ return "OK";
+ }
+
+ @GET
+ @Produces(MediaType.TEXT_PLAIN)
+ public ChunkedOutput get() {
+ return output;
+ }
+
+ @GET
+ @Path("get")
+ @Produces(MediaType.TEXT_PLAIN)
+ public String getString() {
+ return "OK";
+ }
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TimeoutTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TimeoutTest.java
new file mode 100644
index 00000000000..7eab1b30b60
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TimeoutTest.java
@@ -0,0 +1,104 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.net.SocketTimeoutException;
+import java.util.logging.Logger;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.ProcessingException;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Response;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Test;
+import static org.hamcrest.CoreMatchers.instanceOf;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assert.fail;
+
+/**
+ * @author Martin Matula
+ * @author Arul Dhesiaseelan (aruld at acm.org)
+ */
+public class TimeoutTest extends JerseyTest {
+ private static final Logger LOGGER = Logger.getLogger(TimeoutTest.class.getName());
+
+ @Path("/test")
+ public static class TimeoutResource {
+ @GET
+ public String get() {
+ return "GET";
+ }
+
+ @GET
+ @Path("timeout")
+ public String getTimeout() {
+ try {
+ Thread.sleep(2000);
+ } catch (final InterruptedException e) {
+ e.printStackTrace();
+ }
+ return "GET";
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ final ResourceConfig config = new ResourceConfig(TimeoutResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(final ClientConfig config) {
+ config.property(ClientProperties.READ_TIMEOUT, 1000);
+ config.connectorProvider(new Apache5ConnectorProvider());
+ }
+
+ @Test
+ public void testFast() {
+ final Response r = target("test").request().get();
+ assertEquals(200, r.getStatus());
+ assertEquals("GET", r.readEntity(String.class));
+ }
+
+ @Test
+ public void testSlow() {
+ try {
+ target("test/timeout").request().get();
+ fail("Timeout expected.");
+ } catch (final ProcessingException e) {
+ assertThat("Unexpected processing exception cause",
+ e.getCause(), instanceOf(SocketTimeoutException.class));
+ }
+ }
+
+ @Test
+ public void testPerRequestTimeout() {
+ final Response r = target("test/timeout").request()
+ .property(ClientProperties.READ_TIMEOUT, 3000).get();
+ assertEquals(200, r.getStatus());
+ assertEquals("GET", r.readEntity(String.class));
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TraceSupportTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TraceSupportTest.java
new file mode 100644
index 00000000000..d95c2f21c81
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TraceSupportTest.java
@@ -0,0 +1,235 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.util.List;
+import java.util.Map;
+import java.util.logging.Logger;
+
+import javax.ws.rs.HttpMethod;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.container.ContainerRequestContext;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Request;
+import javax.ws.rs.core.Response;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.process.Inflector;
+import org.glassfish.jersey.server.ContainerRequest;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.server.model.Resource;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
+/**
+ * This very basic resource showcases support of a HTTP TRACE method,
+ * not directly supported by JAX-RS API.
+ *
+ * @author Marek Potociar
+ */
+public class TraceSupportTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(TraceSupportTest.class.getName());
+
+ /**
+ * Programmatic tracing root resource path.
+ */
+ public static final String ROOT_PATH_PROGRAMMATIC = "tracing/programmatic";
+
+ /**
+ * Annotated class-based tracing root resource path.
+ */
+ public static final String ROOT_PATH_ANNOTATED = "tracing/annotated";
+
+ @HttpMethod(TRACE.NAME)
+ @Target(ElementType.METHOD)
+ @Retention(RetentionPolicy.RUNTIME)
+ public @interface TRACE {
+ public static final String NAME = "TRACE";
+ }
+
+ @Path(ROOT_PATH_ANNOTATED)
+ public static class TracingResource {
+
+ @TRACE
+ @Produces("text/plain")
+ public String trace(Request request) {
+ return stringify((ContainerRequest) request);
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(TracingResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ final Resource.Builder resourceBuilder = Resource.builder(ROOT_PATH_PROGRAMMATIC);
+ resourceBuilder.addMethod(TRACE.NAME).handledBy(new Inflector() {
+
+ @Override
+ public Response apply(ContainerRequestContext request) {
+ if (request == null) {
+ return Response.noContent().build();
+ } else {
+ return Response.ok(stringify((ContainerRequest) request), MediaType.TEXT_PLAIN).build();
+ }
+ }
+ });
+
+ return config.registerResources(resourceBuilder.build());
+
+ }
+
+ private String[] expectedFragmentsProgrammatic = new String[]{
+ "TRACE http://localhost:" + this.getPort() + "/tracing/programmatic"
+ };
+ private String[] expectedFragmentsAnnotated = new String[]{
+ "TRACE http://localhost:" + this.getPort() + "/tracing/annotated"
+ };
+
+ private WebTarget prepareTarget(String path) {
+ final WebTarget target = target();
+ target.register(LoggingFeature.class);
+ return target.path(path);
+ }
+
+ @Test
+ public void testProgrammaticApp() throws Exception {
+ Response response = prepareTarget(ROOT_PATH_PROGRAMMATIC).request("text/plain").method(TRACE.NAME);
+
+ assertEquals(Response.Status.OK.getStatusCode(), response.getStatusInfo().getStatusCode());
+
+ String responseEntity = response.readEntity(String.class);
+ for (String expectedFragment : expectedFragmentsProgrammatic) {
+ assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
+ // toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment));
+ }
+ }
+
+ @Test
+ public void testAnnotatedApp() throws Exception {
+ Response response = prepareTarget(ROOT_PATH_ANNOTATED).request("text/plain").method(TRACE.NAME);
+
+ assertEquals(Response.Status.OK.getStatusCode(), response.getStatusInfo().getStatusCode());
+
+ String responseEntity = response.readEntity(String.class);
+ for (String expectedFragment : expectedFragmentsAnnotated) {
+ assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
+ // toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment));
+ }
+ }
+
+ @Test
+ public void testTraceWithEntity() throws Exception {
+ _testTraceWithEntity(false, false);
+ }
+
+ @Test
+ public void testAsyncTraceWithEntity() throws Exception {
+ _testTraceWithEntity(true, false);
+ }
+
+ @Test
+ public void testTraceWithEntityApacheConnector() throws Exception {
+ _testTraceWithEntity(false, true);
+ }
+
+ @Test
+ public void testAsyncTraceWithEntityApacheConnector() throws Exception {
+ _testTraceWithEntity(true, true);
+ }
+
+ private void _testTraceWithEntity(final boolean isAsync, final boolean useApacheConnection) throws Exception {
+ try {
+ WebTarget target = useApacheConnection ? getApacheClient().target(target().getUri()) : target();
+ target = target.path(ROOT_PATH_ANNOTATED);
+
+ final Entity entity = Entity.entity("trace", MediaType.WILDCARD_TYPE);
+
+ Response response;
+ if (!isAsync) {
+ response = target.request().method(TRACE.NAME, entity);
+ } else {
+ response = target.request().async().method(TRACE.NAME, entity).get();
+ }
+
+ fail("A TRACE request MUST NOT include an entity. (response=" + response + ")");
+ } catch (Exception e) {
+ // OK
+ }
+ }
+
+ private Client getApacheClient() {
+ return ClientBuilder.newClient(new ClientConfig().connectorProvider(new Apache5ConnectorProvider()));
+ }
+
+
+ public static String stringify(ContainerRequest request) {
+ StringBuilder buffer = new StringBuilder();
+
+ printRequestLine(buffer, request);
+ printPrefixedHeaders(buffer, request.getHeaders());
+
+ if (request.hasEntity()) {
+ buffer.append(request.readEntity(String.class)).append("\n");
+ }
+
+ return buffer.toString();
+ }
+
+ private static void printRequestLine(StringBuilder buffer, ContainerRequest request) {
+ buffer.append(request.getMethod()).append(" ").append(request.getUriInfo().getRequestUri().toASCIIString()).append("\n");
+ }
+
+ private static void printPrefixedHeaders(StringBuilder buffer, Map> headers) {
+ for (Map.Entry> e : headers.entrySet()) {
+ List val = e.getValue();
+ String header = e.getKey();
+
+ if (val.size() == 1) {
+ buffer.append(header).append(": ").append(val.get(0)).append("\n");
+ } else {
+ StringBuilder sb = new StringBuilder();
+ boolean add = false;
+ for (String s : val) {
+ if (add) {
+ sb.append(',');
+ }
+ add = true;
+ sb.append(s);
+ }
+ buffer.append(header).append(": ").append(sb.toString()).append("\n");
+ }
+ }
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingCookieStoreAccessTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingCookieStoreAccessTest.java
new file mode 100644
index 00000000000..8248fdd7d83
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingCookieStoreAccessTest.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.WebTarget;
+
+import org.apache.hc.client5.http.cookie.CookieStore;
+import org.glassfish.jersey.client.ClientConfig;
+
+import org.junit.Test;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertSame;
+
+/**
+ * Test of access to the underlying CookieStore instance used by the connector.
+ *
+ * @author Maksim Mukosey (mmukosey at gmail.com)
+ */
+public class UnderlyingCookieStoreAccessTest {
+
+ @Test
+ public void testCookieStoreInstanceAccess() {
+ final Client client = ClientBuilder.newClient(new ClientConfig().connectorProvider(new Apache5ConnectorProvider()));
+ final CookieStore csOnClient = Apache5ConnectorProvider.getCookieStore(client);
+ // important: the web target instance in this test must be only created AFTER the client has been pre-initialized
+ // (see org.glassfish.jersey.client.Initializable.preInitialize method). This is here achieved by calling the
+ // connector provider's static getCookieStore method above.
+ final WebTarget target = client.target("http://localhost/");
+ final CookieStore csOnTarget = Apache5ConnectorProvider.getCookieStore(target);
+
+ assertNotNull("CookieStore instance set on JerseyClient should not be null.", csOnClient);
+ assertNotNull("CookieStore instance set on JerseyWebTarget should not be null.", csOnTarget);
+ assertSame("CookieStore instance set on JerseyClient should be the same instance as the one set on JerseyWebTarget"
+ + "(provided the target instance has not been further configured).", csOnClient, csOnTarget);
+ }
+}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingHttpClientAccessTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingHttpClientAccessTest.java
new file mode 100644
index 00000000000..0c2e320b624
--- /dev/null
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingHttpClientAccessTest.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.apache5.connector;
+
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.WebTarget;
+
+import org.apache.hc.client5.http.classic.HttpClient;
+import org.glassfish.jersey.client.ClientConfig;
+
+import org.junit.Test;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertSame;
+
+/**
+ * Test of access to the underlying HTTP client instance used by the connector.
+ *
+ * @author Marek Potociar
+ */
+public class UnderlyingHttpClientAccessTest {
+
+ /**
+ * Verifier of JERSEY-2424 fix.
+ */
+ @Test
+ public void testHttpClientInstanceAccess() {
+ final Client client = ClientBuilder.newClient(new ClientConfig().connectorProvider(new Apache5ConnectorProvider()));
+ final HttpClient hcOnClient = Apache5ConnectorProvider.getHttpClient(client);
+ // important: the web target instance in this test must be only created AFTER the client has been pre-initialized
+ // (see org.glassfish.jersey.client.Initializable.preInitialize method). This is here achieved by calling the
+ // connector provider's static getHttpClient method above.
+ final WebTarget target = client.target("http://localhost/");
+ final HttpClient hcOnTarget = Apache5ConnectorProvider.getHttpClient(target);
+
+ assertNotNull("HTTP client instance set on JerseyClient should not be null.", hcOnClient);
+ assertNotNull("HTTP client instance set on JerseyWebTarget should not be null.", hcOnTarget);
+ assertSame("HTTP client instance set on JerseyClient should be the same instance as the one set on JerseyWebTarget"
+ + "(provided the target instance has not been further configured).",
+ hcOnClient, hcOnTarget
+ );
+ }
+}
diff --git a/connectors/pom.xml b/connectors/pom.xml
index 8266de63555..18fce3cd152 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -1,7 +1,7 @@
0.8.17
- 4.1.43.Final
+ 4.1.75.Final
1.6.7
0.30.0
6.0.0
From a785a4881052105389d048e32fc6295a734d7d37 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Thu, 14 Apr 2022 00:04:25 +0200
Subject: [PATCH 021/305] Move jersey-tck module to a tests folder and make it
run with -Pjersey-tck
Signed-off-by: jansupol
---
{jersey-tck => tests/jersey-tck}/README.md | 0
{jersey-tck => tests/jersey-tck}/j2ee.pass | 0
{jersey-tck => tests/jersey-tck}/javajoe.pass | 0
{jersey-tck => tests/jersey-tck}/pom.xml | 63 ++++++++++++++++---
.../JerseyApplicationArchiveProcessor.java | 0
.../core/tck/JerseyLoadableExtension.java | 0
...boss.arquillian.core.spi.LoadableExtension | 0
..._securitycontext_basic_web.war.sun-web.xml | 0
...equestcontext_security_web.war.sun-web.xml | 0
tests/pom.xml | 8 +++
10 files changed, 61 insertions(+), 10 deletions(-)
rename {jersey-tck => tests/jersey-tck}/README.md (100%)
rename {jersey-tck => tests/jersey-tck}/j2ee.pass (100%)
rename {jersey-tck => tests/jersey-tck}/javajoe.pass (100%)
rename {jersey-tck => tests/jersey-tck}/pom.xml (89%)
rename {jersey-tck => tests/jersey-tck}/src/main/java/org/glassfish/jersey/core/tck/JerseyApplicationArchiveProcessor.java (100%)
rename {jersey-tck => tests/jersey-tck}/src/main/java/org/glassfish/jersey/core/tck/JerseyLoadableExtension.java (100%)
rename {jersey-tck => tests/jersey-tck}/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension (100%)
rename {jersey-tck => tests/jersey-tck}/src/main/resources/jaxrs_ee_core_securitycontext_basic_web.war.sun-web.xml (100%)
rename {jersey-tck => tests/jersey-tck}/src/main/resources/jaxrs_ee_rs_container_requestcontext_security_web.war.sun-web.xml (100%)
diff --git a/jersey-tck/README.md b/tests/jersey-tck/README.md
similarity index 100%
rename from jersey-tck/README.md
rename to tests/jersey-tck/README.md
diff --git a/jersey-tck/j2ee.pass b/tests/jersey-tck/j2ee.pass
similarity index 100%
rename from jersey-tck/j2ee.pass
rename to tests/jersey-tck/j2ee.pass
diff --git a/jersey-tck/javajoe.pass b/tests/jersey-tck/javajoe.pass
similarity index 100%
rename from jersey-tck/javajoe.pass
rename to tests/jersey-tck/javajoe.pass
diff --git a/jersey-tck/pom.xml b/tests/jersey-tck/pom.xml
similarity index 89%
rename from jersey-tck/pom.xml
rename to tests/jersey-tck/pom.xml
index e0fc24e1b6a..3a4f9468a1f 100644
--- a/jersey-tck/pom.xml
+++ b/tests/jersey-tck/pom.xml
@@ -31,7 +31,7 @@
11
11
- 3.1.0-M3
+ 3.1.0-M3
6.2.5
${project.build.directory}/glassfish6
10.0.0-RC1
@@ -308,7 +308,8 @@
exec
- ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+ ${asadmin.home}
+ ${asadmin}
stop-domain
@@ -321,7 +322,8 @@
exec
- ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+ ${asadmin.home}
+ ${asadmin}
start-domain
@@ -334,7 +336,8 @@
exec
- ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+ ${asadmin.home}
+ ${asadmin}
set
server-config.network-config.protocols.protocol.http-listener-1.http.trace-enabled=true
@@ -348,7 +351,8 @@
exec
- ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+ ${asadmin.home}
+ ${asadmin}
--passwordfile
${project.basedir}/j2ee.pass
@@ -368,7 +372,8 @@
exec
- ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+ ${asadmin.home}
+ ${asadmin}
--passwordfile
${project.basedir}/j2ee.pass
@@ -386,7 +391,8 @@
exec
- ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+ ${asadmin.home}
+ ${asadmin}
--passwordfile
${project.basedir}/javajoe.pass
@@ -406,7 +412,8 @@
exec
- ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+ ${asadmin.home}
+ ${asadmin}
--passwordfile
${project.basedir}/javajoe.pass
@@ -424,7 +431,8 @@
exec
- ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+ ${asadmin.home}
+ ${asadmin}
list-file-users
@@ -437,7 +445,8 @@
exec
- ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+ ${asadmin.home}
+ ${asadmin}
stop-domain
@@ -460,6 +469,7 @@
**/SeBootstrapIT.java
+ false
jakarta.ws.rs:${tck.artifactId}
${glassfish.home}
@@ -488,6 +498,7 @@
verify
+ false
**/SeBootstrapIT.java
@@ -498,4 +509,36 @@
+
+
+ onLinux
+
+
+ unix
+
+
+
+ ${basedir}
+ ${project.build.directory}/glassfish6/glassfish/bin/asadmin
+
+
+
+ onWindows
+
+
+ Windows
+
+
+
+ ${glassfish.home}/glassfish/bin
+ asadmin
+
+
+
+ jersey-tck
+
+ 3.1.0-SNAPSHOT
+
+
+
diff --git a/jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyApplicationArchiveProcessor.java b/tests/jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyApplicationArchiveProcessor.java
similarity index 100%
rename from jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyApplicationArchiveProcessor.java
rename to tests/jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyApplicationArchiveProcessor.java
diff --git a/jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyLoadableExtension.java b/tests/jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyLoadableExtension.java
similarity index 100%
rename from jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyLoadableExtension.java
rename to tests/jersey-tck/src/main/java/org/glassfish/jersey/core/tck/JerseyLoadableExtension.java
diff --git a/jersey-tck/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension b/tests/jersey-tck/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
similarity index 100%
rename from jersey-tck/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
rename to tests/jersey-tck/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
diff --git a/jersey-tck/src/main/resources/jaxrs_ee_core_securitycontext_basic_web.war.sun-web.xml b/tests/jersey-tck/src/main/resources/jaxrs_ee_core_securitycontext_basic_web.war.sun-web.xml
similarity index 100%
rename from jersey-tck/src/main/resources/jaxrs_ee_core_securitycontext_basic_web.war.sun-web.xml
rename to tests/jersey-tck/src/main/resources/jaxrs_ee_core_securitycontext_basic_web.war.sun-web.xml
diff --git a/jersey-tck/src/main/resources/jaxrs_ee_rs_container_requestcontext_security_web.war.sun-web.xml b/tests/jersey-tck/src/main/resources/jaxrs_ee_rs_container_requestcontext_security_web.war.sun-web.xml
similarity index 100%
rename from jersey-tck/src/main/resources/jaxrs_ee_rs_container_requestcontext_security_web.war.sun-web.xml
rename to tests/jersey-tck/src/main/resources/jaxrs_ee_rs_container_requestcontext_security_web.war.sun-web.xml
diff --git a/tests/pom.xml b/tests/pom.xml
index 0d1a49957c6..700f42e00bd 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -105,5 +105,13 @@
+
+ jersey-tck
+
+ jersey-tck
+
+
+
+
From 38e5a53a179b4a26885cc2527312e9953ebfabf8 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Tue, 12 Apr 2022 14:20:42 +0200
Subject: [PATCH 022/305] Make sure the default exception mapper is processed
Signed-off-by: jansupol
---
.../main/java/org/glassfish/jersey/server/ServerRuntime.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java b/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java
index 06e0f945614..2e3a2635d15 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java
@@ -449,9 +449,10 @@ public void process(final Throwable throwable) {
request.getResponseWriter().failure(responseError);
} finally {
completionCallbackRunner.onComplete(responseError);
+
+ defaultMapperResponse = processResponseWithDefaultExceptionMapper(responseError, request);
}
- defaultMapperResponse = processResponseWithDefaultExceptionMapper(responseError, request);
}
} finally {
From b8e7c8b760573182afdb4ee2811d98f2296917d0 Mon Sep 17 00:00:00 2001
From: Maxim Nesen <24524084+senivam@users.noreply.github.com>
Date: Wed, 20 Apr 2022 08:42:21 +0200
Subject: [PATCH 023/305] reduce usage of Guava (#5038)
Signed-off-by: Maxim Nesen
---
connectors/apache-connector/pom.xml | 7 +--
connectors/apache5-connector/pom.xml | 5 --
connectors/jetty-connector/pom.xml | 7 +--
connectors/netty-connector/pom.xml | 7 +--
containers/jdk-http/pom.xml | 7 ++-
.../jersey/jdkhttp/JdkHttpsServerTest.java | 13 ++---
.../agent/ListenableFutureAgentResource.java | 57 ++++++++++---------
ext/rx/rx-client-guava/pom.xml | 3 +-
pom.xml | 7 ++-
.../container-runner-maven-plugin/pom.xml | 8 +--
.../maven/custom-enforcer-rules/pom.xml | 9 +--
.../rule/PatternNotMatchedInFileRule.java | 29 ++--------
test-framework/memleak-test-common/pom.xml | 6 +-
.../test/memleak/common/MemoryLeakUtils.java | 26 ++-------
tests/e2e-client/pom.xml | 9 +--
tests/e2e-entity/pom.xml | 9 +--
tests/e2e-server/pom.xml | 9 +--
tests/e2e/pom.xml | 9 +--
tests/integration/jersey-2612/pom.xml | 7 +--
.../OptionalParamConverterProvider.java | 11 ++--
.../integration/jersey2612/Resource.java | 17 ++----
tests/integration/jersey-4321/pom.xml | 7 +--
tests/integration/property-check/pom.xml | 3 +-
.../redeployment-leaking-test-app/pom.xml | 7 +--
.../DaemonThreadMemoryLeakingResource.java | 5 +-
.../test-cases/leaking-test-app/pom.xml | 7 +--
.../testleak/MemoryLeakingResource.java | 5 +-
.../jersey-release-notes-maven-plugin/pom.xml | 4 +-
28 files changed, 89 insertions(+), 211 deletions(-)
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index dd13cbc7a10..12e882b6fd4 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -1,7 +1,7 @@
org.glassfish.hk2
@@ -2108,6 +2108,7 @@
2.3.6
1.1
2.0.2
+ 2.11.0
3.3.2
2.0
3.1.0
@@ -2121,7 +2122,7 @@
1.9.59
1.16
2.4.4
- 18.0
+ 31.1-jre
1.3
1.0.3
1.6
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index 132a5df4ebf..5ec2c34b910 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -1,7 +1,7 @@
+ false
-Xmx${surefire.maxmem.argline}m -Dfile.encoding=UTF8 ${surefire.security.argline} ${surefire.coverage.argline}
@@ -614,6 +616,8 @@
maven-failsafe-plugin
3.0.0-M3
+
+ false
${skip.tests}
${skip.tests}
${failsafe.coverage.argline}
From df90f4a68f7a40d7f7fdf74ff12dfebf8a09eb07 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Wed, 20 Apr 2022 13:18:12 +0200
Subject: [PATCH 025/305] Updated API javadoc link with a proper version
Signed-off-by: jansupol
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 876f4cff6b6..7754fe8dce8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -462,7 +462,7 @@
All Rights Reserved. Use is subject to license terms.]]>
- https://jakartaee.github.io/rest/apidocs/2.1.6/
+ https://jakartaee.github.io/rest/apidocs/3.0.0/
https://javaee.github.io/hk2/apidocs/
From 01b88feb1d160e5f9877c323b3917f7d0878c1d8 Mon Sep 17 00:00:00 2001
From: jansupol <15908245+jansupol@users.noreply.github.com>
Date: Mon, 25 Apr 2022 10:50:35 +0200
Subject: [PATCH 026/305] Release MessageBodyWorkers when Response gets closed.
(#5039)
Signed-off-by: jansupol
---
.../internal/InboundMessageContext.java | 6 ++-
.../jersey/server/ContainerResponse.java | 3 +-
.../jersey/server/RequestContextBuilder.java | 46 ++++++++++---------
.../cdi/weld/RequestContextBuilder.java | 46 ++++++++++---------
.../inject/cdi/se/RequestContextBuilder.java | 46 ++++++++++---------
5 files changed, 79 insertions(+), 68 deletions(-)
diff --git a/core-common/src/main/java/org/glassfish/jersey/message/internal/InboundMessageContext.java b/core-common/src/main/java/org/glassfish/jersey/message/internal/InboundMessageContext.java
index 70b1805b9b1..81b9f76cae3 100644
--- a/core-common/src/main/java/org/glassfish/jersey/message/internal/InboundMessageContext.java
+++ b/core-common/src/main/java/org/glassfish/jersey/message/internal/InboundMessageContext.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -754,6 +754,9 @@ public Link.Builder getLinkBuilder(String relation) {
* @return context message body workers.
*/
public MessageBodyWorkers getWorkers() {
+ if (workers == null) {
+ throw new ProcessingException(LocalizationMessages.RESPONSE_CLOSED());
+ }
return workers;
}
@@ -948,6 +951,7 @@ public boolean bufferEntity() throws ProcessingException {
*/
public void close() {
entityContent.close(true);
+ setWorkers(null);
}
/**
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/ContainerResponse.java b/core-server/src/main/java/org/glassfish/jersey/server/ContainerResponse.java
index 36af4089bd2..5e0a1e83893 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/ContainerResponse.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/ContainerResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -388,6 +388,7 @@ public void close() {
closed = true;
messageContext.close();
requestContext.getResponseWriter().commit();
+ requestContext.setWorkers(null);
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/RequestContextBuilder.java b/core-server/src/test/java/org/glassfish/jersey/server/RequestContextBuilder.java
index 6f4a38a0236..9687a61b995 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/RequestContextBuilder.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/RequestContextBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -79,31 +79,33 @@ public void setEntity(final Object entity) {
public void setWorkers(final MessageBodyWorkers workers) {
super.setWorkers(workers);
final byte[] entityBytes;
- if (entity != null) {
- final MultivaluedMap myMap = new MultivaluedHashMap(getHeaders());
- final ByteArrayOutputStream baos = new ByteArrayOutputStream();
- OutputStream stream = null;
- try {
- stream = workers.writeTo(entity, entity.getClass(), entityType.getType(),
- new Annotation[0], getMediaType(),
- myMap,
- propertiesDelegate, baos, Collections.emptyList());
- } catch (final IOException | WebApplicationException ex) {
- Logger.getLogger(TestContainerRequest.class.getName()).log(Level.SEVERE, null, ex);
- } finally {
- if (stream != null) {
- try {
- stream.close();
- } catch (final IOException e) {
- // ignore
+ if (workers != null) {
+ if (entity != null) {
+ final MultivaluedMap myMap = new MultivaluedHashMap(getHeaders());
+ final ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ OutputStream stream = null;
+ try {
+ stream = workers.writeTo(entity, entity.getClass(), entityType.getType(),
+ new Annotation[0], getMediaType(),
+ myMap,
+ propertiesDelegate, baos, Collections.emptyList());
+ } catch (final IOException | WebApplicationException ex) {
+ Logger.getLogger(TestContainerRequest.class.getName()).log(Level.SEVERE, null, ex);
+ } finally {
+ if (stream != null) {
+ try {
+ stream.close();
+ } catch (final IOException e) {
+ // ignore
+ }
}
}
+ entityBytes = baos.toByteArray();
+ } else {
+ entityBytes = new byte[0];
}
- entityBytes = baos.toByteArray();
- } else {
- entityBytes = new byte[0];
+ setEntityStream(new ByteArrayInputStream(entityBytes));
}
- setEntityStream(new ByteArrayInputStream(entityBytes));
}
}
diff --git a/tests/e2e-inject/cdi-inject-weld/src/test/java/org/glassfish/jersey/tests/e2e/inject/cdi/weld/RequestContextBuilder.java b/tests/e2e-inject/cdi-inject-weld/src/test/java/org/glassfish/jersey/tests/e2e/inject/cdi/weld/RequestContextBuilder.java
index d4cc5c5eab7..8f9c9c4dd1e 100644
--- a/tests/e2e-inject/cdi-inject-weld/src/test/java/org/glassfish/jersey/tests/e2e/inject/cdi/weld/RequestContextBuilder.java
+++ b/tests/e2e-inject/cdi-inject-weld/src/test/java/org/glassfish/jersey/tests/e2e/inject/cdi/weld/RequestContextBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -80,31 +80,33 @@ public void setEntity(final Object entity) {
public void setWorkers(final MessageBodyWorkers workers) {
super.setWorkers(workers);
final byte[] entityBytes;
- if (entity != null) {
- final MultivaluedMap myMap = new MultivaluedHashMap(getHeaders());
- final ByteArrayOutputStream baos = new ByteArrayOutputStream();
- OutputStream stream = null;
- try {
- stream = workers.writeTo(entity, entity.getClass(), entityType.getType(),
- new Annotation[0], getMediaType(),
- myMap,
- propertiesDelegate, baos, Collections.emptyList());
- } catch (final IOException | WebApplicationException ex) {
- Logger.getLogger(TestContainerRequest.class.getName()).log(Level.SEVERE, null, ex);
- } finally {
- if (stream != null) {
- try {
- stream.close();
- } catch (final IOException e) {
- // ignore
+ if (workers != null) {
+ if (entity != null) {
+ final MultivaluedMap myMap = new MultivaluedHashMap(getHeaders());
+ final ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ OutputStream stream = null;
+ try {
+ stream = workers.writeTo(entity, entity.getClass(), entityType.getType(),
+ new Annotation[0], getMediaType(),
+ myMap,
+ propertiesDelegate, baos, Collections.emptyList());
+ } catch (final IOException | WebApplicationException ex) {
+ Logger.getLogger(TestContainerRequest.class.getName()).log(Level.SEVERE, null, ex);
+ } finally {
+ if (stream != null) {
+ try {
+ stream.close();
+ } catch (final IOException e) {
+ // ignore
+ }
}
}
+ entityBytes = baos.toByteArray();
+ } else {
+ entityBytes = new byte[0];
}
- entityBytes = baos.toByteArray();
- } else {
- entityBytes = new byte[0];
+ setEntityStream(new ByteArrayInputStream(entityBytes));
}
- setEntityStream(new ByteArrayInputStream(entityBytes));
}
}
diff --git a/tests/e2e-inject/cdi2-se/src/test/java/org/glassfish/jersey/tests/e2e/inject/cdi/se/RequestContextBuilder.java b/tests/e2e-inject/cdi2-se/src/test/java/org/glassfish/jersey/tests/e2e/inject/cdi/se/RequestContextBuilder.java
index 1b0698de140..65bdac5d035 100644
--- a/tests/e2e-inject/cdi2-se/src/test/java/org/glassfish/jersey/tests/e2e/inject/cdi/se/RequestContextBuilder.java
+++ b/tests/e2e-inject/cdi2-se/src/test/java/org/glassfish/jersey/tests/e2e/inject/cdi/se/RequestContextBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -80,31 +80,33 @@ public void setEntity(final Object entity) {
public void setWorkers(final MessageBodyWorkers workers) {
super.setWorkers(workers);
final byte[] entityBytes;
- if (entity != null) {
- final MultivaluedMap myMap = new MultivaluedHashMap(getHeaders());
- final ByteArrayOutputStream baos = new ByteArrayOutputStream();
- OutputStream stream = null;
- try {
- stream = workers.writeTo(entity, entity.getClass(), entityType.getType(),
- new Annotation[0], getMediaType(),
- myMap,
- propertiesDelegate, baos, Collections.emptyList());
- } catch (final IOException | WebApplicationException ex) {
- Logger.getLogger(TestContainerRequest.class.getName()).log(Level.SEVERE, null, ex);
- } finally {
- if (stream != null) {
- try {
- stream.close();
- } catch (final IOException e) {
- // ignore
+ if (workers != null) {
+ if (entity != null) {
+ final MultivaluedMap myMap = new MultivaluedHashMap(getHeaders());
+ final ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ OutputStream stream = null;
+ try {
+ stream = workers.writeTo(entity, entity.getClass(), entityType.getType(),
+ new Annotation[0], getMediaType(),
+ myMap,
+ propertiesDelegate, baos, Collections.emptyList());
+ } catch (final IOException | WebApplicationException ex) {
+ Logger.getLogger(TestContainerRequest.class.getName()).log(Level.SEVERE, null, ex);
+ } finally {
+ if (stream != null) {
+ try {
+ stream.close();
+ } catch (final IOException e) {
+ // ignore
+ }
}
}
+ entityBytes = baos.toByteArray();
+ } else {
+ entityBytes = new byte[0];
}
- entityBytes = baos.toByteArray();
- } else {
- entityBytes = new byte[0];
+ setEntityStream(new ByteArrayInputStream(entityBytes));
}
- setEntityStream(new ByteArrayInputStream(entityBytes));
}
}
From 08bfa501655cc54e4c61eb34dd03a26dd7f7aec5 Mon Sep 17 00:00:00 2001
From: johnmarquez12 <42983443+johnmarquez12@users.noreply.github.com>
Date: Mon, 25 Apr 2022 06:11:20 -0700
Subject: [PATCH 027/305] Enhancement for docprocessor (#5028)
Co-authored-by: jm041977
---
.../jersey/wadl/doclet/DocProcessor.java | 44 ++++++++++++++++++-
.../wadl/doclet/DocProcessorWrapper.java | 30 ++++++++++++-
.../jersey/wadl/doclet/ResourceDoclet.java | 6 +--
3 files changed, 74 insertions(+), 6 deletions(-)
diff --git a/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/DocProcessor.java b/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/DocProcessor.java
index 3f10dc8cb18..feb1f4331f3 100644
--- a/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/DocProcessor.java
+++ b/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/DocProcessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,6 +16,7 @@
package org.glassfish.jersey.wadl.doclet;
+import jdk.javadoc.doclet.DocletEnvironment;
import org.glassfish.jersey.server.wadl.internal.generators.resourcedoc.model.ClassDocType;
import org.glassfish.jersey.server.wadl.internal.generators.resourcedoc.model.MethodDocType;
import org.glassfish.jersey.server.wadl.internal.generators.resourcedoc.model.ParamDocType;
@@ -60,6 +61,7 @@ public interface DocProcessor {
* @param classDocType the {@link ClassDocType} to extend. This will later be processed by the
* {@link org.glassfish.jersey.server.wadl.WadlGenerator}s.
*/
+ @Deprecated
void processClassDoc(TypeElement classDoc, ClassDocType classDocType);
/**
@@ -69,6 +71,7 @@ public interface DocProcessor {
* @param methodDocType the related {@link MethodDocType} that will later be processed by the
* {@link org.glassfish.jersey.server.wadl.WadlGenerator}s.
*/
+ @Deprecated
void processMethodDoc(ExecutableElement methodDoc, MethodDocType methodDocType);
/**
@@ -79,6 +82,45 @@ public interface DocProcessor {
* @param paramDocType the {@link ParamDocType} to extend. This will later be processed by the
* {@link org.glassfish.jersey.server.wadl.WadlGenerator}s.
*/
+ @Deprecated
void processParamTag(VariableElement parameter, ParamDocType paramDocType);
+ /**
+ * Use this method to extend the provided {@link ClassDocType} with the information from
+ * the given {@link TypeElement}.
+ *
+ * @param classDoc the class javadoc
+ * @param classDocType the {@link ClassDocType} to extend. This will later be processed by the
+ * {@link org.glassfish.jersey.server.wadl.WadlGenerator}s.
+ * @param docEnv the doclet environment used to extract info from classDoc
+ */
+ default void processClassDocWithDocEnv(TypeElement classDoc, ClassDocType classDocType, DocletEnvironment docEnv) {
+ processClassDoc(classDoc, classDocType);
+ }
+
+ /**
+ * Process the provided methodDoc and add your custom information to the methodDocType.
+ *
+ * @param methodDoc the {@link ExecutableElement} representing the docs of your method.
+ * @param methodDocType the related {@link MethodDocType} that will later be processed by the
+ * {@link org.glassfish.jersey.server.wadl.WadlGenerator}s.
+ * @param docEnv the doclet environment used to extract info from methodDoc
+ */
+ default void processMethodDocWithDocEnv(ExecutableElement methodDoc, MethodDocType methodDocType, DocletEnvironment docEnv) {
+ processMethodDoc(methodDoc, methodDocType);
+ }
+
+ /**
+ * Use this method to extend the provided {@link ParamDocType} with the information from the
+ * given {@link VariableElement}.
+ *
+ * @param parameter the parameter (that is documented or not)
+ * @param paramDocType the {@link ParamDocType} to extend. This will later be processed by the
+ * {@link org.glassfish.jersey.server.wadl.WadlGenerator}s.
+ * @param docEnv the Doclet Environment used to extract info from parameter
+ */
+ default void processParamTagWithDocEnv(VariableElement parameter, ParamDocType paramDocType, DocletEnvironment docEnv) {
+ processParamTag(parameter, paramDocType);
+ }
+
}
diff --git a/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/DocProcessorWrapper.java b/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/DocProcessorWrapper.java
index aa3e28dfdb7..03407dba02f 100644
--- a/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/DocProcessorWrapper.java
+++ b/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/DocProcessorWrapper.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,13 +20,13 @@
import java.util.Arrays;
import java.util.List;
+import jdk.javadoc.doclet.DocletEnvironment;
import org.glassfish.jersey.server.wadl.internal.generators.resourcedoc.model.ClassDocType;
import org.glassfish.jersey.server.wadl.internal.generators.resourcedoc.model.MethodDocType;
import org.glassfish.jersey.server.wadl.internal.generators.resourcedoc.model.ParamDocType;
import javax.lang.model.element.TypeElement;
import javax.lang.model.element.ExecutableElement;
-import com.sun.source.doctree.ParamTree;
import javax.lang.model.element.VariableElement;
public class DocProcessorWrapper implements DocProcessor {
@@ -96,4 +96,30 @@ public void processParamTag(VariableElement parameter,
}
}
+ @Override
+ public void processClassDocWithDocEnv(TypeElement classDoc,
+ ClassDocType classDocType,
+ DocletEnvironment docEnv) {
+ for (DocProcessor docProcessor : _docProcessors) {
+ docProcessor.processClassDocWithDocEnv(classDoc, classDocType, docEnv);
+ }
+ }
+
+ @Override
+ public void processMethodDocWithDocEnv(ExecutableElement methodDoc,
+ MethodDocType methodDocType,
+ DocletEnvironment docEnv) {
+ for (DocProcessor docProcessor : _docProcessors) {
+ docProcessor.processMethodDocWithDocEnv(methodDoc, methodDocType, docEnv);
+ }
+ }
+
+ @Override
+ public void processParamTagWithDocEnv(VariableElement parameter,
+ ParamDocType paramDocType,
+ DocletEnvironment docEnv) {
+ for (DocProcessor docProcessor : _docProcessors) {
+ docProcessor.processParamTagWithDocEnv(parameter, paramDocType, docEnv);
+ }
+ }
}
diff --git a/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/ResourceDoclet.java b/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/ResourceDoclet.java
index ff94b7595b2..763fb8d05fd 100644
--- a/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/ResourceDoclet.java
+++ b/ext/wadl-doclet/src/main/java12/org/glassfish/jersey/wadl/doclet/ResourceDoclet.java
@@ -157,7 +157,7 @@ public boolean run(DocletEnvironment docEnv) {
ClassDocType classDocType = new ClassDocType();
classDocType.setClassName(element.getQualifiedName().toString());
classDocType.setCommentText(getComments(docCommentTree));
- docProcessor.processClassDoc(element, classDocType);
+ docProcessor.processClassDocWithDocEnv(element, classDocType, docEnv);
for (ExecutableElement method : ElementFilter.methodsIn(element.getEnclosedElements())) {
Map> tags = getTags(docTrees.getDocCommentTree(method));
MethodTree methodTree = docTrees.getTree(method);
@@ -174,7 +174,7 @@ public boolean run(DocletEnvironment docEnv) {
arguments.append(parameter.asType()).append(COMA);
if (paramDocType != null) {
methodDocType.getParamDocs().add(paramDocType);
- docProcessor.processParamTag(parameter, paramDocType);
+ docProcessor.processParamTagWithDocEnv(parameter, paramDocType, docEnv);
}
}
// Remove last comma if there are parameters
@@ -183,7 +183,7 @@ public boolean run(DocletEnvironment docEnv) {
}
arguments.append(")");
methodDocType.setMethodSignature(arguments.toString());
- docProcessor.processMethodDoc(method, methodDocType);
+ docProcessor.processMethodDocWithDocEnv(method, methodDocType, docEnv);
methodDocType.setRequestDoc(buildRequestDocType(tags));
methodDocType.setResponseDoc(buildResponseDocType(tags));
classDocType.getMethodDocs().add(methodDocType);
From 6421e1f0bc6156611c7120f5e6996b3bb262a62e Mon Sep 17 00:00:00 2001
From: jansupol
Date: Thu, 21 Apr 2022 16:00:37 +0200
Subject: [PATCH 028/305] Support null PROXY_USERNAME Support SSL Hostname
verification Update request host and port in SSL Context Correct order of TLS
handler vs Proxy handler
Co-authored-by: olotenko
---
.../connector/NettyClientProperties.java | 2 +
.../netty/connector/NettyConnector.java | 37 ++++++++++++++-----
2 files changed, 29 insertions(+), 10 deletions(-)
diff --git a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyClientProperties.java b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyClientProperties.java
index 17e55a937a0..84b8da56fb4 100644
--- a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyClientProperties.java
+++ b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyClientProperties.java
@@ -53,4 +53,6 @@ public class NettyClientProperties {
*
*/
public static final String MAX_CONNECTIONS = "jersey.config.client.maxConnections";
+
+ public static final String ENABLE_SSL_HOSTNAME_VERIFICATION = "jersey.config.client.tls.enableHostnameVerification";
}
diff --git a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
index 056ef318027..e2d4d355144 100644
--- a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
+++ b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
@@ -32,6 +32,9 @@
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
+import javax.net.ssl.SSLEngine;
+import javax.net.ssl.SSLParameters;
+
import javax.ws.rs.ProcessingException;
import javax.ws.rs.client.Client;
import javax.ws.rs.core.Configuration;
@@ -60,6 +63,7 @@
import io.netty.handler.proxy.HttpProxyHandler;
import io.netty.handler.ssl.ClientAuth;
import io.netty.handler.ssl.JdkSslContext;
+import io.netty.handler.ssl.SslHandler;
import io.netty.handler.stream.ChunkedWriteHandler;
import io.netty.handler.timeout.IdleState;
import io.netty.handler.timeout.IdleStateEvent;
@@ -216,15 +220,9 @@ protected CompletableFuture execute(final ClientRequest jerseyRe
protected void initChannel(SocketChannel ch) throws Exception {
ChannelPipeline p = ch.pipeline();
- // Enable HTTPS if necessary.
- if ("https".equals(requestUri.getScheme())) {
- // making client authentication optional for now; it could be extracted to configurable property
- JdkSslContext jdkSslContext = new JdkSslContext(client.getSslContext(), true, ClientAuth.NONE);
- p.addLast(jdkSslContext.newHandler(ch.alloc()));
- }
+ Configuration config = jerseyRequest.getConfiguration();
// http proxy
- Configuration config = jerseyRequest.getConfiguration();
final Object proxyUri = config.getProperties().get(ClientProperties.PROXY_URI);
if (proxyUri != null) {
final URI u = getProxyUri(proxyUri);
@@ -234,9 +232,28 @@ protected void initChannel(SocketChannel ch) throws Exception {
final String password = ClientProperties.getValue(
config.getProperties(), ClientProperties.PROXY_PASSWORD, String.class);
- p.addLast(new HttpProxyHandler(new InetSocketAddress(u.getHost(),
- u.getPort() == -1 ? 8080 : u.getPort()),
- userName, password));
+ InetSocketAddress proxyAddr = new InetSocketAddress(u.getHost(),
+ u.getPort() == -1 ? 8080 : u.getPort());
+ p.addLast(userName == null ? new HttpProxyHandler(proxyAddr)
+ : new HttpProxyHandler(proxyAddr, userName, password));
+ }
+
+ // Enable HTTPS if necessary.
+ if ("https".equals(requestUri.getScheme())) {
+ // making client authentication optional for now; it could be extracted to configurable property
+ JdkSslContext jdkSslContext = new JdkSslContext(client.getSslContext(), true, ClientAuth.NONE);
+ int port = requestUri.getPort();
+ SslHandler sslHandler = jdkSslContext.newHandler(ch.alloc(), requestUri.getHost(),
+ port <= 0 ? 443 : port, executorService);
+ if (ClientProperties.getValue(config.getProperties(),
+ NettyClientProperties.ENABLE_SSL_HOSTNAME_VERIFICATION, true)) {
+ SSLEngine sslEngine = sslHandler.engine();
+ SSLParameters sslParameters = sslEngine.getSSLParameters();
+ sslParameters.setEndpointIdentificationAlgorithm("HTTPS");
+ sslEngine.setSSLParameters(sslParameters);
+ }
+
+ p.addLast(sslHandler);
}
p.addLast(new HttpClientCodec());
From 5e262a36dab399cd03f66b5592f50af4019286eb Mon Sep 17 00:00:00 2001
From: jansupol
Date: Thu, 21 Apr 2022 16:36:07 +0200
Subject: [PATCH 029/305] Add javadoc to Netty ENABLE_SSL_HOSTNAME_VERIFICATION
configuration property
Signed-off-by: jansupol
---
.../netty/connector/NettyClientProperties.java | 15 ++++++++++++++-
.../jersey/netty/connector/NettyConnector.java | 15 +++++++++++++--
2 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyClientProperties.java b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyClientProperties.java
index 84b8da56fb4..bf34699708d 100644
--- a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyClientProperties.java
+++ b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyClientProperties.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -54,5 +54,18 @@ public class NettyClientProperties {
*/
public static final String MAX_CONNECTIONS = "jersey.config.client.maxConnections";
+ /**
+ *
+ * Sets the endpoint identification algorithm to HTTPS.
+ *
+ *
+ * The default value is {@code true} (for HTTPS uri scheme).
+ *
+ *
+ * The name of the configuration property is {@value} .
+ *
+ * @since 2.35
+ * @see javax.net.ssl.SSLParameters#setEndpointIdentificationAlgorithm(String)
+ */
public static final String ENABLE_SSL_HOSTNAME_VERIFICATION = "jersey.config.client.tls.enableHostnameVerification";
}
diff --git a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
index e2d4d355144..c97ea2e16c6 100644
--- a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
+++ b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -61,7 +61,9 @@
import io.netty.handler.codec.http.HttpUtil;
import io.netty.handler.codec.http.HttpVersion;
import io.netty.handler.proxy.HttpProxyHandler;
+import io.netty.handler.ssl.ApplicationProtocolConfig;
import io.netty.handler.ssl.ClientAuth;
+import io.netty.handler.ssl.IdentityCipherSuiteFilter;
import io.netty.handler.ssl.JdkSslContext;
import io.netty.handler.ssl.SslHandler;
import io.netty.handler.stream.ChunkedWriteHandler;
@@ -241,7 +243,16 @@ protected void initChannel(SocketChannel ch) throws Exception {
// Enable HTTPS if necessary.
if ("https".equals(requestUri.getScheme())) {
// making client authentication optional for now; it could be extracted to configurable property
- JdkSslContext jdkSslContext = new JdkSslContext(client.getSslContext(), true, ClientAuth.NONE);
+ JdkSslContext jdkSslContext = new JdkSslContext(
+ client.getSslContext(),
+ true,
+ (Iterable) null,
+ IdentityCipherSuiteFilter.INSTANCE,
+ (ApplicationProtocolConfig) null,
+ ClientAuth.NONE,
+ (String[]) null, /* enable default protocols */
+ false /* true if the first write request shouldn't be encrypted */
+ );
int port = requestUri.getPort();
SslHandler sslHandler = jdkSslContext.newHandler(ch.alloc(), requestUri.getHost(),
port <= 0 ? 443 : port, executorService);
From cd44d035c23d7003dc94a6cc4873efaf35a1bc7d Mon Sep 17 00:00:00 2001
From: jansupol
Date: Thu, 28 Apr 2022 18:20:06 +0200
Subject: [PATCH 030/305] Updated documentation and javadoc for Connectors
Signed-off-by: jansupol
---
bundles/apidocs/pom.xml | 15 +
.../connector/ApacheClientProperties.java | 16 +-
.../apache/connector/ApacheConnector.java | 8 +-
.../connector/ApacheConnectorProvider.java | 10 +-
.../connector/Apache5ClientProperties.java | 6 +-
.../apache5/connector/Apache5Connector.java | 9 +-
.../connector/Apache5ConnectorProvider.java | 9 +-
.../jdk/connector/JdkConnectorProperties.java | 8 +-
.../connector/internal/RedirectException.java | 4 +-
.../connector/JettyClientProperties.java | 4 +-
.../jetty/connector/JettyConnector.java | 6 +-
.../connector/JettyConnectorProvider.java | 6 +-
docs/src/main/docbook/appendix-properties.xml | 732 +++++++++++++++++-
docs/src/main/docbook/client.xml | 99 ++-
docs/src/main/docbook/jersey.ent | 59 +-
15 files changed, 950 insertions(+), 41 deletions(-)
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index fb21083445a..df75a6ae8d8 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -58,11 +58,21 @@
jersey-apache-connector
${project.version}
+
+ org.glassfish.jersey.connectors
+ jersey-apache5-connector
+ ${project.version}
+
org.glassfish.jersey.connectors
jersey-grizzly-connector
${project.version}
+
+ org.glassfish.jersey.connectors
+ jersey-helidon-connector
+ ${project.version}
+
org.glassfish.jersey.connectors
jersey-jdk-connector
@@ -190,6 +200,11 @@
jersey-mp-config
${project.version}
+
+ org.glassfish.jersey.ext.microprofile
+ jersey-mp-rest-client
+ ${project.version}
+
org.glassfish.jersey.ext
jersey-wadl-doclet
diff --git a/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheClientProperties.java b/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheClientProperties.java
index d5c2ff8a018..099fa31123a 100644
--- a/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheClientProperties.java
+++ b/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheClientProperties.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -89,8 +89,8 @@ public final class ApacheClientProperties {
/**
* A value of {@code true} indicates that configured connection manager should be shared
- * among multiple Jersey {@link org.glassfish.jersey.client.ClientRuntime} instances. It means that closing
- * a particular {@link org.glassfish.jersey.client.ClientRuntime} instance does not shut down the underlying
+ * among multiple Jersey {@code ClientRuntime} instances. It means that closing
+ * a particular {@code ClientRuntime} instance does not shut down the underlying
* connection manager automatically. In such case, the connection manager life-cycle
* should be fully managed by the application code. To release all allocated resources,
* caller code should especially ensure {@link org.apache.http.conn.HttpClientConnectionManager#shutdown()} gets
@@ -114,7 +114,7 @@ public final class ApacheClientProperties {
*
* The value MUST be an instance of {@link org.apache.http.client.config.RequestConfig}.
*
- * If the property is absent default request configuration will be used.
+ * If the property is absent the default request configuration will be used.
*
* The name of the configuration property is {@value} .
*
@@ -137,9 +137,9 @@ public final class ApacheClientProperties {
/**
* ConnectionReuseStrategy for the {@link org.apache.http.client.HttpClient}.
*
- * The value MUST be an instance of {@link org.apache.http.impl.ConnectionReuseStrategy}.
+ * The value MUST be an instance of {@link org.apache.http.ConnectionReuseStrategy}.
*
- * If the property is absent the default reuse strategy of the Apache HTTP library will be used
+ * If the property is absent the default reuse strategy of the Apache HTTP library will be used.
*
* The name of the configuration property is {@value} .
*/
@@ -158,7 +158,9 @@ public final class ApacheClientProperties {
/**
- * Strategy that closes the Apache Connection. Accepts an instance of {@link ApacheConnectionClosingStrategy}.
+ *
+ * Strategy that closes the Apache Connection. Accepts an instance of {@link ApacheConnectionClosingStrategy}.
+ *
*
* @see ApacheConnectionClosingStrategy
* @since 2.30
diff --git a/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnector.java b/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnector.java
index 52059bb1259..81e94b4b17f 100644
--- a/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnector.java
+++ b/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnector.java
@@ -110,18 +110,22 @@
*
* The following properties are only supported at construction of this class:
*
+ * {@link ApacheClientProperties#CONNECTION_CLOSING_STRATEGY}
* {@link ApacheClientProperties#CONNECTION_MANAGER}
- * {@link ApacheClientProperties#REQUEST_CONFIG}
+ * {@link ApacheClientProperties#CONNECTION_MANAGER_SHARED}
+ * {@link ApacheClientProperties#CONNECTION_CLOSING_STRATEGY}
* {@link ApacheClientProperties#CREDENTIALS_PROVIDER}
* {@link ApacheClientProperties#DISABLE_COOKIES}
* {@link ApacheClientProperties#KEEPALIVE_STRATEGY}
+ * {@link ApacheClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_URI}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_USERNAME}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}
* {@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING} - default value is {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED}
- * {@link ApacheClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}
+ * {@link ApacheClientProperties#REQUEST_CONFIG}
* {@link ApacheClientProperties#RETRY_HANDLER}
* {@link ApacheClientProperties#REUSE_STRATEGY}
+ * {@link ApacheClientProperties#USE_SYSTEM_PROPERTIES}
*
*
* This connector uses {@link RequestEntityProcessing#CHUNKED chunked encoding} as a default setting. This can
diff --git a/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnectorProvider.java b/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnectorProvider.java
index d92d490fb13..d97204fa62b 100644
--- a/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnectorProvider.java
+++ b/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnectorProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,19 +33,23 @@
*
* The following connector configuration properties are supported:
*
+ * {@link ApacheClientProperties#CONNECTION_CLOSING_STRATEGY}
* {@link ApacheClientProperties#CONNECTION_MANAGER}
- * {@link ApacheClientProperties#REQUEST_CONFIG}
+ * {@link ApacheClientProperties#CONNECTION_MANAGER_SHARED}
+ * {@link ApacheClientProperties#CONNECTION_CLOSING_STRATEGY}
* {@link ApacheClientProperties#CREDENTIALS_PROVIDER}
* {@link ApacheClientProperties#DISABLE_COOKIES}
* {@link ApacheClientProperties#KEEPALIVE_STRATEGY}
+ * {@link ApacheClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_URI}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_USERNAME}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}
* {@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING}
* - default value is {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED}
- * {@link ApacheClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}
+ * {@link ApacheClientProperties#REQUEST_CONFIG}
* {@link ApacheClientProperties#RETRY_HANDLER}
* {@link ApacheClientProperties#REUSE_STRATEGY}
+ * {@link ApacheClientProperties#USE_SYSTEM_PROPERTIES}
*
*
*
diff --git a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ClientProperties.java b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ClientProperties.java
index eac5be5f2fc..df4c8e059cb 100644
--- a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ClientProperties.java
+++ b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ClientProperties.java
@@ -90,8 +90,8 @@ public final class Apache5ClientProperties {
/**
* A value of {@code true} indicates that configured connection manager should be shared
- * among multiple Jersey {@link org.glassfish.jersey.client.ClientRuntime} instances. It means that closing
- * a particular {@link org.glassfish.jersey.client.ClientRuntime} instance does not shut down the underlying
+ * among multiple Jersey {@code ClientRuntime} instances. It means that closing
+ * a particular {@code ClientRuntime} instance does not shut down the underlying
* connection manager automatically. In such case, the connection manager life-cycle
* should be fully managed by the application code. To release all allocated resources,
* caller code should especially ensure {@link org.apache.hc.client5.http.io.HttpClientConnectionManager#close()} gets
@@ -124,7 +124,7 @@ public final class Apache5ClientProperties {
public static final String REQUEST_CONFIG = "jersey.config.apache5.client.requestConfig";
/**
- * HttpRequestRetryHandler which will be used to create {@link org.apache.hc.client5.http.classic.HttpClient}.
+ * HttpRequestRetryStrategy which will be used to create {@link org.apache.hc.client5.http.classic.HttpClient}.
*
* The value MUST be an instance of {@link org.apache.hc.client5.http.HttpRequestRetryStrategy}.
*
diff --git a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java
index 13b827910fc..9d101055f27 100644
--- a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java
+++ b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java
@@ -107,18 +107,21 @@
*
* The following properties are only supported at construction of this class:
*
+ * {@link Apache5ClientProperties#CONNECTION_CLOSING_STRATEGY}
* {@link Apache5ClientProperties#CONNECTION_MANAGER}
- * {@link Apache5ClientProperties#REQUEST_CONFIG}
- * {@link Apache5ClientProperties#CREDENTIALS_PROVIDER}
+ * {@link Apache5ClientProperties#CONNECTION_MANAGER_SHARED}
* {@link Apache5ClientProperties#DISABLE_COOKIES}
+ * {@link Apache5ClientProperties#CREDENTIALS_PROVIDER}
* {@link Apache5ClientProperties#KEEPALIVE_STRATEGY}
+ * {@link Apache5ClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_URI}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_USERNAME}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}
* {@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING} - default value is {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED}
- * {@link Apache5ClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}
+ * {@link Apache5ClientProperties#REQUEST_CONFIG}
* {@link Apache5ClientProperties#RETRY_STRATEGY}
* {@link Apache5ClientProperties#REUSE_STRATEGY}
+ * {@link Apache5ClientProperties#USE_SYSTEM_PROPERTIES}
*
*
* This connector uses {@link RequestEntityProcessing#CHUNKED chunked encoding} as a default setting. This can
diff --git a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectorProvider.java b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectorProvider.java
index 9a32a2ce3cd..7f5d8828298 100644
--- a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectorProvider.java
+++ b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectorProvider.java
@@ -32,19 +32,22 @@
*
* The following connector configuration properties are supported:
*
+ * {@link Apache5ClientProperties#CONNECTION_CLOSING_STRATEGY}
* {@link Apache5ClientProperties#CONNECTION_MANAGER}
- * {@link Apache5ClientProperties#REQUEST_CONFIG}
- * {@link Apache5ClientProperties#CREDENTIALS_PROVIDER}
+ * {@link Apache5ClientProperties#CONNECTION_MANAGER_SHARED}
* {@link Apache5ClientProperties#DISABLE_COOKIES}
+ * {@link Apache5ClientProperties#CREDENTIALS_PROVIDER}
* {@link Apache5ClientProperties#KEEPALIVE_STRATEGY}
+ * {@link Apache5ClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_URI}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_USERNAME}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}
* {@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING}
* - default value is {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED}
- * {@link Apache5ClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}
+ * {@link Apache5ClientProperties#REQUEST_CONFIG}
* {@link Apache5ClientProperties#RETRY_STRATEGY}
* {@link Apache5ClientProperties#REUSE_STRATEGY}
+ * {@link Apache5ClientProperties#USE_SYSTEM_PROPERTIES}
*
*
*
diff --git a/connectors/jdk-connector/src/main/java/org/glassfish/jersey/jdk/connector/JdkConnectorProperties.java b/connectors/jdk-connector/src/main/java/org/glassfish/jersey/jdk/connector/JdkConnectorProperties.java
index 190232f94b5..9e7acdd83e4 100644
--- a/connectors/jdk-connector/src/main/java/org/glassfish/jersey/jdk/connector/JdkConnectorProperties.java
+++ b/connectors/jdk-connector/src/main/java/org/glassfish/jersey/jdk/connector/JdkConnectorProperties.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -60,7 +60,7 @@ public final class JdkConnectorProperties {
* Value is expected to be positive {@link Integer}. Default value is {@value #DEFAULT_MAX_REDIRECTS}.
*
* HTTP redirection must be enabled by property {@link org.glassfish.jersey.client.ClientProperties#FOLLOW_REDIRECTS},
- * otherwise {@code MAX_HEADER_SIZE} is not applied.
+ * otherwise {@code MAX_REDIRECTS} is not applied.
*
* @see org.glassfish.jersey.client.ClientProperties#FOLLOW_REDIRECTS
* @see org.glassfish.jersey.jdk.connector.internal.RedirectException
@@ -70,14 +70,14 @@ public final class JdkConnectorProperties {
/**
* To set the cookie policy of this cookie manager.
*
- * The default value is ACCEPT_ORIGINAL_SERVER.
+ * The default value is {@link CookiePolicy#ACCEPT_ORIGINAL_SERVER}.
*
* @see java.net.CookieManager
*/
public static final String COOKIE_POLICY = "jersey.config.client.JdkConnectorProvider.cookiePolicy";
/**
- * A maximal number of open connection to each destination. A destination is determined by the following triple:
+ * A maximum number of open connections per each destination. A destination is determined by the following triple:
*
* host
* port
diff --git a/connectors/jdk-connector/src/main/java/org/glassfish/jersey/jdk/connector/internal/RedirectException.java b/connectors/jdk-connector/src/main/java/org/glassfish/jersey/jdk/connector/internal/RedirectException.java
index 65aec26b796..0e8e672b5a8 100644
--- a/connectors/jdk-connector/src/main/java/org/glassfish/jersey/jdk/connector/internal/RedirectException.java
+++ b/connectors/jdk-connector/src/main/java/org/glassfish/jersey/jdk/connector/internal/RedirectException.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,7 +25,7 @@
*
*
* the chained redirection count exceeds the value of
- * {@link org.glassfish.jersey.client.JdkConnectorProvider#MAX_REDIRECTS}
+ * {@link org.glassfish.jersey.jdk.connector.JdkConnectorProperties#MAX_REDIRECTS}
*
*
* or an infinite redirection loop is detected
diff --git a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java
index 7b860c32146..ef2c8bef11b 100644
--- a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java
+++ b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -70,7 +70,7 @@ private JettyClientProperties() {
* that is stored in a truststore.
*
* The value MUST be an instance of {@link java.lang.Boolean}.
- * If the property is absent the default value is {@code true}
+ * If the property is absent the default value is {@code true}.
*/
public static final String ENABLE_SSL_HOSTNAME_VERIFICATION =
"jersey.config.jetty.client.enableSslHostnameVerification";
diff --git a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java
index 46a938b555f..780adc1e8a5 100644
--- a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java
+++ b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -92,8 +92,10 @@
* {@link ClientProperties#PROXY_USERNAME}
* {@link ClientProperties#PROXY_PASSWORD}
* {@link ClientProperties#PROXY_PASSWORD}
+ * {@link JettyClientProperties#DISABLE_COOKIES} *
+ * {@link JettyClientProperties#ENABLE_SSL_HOSTNAME_VERIFICATION}
* {@link JettyClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}
- * {@link JettyClientProperties#DISABLE_COOKIES}
+ * {@link JettyClientProperties#SYNC_LISTENER_RESPONSE_MAX_SIZE}
*
*
* This transport supports both synchronous and asynchronous processing of client requests.
diff --git a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnectorProvider.java b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnectorProvider.java
index e59ae71139a..0d1e084226e 100644
--- a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnectorProvider.java
+++ b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnectorProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -40,8 +40,10 @@
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_USERNAME}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}
* {@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}
+ * {@link JettyClientProperties#DISABLE_COOKIES} *
+ * {@link JettyClientProperties#ENABLE_SSL_HOSTNAME_VERIFICATION}
* {@link JettyClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}
- * {@link JettyClientProperties#DISABLE_COOKIES}
+ * {@link JettyClientProperties#SYNC_LISTENER_RESPONSE_MAX_SIZE}
*
*
*
diff --git a/docs/src/main/docbook/appendix-properties.xml b/docs/src/main/docbook/appendix-properties.xml
index 5c3455ed12d..b957da73985 100644
--- a/docs/src/main/docbook/appendix-properties.xml
+++ b/docs/src/main/docbook/appendix-properties.xml
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
+
+ org.glassfish.jersey.ext
+ jersey-spring6
+ ${project.version}
+
org.glassfish.jersey.ext
jersey-declarative-linking
diff --git a/ext/pom.xml b/ext/pom.xml
index 2c6e1500d43..fa7003a00b2 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -51,10 +51,7 @@
mvc-mustache
proxy-client
rx
-
+ spring6
wadl-doclet
microprofile
diff --git a/ext/spring4/pom.xml b/ext/spring4/pom.xml
deleted file mode 100644
index e436f3da1bf..00000000000
--- a/ext/spring4/pom.xml
+++ /dev/null
@@ -1,225 +0,0 @@
-
-
-
-
-
- 4.0.0
-
-
- org.glassfish.jersey.ext
- project
- 3.0.0-SNAPSHOT
-
-
- jersey-spring4
- jersey-spring4
-
- jar
-
-
- Jersey extension module providing support for Spring 4 integration.
-
-
-
-
- org.glassfish.jersey.core
- jersey-server
- ${project.version}
-
-
-
- org.glassfish.jersey.inject
- jersey-hk2
- ${project.version}
-
-
-
- org.glassfish.jersey.containers
- jersey-container-servlet-core
- ${project.version}
-
-
-
- org.glassfish.jersey.test-framework.providers
- jersey-test-framework-provider-grizzly2
- ${project.version}
- test
-
-
-
- commons-logging
- commons-logging
- 1.2
- test
-
-
-
- org.glassfish.hk2
- hk2
- ${hk2.version}
-
-
-
- org.glassfish.hk2
- spring-bridge
- ${hk2.version}
-
-
- jakarta.inject
- jakarta.inject-api
-
-
- org.glassfish.hk2
- hk2-api
-
-
-
-
-
- org.springframework
- spring-beans
- ${spring4.version}
-
-
-
- org.springframework
- spring-core
- ${spring4.version}
-
-
- commons-logging
- commons-logging
-
-
-
-
-
- org.springframework
- spring-web
- ${spring4.version}
-
-
-
- org.springframework
- spring-aop
- ${spring4.version}
-
-
-
- jakarta.servlet
- jakarta.servlet-api
- ${servlet4.version}
- provided
-
-
-
- org.glassfish.jersey.test-framework
- jersey-test-framework-core
- ${project.version}
- test
-
-
-
- org.aspectj
- aspectjrt
- 1.6.11
- test
-
-
- org.aspectj
- aspectjweaver
- 1.6.11
- test
-
-
-
-
-
-
-
- com.sun.istack
- istack-commons-maven-plugin
- true
-
-
- org.codehaus.mojo
- build-helper-maven-plugin
- true
-
-
-
-
-
-
- jakartification_exclude_tests
-
- [1.8,)
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
- true
-
-
-
-
-
-
- delayed-strategy-skip-test
-
-
- org.glassfish.jersey.injection.manager.strategy
- delayed
-
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
- true
-
-
-
-
-
-
- ignore.on.jdk16
-
-
- [16,)
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
- true
-
-
-
-
-
-
-
diff --git a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/AutowiredInjectResolver.java b/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/AutowiredInjectResolver.java
deleted file mode 100644
index 1158fc60caf..00000000000
--- a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/AutowiredInjectResolver.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring;
-
-import java.lang.reflect.AnnotatedElement;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.Field;
-import java.lang.reflect.Method;
-import java.util.HashSet;
-import java.util.Set;
-import java.util.logging.Logger;
-
-import jakarta.inject.Singleton;
-
-import org.glassfish.jersey.internal.inject.Injectee;
-import org.glassfish.jersey.internal.inject.InjectionResolver;
-
-import org.springframework.beans.factory.NoSuchBeanDefinitionException;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Qualifier;
-import org.springframework.beans.factory.config.DependencyDescriptor;
-import org.springframework.context.ApplicationContext;
-import org.springframework.core.MethodParameter;
-
-/**
- * HK2 injection resolver for Spring framework {@link Autowired} annotation injection.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- * @author Vetle Leinonen-Roeim (vetle at roeim.net)
- */
-@Singleton
-public class AutowiredInjectResolver implements InjectionResolver {
-
- private static final Logger LOGGER = Logger.getLogger(AutowiredInjectResolver.class.getName());
-
- private volatile ApplicationContext ctx;
-
- /**
- * Create a new instance.
- *
- * @param ctx Spring application context.
- */
- public AutowiredInjectResolver(ApplicationContext ctx) {
- this.ctx = ctx;
- }
-
- @Override
- public Object resolve(Injectee injectee) {
- AnnotatedElement parent = injectee.getParent();
- String beanName = null;
- if (parent != null) {
- Qualifier an = parent.getAnnotation(Qualifier.class);
- if (an != null) {
- beanName = an.value();
- }
- }
- boolean required = parent != null ? parent.getAnnotation(Autowired.class).required() : false;
- return getBeanFromSpringContext(beanName, injectee, required);
- }
-
- private Object getBeanFromSpringContext(String beanName, Injectee injectee, final boolean required) {
- try {
- DependencyDescriptor dependencyDescriptor = createSpringDependencyDescriptor(injectee);
- Set autowiredBeanNames = new HashSet<>(1);
- autowiredBeanNames.add(beanName);
- return ctx.getAutowireCapableBeanFactory().resolveDependency(dependencyDescriptor, null,
- autowiredBeanNames, null);
- } catch (NoSuchBeanDefinitionException e) {
- if (required) {
- LOGGER.warning(e.getMessage());
- throw e;
- }
- return null;
- }
- }
-
- private DependencyDescriptor createSpringDependencyDescriptor(final Injectee injectee) {
- AnnotatedElement annotatedElement = injectee.getParent();
-
- if (annotatedElement.getClass().isAssignableFrom(Field.class)) {
- return new DependencyDescriptor((Field) annotatedElement, !injectee.isOptional());
- } else if (annotatedElement.getClass().isAssignableFrom(Method.class)) {
- return new DependencyDescriptor(
- new MethodParameter((Method) annotatedElement, injectee.getPosition()), !injectee.isOptional());
- } else {
- return new DependencyDescriptor(
- new MethodParameter((Constructor) annotatedElement, injectee.getPosition()), !injectee.isOptional());
- }
- }
-
- @Override
- public boolean isConstructorParameterIndicator() {
- return false;
- }
-
- @Override
- public boolean isMethodParameterIndicator() {
- return false;
- }
-
- @Override
- public Class getAnnotation() {
- return Autowired.class;
- }
-}
diff --git a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/scope/JaxrsRequestAttributes.java b/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/scope/JaxrsRequestAttributes.java
deleted file mode 100644
index ec22efaeb60..00000000000
--- a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/scope/JaxrsRequestAttributes.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.scope;
-
-import jakarta.ws.rs.container.ContainerRequestContext;
-
-import org.glassfish.jersey.server.spring.LocalizationMessages;
-import org.springframework.util.StringUtils;
-import org.springframework.web.context.request.AbstractRequestAttributes;
-
-/**
- * JAX-RS based Spring RequestAttributes implementation.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- * @author Marek Potociar
- */
-class JaxrsRequestAttributes extends AbstractRequestAttributes {
-
- private final ContainerRequestContext requestContext;
-
- /**
- * Create a new instance.
- *
- * @param requestContext JAX-RS container request context
- */
- public JaxrsRequestAttributes(ContainerRequestContext requestContext) {
- this.requestContext = requestContext;
- }
-
- @Override
- protected void updateAccessedSessionAttributes() {
- // sessions not supported
- }
-
- @Override
- public Object getAttribute(String name, int scope) {
- return requestContext.getProperty(name);
- }
-
- @Override
- public void setAttribute(String name, Object value, int scope) {
- requestContext.setProperty(name, value);
- }
-
- @Override
- public void removeAttribute(String name, int scope) {
- requestContext.removeProperty(name);
- }
-
- @Override
- public String[] getAttributeNames(int scope) {
- if (!isRequestActive()) {
- throw new IllegalStateException(LocalizationMessages.NOT_IN_REQUEST_SCOPE());
- }
- return StringUtils.toStringArray(requestContext.getPropertyNames());
- }
-
- @Override
- public void registerDestructionCallback(String name, Runnable callback, int scope) {
- registerRequestDestructionCallback(name, callback);
- }
-
- @Override
- public Object resolveReference(String key) {
- if (REFERENCE_REQUEST.equals(key)) {
- return requestContext;
- }
- return null;
- }
-
- @Override
- public String getSessionId() {
- return null;
- }
-
- @Override
- public Object getSessionMutex() {
- return null;
- }
-}
diff --git a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/scope/JaxrsServletRequestAttributes.java b/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/scope/JaxrsServletRequestAttributes.java
deleted file mode 100644
index a3ac9d12356..00000000000
--- a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/scope/JaxrsServletRequestAttributes.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.scope;
-
-import jakarta.ws.rs.container.ContainerRequestContext;
-
-import jakarta.servlet.http.HttpServletRequest;
-
-import org.springframework.web.context.request.ServletRequestAttributes;
-
-/**
- * JAX-RS based Spring RequestAttributes implementation for Servlet-based applications.
- *
- * @author Marek Potociar
- */
-class JaxrsServletRequestAttributes extends ServletRequestAttributes {
-
- private final ContainerRequestContext requestContext;
-
- /**
- * Create a new JAX-RS ServletRequestAttributes instance for the given request.
- *
- * @param request current HTTP request
- * @param requestContext JAX-RS request context
- */
- public JaxrsServletRequestAttributes(final HttpServletRequest request, final ContainerRequestContext requestContext) {
- super(request);
- this.requestContext = requestContext;
- }
-
- @Override
- public Object resolveReference(String key) {
- if (REFERENCE_REQUEST.equals(key)) {
- return this.requestContext;
- } else if (REFERENCE_SESSION.equals(key)) {
- return super.getSession(true);
- } else {
- return null;
- }
- }
-}
diff --git a/ext/spring4/src/main/resources/org/glassfish/jersey/server/spring/localization.properties b/ext/spring4/src/main/resources/org/glassfish/jersey/server/spring/localization.properties
deleted file mode 100644
index 6fd0a062703..00000000000
--- a/ext/spring4/src/main/resources/org/glassfish/jersey/server/spring/localization.properties
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-# Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
-#
-# This program and the accompanying materials are made available under the
-# terms of the Eclipse Public License v. 2.0, which is available at
-# http://www.eclipse.org/legal/epl-2.0.
-#
-# This Source Code may also be made available under the following Secondary
-# Licenses when the conditions for such availability set forth in the
-# Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
-# version 2 with the GNU Classpath Exception, which is available at
-# https://www.gnu.org/software/classpath/license.html.
-#
-# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-#
-
-no.beans.found.for.type=No beans found. Resolution failed for type {0}.
-ctx.lookup.started=Spring context lookup started.
-ctx.lookup.failed=Spring context lookup failed, skipping spring component provider initialization.
-ctx.lookup.sucessful=Spring context lookup done.
-spring.component.provider.initialized=Spring component provider initialized.
-none.or.multiple.beans.available=None or multiple beans found in Spring context for type {0}, skipping the type.
-bean.registered=Spring managed bean, {0}, registered with HK2.
-registering.ctx.loader.listener=Registering Spring ContextLoaderListener
-skipping.ctx.lodaer.listener.registration=Presuming Spring ContextLoaderListener was manually registered. Skipping context loader registration.
-not.in.request.scope=Cannot ask for request attributes - request is not active anymore!
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/NoComponent.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/NoComponent.java
deleted file mode 100644
index 111361c3783..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/NoComponent.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring;
-
-public class NoComponent {
-
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/SpringTestConfiguration.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/SpringTestConfiguration.java
deleted file mode 100644
index 5a8123cc423..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/SpringTestConfiguration.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring;
-
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
-
-@Configuration
-@ComponentScan(basePackages = "org.glassfish.jersey.server.spring")
-public class SpringTestConfiguration {
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/TestComponent2.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/TestComponent2.java
deleted file mode 100644
index 792d9b85e8b..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/TestComponent2.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring;
-
-public interface TestComponent2 {
- String result();
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/TestComponent2Impl2.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/TestComponent2Impl2.java
deleted file mode 100644
index 9900cd476db..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/TestComponent2Impl2.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring;
-
-import org.springframework.stereotype.Component;
-
-@Component
-public class TestComponent2Impl2 implements TestComponent2 {
- @Override
- public String result() {
- return "test ok";
- }
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4jJerseyConfig.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4jJerseyConfig.java
deleted file mode 100644
index 4506c7ecaf2..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4jJerseyConfig.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.aspect4j;
-
-import org.glassfish.jersey.server.ResourceConfig;
-import org.glassfish.jersey.server.spring.scope.RequestContextFilter;
-
-public class Aspect4jJerseyConfig extends ResourceConfig {
-
- public Aspect4jJerseyConfig() {
- register(RequestContextFilter.class);
- register(NoComponentResource.class);
- register(ComponentResource.class);
- }
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/ComponentResource.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/ComponentResource.java
deleted file mode 100644
index 9b96e32de1d..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/ComponentResource.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.aspect4j;
-
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.core.Context;
-import jakarta.ws.rs.core.UriInfo;
-
-import org.glassfish.jersey.server.spring.TestComponent1;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-@Path("/")
-@Component
-public class ComponentResource {
-
- @Autowired
- private TestComponent1 testComponent1;
- @Context
- private UriInfo uriInfo;
-
- @Path("test2")
- @GET
- public String test2() {
- return testComponent1.result();
- }
-
- @Path("JERSEY-3126")
- @GET
- public String JERSEY_3126() {
- return uriInfo == null ? "test failed" : "test ok";
- }
-
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/NoComponentResource.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/NoComponentResource.java
deleted file mode 100644
index bb5bf8aee71..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/NoComponentResource.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.aspect4j;
-
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-
-import org.glassfish.jersey.server.spring.TestComponent1;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-@Path("/")
-public class NoComponentResource {
-
- @Autowired
- private TestComponent1 testComponent1;
-
- @Path("test1")
- @GET
- public String test1() {
- return testComponent1.result();
- }
-
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTest.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTest.java
deleted file mode 100644
index 141d16e7896..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTest.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.fieldinjection;
-
-import jakarta.ws.rs.core.Application;
-
-import org.glassfish.jersey.server.spring.SpringTestConfiguration;
-import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-
-import static org.junit.Assert.assertEquals;
-
-public class SpringFieldInjectionTest extends JerseyTest {
-
- @Override
- protected Application configure() {
- ApplicationContext context = new AnnotationConfigApplicationContext(SpringTestConfiguration.class);
- return new SpringFieldInjectionJerseyTestConfig()
- .property("contextConfig", context);
- }
-
- @Test
- public void testInjectionOfSingleBean() {
- String result = target("test1").request().get(String.class);
- assertEquals("test ok", result);
- }
-
- @Test
- public void testInjectionOfListOfBeans() {
- String result = target("test2").request().get(String.class);
- assertEquals("test ok", result);
- }
-
- @Test
- public void testInjectionOfSetOfBeans() {
- String result = target("test3").request().get(String.class);
- assertEquals("test ok", result);
- }
-
- @Test
- public void JERSEY_2643() {
- String result = target("JERSEY-2643").request().get(String.class);
- assertEquals("test ok", result);
- }
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTestResource.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTestResource.java
deleted file mode 100644
index 941e311089b..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTestResource.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.fieldinjection;
-
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-
-import org.glassfish.jersey.server.spring.NoComponent;
-import org.glassfish.jersey.server.spring.TestComponent1;
-import org.glassfish.jersey.server.spring.TestComponent2;
-import org.springframework.beans.factory.annotation.Autowired;
-
-@Path("/")
-public class SpringFieldInjectionTestResource {
-
- @Autowired
- private TestComponent1 testComponent1;
-
- @Autowired
- private List testComponent2List;
-
- @Autowired
- Set testComponent2Set;
-
- @Autowired(required = false)
- private NoComponent noComponent;
-
- @Path("test1")
- @GET
- public String test1() {
- return testComponent1.result();
- }
-
- @Path("test2")
- @GET
- public String test2() {
- return (testComponent2List.size() == 2 && "test ok".equals(testComponent2List.get(0).result())
- && "test ok".equals(testComponent2List.get(1).result())) ? "test ok" : "test failed";
- }
-
- @Path("test3")
- @GET
- public String test3() {
- Iterator iterator = testComponent2Set.iterator();
- return (testComponent2Set.size() == 2 && "test ok".equals(iterator.next().result())
- && "test ok".equals(iterator.next().result())) ? "test ok" : "test failed";
- }
-
- @Path("JERSEY-2643")
- @GET
- public String JERSEY_2643() {
- return noComponent == null ? "test ok" : "test failed";
- }
-
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/filter/Counter.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/filter/Counter.java
deleted file mode 100644
index 28de237b300..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/filter/Counter.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.filter;
-
-import org.springframework.stereotype.Component;
-
-@Component
-public class Counter {
-
- private int count = 0;
-
- public void inc() {
- count++;
- }
-
- public int getCount() {
- return count;
- }
-
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionJerseyTestConfig.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionJerseyTestConfig.java
deleted file mode 100644
index 5a9d3b75f77..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionJerseyTestConfig.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.methodinjection;
-
-import org.glassfish.jersey.server.spring.scope.RequestContextFilter;
-import org.glassfish.jersey.server.ResourceConfig;
-
-public class SpringMethodInjectionJerseyTestConfig extends ResourceConfig {
- public SpringMethodInjectionJerseyTestConfig() {
- register(RequestContextFilter.class);
- register(SpringMethodInjectionTestResource.class);
- }
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTest.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTest.java
deleted file mode 100644
index 3f66478a958..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTest.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.methodinjection;
-
-import static org.junit.Assert.assertEquals;
-
-import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-import org.glassfish.jersey.server.spring.SpringTestConfiguration;
-
-import jakarta.ws.rs.core.Application;
-
-public class SpringMethodInjectionTest extends JerseyTest {
-
- @Override
- protected Application configure() {
- ApplicationContext context = new AnnotationConfigApplicationContext(SpringTestConfiguration.class);
- return new SpringMethodInjectionJerseyTestConfig()
- .property("contextConfig", context);
- }
-
- @Test
- public void testInjectionOfSingleBean() {
- String result = target("test1").request().get(String.class);
- assertEquals("test ok", result);
- }
-
- @Test
- public void testInjectionOfListOfBeans() {
- String result = target("test2").request().get(String.class);
- assertEquals("test ok", result);
- }
-
- @Test
- public void testInjectionOfSetOfBeans() {
- String result = target("test3").request().get(String.class);
- assertEquals("test ok", result);
- }
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTestResource.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTestResource.java
deleted file mode 100644
index 8a16bbef63d..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTestResource.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.methodinjection;
-
-import org.glassfish.jersey.server.spring.NoComponent;
-import org.glassfish.jersey.server.spring.TestComponent1;
-import org.springframework.beans.factory.annotation.Autowired;
-
-import java.util.List;
-import java.util.Set;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-
-@Path("/")
-public class SpringMethodInjectionTestResource {
-
- private TestComponent1 testComponent1;
- private List testComponent2List;
- private Set testComponent2Set;
- private NoComponent noComponent;
-
- @Autowired
- public void setTestComponent1(TestComponent1 testComponent1) {
- this.testComponent1 = testComponent1;
- }
-
- @Autowired
- public void setTestComponent2List(List testComponent2List) {
- this.testComponent2List = testComponent2List;
- }
-
- @Autowired
- public void setTestComponent2Set(Set testComponent2Set) {
- this.testComponent2Set = testComponent2Set;
- }
-
- @Autowired(required = false)
- public void setNoComponent(NoComponent noComponent) {
- this.noComponent = noComponent;
- }
-
- @Path("test1")
- @GET
- public String test1() {
- return testComponent1.result();
- }
-
- @Path("test2")
- @GET
- public String test2() {
- return (testComponent2List.size() == 2 && "test ok".equals(testComponent2List.get(0).result())
- && "test ok".equals(testComponent2List.get(1).result())) ? "test ok" : "test failed";
- }
-
- @Path("test3")
- @GET
- public String test3() {
- java.util.Iterator iterator = testComponent2Set.iterator();
- return (testComponent2Set.size() == 2 && "test ok".equals(iterator.next().result())
- && "test ok".equals(iterator.next().result())) ? "test ok" : "test failed";
- }
-
- @Path("JERSEY-2643")
- @GET
- public String JERSEY_2643() {
- return noComponent == null ? "test ok" : "test failed";
- }
-
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTestResource.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTestResource.java
deleted file mode 100644
index b7c56c964b5..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTestResource.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.parameterinjection;
-
-import org.glassfish.jersey.server.spring.TestComponent1;
-import org.glassfish.jersey.server.spring.TestComponent2;
-import org.springframework.beans.factory.annotation.Autowired;
-
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-
-@Path("/")
-public class SpringParameterInjectionTestResource {
-
- private final TestComponent1 testComponent1;
- private final List testComponent2List;
- private final Set testComponent2Set;
-
- @Autowired
- public SpringParameterInjectionTestResource(final TestComponent1 testComponent1,
- final List testComponent2List,
- final Set testComponent2Set) {
- this.testComponent1 = testComponent1;
- this.testComponent2List = testComponent2List;
- this.testComponent2Set = testComponent2Set;
- }
-
- @Path("test1")
- @GET
- public String test1() {
- return testComponent1.result();
- }
-
- @Path("test2")
- @GET
- public String test2() {
- return (testComponent2List.size() == 2 && "test ok".equals(testComponent2List.get(0).result())
- && "test ok".equals(testComponent2List.get(1).result())) ? "test ok" : "test failed";
- }
-
- @Path("test3")
- @GET
- public String test3() {
- Iterator iterator = testComponent2Set.iterator();
- return (testComponent2Set.size() == 2 && "test ok".equals(iterator.next().result())
- && "test ok".equals(iterator.next().result())) ? "test ok" : "test failed";
- }
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/DefaultTestService.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/DefaultTestService.java
deleted file mode 100644
index 040d05309a2..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/DefaultTestService.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.profiles;
-
-import org.springframework.stereotype.Component;
-
-@Component
-public class DefaultTestService implements TestService {
-
- @Override
- public String test() {
- return "default";
- }
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/DevTestService.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/DevTestService.java
deleted file mode 100644
index dc3c99543e1..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/DevTestService.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.profiles;
-
-import org.springframework.context.annotation.Primary;
-import org.springframework.context.annotation.Profile;
-import org.springframework.stereotype.Component;
-
-@Component
-@Primary
-@Profile("dev")
-public class DevTestService implements TestService {
-
- @Override
- public String test() {
- return "dev";
- }
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDefaultProfileResourceTest.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDefaultProfileResourceTest.java
deleted file mode 100644
index 3b1f6a8b694..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDefaultProfileResourceTest.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.profiles;
-
-import jakarta.ws.rs.core.Application;
-
-import org.glassfish.jersey.logging.LoggingFeature;
-import org.glassfish.jersey.server.ResourceConfig;
-import org.glassfish.jersey.server.spring.scope.RequestContextFilter;
-import org.glassfish.jersey.test.JerseyTest;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-
-public class SpringDefaultProfileResourceTest extends JerseyTest {
-
- @Override
- protected Application configure() {
- System.setProperty("spring.profiles.active", "");
- ApplicationContext context = new AnnotationConfigApplicationContext("org.glassfish.jersey.server.spring.profiles");
- return new ResourceConfig()
- .register(RequestContextFilter.class)
- .register(LoggingFeature.class)
- .packages("org.glassfish.jersey.server.spring.profiles")
- .property("contextConfig", context);
- }
-
- @Test
- public void shouldUseDefaultComponent() {
- final String result = target("spring-resource").request().get(String.class);
- Assert.assertEquals("default", result);
- }
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDevProfileResourceTest.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDevProfileResourceTest.java
deleted file mode 100644
index 2d7c5a184ed..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDevProfileResourceTest.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.profiles;
-
-import jakarta.ws.rs.core.Application;
-
-import org.glassfish.jersey.logging.LoggingFeature;
-import org.glassfish.jersey.server.ResourceConfig;
-import org.glassfish.jersey.server.spring.scope.RequestContextFilter;
-import org.glassfish.jersey.test.JerseyTest;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-
-public class SpringDevProfileResourceTest extends JerseyTest {
-
- @Override
- protected Application configure() {
- System.setProperty("spring.profiles.active", "dev");
- AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
- "org.glassfish.jersey.server.spring.profiles");
- return new ResourceConfig()
- .register(RequestContextFilter.class)
- .register(LoggingFeature.class)
- .packages("org.glassfish.jersey.server.spring.profiles")
- .property("contextConfig", context);
- }
-
- @Test
- public void shouldUseDevProfileBean() {
- final String result = target("spring-resource").request().get(String.class);
- Assert.assertEquals("dev", result);
- }
-}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringRequestResource.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringRequestResource.java
deleted file mode 100644
index e05de3da6c5..00000000000
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringRequestResource.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.profiles;
-
-import jakarta.inject.Singleton;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.Produces;
-import jakarta.ws.rs.core.MediaType;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-
-@Singleton
-@Path("spring-resource")
-@Service
-public class SpringRequestResource {
-
- @Autowired
- private TestService testService;
-
- @GET
- @Produces(MediaType.TEXT_PLAIN)
- public String getGoodbye() {
- return testService.test();
- }
-
-}
diff --git a/ext/spring5/pom.xml b/ext/spring5/pom.xml
deleted file mode 100644
index 4647434fddb..00000000000
--- a/ext/spring5/pom.xml
+++ /dev/null
@@ -1,206 +0,0 @@
-
-
-
-
-
- 4.0.0
-
-
- org.glassfish.jersey.ext
- project
- 3.0.0-SNAPSHOT
-
-
- jersey-spring5
- jersey-spring5
-
- jar
-
-
- Jersey extension module providing support for Spring 5 integration.
-
-
-
-
- org.glassfish.jersey.core
- jersey-server
- ${project.version}
-
-
-
- org.glassfish.jersey.inject
- jersey-hk2
- ${project.version}
-
-
-
- org.glassfish.jersey.containers
- jersey-container-servlet-core
- ${project.version}
-
-
-
- org.glassfish.jersey.test-framework.providers
- jersey-test-framework-provider-grizzly2
- ${project.version}
- test
-
-
-
- commons-logging
- commons-logging
- 1.2
- test
-
-
-
- org.glassfish.hk2
- hk2
- ${hk2.version}
-
-
-
- org.glassfish.hk2
- spring-bridge
- ${hk2.version}
-
-
- jakarta.inject
- jakarta.inject
-
-
- org.glassfish.hk2
- hk2-api
-
-
- org.springframework
- spring-context
-
-
-
-
-
- org.springframework
- spring-beans
- ${spring5.version}
-
-
-
- org.springframework
- spring-core
- ${spring5.version}
-
-
- commons-logging
- commons-logging
-
-
-
-
-
- org.springframework
- spring-context
- ${spring5.version}
-
-
- commons-logging
- commons-logging
-
-
-
-
-
- org.springframework
- spring-web
- ${spring5.version}
-
-
-
- org.springframework
- spring-aop
- ${spring5.version}
-
-
-
- jakarta.servlet
- jakarta.servlet-api
- ${servlet4.version}
- provided
-
-
-
- org.glassfish.jersey.test-framework
- jersey-test-framework-core
- ${project.version}
- test
-
-
-
- org.aspectj
- aspectjrt
- 1.6.11
- test
-
-
- org.aspectj
- aspectjweaver
- 1.6.11
- test
-
-
-
-
-
-
-
- com.sun.istack
- istack-commons-maven-plugin
- true
-
-
- org.codehaus.mojo
- build-helper-maven-plugin
- true
-
-
-
-
-
-
- delayed-strategy-skip-test
-
-
- org.glassfish.jersey.injection.manager.strategy
- delayed
-
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
- true
-
-
-
-
-
-
-
diff --git a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/SpringComponentProvider.java b/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/SpringComponentProvider.java
deleted file mode 100644
index e8df9402ad4..00000000000
--- a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/SpringComponentProvider.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring;
-
-import java.util.Set;
-import java.util.function.Supplier;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import jakarta.servlet.ServletContext;
-
-import org.glassfish.jersey.inject.hk2.ImmediateHk2InjectionManager;
-import org.glassfish.jersey.internal.inject.Binding;
-import org.glassfish.jersey.internal.inject.Bindings;
-import org.glassfish.jersey.internal.inject.InjectionManager;
-import org.glassfish.jersey.server.ApplicationHandler;
-import org.glassfish.jersey.server.spi.ComponentProvider;
-
-import org.jvnet.hk2.spring.bridge.api.SpringBridge;
-import org.jvnet.hk2.spring.bridge.api.SpringIntoHK2Bridge;
-
-import org.springframework.aop.framework.Advised;
-import org.springframework.beans.factory.BeanFactoryUtils;
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-import org.springframework.core.annotation.AnnotationUtils;
-import org.springframework.stereotype.Component;
-import org.springframework.web.context.support.WebApplicationContextUtils;
-
-/**
- * Custom ComponentProvider class.
- * Responsible for 1) bootstrapping Jersey 2 Spring integration and
- * 2) making Jersey skip JAX-RS Spring component life-cycle management and leave it to us.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-public class SpringComponentProvider implements ComponentProvider {
-
- private static final Logger LOGGER = Logger.getLogger(SpringComponentProvider.class.getName());
- private static final String DEFAULT_CONTEXT_CONFIG_LOCATION = "applicationContext.xml";
- private static final String PARAM_CONTEXT_CONFIG_LOCATION = "contextConfigLocation";
- private static final String PARAM_SPRING_CONTEXT = "contextConfig";
-
- private volatile InjectionManager injectionManager;
- private volatile ApplicationContext ctx;
-
- @Override
- public void initialize(InjectionManager injectionManager) {
- this.injectionManager = injectionManager;
-
- if (LOGGER.isLoggable(Level.FINE)) {
- LOGGER.fine(LocalizationMessages.CTX_LOOKUP_STARTED());
- }
-
- ServletContext sc = injectionManager.getInstance(ServletContext.class);
-
- if (sc != null) {
- // servlet container
- ctx = WebApplicationContextUtils.getWebApplicationContext(sc);
- } else {
- // non-servlet container
- ctx = createSpringContext();
- }
- if (ctx == null) {
- LOGGER.severe(LocalizationMessages.CTX_LOOKUP_FAILED());
- return;
- }
- LOGGER.config(LocalizationMessages.CTX_LOOKUP_SUCESSFUL());
-
- // initialize HK2 spring-bridge
-
- ImmediateHk2InjectionManager hk2InjectionManager = (ImmediateHk2InjectionManager) injectionManager;
- SpringBridge.getSpringBridge().initializeSpringBridge(hk2InjectionManager.getServiceLocator());
- SpringIntoHK2Bridge springBridge = injectionManager.getInstance(SpringIntoHK2Bridge.class);
- springBridge.bridgeSpringBeanFactory(ctx);
-
- injectionManager.register(Bindings.injectionResolver(new AutowiredInjectResolver(ctx)));
- injectionManager.register(Bindings.service(ctx).to(ApplicationContext.class).named("SpringContext"));
- LOGGER.config(LocalizationMessages.SPRING_COMPONENT_PROVIDER_INITIALIZED());
- }
-
- // detect JAX-RS classes that are also Spring @Components.
- // register these with HK2 ServiceLocator to manage their lifecycle using Spring.
- @Override
- public boolean bind(Class> component, Set> providerContracts) {
-
- if (ctx == null) {
- return false;
- }
-
- if (AnnotationUtils.findAnnotation(component, Component.class) != null) {
- String[] beanNames = BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ctx, component);
- if (beanNames == null || beanNames.length != 1) {
- LOGGER.severe(LocalizationMessages.NONE_OR_MULTIPLE_BEANS_AVAILABLE(component));
- return false;
- }
- String beanName = beanNames[0];
-
- Binding binding = Bindings.supplier(new SpringManagedBeanFactory(ctx, injectionManager, beanName))
- .to(component)
- .to(providerContracts);
- injectionManager.register(binding);
-
- LOGGER.config(LocalizationMessages.BEAN_REGISTERED(beanNames[0]));
- return true;
- }
- return false;
- }
-
- @Override
- public void done() {
- }
-
- private ApplicationContext createSpringContext() {
- ApplicationHandler applicationHandler = injectionManager.getInstance(ApplicationHandler.class);
- ApplicationContext springContext = (ApplicationContext) applicationHandler.getConfiguration()
- .getProperty(PARAM_SPRING_CONTEXT);
- if (springContext == null) {
- String contextConfigLocation = (String) applicationHandler.getConfiguration()
- .getProperty(PARAM_CONTEXT_CONFIG_LOCATION);
- springContext = createXmlSpringConfiguration(contextConfigLocation);
- }
- return springContext;
- }
-
- private ApplicationContext createXmlSpringConfiguration(String contextConfigLocation) {
- if (contextConfigLocation == null) {
- contextConfigLocation = DEFAULT_CONTEXT_CONFIG_LOCATION;
- }
- return ctx = new ClassPathXmlApplicationContext(contextConfigLocation, "jersey-spring-applicationContext.xml");
- }
-
- private static class SpringManagedBeanFactory implements Supplier {
-
- private final ApplicationContext ctx;
- private final InjectionManager injectionManager;
- private final String beanName;
-
- private SpringManagedBeanFactory(ApplicationContext ctx, InjectionManager injectionManager, String beanName) {
- this.ctx = ctx;
- this.injectionManager = injectionManager;
- this.beanName = beanName;
- }
-
- @Override
- public Object get() {
- Object bean = ctx.getBean(beanName);
- if (bean instanceof Advised) {
- try {
- // Unwrap the bean and inject the values inside of it
- Object localBean = ((Advised) bean).getTargetSource().getTarget();
- injectionManager.inject(localBean);
- } catch (Exception e) {
- // Ignore and let the injection happen as it normally would.
- injectionManager.inject(bean);
- }
- } else {
- injectionManager.inject(bean);
- }
- return bean;
- }
- }
-}
diff --git a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/SpringWebApplicationInitializer.java b/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/SpringWebApplicationInitializer.java
deleted file mode 100644
index c3bac70aef9..00000000000
--- a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/SpringWebApplicationInitializer.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring;
-
-import java.util.logging.Logger;
-
-import jakarta.servlet.ServletContext;
-import jakarta.servlet.ServletException;
-
-import org.springframework.web.WebApplicationInitializer;
-
-/**
- * Spring WebApplicationInitializer implementation initializes Spring context by
- * adding a Spring ContextLoaderListener to the ServletContext.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-public class SpringWebApplicationInitializer implements WebApplicationInitializer {
-
- private static final Logger LOGGER = Logger.getLogger(SpringWebApplicationInitializer.class.getName());
-
- private static final String PAR_NAME_CTX_CONFIG_LOCATION = "contextConfigLocation";
-
- @Override
- public void onStartup(ServletContext sc) throws ServletException {
- if (sc.getInitParameter(PAR_NAME_CTX_CONFIG_LOCATION) == null) {
- LOGGER.config(LocalizationMessages.REGISTERING_CTX_LOADER_LISTENER());
- sc.setInitParameter(PAR_NAME_CTX_CONFIG_LOCATION, "classpath:applicationContext.xml");
- sc.addListener("org.springframework.web.context.ContextLoaderListener");
- sc.addListener("org.springframework.web.context.request.RequestContextListener");
- } else {
- LOGGER.config(LocalizationMessages.SKIPPING_CTX_LODAER_LISTENER_REGISTRATION());
- }
- }
-}
diff --git a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/package-info.java b/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/package-info.java
deleted file mode 100644
index 6e7b71a7670..00000000000
--- a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/package-info.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-/**
- * Jersey server-side Spring 5 integration classes.
- * @since 2.29
- */
-package org.glassfish.jersey.server.spring;
diff --git a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/scope/RequestContextFilter.java b/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/scope/RequestContextFilter.java
deleted file mode 100644
index de87d7e91db..00000000000
--- a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/scope/RequestContextFilter.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.scope;
-
-import java.io.IOException;
-
-import jakarta.ws.rs.container.ContainerRequestContext;
-import jakarta.ws.rs.container.ContainerRequestFilter;
-import jakarta.ws.rs.container.ContainerResponseContext;
-import jakarta.ws.rs.container.ContainerResponseFilter;
-import jakarta.ws.rs.container.PreMatching;
-import jakarta.ws.rs.ext.Provider;
-
-import jakarta.inject.Inject;
-import jakarta.servlet.http.HttpServletRequest;
-
-import org.glassfish.jersey.internal.inject.InjectionManager;
-
-import org.springframework.context.ApplicationContext;
-import org.springframework.web.context.WebApplicationContext;
-import org.springframework.web.context.request.AbstractRequestAttributes;
-import org.springframework.web.context.request.RequestAttributes;
-import org.springframework.web.context.request.RequestContextHolder;
-
-/**
- * Spring filter to provide a bridge between JAX-RS and Spring request attributes.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- * @author Jakub Podlesak
- * @author Marek Potociar
- */
-@Provider
-@PreMatching
-public final class RequestContextFilter implements ContainerRequestFilter, ContainerResponseFilter {
-
- private static final String REQUEST_ATTRIBUTES_PROPERTY = RequestContextFilter.class.getName() + ".REQUEST_ATTRIBUTES";
-
- private final SpringAttributeController attributeController;
-
- private static final SpringAttributeController EMPTY_ATTRIBUTE_CONTROLLER = new SpringAttributeController() {
- @Override
- public void setAttributes(final ContainerRequestContext requestContext) {
- }
-
- @Override
- public void resetAttributes(final ContainerRequestContext requestContext) {
- }
- };
-
- private interface SpringAttributeController {
-
- void setAttributes(final ContainerRequestContext requestContext);
-
- void resetAttributes(final ContainerRequestContext requestContext);
- }
-
- /**
- * Create a new request context filter instance.
- *
- * @param injectionManager injection manager.
- */
- @Inject
- public RequestContextFilter(final InjectionManager injectionManager) {
- final ApplicationContext appCtx = injectionManager.getInstance(ApplicationContext.class);
- final boolean isWebApp = appCtx instanceof WebApplicationContext;
-
- attributeController = appCtx != null ? new SpringAttributeController() {
-
- @Override
- public void setAttributes(final ContainerRequestContext requestContext) {
- final RequestAttributes attributes;
- if (isWebApp) {
- final HttpServletRequest httpRequest = injectionManager.getInstance(HttpServletRequest.class);
- attributes = new JaxrsServletRequestAttributes(httpRequest, requestContext);
- } else {
- attributes = new JaxrsRequestAttributes(requestContext);
- }
- requestContext.setProperty(REQUEST_ATTRIBUTES_PROPERTY, attributes);
- RequestContextHolder.setRequestAttributes(attributes);
- }
-
- @Override
- public void resetAttributes(final ContainerRequestContext requestContext) {
- final AbstractRequestAttributes attributes =
- (AbstractRequestAttributes) requestContext.getProperty(REQUEST_ATTRIBUTES_PROPERTY);
- RequestContextHolder.resetRequestAttributes();
- attributes.requestCompleted();
- }
- } : EMPTY_ATTRIBUTE_CONTROLLER;
- }
-
- @Override
- public void filter(final ContainerRequestContext requestContext) throws IOException {
- attributeController.setAttributes(requestContext);
- }
-
- @Override
- public void filter(final ContainerRequestContext requestContext, final ContainerResponseContext responseContext)
- throws IOException {
- attributeController.resetAttributes(requestContext);
- }
-}
diff --git a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/scope/package-info.java b/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/scope/package-info.java
deleted file mode 100644
index 49985aab7de..00000000000
--- a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/scope/package-info.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-/**
- * Jersey server-side Spring 5 integration injection scopes related classes.
- * @since 2.29
- */
-package org.glassfish.jersey.server.spring.scope;
diff --git a/ext/spring5/src/main/resources/META-INF/services/org.glassfish.jersey.server.spi.ComponentProvider b/ext/spring5/src/main/resources/META-INF/services/org.glassfish.jersey.server.spi.ComponentProvider
deleted file mode 100644
index 5aec207d97f..00000000000
--- a/ext/spring5/src/main/resources/META-INF/services/org.glassfish.jersey.server.spi.ComponentProvider
+++ /dev/null
@@ -1 +0,0 @@
-org.glassfish.jersey.server.spring.SpringComponentProvider
diff --git a/ext/spring5/src/main/resources/jersey-spring-applicationContext.xml b/ext/spring5/src/main/resources/jersey-spring-applicationContext.xml
deleted file mode 100644
index fd6f52829ad..00000000000
--- a/ext/spring5/src/main/resources/jersey-spring-applicationContext.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/TestComponent1.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/TestComponent1.java
deleted file mode 100644
index d8d29a3c0bf..00000000000
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/TestComponent1.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring;
-
-import org.springframework.stereotype.Component;
-
-@Component
-public class TestComponent1 {
-
- public String result() {
- return "test ok";
- }
-}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/TestComponent2Impl1.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/TestComponent2Impl1.java
deleted file mode 100644
index 25078b67e0f..00000000000
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/TestComponent2Impl1.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring;
-
-import org.springframework.stereotype.Component;
-
-@Component
-public class TestComponent2Impl1 implements TestComponent2 {
- @Override
- public String result() {
- return "test ok";
- }
-}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4JTest.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4JTest.java
deleted file mode 100644
index 52fd0e3e110..00000000000
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4JTest.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.aspect4j;
-
-import jakarta.ws.rs.core.Application;
-
-import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Before;
-import org.junit.Test;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-import static org.junit.Assert.assertEquals;
-
-public class Aspect4JTest extends JerseyTest {
-
- private ClassPathXmlApplicationContext applicationContext;
-
- private TestAspect testAspect;
-
- @Before
- public void before() {
- testAspect.reset();
- }
-
- @Override
- protected Application configure() {
- applicationContext = new ClassPathXmlApplicationContext("jersey-spring-aspect4j-applicationContext.xml");
- testAspect = applicationContext.getBean(TestAspect.class);
- return new Aspect4jJerseyConfig()
- .property("contextConfig", applicationContext);
- }
-
- @Test
- public void methodCallShouldNotBeIntercepted() {
- target("test1").request().get(String.class);
- assertEquals(0, testAspect.getInterceptions());
- }
-
- @Test
- public void methodCallShouldBeIntercepted() {
- target("test2").request().get(String.class);
- assertEquals(1, applicationContext.getBean(TestAspect.class).getInterceptions());
- }
-
- @Test
- public void JERSEY_3126() {
- final String result = target("JERSEY-3126").request().get(String.class);
- assertEquals("test ok", result);
- }
-}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/aspect4j/TestAspect.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/aspect4j/TestAspect.java
deleted file mode 100644
index 458019992ef..00000000000
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/aspect4j/TestAspect.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.aspect4j;
-
-import jakarta.inject.Singleton;
-
-import org.aspectj.lang.JoinPoint;
-import org.aspectj.lang.annotation.Aspect;
-import org.aspectj.lang.annotation.Before;
-
-@Aspect
-@Singleton
-public class TestAspect {
-
- private int interceptions = 0;
-
- @Before("execution(* org.glassfish.jersey.server.spring.aspect4j.*.*())")
- public void intercept(JoinPoint joinPoint) {
- interceptions++;
- }
-
- public int getInterceptions() {
- return interceptions;
- }
-
- public void reset() {
- interceptions = 0;
- }
-}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionJerseyTestConfig.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionJerseyTestConfig.java
deleted file mode 100644
index 0eb367b5c3b..00000000000
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionJerseyTestConfig.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.fieldinjection;
-
-import org.glassfish.jersey.server.ResourceConfig;
-import org.glassfish.jersey.server.spring.scope.RequestContextFilter;
-
-public class SpringFieldInjectionJerseyTestConfig extends ResourceConfig {
- public SpringFieldInjectionJerseyTestConfig() {
- register(RequestContextFilter.class);
- register(SpringFieldInjectionTestResource.class);
- }
-}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/FilterTest.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/FilterTest.java
deleted file mode 100644
index 3c33392daad..00000000000
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/FilterTest.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.filter;
-
-import jakarta.ws.rs.core.Application;
-
-import org.glassfish.jersey.server.spring.SpringTestConfiguration;
-import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-
-import static org.junit.Assert.assertEquals;
-
-public class FilterTest extends JerseyTest {
-
- private ApplicationContext context;
-
- @Override
- protected Application configure() {
- context = new AnnotationConfigApplicationContext(SpringTestConfiguration.class);
- return new JerseyTestConfig()
- .property("contextConfig", context);
- }
-
- @Test
- public void testInjectionOfSingleBean() {
- target("test1").request().get(String.class);
- assertEquals(1, context.getBean(Counter.class).getCount());
- }
-
-}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/JerseyTestConfig.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/JerseyTestConfig.java
deleted file mode 100644
index c8df018a812..00000000000
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/JerseyTestConfig.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.filter;
-
-import org.glassfish.jersey.server.ResourceConfig;
-import org.glassfish.jersey.server.spring.scope.RequestContextFilter;
-
-public class JerseyTestConfig extends ResourceConfig {
-
- public JerseyTestConfig() {
- register(RequestContextFilter.class);
- register(TestResource.class);
- register(TestFilter.class);
- }
-}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/TestResource.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/TestResource.java
deleted file mode 100644
index 7e624ef3982..00000000000
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/TestResource.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.filter;
-
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-
-@Path("/")
-public class TestResource {
-
- @Path("test1")
- @GET
- public String test1() {
- return "Hello, Test!";
- }
-}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionJerseyTestConfig.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionJerseyTestConfig.java
deleted file mode 100644
index 598618f6f90..00000000000
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionJerseyTestConfig.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.parameterinjection;
-
-import org.glassfish.jersey.server.ResourceConfig;
-import org.glassfish.jersey.server.spring.scope.RequestContextFilter;
-
-public class SpringParameterInjectionJerseyTestConfig extends ResourceConfig {
- public SpringParameterInjectionJerseyTestConfig() {
- register(RequestContextFilter.class);
- register(SpringParameterInjectionTestResource.class);
- }
-}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTest.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTest.java
deleted file mode 100644
index e6b720e4703..00000000000
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTest.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.parameterinjection;
-
-import org.glassfish.jersey.server.spring.SpringTestConfiguration;
-import org.glassfish.jersey.server.spring.fieldinjection.SpringFieldInjectionJerseyTestConfig;
-import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-
-import jakarta.ws.rs.core.Application;
-
-import static org.junit.Assert.assertEquals;
-
-public class SpringParameterInjectionTest extends JerseyTest {
- @Override
- protected Application configure() {
- ApplicationContext context = new AnnotationConfigApplicationContext(SpringTestConfiguration.class);
- return new SpringParameterInjectionJerseyTestConfig()
- .property("contextConfig", context);
- }
-
- @Test
- public void testInjectionOfSingleBean() {
- String result = target("test1").request().get(String.class);
- assertEquals("test ok", result);
- }
-
- @Test
- public void testInjectionOfListOfBeans() {
- String result = target("test2").request().get(String.class);
- assertEquals("test ok", result);
- }
-
- @Test
- public void testInjectionOfSetOfBeans() {
- String result = target("test3").request().get(String.class);
- assertEquals("test ok", result);
- }
-}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringProfilesTest.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringProfilesTest.java
deleted file mode 100644
index be0ac479aee..00000000000
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringProfilesTest.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.profiles;
-
-import org.junit.Test;
-import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-import static org.junit.Assert.assertEquals;
-
-public class SpringProfilesTest {
-
- @Test
- public void shouldGetDefaultBean() {
- System.setProperty("spring.profiles.active", "");
- AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
- "org.glassfish.jersey.server.spring.profiles");
- assertEquals("default", context.getBean(TestService.class).test());
- }
-
- @Test
- public void shouldGetDevProfileBean() {
- System.setProperty("spring.profiles.active", "dev");
- AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
- "org.glassfish.jersey.server.spring.profiles");
- assertEquals("dev", context.getBean(TestService.class).test());
- }
-}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/TestService.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/TestService.java
deleted file mode 100644
index d5635b52d49..00000000000
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/TestService.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.profiles;
-
-public interface TestService {
-
- String test();
-}
diff --git a/ext/spring5/src/test/resources/jersey-spring-aspect4j-applicationContext.xml b/ext/spring5/src/test/resources/jersey-spring-aspect4j-applicationContext.xml
deleted file mode 100644
index 7abafe382c4..00000000000
--- a/ext/spring5/src/test/resources/jersey-spring-aspect4j-applicationContext.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ext/spring6/pom.xml b/ext/spring6/pom.xml
new file mode 100644
index 00000000000..c7817c6b712
--- /dev/null
+++ b/ext/spring6/pom.xml
@@ -0,0 +1,361 @@
+
+
+
+
+
+ 4.0.0
+
+
+ org.glassfish.jersey.ext
+ project
+ 3.1.0-SNAPSHOT
+
+
+ jersey-spring6
+ jersey-spring6
+
+ jar
+
+
+ Jersey extension module providing support for Spring 6 integration.
+
+
+
+ UTF-8
+ ${project.basedir}/target
+ ${project.basedir}/src/main/javaPre17
+ ${project.basedir}/target17
+ ${project.basedir}/src/main/java17
+
+
+
+
+ Spring Repository
+ spring-repository
+ https://repo.spring.io/milestone
+
+
+
+
+
+ org.glassfish.jersey.core
+ jersey-server
+ ${project.version}
+
+
+
+ org.glassfish.jersey.inject
+ jersey-hk2
+ ${project.version}
+
+
+
+ org.glassfish.jersey.containers
+ jersey-container-servlet-core
+ ${project.version}
+
+
+
+ org.glassfish.jersey.test-framework.providers
+ jersey-test-framework-provider-grizzly2
+ ${project.version}
+ test
+
+
+
+ commons-logging
+ commons-logging
+ 1.2
+ test
+
+
+
+ org.glassfish.hk2
+ hk2
+ ${hk2.version}
+
+
+
+ org.glassfish.hk2
+ spring-bridge
+ ${hk2.version}
+
+
+ jakarta.inject
+ jakarta.inject
+
+
+ org.glassfish.hk2
+ hk2-api
+
+
+ org.springframework
+ spring-context
+
+
+
+
+
+ org.springframework
+ spring-beans
+ ${spring6.version}
+ provided
+
+
+
+ org.springframework
+ spring-core
+ ${spring6.version}
+
+
+ commons-logging
+ commons-logging
+
+
+ provided
+
+
+
+ org.springframework
+ spring-context
+ ${spring6.version}
+
+
+ commons-logging
+ commons-logging
+
+
+ provided
+
+
+
+ org.springframework
+ spring-web
+ ${spring6.version}
+ provided
+
+
+
+ org.springframework
+ spring-aop
+ ${spring6.version}
+ provided
+
+
+
+ jakarta.servlet
+ jakarta.servlet-api
+ ${servlet5.version}
+ provided
+
+
+
+ org.glassfish.jersey.test-framework
+ jersey-test-framework-core
+ ${project.version}
+ test
+
+
+
+ org.aspectj
+ aspectjrt
+ 1.6.11
+ test
+
+
+ org.aspectj
+ aspectjweaver
+ 1.6.11
+ test
+
+
+
+
+
+
+
+ com.sun.istack
+ istack-commons-maven-plugin
+ true
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ true
+
+
+
+
+
+
+ SpringExclude
+
+ [1.8,17)
+
+
+ ${java.build.outputDirectory}
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ generate-sources
+
+ add-source
+
+
+
+ ${javaPre17.sourceDirectory}
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ org/glassfish/jersey/server/spring/**/*.java
+
+
+
+
+
+
+
+ SpringInclude
+
+ [17,)
+
+
+ ${java17.build.outputDirectory}
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ generate-sources
+
+ add-source
+
+
+
+ ${java17.sourceDirectory}
+
+
+
+
+
+
+
+
+
+ copyJDK17FilesToMultiReleaseJar
+
+
+
+ target17/classes/org/glassfish/jersey/server/spring/SpringWebApplicationInitializer.class
+
+ [1.8,17)
+
+
+
+
+ org.apache.felix
+ maven-bundle-plugin
+ true
+ true
+
+
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ true
+
+
+ copy-jdk17-classes
+ prepare-package
+
+ copy-resources
+
+
+ ${java.build.outputDirectory}/classes/META-INF/versions/17
+
+
+ ${java17.build.outputDirectory}/classes
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-antrun-plugin
+
+
+ copy-jdk17-sources
+ package
+
+
+
+ sources-jar: ${sources-jar}
+
+
+
+
+
+
+ run
+
+
+
+
+
+
+
+
+ delayed-strategy-skip-test
+
+
+ org.glassfish.jersey.injection.manager.strategy
+ delayed
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+ true
+
+
+
+
+
+
+
diff --git a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/package-info.java b/ext/spring6/src/main/java/org/glassfish/jersey/server/spring/package-info.java
similarity index 84%
rename from ext/spring4/src/main/java/org/glassfish/jersey/server/spring/package-info.java
rename to ext/spring6/src/main/java/org/glassfish/jersey/server/spring/package-info.java
index 0176470fce6..229c054ed19 100644
--- a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/package-info.java
+++ b/ext/spring6/src/main/java/org/glassfish/jersey/server/spring/package-info.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -15,7 +15,7 @@
*/
/**
- * Jersey server-side Spring 4 integration classes.
- *
+ * Jersey server-side Spring 6 integration classes.
+ * @since 3.0.5
*/
package org.glassfish.jersey.server.spring;
diff --git a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/scope/package-info.java b/ext/spring6/src/main/java/org/glassfish/jersey/server/spring/scope/package-info.java
similarity index 83%
rename from ext/spring4/src/main/java/org/glassfish/jersey/server/spring/scope/package-info.java
rename to ext/spring6/src/main/java/org/glassfish/jersey/server/spring/scope/package-info.java
index e15b2c50222..d4e3c8e8646 100644
--- a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/scope/package-info.java
+++ b/ext/spring6/src/main/java/org/glassfish/jersey/server/spring/scope/package-info.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -15,7 +15,7 @@
*/
/**
- * Jersey server-side Spring 4 integration injection scopes related classes.
- *
+ * Jersey server-side Spring 6 integration injection scopes related classes.
+ * @since 3.0.5
*/
package org.glassfish.jersey.server.spring.scope;
diff --git a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/AutowiredInjectResolver.java b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/AutowiredInjectResolver.java
similarity index 98%
rename from ext/spring5/src/main/java/org/glassfish/jersey/server/spring/AutowiredInjectResolver.java
rename to ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/AutowiredInjectResolver.java
index 61fc9b17a0e..aca66c9652d 100644
--- a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/AutowiredInjectResolver.java
+++ b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/AutowiredInjectResolver.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/SpringComponentProvider.java b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/SpringComponentProvider.java
similarity index 98%
rename from ext/spring4/src/main/java/org/glassfish/jersey/server/spring/SpringComponentProvider.java
rename to ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/SpringComponentProvider.java
index 07208f5dc77..358f4885775 100644
--- a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/SpringComponentProvider.java
+++ b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/SpringComponentProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -43,7 +43,7 @@
/**
* Custom ComponentProvider class.
- * Responsible for 1) bootstrapping Jersey 2 Spring integration and
+ * Responsible for 1) bootstrapping Jersey 3 Spring integration and
* 2) making Jersey skip JAX-RS Spring component life-cycle management and leave it to us.
*
* @author Marko Asplund (marko.asplund at yahoo.com)
diff --git a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/SpringLifecycleListener.java b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/SpringLifecycleListener.java
similarity index 93%
rename from ext/spring5/src/main/java/org/glassfish/jersey/server/spring/SpringLifecycleListener.java
rename to ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/SpringLifecycleListener.java
index 5a06926b947..b47ba098367 100644
--- a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/SpringLifecycleListener.java
+++ b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/SpringLifecycleListener.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,7 +27,7 @@
import org.springframework.context.ConfigurableApplicationContext;
/**
- * JAX-RS Provider class for processing Jersey 2 Spring integration container life-cycle events.
+ * JAX-RS Provider class for processing Jersey 3 Spring integration container life-cycle events.
*
* @author Marko Asplund (marko.asplund at yahoo.com)
*/
diff --git a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/SpringWebApplicationInitializer.java b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/SpringWebApplicationInitializer.java
similarity index 96%
rename from ext/spring4/src/main/java/org/glassfish/jersey/server/spring/SpringWebApplicationInitializer.java
rename to ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/SpringWebApplicationInitializer.java
index b33a69d9a2b..8e21bdade2c 100644
--- a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/SpringWebApplicationInitializer.java
+++ b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/SpringWebApplicationInitializer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/scope/JaxrsRequestAttributes.java b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/scope/JaxrsRequestAttributes.java
similarity index 97%
rename from ext/spring5/src/main/java/org/glassfish/jersey/server/spring/scope/JaxrsRequestAttributes.java
rename to ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/scope/JaxrsRequestAttributes.java
index ec22efaeb60..35a9e261a1d 100644
--- a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/scope/JaxrsRequestAttributes.java
+++ b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/scope/JaxrsRequestAttributes.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/scope/JaxrsServletRequestAttributes.java b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/scope/JaxrsServletRequestAttributes.java
similarity index 96%
rename from ext/spring5/src/main/java/org/glassfish/jersey/server/spring/scope/JaxrsServletRequestAttributes.java
rename to ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/scope/JaxrsServletRequestAttributes.java
index c32ddbc22f5..4c2d0c2792b 100644
--- a/ext/spring5/src/main/java/org/glassfish/jersey/server/spring/scope/JaxrsServletRequestAttributes.java
+++ b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/scope/JaxrsServletRequestAttributes.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/scope/RequestContextFilter.java b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/scope/RequestContextFilter.java
similarity index 98%
rename from ext/spring4/src/main/java/org/glassfish/jersey/server/spring/scope/RequestContextFilter.java
rename to ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/scope/RequestContextFilter.java
index de87d7e91db..a4896952027 100644
--- a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/scope/RequestContextFilter.java
+++ b/ext/spring6/src/main/java17/org/glassfish/jersey/server/spring/scope/RequestContextFilter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/TestFilter.java b/ext/spring6/src/main/javaPre17/org/glassfish/jersey/server/spring/AutowiredInjectResolver.java
similarity index 53%
rename from ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/TestFilter.java
rename to ext/spring6/src/main/javaPre17/org/glassfish/jersey/server/spring/AutowiredInjectResolver.java
index 16cfd51e9b9..747c6072b70 100644
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/TestFilter.java
+++ b/ext/spring6/src/main/javaPre17/org/glassfish/jersey/server/spring/AutowiredInjectResolver.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -13,27 +13,32 @@
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
+package org.glassfish.jersey.server.spring;
-package org.glassfish.jersey.server.spring.filter;
-
-import java.io.IOException;
-import jakarta.inject.Inject;
import jakarta.inject.Singleton;
-import jakarta.ws.rs.container.ContainerRequestContext;
-import jakarta.ws.rs.container.ContainerRequestFilter;
-
-import org.springframework.stereotype.Component;
+import org.glassfish.jersey.internal.inject.Injectee;
+import org.glassfish.jersey.internal.inject.InjectionResolver;
-@Component
@Singleton
-public class TestFilter implements ContainerRequestFilter {
+public class AutowiredInjectResolver implements InjectionResolver {
- @Inject
- private Counter counter;
+ @Override
+ public Object resolve(Injectee injectee) {
+ return null;
+ }
@Override
- public void filter(final ContainerRequestContext requestContext) throws IOException {
- counter.inc();
+ public boolean isConstructorParameterIndicator() {
+ return false;
}
+ @Override
+ public boolean isMethodParameterIndicator() {
+ return false;
+ }
+
+ @Override
+ public Class getAnnotation() {
+ return null;
+ }
}
diff --git a/ext/spring6/src/main/javaPre17/org/glassfish/jersey/server/spring/SpringComponentProvider.java b/ext/spring6/src/main/javaPre17/org/glassfish/jersey/server/spring/SpringComponentProvider.java
new file mode 100644
index 00000000000..5f85ffb28a7
--- /dev/null
+++ b/ext/spring6/src/main/javaPre17/org/glassfish/jersey/server/spring/SpringComponentProvider.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.server.spring;
+
+import org.glassfish.jersey.internal.inject.InjectionManager;
+import org.glassfish.jersey.internal.util.JdkVersion;
+import org.glassfish.jersey.server.spi.ComponentProvider;
+
+import java.util.Set;
+
+/**
+ * Custom ComponentProvider class.
+ * Responsible for 1) bootstrapping Jersey 3 Spring integration and
+ * 2) making Jersey skip JAX-RS Spring component life-cycle management and leave it to us.
+ *
+ * @author Marko Asplund (marko.asplund at yahoo.com)
+ */
+public class SpringComponentProvider implements ComponentProvider {
+
+ @Override
+ public void initialize(InjectionManager injectionManager) {
+ if (JdkVersion.getJdkVersion().getMajor() < 17) {
+ throw new IllegalStateException(LocalizationMessages.NOT_SUPPORTED());
+ }
+ }
+
+ @Override
+ public boolean bind(Class> component, Set> providerContracts) {
+ return false;
+ }
+
+ @Override
+ public void done() {
+
+ }
+}
diff --git a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/SpringLifecycleListener.java b/ext/spring6/src/main/javaPre17/org/glassfish/jersey/server/spring/SpringLifecycleListener.java
similarity index 62%
rename from ext/spring4/src/main/java/org/glassfish/jersey/server/spring/SpringLifecycleListener.java
rename to ext/spring6/src/main/javaPre17/org/glassfish/jersey/server/spring/SpringLifecycleListener.java
index 5a06926b947..15dd493a922 100644
--- a/ext/spring4/src/main/java/org/glassfish/jersey/server/spring/SpringLifecycleListener.java
+++ b/ext/spring6/src/main/javaPre17/org/glassfish/jersey/server/spring/SpringLifecycleListener.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -17,41 +17,25 @@
package org.glassfish.jersey.server.spring;
import jakarta.ws.rs.ext.Provider;
-
-import jakarta.inject.Inject;
-
+import org.glassfish.jersey.internal.util.JdkVersion;
import org.glassfish.jersey.server.spi.Container;
import org.glassfish.jersey.server.spi.ContainerLifecycleListener;
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.ConfigurableApplicationContext;
-
-/**
- * JAX-RS Provider class for processing Jersey 2 Spring integration container life-cycle events.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
@Provider
public class SpringLifecycleListener implements ContainerLifecycleListener {
- @Inject
- private ApplicationContext ctx;
-
@Override
public void onStartup(Container container) {
+ if (JdkVersion.getJdkVersion().getMajor() < 17) {
+ throw new IllegalStateException(LocalizationMessages.NOT_SUPPORTED());
+ }
}
@Override
public void onReload(Container container) {
- if (ctx instanceof ConfigurableApplicationContext) {
- ((ConfigurableApplicationContext) ctx).refresh();
- }
}
@Override
public void onShutdown(Container container) {
- if (ctx instanceof ConfigurableApplicationContext) {
- ((ConfigurableApplicationContext) ctx).close();
- }
}
}
diff --git a/ext/spring6/src/main/javaPre17/org/glassfish/jersey/server/spring/scope/RequestContextFilter.java b/ext/spring6/src/main/javaPre17/org/glassfish/jersey/server/spring/scope/RequestContextFilter.java
new file mode 100644
index 00000000000..9a41f804f81
--- /dev/null
+++ b/ext/spring6/src/main/javaPre17/org/glassfish/jersey/server/spring/scope/RequestContextFilter.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.server.spring.scope;
+
+import jakarta.ws.rs.container.ContainerRequestContext;
+import jakarta.ws.rs.container.ContainerRequestFilter;
+import jakarta.ws.rs.container.ContainerResponseContext;
+import jakarta.ws.rs.container.ContainerResponseFilter;
+import jakarta.ws.rs.container.PreMatching;
+import jakarta.ws.rs.ext.Provider;
+import org.glassfish.jersey.internal.util.JdkVersion;
+import org.glassfish.jersey.server.spring.LocalizationMessages;
+
+import java.io.IOException;
+
+/**
+ * Spring filter to provide a bridge between JAX-RS and Spring request attributes.
+ *
+ * @author Marko Asplund (marko.asplund at yahoo.com)
+ * @author Jakub Podlesak
+ * @author Marek Potociar
+ */
+@Provider
+@PreMatching
+public final class RequestContextFilter implements ContainerRequestFilter, ContainerResponseFilter {
+
+ @Override
+ public void filter(ContainerRequestContext requestContext) throws IOException {
+ if (JdkVersion.getJdkVersion().getMajor() < 17) {
+ throw new IllegalStateException(LocalizationMessages.NOT_SUPPORTED());
+ }
+ }
+
+ @Override
+ public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {
+ if (JdkVersion.getJdkVersion().getMajor() < 17) {
+ throw new IllegalStateException(LocalizationMessages.NOT_SUPPORTED());
+ }
+ }
+}
diff --git a/ext/spring4/src/main/resources/META-INF/services/org.glassfish.jersey.server.spi.ComponentProvider b/ext/spring6/src/main/resources/META-INF/services/org.glassfish.jersey.server.spi.ComponentProvider
similarity index 100%
rename from ext/spring4/src/main/resources/META-INF/services/org.glassfish.jersey.server.spi.ComponentProvider
rename to ext/spring6/src/main/resources/META-INF/services/org.glassfish.jersey.server.spi.ComponentProvider
diff --git a/ext/spring4/src/main/resources/jersey-spring-applicationContext.xml b/ext/spring6/src/main/resources/jersey-spring-applicationContext.xml
similarity index 95%
rename from ext/spring4/src/main/resources/jersey-spring-applicationContext.xml
rename to ext/spring6/src/main/resources/jersey-spring-applicationContext.xml
index 00e4dda7f6b..b563fd32eb9 100644
--- a/ext/spring4/src/main/resources/jersey-spring-applicationContext.xml
+++ b/ext/spring6/src/main/resources/jersey-spring-applicationContext.xml
@@ -1,7 +1,7 @@
4.0.2.Final
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index 19aa7814949..6406f8de65e 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -58,8 +58,6 @@
jersey-4697
jersey-4722
microprofile
-
-
reactive-streams
@@ -206,6 +204,15 @@
tracing-support
+
+ spring6-jdk17
+
+ [17,)
+
+
+ spring6
+
+
diff --git a/tests/integration/spring4/pom.xml b/tests/integration/spring4/pom.xml
deleted file mode 100644
index 66764b87835..00000000000
--- a/tests/integration/spring4/pom.xml
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
-
- 4.0.0
-
-
- org.glassfish.jersey.tests.integration
- project
- 3.0.0-SNAPSHOT
-
-
- spring4
-
- war
- jersey-tests-integration-spring4
-
-
- Jersey tests for Spring 4 integration
-
-
-
-
-
- jakarta.servlet
- jakarta.servlet-api
- ${servlet4.version}
- provided
-
-
-
- jakarta.ws.rs
- jakarta.ws.rs-api
- compile
-
-
-
- org.glassfish.jersey.ext
- jersey-spring4
- ${project.version}
- compile
-
-
-
- org.glassfish.jersey.test-framework
- jersey-test-framework-core
- test
-
-
-
- org.glassfish.jersey.containers
- jersey-container-servlet
- runtime
-
-
-
- org.glassfish.jersey.test-framework.providers
- jersey-test-framework-provider-external
- test
-
-
-
- commons-logging
- commons-logging
- runtime
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
-
-
- org.apache.maven.plugins
- maven-failsafe-plugin
-
-
- org.eclipse.jetty
- jetty-maven-plugin
-
-
- /
- .*$
-
-
-
-
-
-
-
-
- delayed-strategy-skip-test
-
-
- org.glassfish.jersey.injection.manager.strategy
- delayed
-
-
-
-
-
- org.apache.maven.plugins
- maven-failsafe-plugin
-
- true
-
-
-
-
-
-
- jakartification_exclude_tests
-
- [1.8,)
-
-
-
-
- org.apache.maven.plugins
- maven-failsafe-plugin
-
- true
-
-
-
-
-
-
- ignore.on.jdk16
-
-
- [16,)
-
-
-
-
- org.apache.maven.plugins
- maven-failsafe-plugin
-
- true
-
-
-
-
-
-
-
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/AccountJerseyResource.java b/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/AccountJerseyResource.java
deleted file mode 100644
index bd10b503205..00000000000
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/AccountJerseyResource.java
+++ /dev/null
@@ -1,164 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import java.math.BigDecimal;
-
-import jakarta.ws.rs.Consumes;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.PUT;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.PathParam;
-import jakarta.ws.rs.core.MediaType;
-
-import jakarta.inject.Inject;
-import jakarta.inject.Named;
-import jakarta.servlet.http.HttpServletRequest;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Qualifier;
-
-/**
- * Jersey managed JAX-RS resource for testing jersey-spring.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-@Path("/jersey/account")
-public class AccountJerseyResource {
-
- @Inject
- @Named("AccountService-singleton")
- private AccountService accountServiceInject;
-
- @Autowired
- @Qualifier("AccountService-singleton")
- private AccountService accountServiceAutowired;
-
- @Inject
- @Named("AccountService-request-1")
- private AccountService accountServiceRequest1;
-
- @Autowired
- @Qualifier("AccountService-request-1")
- private AccountService accountServiceRequest2;
-
- @Autowired
- @Qualifier("AccountService-prototype-1")
- private AccountService accountServicePrototype1;
-
- @Autowired
- @Qualifier("AccountService-prototype-1")
- private AccountService accountServicePrototype2;
-
- @Autowired
- private HttpServletRequest httpServletRequest;
-
- @Inject
- private HK2ServiceSingleton hk2Singleton;
-
- @Inject
- private HK2ServiceRequestScoped hk2RequestScoped;
-
- @Inject
- private HK2ServicePerLookup hk2PerLookup;
-
- private String message = "n/a";
-
- // resource methods for testing resource class scope
- @GET
- @Path("message")
- public String getMessage() {
- return message;
- }
-
- @PUT
- @Path("message")
- @Consumes(MediaType.TEXT_PLAIN)
- public String setMessage(final String message) {
- this.message = message;
- return message;
- }
-
- // JERSEY-2506 FIX VERIFICATION
- @GET
- @Path("server")
- public String verifyServletRequestInjection() {
- return "PASSED: " + httpServletRequest.getServerName();
- }
-
- @GET
- @Path("singleton/server")
- public String verifyServletRequestInjectionIntoSingleton() {
- return accountServiceInject.verifyServletRequestInjection();
- }
-
- @GET
- @Path("singleton/autowired/server")
- public String verifyServletRequestInjectionIntoAutowiredSingleton() {
- return accountServiceAutowired.verifyServletRequestInjection();
- }
-
- @GET
- @Path("request/server")
- public String verifyServletRequestInjectionIntoRequestScopedBean() {
- return accountServiceRequest1.verifyServletRequestInjection();
- }
-
- @GET
- @Path("prototype/server")
- public String verifyServletRequestInjectionIntoPrototypeScopedBean() {
- return accountServicePrototype1.verifyServletRequestInjection();
- }
-
- // resource methods for testing singleton scoped beans
- @GET
- @Path("singleton/inject/{accountId}")
- public BigDecimal getAccountBalanceSingletonInject(@PathParam("accountId") final String accountId) {
- return accountServiceInject.getAccountBalance(accountId);
- }
-
- @GET
- @Path("singleton/autowired/{accountId}")
- public BigDecimal getAccountBalanceSingletonAutowired(@PathParam("accountId") final String accountId) {
- return accountServiceAutowired.getAccountBalance(accountId);
- }
-
- @PUT
- @Path("singleton/{accountId}")
- @Consumes(MediaType.TEXT_PLAIN)
- public void setAccountBalanceSingleton(@PathParam("accountId") final String accountId, final String balance) {
- accountServiceInject.setAccountBalance(accountId, new BigDecimal(balance));
- }
-
- // resource methods for testing request scoped beans
- @PUT
- @Path("request/{accountId}")
- @Consumes(MediaType.TEXT_PLAIN)
- public BigDecimal setAccountBalanceRequest(@PathParam("accountId") final String accountId, final String balance) {
- accountServiceRequest1.setAccountBalance(accountId, new BigDecimal(balance));
- return accountServiceRequest2.getAccountBalance(accountId);
- }
-
- // resource methods for testing prototype scoped beans
- @PUT
- @Path("prototype/{accountId}")
- @Consumes(MediaType.TEXT_PLAIN)
- public BigDecimal setAccountBalancePrototype(@PathParam("accountId") final String accountId, final String balance) {
- accountServicePrototype1.setAccountBalance(accountId, new BigDecimal(balance));
- return accountServicePrototype2.getAccountBalance(accountId);
- }
-}
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/AccountService.java b/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/AccountService.java
deleted file mode 100644
index 851e21501c1..00000000000
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/AccountService.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import java.math.BigDecimal;
-
-/**
- * Simple account service to testify injection into different scopes.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-public interface AccountService {
-
- void setAccountBalance(String accountId, BigDecimal balance);
-
- BigDecimal getAccountBalance(String accountId);
-
- String verifyServletRequestInjection();
-}
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/AccountServiceImpl.java b/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/AccountServiceImpl.java
deleted file mode 100644
index e79d9bdfb59..00000000000
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/AccountServiceImpl.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import java.math.BigDecimal;
-import java.util.HashMap;
-import java.util.Map;
-
-import jakarta.servlet.http.HttpServletRequest;
-
-import org.springframework.beans.factory.annotation.Autowired;
-
-/**
- * AccountService implementation.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-public class AccountServiceImpl implements AccountService {
-
- private Map accounts = new HashMap<>();
- private BigDecimal defaultAccountBalance;
-
- // JERSEY-2506 FIX VERIFICATION
- @Autowired
- private HttpServletRequest httpServletRequest;
-
- @Override
- public void setAccountBalance(String accountId, BigDecimal balance) {
- accounts.put(accountId, balance);
- }
-
- @Override
- public BigDecimal getAccountBalance(String accountId) {
- BigDecimal balance = accounts.get(accountId);
- if (balance == null) {
- return defaultAccountBalance;
- }
- return balance;
- }
-
- public void setDefaultAccountBalance(String defaultAccountBalance) {
- this.defaultAccountBalance = new BigDecimal(defaultAccountBalance);
- }
-
- public String verifyServletRequestInjection() {
- return "PASSED: " + httpServletRequest.getServerName();
- }
-
-}
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/AccountSpringResource.java b/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/AccountSpringResource.java
deleted file mode 100644
index 0e5d2cfb85e..00000000000
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/AccountSpringResource.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import java.math.BigDecimal;
-
-import jakarta.ws.rs.Consumes;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.PUT;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.PathParam;
-import jakarta.ws.rs.core.MediaType;
-
-import jakarta.inject.Inject;
-import jakarta.inject.Named;
-import jakarta.servlet.http.HttpServletRequest;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Qualifier;
-import org.springframework.stereotype.Component;
-
-/**
- * Spring managed JAX-RS resource for testing jersey-spring.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-@Path("/spring/account")
-@Component
-public class AccountSpringResource {
-
- @Inject
- @Named("AccountService-singleton")
- private AccountService accountServiceInject;
-
- @Autowired
- @Qualifier("AccountService-singleton")
- private AccountService accountServiceAutowired;
-
- @Inject
- @Named("AccountService-request-1")
- private AccountService accountServiceRequest1;
-
- @Autowired
- @Qualifier("AccountService-request-1")
- private AccountService accountServiceRequest2;
-
- @Autowired
- @Qualifier("AccountService-prototype-1")
- private AccountService accountServicePrototype1;
-
- @Autowired
- @Qualifier("AccountService-prototype-1")
- private AccountService accountServicePrototype2;
-
- @Autowired
- private HttpServletRequest httpServletRequest;
-
- @Inject
- private HK2ServiceSingleton hk2Singleton;
-
- @Inject
- private HK2ServiceRequestScoped hk2RequestScoped;
-
- @Inject
- private HK2ServicePerLookup hk2PerLookup;
-
- private String message = "n/a";
-
- // resource methods for testing resource class scope
- @GET
- @Path("message")
- public String getMessage() {
- return message;
- }
-
- @PUT
- @Path("message")
- @Consumes(MediaType.TEXT_PLAIN)
- public String setMessage(String message) {
- this.message = message;
- return message;
- }
-
- // JERSEY-2506 FIX VERIFICATION
- @GET
- @Path("server")
- public String verifyServletRequestInjection() {
- return "PASSED: " + httpServletRequest.getServerName();
- }
-
- @GET
- @Path("singleton/server")
- public String verifyServletRequestInjectionIntoSingleton() {
- return accountServiceInject.verifyServletRequestInjection();
- }
-
- @GET
- @Path("singleton/autowired/server")
- public String verifyServletRequestInjectionIntoAutowiredSingleton() {
- return accountServiceAutowired.verifyServletRequestInjection();
- }
-
- @GET
- @Path("request/server")
- public String verifyServletRequestInjectionIntoRequestScopedBean() {
- return accountServiceRequest1.verifyServletRequestInjection();
- }
-
- @GET
- @Path("prototype/server")
- public String verifyServletRequestInjectionIntoPrototypeScopedBean() {
- return accountServicePrototype1.verifyServletRequestInjection();
- }
-
- // resource methods for testing singleton scoped beans
- @GET
- @Path("singleton/inject/{accountId}")
- public BigDecimal getAccountBalanceSingletonInject(@PathParam("accountId") String accountId) {
- return accountServiceInject.getAccountBalance(accountId);
- }
-
- @GET
- @Path("singleton/autowired/{accountId}")
- public BigDecimal getAccountBalanceSingletonAutowired(@PathParam("accountId") String accountId) {
- return accountServiceAutowired.getAccountBalance(accountId);
- }
-
- @PUT
- @Path("singleton/{accountId}")
- @Consumes(MediaType.TEXT_PLAIN)
- public void setAccountBalanceSingleton(@PathParam("accountId") String accountId, String balance) {
- accountServiceInject.setAccountBalance(accountId, new BigDecimal(balance));
- }
-
- // resource methods for testing request scoped beans
- @PUT
- @Path("request/{accountId}")
- @Consumes(MediaType.TEXT_PLAIN)
- public BigDecimal setAccountBalanceRequest(@PathParam("accountId") String accountId, String balance) {
- accountServiceRequest1.setAccountBalance(accountId, new BigDecimal(balance));
- return accountServiceRequest2.getAccountBalance(accountId);
- }
-
- // resource methods for testing prototype scoped beans
- @PUT
- @Path("prototype/{accountId}")
- @Consumes(MediaType.TEXT_PLAIN)
- public BigDecimal setAccountBalancePrototype(@PathParam("accountId") String accountId, String balance) {
- accountServicePrototype1.setAccountBalance(accountId, new BigDecimal(balance));
- return accountServicePrototype2.getAccountBalance(accountId);
- }
-
-}
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/EndpointResource.java b/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/EndpointResource.java
deleted file mode 100644
index d61ef3b4791..00000000000
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/EndpointResource.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.Consumes;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.PUT;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.core.MediaType;
-
-/**
- * @author Konrad Garus (konrad.garus at gmail.com)
- */
-@Endpoint
-@Path("/spring/endpoint")
-public class EndpointResource {
-
- private String message;
-
- @PUT
- @Path("message")
- @Consumes(MediaType.TEXT_PLAIN)
- public String setMessage(final String message) {
- this.message = message;
- return message;
- }
-
- @GET
- @Path("message")
- public String getMessage() {
- return message;
- }
-}
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServicePerLookup.java b/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServicePerLookup.java
deleted file mode 100644
index ff689c6e4fd..00000000000
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServicePerLookup.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-/**
- * Type to be handled as HK2 per-lookup bean.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-public class HK2ServicePerLookup {
-}
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceRequestScoped.java b/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceRequestScoped.java
deleted file mode 100644
index da45aeafaba..00000000000
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceRequestScoped.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-/**
- * Type to be handled as HK2 request scoped bean.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-public class HK2ServiceRequestScoped {
-}
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/MyApplication.java b/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/MyApplication.java
deleted file mode 100644
index b0f82c7d524..00000000000
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/MyApplication.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.core.Application;
-
-import jakarta.inject.Inject;
-import jakarta.inject.Singleton;
-
-import org.glassfish.jersey.internal.inject.AbstractBinder;
-import org.glassfish.jersey.internal.inject.Binder;
-import org.glassfish.jersey.internal.inject.InjectionManager;
-import org.glassfish.jersey.internal.inject.PerLookup;
-import org.glassfish.jersey.process.internal.RequestScoped;
-
-/**
- * JAX-RS application class for configuring injectable services in HK2 registry for testing purposes.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-public class MyApplication extends Application {
-
- @Inject
- public MyApplication(final InjectionManager injectionManager) {
- Binder binder = new AbstractBinder() {
- @Override
- protected void configure() {
- bindAsContract(HK2ServiceSingleton.class).in(Singleton.class);
- bindAsContract(HK2ServiceRequestScoped.class).in(RequestScoped.class);
- bindAsContract(HK2ServicePerLookup.class).in(PerLookup.class);
- }
- };
-
- injectionManager.register(binder);
- }
-}
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/RepositoryResource.java b/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/RepositoryResource.java
deleted file mode 100644
index b815fe02f47..00000000000
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/RepositoryResource.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.Consumes;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.PUT;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.core.MediaType;
-
-import org.springframework.stereotype.Repository;
-
-/**
- * @author Konrad Garus (konrad.garus at gmail.com)
- */
-@Repository
-@Path("/spring/repository")
-public class RepositoryResource {
-
- private String message;
-
- @PUT
- @Path("message")
- @Consumes(MediaType.TEXT_PLAIN)
- public String setMessage(final String message) {
- this.message = message;
- return message;
- }
-
- @GET
- @Path("message")
- public String getMessage() {
- return message;
- }
-}
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/ServiceResource.java b/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/ServiceResource.java
deleted file mode 100644
index d50e5a6cc49..00000000000
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/ServiceResource.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.Consumes;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.PUT;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.core.MediaType;
-
-import org.springframework.stereotype.Service;
-
-/**
- * @author Konrad Garus (konrad.garus at gmail.com)
- */
-@Service
-@Path("/spring/service")
-public class ServiceResource {
-
- private String message;
-
- @PUT
- @Path("message")
- @Consumes(MediaType.TEXT_PLAIN)
- public String setMessage(final String message) {
- this.message = message;
- return message;
- }
-
- @GET
- @Path("message")
- public String getMessage() {
- return message;
- }
-}
diff --git a/tests/integration/spring4/src/main/resources/applicationContext.xml b/tests/integration/spring4/src/main/resources/applicationContext.xml
deleted file mode 100644
index c7e421eaa36..00000000000
--- a/tests/integration/spring4/src/main/resources/applicationContext.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-
-
-
-
-
-
-
- org.springframework.beans.factory.annotation.Autowired
- org.springframework.beans.factory.annotation.Value
-
-
-
-
-
-
-
-
- org.springframework.beans.factory.annotation.Qualifier
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tests/integration/spring4/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedEndpointITCase.java b/tests/integration/spring4/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedEndpointITCase.java
deleted file mode 100644
index 79ade92c60a..00000000000
--- a/tests/integration/spring4/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedEndpointITCase.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.client.Entity;
-import jakarta.ws.rs.client.WebTarget;
-
-import org.glassfish.jersey.server.ResourceConfig;
-
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-
-/**
- * Tests for Spring managed JAX-RS resources with custom composite
- * annotation that derives from @Component.
- *
- * @author Konrad Garus (konrad.garus at gmail.com)
- */
-public class SpringManagedEndpointITCase extends ResourceTestBase {
-
- @Override
- protected ResourceConfig configure(final ResourceConfig rc) {
- return rc.register(EndpointResource.class);
- }
-
- @Override
- protected String getResourcePath() {
- return "/spring/endpoint";
- }
-
- @Test
- public void testResourceScope() {
- final WebTarget t = target(getResourceFullPath());
- final String message = "hello, world";
- final String echo = t.path("message").request().put(Entity.text(message), String.class);
- assertEquals(message, echo);
- final String msg = t.path("message").request().get(String.class);
- assertEquals(message, msg);
- }
-}
diff --git a/tests/integration/spring5/README.txt b/tests/integration/spring5/README.txt
deleted file mode 100644
index 9a105f7bac7..00000000000
--- a/tests/integration/spring5/README.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-
-tests
-=====
-
-Tests are located in jersey-spring-test module.
-The module contains a test webapp and test code.
-The tests can be run in Jersey test container or an external container.
-
-- Running tests in Jersey test container
- mvn clean test
-
-- Running tests in an external container
- build the test app
- deploy to an external container
- configure container connection info in jersey-spring-test/pom.xml, if needed
- run tests in integration test mode:
- mvn -Pit verify
-
-- Running tests in embedded Jetty instance
- build the test app
- deploy to Jetty:
- mvn -Pjetty jetty:run
- run tests in integration test mode in another console session:
- mvn -Pit verify
-
-test class naming conventions
-- *ITTest.java: run in unit and IT test mode
-- *Test.java: run as unit tests
-- *IT.java: run as IT tests
-
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/ControllerResource.java b/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/ControllerResource.java
deleted file mode 100644
index 39dd5aa41c4..00000000000
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/ControllerResource.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.Consumes;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.PUT;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.core.MediaType;
-
-import org.springframework.stereotype.Controller;
-
-/**
- * @author Konrad Garus (konrad.garus at gmail.com)
- */
-@Controller
-@Path("/spring/controller")
-public class ControllerResource {
-
- private String message;
-
- @PUT
- @Path("message")
- @Consumes(MediaType.TEXT_PLAIN)
- public String setMessage(final String message) {
- this.message = message;
- return message;
- }
-
- @GET
- @Path("message")
- public String getMessage() {
- return message;
- }
-}
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/Endpoint.java b/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/Endpoint.java
deleted file mode 100644
index 80f5d8c1ae7..00000000000
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/Endpoint.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-import org.springframework.stereotype.Component;
-
-/**
- * @author Konrad Garus (konrad.garus at gmail.com)
- */
-@Retention(RetentionPolicy.RUNTIME)
-@Target(ElementType.TYPE)
-@Component
-public @interface Endpoint {
-
-}
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceSingleton.java b/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceSingleton.java
deleted file mode 100644
index 424f1866e8a..00000000000
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceSingleton.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-/**
- * Type to be handled as HK2 singleton.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-public class HK2ServiceSingleton {
-}
diff --git a/tests/integration/spring5/src/main/webapp/WEB-INF/web.xml b/tests/integration/spring5/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 4004dd3c3c6..00000000000
--- a/tests/integration/spring5/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
- jersey-spring-test
-
-
-
-
-
- org.glassfish.jersey.server.spring.test.MyApplication
-
-
- org.glassfish.jersey.server.spring.test.MyApplication
- /*
-
-
-
-
-
diff --git a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/AccountResourceITCase.java b/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/AccountResourceITCase.java
deleted file mode 100644
index 77f2984d6ce..00000000000
--- a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/AccountResourceITCase.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.core.Application;
-
-import org.glassfish.jersey.test.external.ExternalTestContainerFactory;
-import org.glassfish.jersey.test.spi.TestContainerException;
-import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.glassfish.jersey.test.JerseyTest;
-
-import org.junit.Test;
-
-import static org.junit.Assert.assertEquals;
-
-public class AccountResourceITCase extends JerseyTest {
-
- @Override
- protected Application configure() {
- return new Application();
- }
-
- @Override
- protected TestContainerFactory getTestContainerFactory() throws TestContainerException {
- return new ExternalTestContainerFactory();
- }
-
- @Test
- public void testGet() throws Exception {
- final String r = target().path("/jersey/account/message").request().get(String.class);
- assertEquals(r, "n/a");
- }
-}
diff --git a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/AccountResourceTestBase.java b/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/AccountResourceTestBase.java
deleted file mode 100644
index 5cc9fc750fa..00000000000
--- a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/AccountResourceTestBase.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import java.math.BigDecimal;
-
-import jakarta.ws.rs.client.Entity;
-import jakarta.ws.rs.client.WebTarget;
-import jakarta.ws.rs.core.MediaType;
-
-import org.junit.Test;
-import static org.hamcrest.CoreMatchers.startsWith;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-
-/**
- * Base class for JAX-RS resource tests.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-public abstract class AccountResourceTestBase extends ResourceTestBase {
-
- // test singleton scoped Spring bean injection using @Inject + @Autowired
- @Test
- public void testSingletonScopedSpringService() {
- final BigDecimal newBalance = new BigDecimal(Math.random());
- final WebTarget t = target(getResourceFullPath());
-
- t.path("/singleton/xyz123").request().put(Entity.entity(newBalance.toString(), MediaType.TEXT_PLAIN_TYPE));
- final BigDecimal balance = t.path("/singleton/autowired/xyz123").request().get(BigDecimal.class);
- assertEquals(newBalance, balance);
- }
-
- @Test
- public void testRequestScopedSpringService() {
- final BigDecimal newBalance = new BigDecimal(Math.random());
- final WebTarget t = target(getResourceFullPath());
- final BigDecimal balance = t.path("request/abc456").request().put(Entity.text(newBalance), BigDecimal.class);
- assertEquals(newBalance, balance);
- }
-
- @Test
- public void testPrototypeScopedSpringService() {
- final BigDecimal newBalance = new BigDecimal(Math.random());
- final WebTarget t = target(getResourceFullPath());
- final BigDecimal balance = t.path("prototype/abc456").request().put(Entity.text(newBalance), BigDecimal.class);
- assertEquals(new BigDecimal("987.65"), balance);
- }
-
- @Test
- public void testServletInjection() {
- final WebTarget t = target(getResourceFullPath());
-
- String server = t.path("server").request().get(String.class);
- assertThat(server, startsWith("PASSED: "));
-
- server = t.path("singleton/server").request().get(String.class);
- assertThat(server, startsWith("PASSED: "));
-
- server = t.path("singleton/autowired/server").request().get(String.class);
- assertThat(server, startsWith("PASSED: "));
-
- server = t.path("request/server").request().get(String.class);
- assertThat(server, startsWith("PASSED: "));
-
- server = t.path("prototype/server").request().get(String.class);
- assertThat(server, startsWith("PASSED: "));
- }
-}
diff --git a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/JerseyManagedITCase.java b/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/JerseyManagedITCase.java
deleted file mode 100644
index fa3d1a2ff4b..00000000000
--- a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/JerseyManagedITCase.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.client.Entity;
-import jakarta.ws.rs.client.WebTarget;
-
-import org.glassfish.jersey.server.ResourceConfig;
-
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-
-/**
- * Tests for Jersey managed JAX-RS resources.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-public class JerseyManagedITCase extends AccountResourceTestBase {
-
- @Override
- protected ResourceConfig configure(final ResourceConfig rc) {
- return rc.register(AccountJerseyResource.class);
- }
-
- @Override
- protected String getResourcePath() {
- return "/jersey/account";
- }
-
- @Test
- public void testResourceScope() {
- final WebTarget t = target(getResourceFullPath());
- final String message = "hello, world";
- final String echo = t.path("message").request().put(Entity.text(message), String.class);
- assertEquals(message, echo);
- final String msg = t.path("message").request().get(String.class);
- assertEquals("n/a", msg);
- }
-
-}
diff --git a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/ResourceTestBase.java b/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/ResourceTestBase.java
deleted file mode 100644
index 08c4902e439..00000000000
--- a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/ResourceTestBase.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.core.Application;
-
-import org.glassfish.jersey.server.ResourceConfig;
-import org.glassfish.jersey.server.spring.SpringLifecycleListener;
-import org.glassfish.jersey.server.spring.scope.RequestContextFilter;
-import org.glassfish.jersey.test.JerseyTest;
-import org.glassfish.jersey.test.TestProperties;
-import org.glassfish.jersey.test.external.ExternalTestContainerFactory;
-import org.glassfish.jersey.test.spi.TestContainerException;
-import org.glassfish.jersey.test.spi.TestContainerFactory;
-
-/**
- * Base class for JAX-RS resource tests.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-public abstract class ResourceTestBase extends JerseyTest {
-
- private static final String TEST_WEBAPP_CONTEXT_PATH = "jersey.spring.test.contextPath";
- private static final String TEST_CONTAINER_FACTORY_EXTERNAL = "org.glassfish.jersey.test.external"
- + ".ExternalTestContainerFactory";
-
- @Override
- protected TestContainerFactory getTestContainerFactory() throws TestContainerException {
- return new ExternalTestContainerFactory();
- }
-
- @Override
- protected Application configure() {
- final ResourceConfig rc = new ResourceConfig()
- .register(SpringLifecycleListener.class)
- .register(RequestContextFilter.class);
- TestUtil.registerHK2Services(rc);
- rc.property("contextConfigLocation", "classpath:applicationContext.xml");
- return configure(rc);
- }
-
- protected abstract ResourceConfig configure(ResourceConfig rc);
-
- protected abstract String getResourcePath();
-
- protected String getResourceFullPath() {
- final String containerFactory = System.getProperty(TestProperties.CONTAINER_FACTORY);
- if (TEST_CONTAINER_FACTORY_EXTERNAL.equals(containerFactory)) {
- return System.getProperty(TEST_WEBAPP_CONTEXT_PATH) + getResourcePath();
- }
- return getResourcePath();
- }
-}
diff --git a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedControllerITCase.java b/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedControllerITCase.java
deleted file mode 100644
index 9b249946813..00000000000
--- a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedControllerITCase.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.client.Entity;
-import jakarta.ws.rs.client.WebTarget;
-
-import org.glassfish.jersey.server.ResourceConfig;
-
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-
-/**
- * Tests for Spring managed JAX-RS resources with @Controller archetype.
- *
- * @author Konrad Garus (konrad.garus at gmail.com)
- */
-public class SpringManagedControllerITCase extends ResourceTestBase {
-
- @Override
- protected ResourceConfig configure(final ResourceConfig rc) {
- return rc.register(ControllerResource.class);
- }
-
- @Override
- protected String getResourcePath() {
- return "/spring/controller";
- }
-
- @Test
- public void testResourceScope() {
- final WebTarget t = target(getResourceFullPath());
- final String message = "hello, world";
- final String echo = t.path("message").request().put(Entity.text(message), String.class);
- assertEquals(message, echo);
- final String msg = t.path("message").request().get(String.class);
- assertEquals(message, msg);
- }
-}
diff --git a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedITCase.java b/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedITCase.java
deleted file mode 100644
index 2b351f09de5..00000000000
--- a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedITCase.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.client.Entity;
-import jakarta.ws.rs.client.WebTarget;
-
-import org.glassfish.jersey.server.ResourceConfig;
-
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-
-/**
- * Tests for Spring managed JAX-RS resources.
- *
- * @author Marko Asplund (marko.asplund at yahoo.com)
- */
-public class SpringManagedITCase extends AccountResourceTestBase {
-
- @Override
- protected ResourceConfig configure(final ResourceConfig rc) {
- return rc.register(AccountSpringResource.class);
- }
-
- @Override
- protected String getResourcePath() {
- return "/spring/account";
- }
-
- @Test
- public void testResourceScope() {
- final WebTarget t = target(getResourceFullPath());
- final String message = "hello, world";
- final String echo = t.path("message").request().put(Entity.text(message), String.class);
- assertEquals(message, echo);
- final String msg = t.path("message").request().get(String.class);
- assertEquals(message, msg);
- }
-
-}
diff --git a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedRepositoryITCase.java b/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedRepositoryITCase.java
deleted file mode 100644
index 0bfcd04b4e4..00000000000
--- a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedRepositoryITCase.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.client.Entity;
-import jakarta.ws.rs.client.WebTarget;
-
-import org.glassfish.jersey.server.ResourceConfig;
-
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-
-/**
- * Tests for Spring managed JAX-RS resources with @Repository archetype.
- *
- * @author Konrad Garus (konrad.garus at gmail.com)
- */
-public class SpringManagedRepositoryITCase extends ResourceTestBase {
-
- @Override
- protected ResourceConfig configure(final ResourceConfig rc) {
- return rc.register(RepositoryResource.class);
- }
-
- @Override
- protected String getResourcePath() {
- return "/spring/repository";
- }
-
- @Test
- public void testResourceScope() {
- final WebTarget t = target(getResourceFullPath());
- final String message = "hello, world";
- final String echo = t.path("message").request().put(Entity.text(message), String.class);
- assertEquals(message, echo);
- final String msg = t.path("message").request().get(String.class);
- assertEquals(message, msg);
- }
-}
diff --git a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedServiceITCase.java b/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedServiceITCase.java
deleted file mode 100644
index fd31b990b13..00000000000
--- a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/SpringManagedServiceITCase.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.ws.rs.client.Entity;
-import jakarta.ws.rs.client.WebTarget;
-
-import org.glassfish.jersey.server.ResourceConfig;
-
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-
-/**
- * Tests for Spring managed JAX-RS resources with @Service archetype.
- *
- * @author Konrad Garus (konrad.garus at gmail.com)
- */
-public class SpringManagedServiceITCase extends ResourceTestBase {
-
- @Override
- protected ResourceConfig configure(final ResourceConfig rc) {
- return rc.register(ServiceResource.class);
- }
-
- @Override
- protected String getResourcePath() {
- return "/spring/service";
- }
-
- @Test
- public void testResourceScope() {
- final WebTarget t = target(getResourceFullPath());
- final String message = "hello, world";
- final String echo = t.path("message").request().put(Entity.text(message), String.class);
- assertEquals(message, echo);
- final String msg = t.path("message").request().get(String.class);
- assertEquals(message, msg);
- }
-}
diff --git a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/TestUtil.java b/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/TestUtil.java
deleted file mode 100644
index 8c837c8ac5a..00000000000
--- a/tests/integration/spring5/src/test/java/org/glassfish/jersey/server/spring/test/TestUtil.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.server.spring.test;
-
-import jakarta.inject.Singleton;
-
-import org.glassfish.jersey.internal.inject.PerLookup;
-import org.glassfish.jersey.process.internal.RequestScoped;
-import org.glassfish.jersey.server.ResourceConfig;
-
-import org.glassfish.hk2.utilities.BuilderHelper;
-import org.glassfish.hk2.utilities.binding.AbstractBinder;
-
-class TestUtil {
-
- public static ResourceConfig registerHK2Services(final ResourceConfig rc) {
- rc
- .register(new AbstractBinder() {
- @Override
- protected void configure() {
- bind(BuilderHelper.link(HK2ServiceSingleton.class).in(Singleton.class).build());
- }
- })
- .register(new AbstractBinder() {
- @Override
- protected void configure() {
- bind(BuilderHelper.link(HK2ServiceRequestScoped.class).in(RequestScoped.class).build());
- }
- })
- .register(new AbstractBinder() {
- @Override
- protected void configure() {
- bind(BuilderHelper.link(HK2ServicePerLookup.class).in(PerLookup.class).build());
- }
- });
- return rc;
- }
-}
diff --git a/tests/integration/spring4/README.txt b/tests/integration/spring6/README.txt
similarity index 100%
rename from tests/integration/spring4/README.txt
rename to tests/integration/spring6/README.txt
diff --git a/tests/integration/spring5/pom.xml b/tests/integration/spring6/pom.xml
similarity index 73%
rename from tests/integration/spring5/pom.xml
rename to tests/integration/spring6/pom.xml
index 7a0712027f4..e7df36c1d9b 100644
--- a/tests/integration/spring5/pom.xml
+++ b/tests/integration/spring6/pom.xml
@@ -25,24 +25,32 @@
org.glassfish.jersey.tests.integration
project
- 3.0.0-SNAPSHOT
+ 3.1.0-SNAPSHOT
- spring5
+ spring6
war
- jersey-tests-integration-spring5
+ jersey-tests-integration-spring6
- Jersey tests for Spring 5 integration
+ Jersey tests for Spring 6 integration
+
+
+ Spring Repository
+ spring-repository
+ https://repo.spring.io/milestone
+
+
+
jakarta.servlet
jakarta.servlet-api
- ${servlet4.version}
+ ${servlet5.version}
provided
@@ -54,11 +62,41 @@
org.glassfish.jersey.ext
- jersey-spring5
+ jersey-spring6
${project.version}
compile
+
+ org.springframework
+ spring-beans
+ ${spring6.version}
+
+
+
+ org.springframework
+ spring-core
+ ${spring6.version}
+
+
+
+ org.springframework
+ spring-context
+ ${spring6.version}
+
+
+
+ org.springframework
+ spring-web
+ ${spring6.version}
+
+
+
+ org.springframework
+ spring-aop
+ ${spring6.version}
+
+
org.glassfish.jersey.test-framework
jersey-test-framework-core
@@ -93,16 +131,11 @@
org.apache.maven.plugins
maven-failsafe-plugin
-
-
-
- **/**/*.java
-
-
org.eclipse.jetty
jetty-maven-plugin
+ 11.0.7
/
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/AccountJerseyResource.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/AccountJerseyResource.java
similarity index 98%
rename from tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/AccountJerseyResource.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/AccountJerseyResource.java
index bd10b503205..ab54e710672 100644
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/AccountJerseyResource.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/AccountJerseyResource.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/AccountService.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/AccountService.java
similarity index 94%
rename from tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/AccountService.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/AccountService.java
index 70d90b05d53..2a764dcaa45 100644
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/AccountService.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/AccountService.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/AccountServiceImpl.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/AccountServiceImpl.java
similarity index 96%
rename from tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/AccountServiceImpl.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/AccountServiceImpl.java
index b7fb876d154..58919af7343 100644
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/AccountServiceImpl.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/AccountServiceImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/AccountSpringResource.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/AccountSpringResource.java
similarity index 98%
rename from tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/AccountSpringResource.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/AccountSpringResource.java
index 0e5d2cfb85e..e6e8e437e48 100644
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/AccountSpringResource.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/AccountSpringResource.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/ControllerResource.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/ControllerResource.java
similarity index 95%
rename from tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/ControllerResource.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/ControllerResource.java
index 39dd5aa41c4..8cf0a7e6a36 100644
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/ControllerResource.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/ControllerResource.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/Endpoint.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/Endpoint.java
similarity index 94%
rename from tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/Endpoint.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/Endpoint.java
index da9f1707b72..53a9ef14e08 100644
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/Endpoint.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/Endpoint.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/EndpointResource.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/EndpointResource.java
similarity index 95%
rename from tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/EndpointResource.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/EndpointResource.java
index d61ef3b4791..a1d8682e016 100644
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/EndpointResource.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/EndpointResource.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServicePerLookup.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServicePerLookup.java
similarity index 92%
rename from tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServicePerLookup.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServicePerLookup.java
index 4b6bbf57aeb..0fb4f768a41 100644
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServicePerLookup.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServicePerLookup.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceRequestScoped.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceRequestScoped.java
similarity index 92%
rename from tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceRequestScoped.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceRequestScoped.java
index 3bde89d2141..f55662ada90 100644
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceRequestScoped.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceRequestScoped.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceSingleton.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceSingleton.java
similarity index 92%
rename from tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceSingleton.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceSingleton.java
index a7b8fa8837e..64ea0ba6d42 100644
--- a/tests/integration/spring4/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceSingleton.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/HK2ServiceSingleton.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/MyApplication.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/MyApplication.java
similarity index 96%
rename from tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/MyApplication.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/MyApplication.java
index b0f82c7d524..e0f0c99317d 100644
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/MyApplication.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/MyApplication.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/RepositoryResource.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/RepositoryResource.java
similarity index 95%
rename from tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/RepositoryResource.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/RepositoryResource.java
index b815fe02f47..52a8b6444d7 100644
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/RepositoryResource.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/RepositoryResource.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/ServiceResource.java b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/ServiceResource.java
similarity index 95%
rename from tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/ServiceResource.java
rename to tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/ServiceResource.java
index d50e5a6cc49..75cf5afc5e8 100644
--- a/tests/integration/spring5/src/main/java/org/glassfish/jersey/server/spring/test/ServiceResource.java
+++ b/tests/integration/spring6/src/main/java/org/glassfish/jersey/server/spring/test/ServiceResource.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/spring5/src/main/resources/applicationContext.xml b/tests/integration/spring6/src/main/resources/applicationContext.xml
similarity index 98%
rename from tests/integration/spring5/src/main/resources/applicationContext.xml
rename to tests/integration/spring6/src/main/resources/applicationContext.xml
index c7e421eaa36..c36223ca482 100644
--- a/tests/integration/spring5/src/main/resources/applicationContext.xml
+++ b/tests/integration/spring6/src/main/resources/applicationContext.xml
@@ -1,7 +1,7 @@
From 43a9e18418388a8dad13e2bcf81e6fce0d45bc00 Mon Sep 17 00:00:00 2001
From: "Nuno M. Santos"
Date: Mon, 2 May 2022 11:58:08 +0100
Subject: [PATCH 034/305] Redact HTTP headers on LoggingFeature (#5025)
---
.../jersey/logging/ClientLoggingFilter.java | 3 +-
.../jersey/logging/LoggingFeature.java | 49 +++-
.../LoggingFeatureAutoDiscoverable.java | 14 +-
.../jersey/logging/LoggingInterceptor.java | 58 +++-
.../jersey/logging/ServerLoggingFilter.java | 3 +-
docs/src/main/docbook/appendix-properties.xml | 33 +++
docs/src/main/docbook/jersey.ent | 8 +
docs/src/main/docbook/logging.xml | 15 +-
.../tests/e2e/common/LoggingFeatureTest.java | 265 ++++++++++++++++++
9 files changed, 428 insertions(+), 20 deletions(-)
diff --git a/core-common/src/main/java/org/glassfish/jersey/logging/ClientLoggingFilter.java b/core-common/src/main/java/org/glassfish/jersey/logging/ClientLoggingFilter.java
index 07c3dbeca61..b250915db6f 100644
--- a/core-common/src/main/java/org/glassfish/jersey/logging/ClientLoggingFilter.java
+++ b/core-common/src/main/java/org/glassfish/jersey/logging/ClientLoggingFilter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -64,6 +64,7 @@ final class ClientLoggingFilter extends LoggingInterceptor implements ClientRequ
* logging filter will print (and buffer in memory) only the specified number of bytes
* and print "...more..." string at the end. Negative values are interpreted as zero.
* separator delimiter for particular log lines. Default is Linux new line delimiter
+ * redactHeaders a collection of HTTP headers to be redacted when logging.
*/
public ClientLoggingFilter(LoggingFeature.LoggingFeatureBuilder builder) {
super(builder);
diff --git a/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeature.java b/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeature.java
index f9b4d51a5d9..214eaa2dfc0 100644
--- a/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeature.java
+++ b/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeature.java
@@ -16,6 +16,8 @@
package org.glassfish.jersey.logging;
+import java.util.Arrays;
+import java.util.Collection;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -23,6 +25,7 @@
import javax.ws.rs.RuntimeType;
import javax.ws.rs.core.Feature;
import javax.ws.rs.core.FeatureContext;
+import javax.ws.rs.core.HttpHeaders;
import org.glassfish.jersey.CommonProperties;
@@ -41,6 +44,7 @@
* {@link #LOGGING_FEATURE_VERBOSITY}
* {@link #LOGGING_FEATURE_MAX_ENTITY_SIZE}
* {@link #LOGGING_FEATURE_SEPARATOR}
+ * {@link #LOGGING_FEATURE_REDACT_HEADERS}
*
*
* If any of the configuration value is not set, following default values are applied:
@@ -50,6 +54,7 @@
*
verbosity: {@link Verbosity#PAYLOAD_TEXT}
* maximum entity size: {@value #DEFAULT_MAX_ENTITY_SIZE}
* line separator: {@link #DEFAULT_SEPARATOR}
+ * redact headers: {@value #DEFAULT_REDACT_HEADERS}
*
*
* Server configurable properties:
@@ -59,6 +64,7 @@
*
{@link #LOGGING_FEATURE_VERBOSITY_SERVER}
* {@link #LOGGING_FEATURE_MAX_ENTITY_SIZE_SERVER}
* {@link #LOGGING_FEATURE_SEPARATOR_SERVER}
+ * {@link #LOGGING_FEATURE_REDACT_HEADERS_SERVER}
*
* Client configurable properties:
*
@@ -67,6 +73,7 @@
* {@link #LOGGING_FEATURE_VERBOSITY_CLIENT}
* {@link #LOGGING_FEATURE_MAX_ENTITY_SIZE_CLIENT}
* {@link #LOGGING_FEATURE_SEPARATOR_CLIENT}
+ * {@link #LOGGING_FEATURE_REDACT_HEADERS_CLIENT}
*
*
* @author Ondrej Kosatka
@@ -94,12 +101,17 @@ public class LoggingFeature implements Feature {
* Default separator for entity logging.
*/
public static final String DEFAULT_SEPARATOR = "\n";
+ /**
+ * Default headers to be redacted. If multiple, separate each header with a semicolon.
+ */
+ public static final String DEFAULT_REDACT_HEADERS = HttpHeaders.AUTHORIZATION;
private static final String LOGGER_NAME_POSTFIX = ".logger.name";
private static final String LOGGER_LEVEL_POSTFIX = ".logger.level";
private static final String VERBOSITY_POSTFIX = ".verbosity";
private static final String MAX_ENTITY_POSTFIX = ".entity.maxSize";
private static final String SEPARATOR_POSTFIX = ".separator";
+ private static final String REDACT_HEADERS_POSTFIX = ".headers.redact";
private static final String LOGGING_FEATURE_COMMON_PREFIX = "jersey.config.logging";
/**
* Common logger name property.
@@ -121,6 +133,10 @@ public class LoggingFeature implements Feature {
* Common property for configuring logging separator.
*/
public static final String LOGGING_FEATURE_SEPARATOR = LOGGING_FEATURE_COMMON_PREFIX + SEPARATOR_POSTFIX;
+ /**
+ * Common property for configuring headers to be redacted. The headers are semicolon-separated.
+ */
+ public static final String LOGGING_FEATURE_REDACT_HEADERS = LOGGING_FEATURE_COMMON_PREFIX + REDACT_HEADERS_POSTFIX;
private static final String LOGGING_FEATURE_SERVER_PREFIX = "jersey.config.server.logging";
/**
@@ -143,6 +159,11 @@ public class LoggingFeature implements Feature {
* Server property for configuring separator.
*/
public static final String LOGGING_FEATURE_SEPARATOR_SERVER = LOGGING_FEATURE_SERVER_PREFIX + SEPARATOR_POSTFIX;
+ /**
+ * Server property for configuring headers to be redacted. The headers are semicolon-separated.
+ */
+ public static final String LOGGING_FEATURE_REDACT_HEADERS_SERVER =
+ LOGGING_FEATURE_SERVER_PREFIX + REDACT_HEADERS_POSTFIX;
private static final String LOGGING_FEATURE_CLIENT_PREFIX = "jersey.config.client.logging";
/**
@@ -165,6 +186,11 @@ public class LoggingFeature implements Feature {
* Client property for logging separator.
*/
public static final String LOGGING_FEATURE_SEPARATOR_CLIENT = LOGGING_FEATURE_CLIENT_PREFIX + SEPARATOR_POSTFIX;
+ /**
+ * Client property for configuring headers to be redacted. The headers are semicolon-separated.
+ */
+ public static final String LOGGING_FEATURE_REDACT_HEADERS_CLIENT =
+ LOGGING_FEATURE_CLIENT_PREFIX + REDACT_HEADERS_POSTFIX;
private final LoggingFeatureBuilder builder;
@@ -269,7 +295,7 @@ private LoggingInterceptor createLoggingFilter(FeatureContext context, RuntimeTy
private static LoggingFeatureBuilder configureBuilderParameters(LoggingFeatureBuilder builder,
FeatureContext context, RuntimeType runtimeType) {
- final Map properties = context.getConfiguration().getProperties();
+ final Map properties = context.getConfiguration().getProperties();
//get values from properties (if any)
final String filterLoggerName = CommonProperties.getValue(
properties,
@@ -283,14 +309,14 @@ private static LoggingFeatureBuilder configureBuilderParameters(LoggingFeatureBu
properties,
runtimeType == RuntimeType.SERVER ? LOGGING_FEATURE_LOGGER_LEVEL_SERVER : LOGGING_FEATURE_LOGGER_LEVEL_CLIENT,
CommonProperties.getValue(
- context.getConfiguration().getProperties(),
+ properties,
LOGGING_FEATURE_LOGGER_LEVEL,
DEFAULT_LOGGER_LEVEL));
final String filterSeparator = CommonProperties.getValue(
properties,
runtimeType == RuntimeType.SERVER ? LOGGING_FEATURE_SEPARATOR_SERVER : LOGGING_FEATURE_SEPARATOR_CLIENT,
CommonProperties.getValue(
- context.getConfiguration().getProperties(),
+ properties,
LOGGING_FEATURE_SEPARATOR,
DEFAULT_SEPARATOR));
final Verbosity filterVerbosity = CommonProperties.getValue(
@@ -310,6 +336,14 @@ private static LoggingFeatureBuilder configureBuilderParameters(LoggingFeatureBu
LOGGING_FEATURE_MAX_ENTITY_SIZE,
DEFAULT_MAX_ENTITY_SIZE
));
+ final String redactHeaders = CommonProperties.getValue(
+ properties,
+ runtimeType == RuntimeType.SERVER
+ ? LOGGING_FEATURE_REDACT_HEADERS_SERVER : LOGGING_FEATURE_REDACT_HEADERS_CLIENT,
+ CommonProperties.getValue(
+ properties,
+ LOGGING_FEATURE_REDACT_HEADERS,
+ DEFAULT_REDACT_HEADERS));
final Level loggerLevel = Level.parse(filterLevel);
@@ -319,6 +353,8 @@ private static LoggingFeatureBuilder configureBuilderParameters(LoggingFeatureBu
builder.maxEntitySize = builder.maxEntitySize == null ? filterMaxEntitySize : builder.maxEntitySize;
builder.level = builder.level == null ? loggerLevel : builder.level;
builder.separator = builder.separator == null ? filterSeparator : builder.separator;
+ builder.redactHeaders = builder.redactHeaders == null
+ ? Arrays.asList(redactHeaders.split(";")) : builder.redactHeaders;
return builder;
}
@@ -376,6 +412,7 @@ public static class LoggingFeatureBuilder {
Integer maxEntitySize;
Level level;
String separator;
+ Collection redactHeaders;
public LoggingFeatureBuilder() {
@@ -400,9 +437,13 @@ public LoggingFeatureBuilder separator(String separator) {
this.separator = separator;
return this;
}
+ public LoggingFeatureBuilder redactHeaders(Collection redactHeaders) {
+ this.redactHeaders = redactHeaders;
+ return this;
+ }
public LoggingFeature build() {
return new LoggingFeature(this);
}
}
-}
\ No newline at end of file
+}
diff --git a/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeatureAutoDiscoverable.java b/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeatureAutoDiscoverable.java
index 01e61a5e9d5..84ca349bbd2 100644
--- a/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeatureAutoDiscoverable.java
+++ b/core-common/src/main/java/org/glassfish/jersey/logging/LoggingFeatureAutoDiscoverable.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,6 +34,9 @@
import static org.glassfish.jersey.logging.LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE;
import static org.glassfish.jersey.logging.LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE_CLIENT;
import static org.glassfish.jersey.logging.LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE_SERVER;
+import static org.glassfish.jersey.logging.LoggingFeature.LOGGING_FEATURE_REDACT_HEADERS;
+import static org.glassfish.jersey.logging.LoggingFeature.LOGGING_FEATURE_REDACT_HEADERS_CLIENT;
+import static org.glassfish.jersey.logging.LoggingFeature.LOGGING_FEATURE_REDACT_HEADERS_SERVER;
import static org.glassfish.jersey.logging.LoggingFeature.LOGGING_FEATURE_SEPARATOR;
import static org.glassfish.jersey.logging.LoggingFeature.LOGGING_FEATURE_SEPARATOR_CLIENT;
import static org.glassfish.jersey.logging.LoggingFeature.LOGGING_FEATURE_SEPARATOR_SERVER;
@@ -75,7 +78,8 @@ private boolean commonPropertyConfigured(Map properties) {
|| properties.containsKey(LOGGING_FEATURE_LOGGER_LEVEL)
|| properties.containsKey(LOGGING_FEATURE_VERBOSITY)
|| properties.containsKey(LOGGING_FEATURE_MAX_ENTITY_SIZE)
- || properties.containsKey(LOGGING_FEATURE_SEPARATOR);
+ || properties.containsKey(LOGGING_FEATURE_SEPARATOR)
+ || properties.containsKey(LOGGING_FEATURE_REDACT_HEADERS);
}
private boolean clientConfigured(Map properties) {
@@ -83,7 +87,8 @@ private boolean clientConfigured(Map properties) {
|| properties.containsKey(LOGGING_FEATURE_LOGGER_LEVEL_CLIENT)
|| properties.containsKey(LOGGING_FEATURE_VERBOSITY_CLIENT)
|| properties.containsKey(LOGGING_FEATURE_MAX_ENTITY_SIZE_CLIENT)
- || properties.containsKey(LOGGING_FEATURE_SEPARATOR_CLIENT);
+ || properties.containsKey(LOGGING_FEATURE_SEPARATOR_CLIENT)
+ || properties.containsKey(LOGGING_FEATURE_REDACT_HEADERS_CLIENT);
}
private boolean serverConfigured(Map properties) {
@@ -91,6 +96,7 @@ private boolean serverConfigured(Map properties) {
|| properties.containsKey(LOGGING_FEATURE_LOGGER_LEVEL_SERVER)
|| properties.containsKey(LOGGING_FEATURE_VERBOSITY_SERVER)
|| properties.containsKey(LOGGING_FEATURE_MAX_ENTITY_SIZE_SERVER)
- || properties.containsKey(LOGGING_FEATURE_SEPARATOR_SERVER);
+ || properties.containsKey(LOGGING_FEATURE_SEPARATOR_SERVER)
+ || properties.containsKey(LOGGING_FEATURE_REDACT_HEADERS_SERVER);
}
}
diff --git a/core-common/src/main/java/org/glassfish/jersey/logging/LoggingInterceptor.java b/core-common/src/main/java/org/glassfish/jersey/logging/LoggingInterceptor.java
index fd1791b7d8f..ec152508c97 100644
--- a/core-common/src/main/java/org/glassfish/jersey/logging/LoggingInterceptor.java
+++ b/core-common/src/main/java/org/glassfish/jersey/logging/LoggingInterceptor.java
@@ -24,15 +24,21 @@
import java.io.OutputStream;
import java.net.URI;
import java.nio.charset.Charset;
+import java.util.Collection;
import java.util.Comparator;
import java.util.HashSet;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
+import java.util.Objects;
import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.atomic.AtomicLong;
+import java.util.function.BiConsumer;
+import java.util.function.Predicate;
import java.util.logging.Level;
import java.util.logging.Logger;
+import java.util.stream.Collectors;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
@@ -40,6 +46,7 @@
import javax.ws.rs.ext.WriterInterceptor;
import javax.ws.rs.ext.WriterInterceptorContext;
+import org.glassfish.jersey.internal.guava.Predicates;
import org.glassfish.jersey.logging.LoggingFeature.Verbosity;
import org.glassfish.jersey.message.MessageUtils;
@@ -104,6 +111,7 @@ public int compare(final Map.Entry> o1, final Map.Entry redactHeaderPredicate;
/**
* Creates a logging filter using builder instance with custom logger and entity logging turned on,
@@ -117,6 +125,7 @@ public int compare(final Map.Entry> o1, final Map.Entry> o1, final Map.Entry false;
}
/**
@@ -169,20 +181,28 @@ void printPrefixedHeaders(final StringBuilder b,
final List> val = headerEntry.getValue();
final String header = headerEntry.getKey();
- if (val.size() == 1) {
- prefixId(b, id).append(prefix).append(header).append(": ").append(val.get(0)).append(separator);
- } else {
- final StringBuilder sb = new StringBuilder();
+ prefixId(b, id).append(prefix).append(header).append(": ");
+ getValuesAppender(header, val).accept(b, val);
+ b.append(separator);
+ }
+ }
+
+ private BiConsumer> getValuesAppender(String header, List> values) {
+ if (redactHeaderPredicate.test(header)) {
+ return (b, v) -> b.append("[redacted]");
+ } else if (values.size() == 1) {
+ return (b, v) -> b.append(v.get(0));
+ } else {
+ return (b, v) -> {
boolean add = false;
- for (final Object s : val) {
+ for (final Object s : v) {
if (add) {
- sb.append(',');
+ b.append(',');
}
add = true;
- sb.append(s);
+ b.append(s);
}
- prefixId(b, id).append(prefix).append(header).append(": ").append(sb.toString()).append(separator);
- }
+ };
}
}
@@ -312,4 +332,24 @@ public void write(byte[] ba, int off, int len) throws IOException {
}
}
+ private static final class RedactHeaderPredicate implements Predicate {
+ private final Set headersToRedact;
+
+ RedactHeaderPredicate(Collection headersToRedact) {
+ this.headersToRedact = headersToRedact.stream()
+ .filter(Objects::nonNull)
+ .filter(Predicates.not(String::isEmpty))
+ .map(RedactHeaderPredicate::normalize)
+ .collect(Collectors.toSet());
+ }
+
+ @Override
+ public boolean test(String header) {
+ return headersToRedact.contains(normalize(header));
+ }
+
+ private static String normalize(String input) {
+ return input.trim().toLowerCase(Locale.ROOT);
+ }
+ }
}
diff --git a/core-common/src/main/java/org/glassfish/jersey/logging/ServerLoggingFilter.java b/core-common/src/main/java/org/glassfish/jersey/logging/ServerLoggingFilter.java
index b1c2c7b3933..87cac240c1a 100644
--- a/core-common/src/main/java/org/glassfish/jersey/logging/ServerLoggingFilter.java
+++ b/core-common/src/main/java/org/glassfish/jersey/logging/ServerLoggingFilter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -64,6 +64,7 @@ final class ServerLoggingFilter extends LoggingInterceptor implements ContainerR
* logging filter will print (and buffer in memory) only the specified number of bytes
* and print "...more..." string at the end. Negative values are interpreted as zero.
* separator delimiter for particular log lines. Default is Linux new line delimiter
+ * redactHeaders a collection of HTTP headers to be redacted when logging.
*/
public ServerLoggingFilter(final LoggingFeature.LoggingFeatureBuilder builder) {
super(builder);
diff --git a/docs/src/main/docbook/appendix-properties.xml b/docs/src/main/docbook/appendix-properties.xml
index b957da73985..2dd099d2280 100644
--- a/docs/src/main/docbook/appendix-properties.xml
+++ b/docs/src/main/docbook/appendix-properties.xml
@@ -206,6 +206,17 @@
See logging chapter for more information.
+
+ &jersey.logging.LoggingFeature.LOGGING_FEATURE_REDACT_HEADERS;
+
+
+ jersey.config.logging.headers.redact
+
+
+ The HTTP headers (semicolon separated) to be redacted when logging.
+ See logging chapter for more information.
+
+
@@ -669,6 +680,17 @@
See logging chapter for more information.
+
+ &jersey.logging.LoggingFeature.LOGGING_FEATURE_REDACT_HEADERS_SERVER;
+
+
+ jersey.config.server.logging.headers.redact
+
+
+ The HTTP headers (semicolon separated) to be redacted when logging.
+ See logging chapter for more information.
+
+
@@ -1053,6 +1075,17 @@
See logging chapter for more information.
+
+ &jersey.logging.LoggingFeature.LOGGING_FEATURE_REDACT_HEADERS_CLIENT;
+
+
+ jersey.config.client.logging.headers.redact
+
+
+ The HTTP headers (semicolon separated) to be redacted when logging.
+ See logging chapter for more information.
+
+
diff --git a/docs/src/main/docbook/jersey.ent b/docs/src/main/docbook/jersey.ent
index cbe231e8a6e..88d5f4f471e 100644
--- a/docs/src/main/docbook/jersey.ent
+++ b/docs/src/main/docbook/jersey.ent
@@ -475,21 +475,25 @@
LoggingFeature.DEFAULT_LOGGER_LEVEL">
LoggingFeature.DEFAULT_VERBOSITY">
LoggingFeature.DEFAULT_MAX_ENTITY_SIZE">
+LoggingFeature.DEFAULT_REDACT_HEADERS">
LoggingFeature.LOGGING_FEATURE_LOGGER_NAME">
LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL">
LoggingFeature.LOGGING_FEATURE_VERBOSITY">
LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE">
LoggingFeature.LOGGING_FEATURE_SEPARATOR">
+LoggingFeature.LOGGING_FEATURE_REDACT_HEADERS">
LoggingFeature.LOGGING_FEATURE_LOGGER_NAME_CLIENT">
LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL_CLIENT">
LoggingFeature.LOGGING_FEATURE_VERBOSITY_CLIENT">
LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE_CLIENT">
LoggingFeature.LOGGING_FEATURE_SEPARATOR_CLIENT">
+LoggingFeature.LOGGING_FEATURE_REDACT_HEADERS_CLIENT">
LoggingFeature.LOGGING_FEATURE_LOGGER_NAME_SERVER">
LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL_SERVER">
LoggingFeature.LOGGING_FEATURE_VERBOSITY_SERVER">
LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE_SERVER">
LoggingFeature.LOGGING_FEATURE_SEPARATOR_SERVER">
+LoggingFeature.LOGGING_FEATURE_REDACT_HEADERS_SERVER">
LoggingFeature.Verbosity">
LoggingFeature.Verbosity.HEADERS_ONLY">
LoggingFeature.Verbosity.PAYLOAD_ANY">
@@ -963,21 +967,25 @@
LoggingFeature.DEFAULT_LOGGER_LEVEL">
LoggingFeature.DEFAULT_VERBOSITY">
LoggingFeature.DEFAULT_MAX_ENTITY_SIZE">
+LoggingFeature.DEFAULT_REDACT_HEADERS">
LoggingFeature.LOGGING_FEATURE_LOGGER_NAME">
LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL">
LoggingFeature.LOGGING_FEATURE_VERBOSITY">
LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE">
LoggingFeature.LOGGING_FEATURE_SEPARATOR">
+LoggingFeature.LOGGING_FEATURE_REDACT_HEADERS">
LoggingFeature.LOGGING_FEATURE_LOGGER_NAME_CLIENT">
LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL_CLIENT">
LoggingFeature.LOGGING_FEATURE_VERBOSITY_CLIENT">
LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE_CLIENT">
LoggingFeature.LOGGING_FEATURE_SEPARATOR_CLIENT">
+LoggingFeature.LOGGING_FEATURE_REDACT_HEADERS_CLIENT">
LoggingFeature.LOGGING_FEATURE_LOGGER_NAME_SERVER">
LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL_SERVER">
LoggingFeature.LOGGING_FEATURE_VERBOSITY_SERVER">
LoggingFeature.LOGGING_FEATURE_MAX_ENTITY_SIZE_SERVER">
LoggingFeature.LOGGING_FEATURE_SEPARATOR_SERVER">
+LoggingFeature.LOGGING_FEATURE_REDACT_HEADERS_SERVER">
LoggingFeature.Verbosity">
LoggingFeature.Verbosity.HEADERS_ONLY">
LoggingFeature.Verbosity.PAYLOAD_ANY">
diff --git a/docs/src/main/docbook/logging.xml b/docs/src/main/docbook/logging.xml
index b3bf59e8c88..9849f6ca5a1 100644
--- a/docs/src/main/docbook/logging.xml
+++ b/docs/src/main/docbook/logging.xml
@@ -1,7 +1,7 @@
From f308afa285249ec603e6022184dd98dacce5dcb9 Mon Sep 17 00:00:00 2001
From: jansupol <15908245+jansupol@users.noreply.github.com>
Date: Fri, 13 May 2022 06:44:53 +0200
Subject: [PATCH 039/305] Rename Java Connector to JavaNetHttp Connector
(#5066)
Signed-off-by: jansupol
---
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 5 ++
.../java/connector/JavaClientProperties.java | 51 ---------------
.../{java-connector => jnh-connector}/pom.xml | 8 +--
.../JavaNetHttpClientProperties.java | 63 +++++++++++++++++++
.../jnh/connector/JavaNetHttpConnector.java} | 20 +++---
.../JavaNetHttpConnectorProvider.java} | 22 +++----
.../jersey/jnh}/connector/package-info.java | 4 +-
.../jnh}/connector/localization.properties | 2 +-
.../connector/AbstractJavaConnectorTest.java | 8 +--
.../jersey/jnh}/connector/AsyncTest.java | 4 +-
.../jnh}/connector/BodyPublisherTest.java | 4 +-
.../jnh}/connector/OptionsMethodTest.java | 4 +-
.../jersey/jnh}/connector/RedirectTest.java | 4 +-
...veHttpClientFromConnectorProviderTest.java | 14 ++---
connectors/pom.xml | 2 +-
docs/src/main/docbook/appendix-properties.xml | 51 +++++++++++++++
docs/src/main/docbook/client.xml | 5 ++
docs/src/main/docbook/jersey.ent | 5 ++
tests/e2e-client/pom.xml | 5 ++
.../e2e/client/connector/HttpPatchTest.java | 2 +
.../RequestHeaderModificationsTest.java | 5 +-
.../ssl/AbstractConnectorServerTest.java | 4 +-
.../ssl/SslConnectorHostnameVerifierTest.java | 11 +++-
.../Expect100ContinueTest.java | 4 +-
25 files changed, 202 insertions(+), 107 deletions(-)
delete mode 100644 connectors/java-connector/src/main/java/org/glassfish/jersey/java/connector/JavaClientProperties.java
rename connectors/{java-connector => jnh-connector}/pom.xml (90%)
create mode 100644 connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpClientProperties.java
rename connectors/{java-connector/src/main/java/org/glassfish/jersey/java/connector/JavaConnector.java => jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpConnector.java} (92%)
rename connectors/{java-connector/src/main/java/org/glassfish/jersey/java/connector/JavaConnectorProvider.java => jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpConnectorProvider.java} (79%)
rename connectors/{java-connector/src/main/java/org/glassfish/jersey/java => jnh-connector/src/main/java/org/glassfish/jersey/jnh}/connector/package-info.java (86%)
rename connectors/{java-connector/src/main/resources/org/glassfish/jersey/java => jnh-connector/src/main/resources/org/glassfish/jersey/jnh}/connector/localization.properties (92%)
rename connectors/{java-connector/src/test/java/org/glassfish/jersey/java => jnh-connector/src/test/java/org/glassfish/jersey/jnh}/connector/AbstractJavaConnectorTest.java (93%)
rename connectors/{java-connector/src/test/java/org/glassfish/jersey/java => jnh-connector/src/test/java/org/glassfish/jersey/jnh}/connector/AsyncTest.java (96%)
rename connectors/{java-connector/src/test/java/org/glassfish/jersey/java => jnh-connector/src/test/java/org/glassfish/jersey/jnh}/connector/BodyPublisherTest.java (94%)
rename connectors/{java-connector/src/test/java/org/glassfish/jersey/java => jnh-connector/src/test/java/org/glassfish/jersey/jnh}/connector/OptionsMethodTest.java (90%)
rename connectors/{java-connector/src/test/java/org/glassfish/jersey/java => jnh-connector/src/test/java/org/glassfish/jersey/jnh}/connector/RedirectTest.java (92%)
rename connectors/{java-connector/src/test/java/org/glassfish/jersey/java => jnh-connector/src/test/java/org/glassfish/jersey/jnh}/connector/RetrieveHttpClientFromConnectorProviderTest.java (68%)
diff --git a/bom/pom.xml b/bom/pom.xml
index 32bf17d0556..8584f5132de 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -80,7 +80,7 @@
org.glassfish.jersey.connectors
- jersey-java-connector
+ jersey-jnh-connector
${project.version}
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index 7e3c65c302e..bd175fb442b 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -73,6 +73,11 @@
jersey-helidon-connector
${project.version}
+
+ org.glassfish.jersey.connectors
+ jersey-jnh-connector
+ ${project.version}
+
org.glassfish.jersey.connectors
jersey-jdk-connector
diff --git a/connectors/java-connector/src/main/java/org/glassfish/jersey/java/connector/JavaClientProperties.java b/connectors/java-connector/src/main/java/org/glassfish/jersey/java/connector/JavaClientProperties.java
deleted file mode 100644
index cb8f60e8c25..00000000000
--- a/connectors/java-connector/src/main/java/org/glassfish/jersey/java/connector/JavaClientProperties.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.java.connector;
-
-import org.glassfish.jersey.internal.util.PropertiesClass;
-
-import java.net.http.HttpClient;
-
-/**
- * Provides configuration properties for a {@link JavaConnector}.
- *
- * @author Steffen Nießing
- */
-@PropertiesClass
-public class JavaClientProperties {
- /**
- * Configuration of the {@link java.net.CookieHandler} that should be used by the {@link HttpClient}.
- * If this option is not set, {@link HttpClient#cookieHandler()} will return an empty {@link java.util.Optional}
- * and therefore no cookie handler will be used.
- *
- * A provided value to this option has to be of type {@link java.net.CookieHandler}.
- */
- public static final String COOKIE_HANDLER = "jersey.config.java.client.cookieHandler";
-
- /**
- * Configuration of SSL parameters used by the {@link HttpClient}.
- * If this option is not set, then the {@link HttpClient} will use implementation specific default values.
- *
- * A provided value to this option has to be of type {@link javax.net.ssl.SSLParameters}.
- */
- public static final String SSL_PARAMETERS = "jersey.config.java.client.sslParameters";
-
- /**
- * Prevent this class from instantiation.
- */
- private JavaClientProperties() {}
-}
diff --git a/connectors/java-connector/pom.xml b/connectors/jnh-connector/pom.xml
similarity index 90%
rename from connectors/java-connector/pom.xml
rename to connectors/jnh-connector/pom.xml
index c2f1ef073fd..df184decb90 100644
--- a/connectors/java-connector/pom.xml
+++ b/connectors/jnh-connector/pom.xml
@@ -1,7 +1,7 @@
diff --git a/docs/src/main/docbook/appendix-properties.xml b/docs/src/main/docbook/appendix-properties.xml
index a3232c67a25..dcd681b0d45 100644
--- a/docs/src/main/docbook/appendix-properties.xml
+++ b/docs/src/main/docbook/appendix-properties.xml
@@ -1849,4 +1849,55 @@
+
+ Java Net HTTP client configuration properties
+
+
+ List of client configuration properties that can be found in &jersey.jnh.JavaNetHttpClientProperties; class.
+
+
+
+ List of Java Net HTTP client configuration properties
+
+
+
+ Constant
+ Value
+ Description
+
+
+
+
+ &jersey.jnh.JavaNetHttpClientProperties.COOKIE_HANDLER;
+ jersey.config.jnh.client.cookieHandler
+
+
+ Configuration of the java.net.CookieHandler that should be used by the
+ java.net.http.HttpClient . If this option is not set,
+ java.net.http.HttpClient#cookieHandler() will return an empty
+ java.util.Optional and therefore no cookie handler will be used.
+
+
+ A provided value to this option has to be of type java.net.CookieHandler .
+
+
+
+
+ &jersey.jnh.JavaNetHttpClientProperties.SSL_PARAMETERS;
+ jersey.config.jnh.client.sslParameters
+
+
+ Configuration of SSL parameters used by the java.net.http.HttpClient .
+ If this option is not set, then the java.net.http.HttpClient will use
+ implementation specific default values.
+
+
+ A provided value to this option has to be of type javax.net.ssl.SSLParameters .
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/src/main/docbook/client.xml b/docs/src/main/docbook/client.xml
index 1ba38d2d646..8d3fd7497eb 100644
--- a/docs/src/main/docbook/client.xml
+++ b/docs/src/main/docbook/client.xml
@@ -670,6 +670,11 @@ webTarget.request().post(Entity.entity(f, MediaType.TEXT_PLAIN_TYPE));
&jersey.jdk.JdkConnectorProvider;
org.glassfish.jersey.connectors:jersey-jdk-connector
+
+ Java java.net.http client
+ &jersey.jnh.JavaNetHttpConnectorProvider;
+ org.glassfish.jersey.connectors:jersey-jnh-connector
+
diff --git a/docs/src/main/docbook/jersey.ent b/docs/src/main/docbook/jersey.ent
index 4ffb0df942f..bc123fe1b1e 100644
--- a/docs/src/main/docbook/jersey.ent
+++ b/docs/src/main/docbook/jersey.ent
@@ -475,6 +475,11 @@
JettyHttpContainerFactory">
JettyHttpContainerProvider">
JettyWebContainerFactory">
+JavaNetHttpConnectorProvider">
+JavaNetHttpClientProperties">
+JavaNetHttpClientProperties">
+JavaNetHttpClientProperties.COOKIE_HANDLER">
+JavaNetHttpClientProperties.SSL_PARAMETERS">
DeclarativeLinkingFeature">
LoggingFeature">
LoggingFeature.DEFAULT_LOGGER_NAME">
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index b52fcd74dd9..e58048f55b4 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -127,6 +127,11 @@
jersey-grizzly-connector
test
+
+ org.glassfish.jersey.connectors
+ jersey-jnh-connector
+ test
+
org.glassfish.jersey.connectors
jersey-jdk-connector
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/HttpPatchTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/HttpPatchTest.java
index 4a4fabed3a5..bfc5bb03cff 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/HttpPatchTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/HttpPatchTest.java
@@ -37,6 +37,7 @@
import org.glassfish.jersey.grizzly.connector.GrizzlyConnectorProvider;
import org.glassfish.jersey.jdk.connector.JdkConnectorProvider;
import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
+import org.glassfish.jersey.jnh.connector.JavaNetHttpConnectorProvider;
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.netty.connector.NettyConnectorProvider;
import org.glassfish.jersey.server.ResourceConfig;
@@ -66,6 +67,7 @@ public static List testData() {
{Apache5ConnectorProvider.class},
{NettyConnectorProvider.class},
{JdkConnectorProvider.class},
+ {JavaNetHttpConnectorProvider.class}
}));
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/RequestHeaderModificationsTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/RequestHeaderModificationsTest.java
index d955ff300f9..22993092575 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/RequestHeaderModificationsTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/RequestHeaderModificationsTest.java
@@ -56,9 +56,10 @@
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.HttpUrlConnectorProvider;
import org.glassfish.jersey.client.spi.ConnectorProvider;
+import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
+import org.glassfish.jersey.jnh.connector.JavaNetHttpConnectorProvider;
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.grizzly.connector.GrizzlyConnectorProvider;
-import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
@@ -105,11 +106,13 @@ public static List testData() {
{JettyConnectorProvider.class, false, false}, // change to true when JERSEY-2341 fixed
{ApacheConnectorProvider.class, false, false}, // change to true when JERSEY-2341 fixed
{Apache5ConnectorProvider.class, false, false}, // change to true when JERSEY-2341 fixed
+ {JavaNetHttpConnectorProvider.class, true, false},
{HttpUrlConnectorProvider.class, true, true},
{GrizzlyConnectorProvider.class, false, true}, // change to true when JERSEY-2341 fixed
{JettyConnectorProvider.class, false, true}, // change to true when JERSEY-2341 fixed
{ApacheConnectorProvider.class, false, true}, // change to true when JERSEY-2341 fixed
{Apache5ConnectorProvider.class, false, true}, // change to true when JERSEY-2341 fixed
+ {JavaNetHttpConnectorProvider.class, true, true},
}));
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/AbstractConnectorServerTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/AbstractConnectorServerTest.java
index f26fca912b2..79d944d31a1 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/AbstractConnectorServerTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/AbstractConnectorServerTest.java
@@ -29,6 +29,7 @@
import org.glassfish.jersey.client.spi.ConnectorProvider;
import org.glassfish.jersey.grizzly.connector.GrizzlyConnectorProvider;
import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
+import org.glassfish.jersey.jnh.connector.JavaNetHttpConnectorProvider;
import org.glassfish.jersey.tests.e2e.client.connector.ProviderFiltering;
import org.junit.After;
@@ -63,7 +64,8 @@ public static Iterable testData() {
{new GrizzlyConnectorProvider()},
{new JettyConnectorProvider()},
{new ApacheConnectorProvider()},
- {new Apache5ConnectorProvider()}
+ {new Apache5ConnectorProvider()},
+ {new JavaNetHttpConnectorProvider()}
}));
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslConnectorHostnameVerifierTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslConnectorHostnameVerifierTest.java
index 1e211732589..e96268445e3 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslConnectorHostnameVerifierTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslConnectorHostnameVerifierTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,6 +32,7 @@
import org.glassfish.jersey.client.spi.ConnectorProvider;
import org.glassfish.jersey.grizzly.connector.GrizzlyConnectorProvider;
import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
+import org.glassfish.jersey.jnh.connector.JavaNetHttpConnectorProvider;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -67,8 +68,12 @@ protected String clientTrustStore() {
*/
@Test
public void testHostnameVerifierApplied() throws Exception {
- // Grizzly and Jetty connectors don't support Hostname Verification
- if (isExcluded(Arrays.asList(GrizzlyConnectorProvider.class, JettyConnectorProvider.class))) {
+ // Grizzly, JavaNetHttp, and Jetty connectors don't support Hostname Verification
+ if (isExcluded(Arrays.asList(
+ GrizzlyConnectorProvider.class,
+ JettyConnectorProvider.class,
+ JavaNetHttpConnectorProvider.class)
+ )) {
return;
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/httpurlconnector/Expect100ContinueTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/httpurlconnector/Expect100ContinueTest.java
index 176e4d34719..cae89b96281 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/httpurlconnector/Expect100ContinueTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/httpurlconnector/Expect100ContinueTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,9 +16,7 @@
package org.glassfish.jersey.tests.e2e.client.httpurlconnector;
-import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties;
-import org.glassfish.jersey.client.HttpUrlConnectorProvider;
import org.glassfish.jersey.client.RequestEntityProcessing;
import org.glassfish.jersey.client.http.Expect100ContinueFeature;
import org.glassfish.jersey.server.ResourceConfig;
From 91ede06376e30f1a9ead9f08586d0ab39bf93d21 Mon Sep 17 00:00:00 2001
From: dansiviter
Date: Fri, 13 May 2022 06:34:45 +0100
Subject: [PATCH 040/305] Use Jsonb more effectively (#5047)
---
.../jsonb/internal/JsonBindingProvider.java | 23 +++++++++----------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/media/json-binding/src/main/java/org/glassfish/jersey/jsonb/internal/JsonBindingProvider.java b/media/json-binding/src/main/java/org/glassfish/jersey/jsonb/internal/JsonBindingProvider.java
index 98ea299fc67..efc7c814e4c 100644
--- a/media/json-binding/src/main/java/org/glassfish/jersey/jsonb/internal/JsonBindingProvider.java
+++ b/media/json-binding/src/main/java/org/glassfish/jersey/jsonb/internal/JsonBindingProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,9 +19,17 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
+import java.io.OutputStreamWriter;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
+import org.glassfish.jersey.jsonb.LocalizationMessages;
+import org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider;
+import org.glassfish.jersey.message.internal.EntityInputStream;
+
+import jakarta.json.bind.Jsonb;
+import jakarta.json.bind.JsonbBuilder;
+import jakarta.json.bind.JsonbException;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.ProcessingException;
import jakarta.ws.rs.Produces;
@@ -34,14 +42,6 @@
import jakarta.ws.rs.ext.Provider;
import jakarta.ws.rs.ext.Providers;
-import jakarta.json.bind.Jsonb;
-import jakarta.json.bind.JsonbBuilder;
-import jakarta.json.bind.JsonbException;
-
-import org.glassfish.jersey.jsonb.LocalizationMessages;
-import org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider;
-import org.glassfish.jersey.message.internal.EntityInputStream;
-
/**
* Entity provider (reader and writer) for JSONB.
*
@@ -100,9 +100,8 @@ public void writeTo(Object o, Class> type, Type genericType,
OutputStream entityStream) throws IOException, WebApplicationException {
Jsonb jsonb = getJsonb(type);
try {
- entityStream.write(jsonb.toJson(o).getBytes(AbstractMessageReaderWriterProvider.getCharset(mediaType)));
- entityStream.flush();
- } catch (IOException e) {
+ jsonb.toJson(o, genericType, new OutputStreamWriter(entityStream, getCharset(mediaType)));
+ } catch (JsonbException e) {
throw new ProcessingException(LocalizationMessages.ERROR_JSONB_SERIALIZATION(), e);
}
}
From c0ed81dd7ffa686d9181f86c9e1469ff6312f038 Mon Sep 17 00:00:00 2001
From: jbescos
Date: Tue, 17 May 2022 16:05:58 +0200
Subject: [PATCH 041/305] Netty Connector doesn't support Followredirects
(#5048)
Signed-off-by: Jorge Bescos Gascon
---
.../netty/connector/JerseyClientHandler.java | 62 ++++++-
.../connector/NettyClientProperties.java | 14 ++
.../netty/connector/NettyConnector.java | 29 ++--
.../connector/internal/RedirectException.java | 62 +++++++
.../netty/connector/localization.properties | 7 +-
.../netty/connector/FollowRedirectsTest.java | 163 ++++++++++++++++++
docs/src/main/docbook/appendix-properties.xml | 12 ++
docs/src/main/docbook/jersey.ent | 1 +
8 files changed, 332 insertions(+), 18 deletions(-)
create mode 100644 connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/internal/RedirectException.java
create mode 100644 connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/FollowRedirectsTest.java
diff --git a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/JerseyClientHandler.java b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/JerseyClientHandler.java
index 93e20c25a39..af8fa5a1585 100644
--- a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/JerseyClientHandler.java
+++ b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/JerseyClientHandler.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,15 +18,20 @@
import java.io.IOException;
import java.io.InputStream;
+import java.net.URI;
import java.util.Map;
+import java.util.Set;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeoutException;
+import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.Response;
+import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.ClientRequest;
import org.glassfish.jersey.client.ClientResponse;
import org.glassfish.jersey.netty.connector.internal.NettyInputStream;
+import org.glassfish.jersey.netty.connector.internal.RedirectException;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
@@ -35,6 +40,7 @@
import io.netty.handler.codec.http.HttpHeaderNames;
import io.netty.handler.codec.http.HttpObject;
import io.netty.handler.codec.http.HttpResponse;
+import io.netty.handler.codec.http.HttpResponseStatus;
import io.netty.handler.codec.http.HttpUtil;
import io.netty.handler.codec.http.LastHttpContent;
import io.netty.handler.timeout.IdleStateEvent;
@@ -46,21 +52,32 @@
*/
class JerseyClientHandler extends SimpleChannelInboundHandler {
+ private static final int DEFAULT_MAX_REDIRECTS = 5;
+
+ // Modified only by the same thread. No need to synchronize it.
+ private final Set redirectUriHistory;
private final ClientRequest jerseyRequest;
private final CompletableFuture responseAvailable;
private final CompletableFuture> responseDone;
+ private final boolean followRedirects;
+ private final int maxRedirects;
+ private final NettyConnector connector;
private NettyInputStream nis;
private ClientResponse jerseyResponse;
private boolean readTimedOut;
- JerseyClientHandler(ClientRequest request,
- CompletableFuture responseAvailable,
- CompletableFuture> responseDone) {
+ JerseyClientHandler(ClientRequest request, CompletableFuture responseAvailable,
+ CompletableFuture> responseDone, Set redirectUriHistory, NettyConnector connector) {
+ this.redirectUriHistory = redirectUriHistory;
this.jerseyRequest = request;
this.responseAvailable = responseAvailable;
this.responseDone = responseDone;
+ // Follow redirects by default
+ this.followRedirects = jerseyRequest.resolveProperty(ClientProperties.FOLLOW_REDIRECTS, true);
+ this.maxRedirects = jerseyRequest.resolveProperty(NettyClientProperties.MAX_REDIRECTS, DEFAULT_MAX_REDIRECTS);
+ this.connector = connector;
}
@Override
@@ -83,7 +100,41 @@ protected void notifyResponse() {
if (jerseyResponse != null) {
ClientResponse cr = jerseyResponse;
jerseyResponse = null;
- responseAvailable.complete(cr);
+ int responseStatus = cr.getStatus();
+ if (followRedirects
+ && (responseStatus == HttpResponseStatus.MOVED_PERMANENTLY.code()
+ || responseStatus == HttpResponseStatus.FOUND.code()
+ || responseStatus == HttpResponseStatus.SEE_OTHER.code()
+ || responseStatus == HttpResponseStatus.TEMPORARY_REDIRECT.code()
+ || responseStatus == HttpResponseStatus.PERMANENT_REDIRECT.code())) {
+ String location = cr.getHeaderString(HttpHeaders.LOCATION);
+ if (location == null || location.isEmpty()) {
+ responseAvailable.completeExceptionally(new RedirectException(LocalizationMessages.REDIRECT_NO_LOCATION()));
+ } else {
+ try {
+ URI newUri = URI.create(location);
+ boolean alreadyRequested = !redirectUriHistory.add(newUri);
+ if (alreadyRequested) {
+ // infinite loop detection
+ responseAvailable.completeExceptionally(
+ new RedirectException(LocalizationMessages.REDIRECT_INFINITE_LOOP()));
+ } else if (redirectUriHistory.size() > maxRedirects) {
+ // maximal number of redirection
+ responseAvailable.completeExceptionally(
+ new RedirectException(LocalizationMessages.REDIRECT_LIMIT_REACHED(maxRedirects)));
+ } else {
+ ClientRequest newReq = new ClientRequest(jerseyRequest);
+ newReq.setUri(newUri);
+ connector.execute(newReq, redirectUriHistory, responseAvailable);
+ }
+ } catch (IllegalArgumentException e) {
+ responseAvailable.completeExceptionally(
+ new RedirectException(LocalizationMessages.REDIRECT_ERROR_DETERMINING_LOCATION(location)));
+ }
+ }
+ } else {
+ responseAvailable.complete(cr);
+ }
}
}
@@ -91,7 +142,6 @@ protected void notifyResponse() {
public void channelRead0(ChannelHandlerContext ctx, HttpObject msg) {
if (msg instanceof HttpResponse) {
final HttpResponse response = (HttpResponse) msg;
-
jerseyResponse = new ClientResponse(new Response.StatusType() {
@Override
public int getStatusCode() {
diff --git a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyClientProperties.java b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyClientProperties.java
index bf34699708d..671b08ff258 100644
--- a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyClientProperties.java
+++ b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyClientProperties.java
@@ -68,4 +68,18 @@ public class NettyClientProperties {
* @see javax.net.ssl.SSLParameters#setEndpointIdentificationAlgorithm(String)
*/
public static final String ENABLE_SSL_HOSTNAME_VERIFICATION = "jersey.config.client.tls.enableHostnameVerification";
+
+ /**
+ * The maximal number of redirects during single request.
+ *
+ * Value is expected to be positive {@link Integer}. Default value is {@value #DEFAULT_MAX_REDIRECTS}.
+ *
+ * HTTP redirection must be enabled by property {@link org.glassfish.jersey.client.ClientProperties#FOLLOW_REDIRECTS},
+ * otherwise {@code MAX_REDIRECTS} is not applied.
+ *
+ * @since 2.36
+ * @see org.glassfish.jersey.client.ClientProperties#FOLLOW_REDIRECTS
+ * @see org.glassfish.jersey.netty.connector.internal.RedirectException
+ */
+ public static final String MAX_REDIRECTS = "jersey.config.client.NettyConnectorProvider.maxRedirects";
}
diff --git a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
index c97ea2e16c6..ba1f8c23543 100644
--- a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
+++ b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
@@ -22,9 +22,11 @@
import java.net.URI;
import java.util.ArrayList;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
+import java.util.Set;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionException;
import java.util.concurrent.ExecutorService;
@@ -151,7 +153,9 @@ class NettyConnector implements Connector {
@Override
public ClientResponse apply(ClientRequest jerseyRequest) {
try {
- return execute(jerseyRequest).join();
+ CompletableFuture response = new CompletableFuture<>();
+ execute(jerseyRequest, new HashSet<>(), response);
+ return response.join();
} catch (CompletionException cex) {
final Throwable t = cex.getCause() == null ? cex : cex.getCause();
throw new ProcessingException(t.getMessage(), t);
@@ -162,19 +166,25 @@ public ClientResponse apply(ClientRequest jerseyRequest) {
@Override
public Future> apply(final ClientRequest jerseyRequest, final AsyncConnectorCallback jerseyCallback) {
- return execute(jerseyRequest).whenCompleteAsync((r, th) -> {
- if (th == null) jerseyCallback.response(r);
- else jerseyCallback.failure(th);
- }, executorService);
+ CompletableFuture response = new CompletableFuture<>();
+ response.whenCompleteAsync((r, th) -> {
+ if (th == null) {
+ jerseyCallback.response(r);
+ } else {
+ jerseyCallback.failure(th);
+ }
+ }, executorService);
+ execute(jerseyRequest, new HashSet<>(), response);
+ return response;
}
- protected CompletableFuture execute(final ClientRequest jerseyRequest) {
+ protected void execute(final ClientRequest jerseyRequest, final Set redirectUriHistory,
+ final CompletableFuture responseAvailable) {
Integer timeout = jerseyRequest.resolveProperty(ClientProperties.READ_TIMEOUT, 0);
if (timeout == null || timeout < 0) {
throw new ProcessingException(LocalizationMessages.WRONG_READ_TIMEOUT(timeout));
}
- final CompletableFuture responseAvailable = new CompletableFuture<>();
final CompletableFuture> responseDone = new CompletableFuture<>();
final URI requestUri = jerseyRequest.getUri();
@@ -290,7 +300,8 @@ protected void initChannel(SocketChannel ch) throws Exception {
// assert: it is ok to abort the entire response, if responseDone is completed exceptionally - in particular, nothing
// will leak
final Channel ch = chan;
- JerseyClientHandler clientHandler = new JerseyClientHandler(jerseyRequest, responseAvailable, responseDone);
+ JerseyClientHandler clientHandler =
+ new JerseyClientHandler(jerseyRequest, responseAvailable, responseDone, redirectUriHistory, this);
// read timeout makes sense really as an inactivity timeout
ch.pipeline().addLast(READ_TIMEOUT_HANDLER,
new IdleStateHandler(0, 0, timeout, TimeUnit.MILLISECONDS));
@@ -411,8 +422,6 @@ public void run() {
} catch (InterruptedException e) {
responseDone.completeExceptionally(e);
}
-
- return responseAvailable;
}
private String buildPathWithQueryParameters(URI requestUri) {
diff --git a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/internal/RedirectException.java b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/internal/RedirectException.java
new file mode 100644
index 00000000000..bef04e18035
--- /dev/null
+++ b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/internal/RedirectException.java
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.netty.connector.internal;
+
+import org.glassfish.jersey.client.ClientProperties;
+
+/**
+ * This Exception is used only if {@link ClientProperties#FOLLOW_REDIRECTS} is set to {@code true}.
+ *
+ * This exception is thrown when any of the Redirect HTTP response status codes (301, 302, 303, 307, 308) is received and:
+ *
+ *
+ * the chained redirection count exceeds the value of
+ * {@link org.glassfish.jersey.netty.connector.NettyClientProperties#MAX_REDIRECTS}
+ *
+ *
+ * or an infinite redirection loop is detected
+ *
+ *
+ * or Location response header is missing, empty or does not contain a valid {@link java.net.URI}.
+ *
+ *
+ *
+ */
+public class RedirectException extends Exception {
+
+ private static final long serialVersionUID = 4357724300486801294L;
+
+ /**
+ * Constructor.
+ *
+ * @param message the detail message. The detail message is saved for
+ * later retrieval by the {@link #getMessage()} method.
+ */
+ public RedirectException(String message) {
+ super(message);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param message the detail message. The detail message is saved for
+ * later retrieval by the {@link #getMessage()} method.
+ */
+ public RedirectException(String message, Throwable t) {
+ super(message, t);
+ }
+}
diff --git a/connectors/netty-connector/src/main/resources/org/glassfish/jersey/netty/connector/localization.properties b/connectors/netty-connector/src/main/resources/org/glassfish/jersey/netty/connector/localization.properties
index bf12db6c02c..9055d6277a0 100644
--- a/connectors/netty-connector/src/main/resources/org/glassfish/jersey/netty/connector/localization.properties
+++ b/connectors/netty-connector/src/main/resources/org/glassfish/jersey/netty/connector/localization.properties
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2016, 2021 Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,4 +19,7 @@ wrong.read.timeout=Unexpected ("{0}") READ_TIMEOUT.
wrong.max.pool.size=Unexpected ("{0}") maximum number of connections per destination.
wrong.max.pool.total=Unexpected ("{0}") maximum number of connections total.
wrong.max.pool.idle=Unexpected ("{0}") maximum number of idle seconds.
-
+redirect.no.location="Received redirect that does not contain a location or the location is empty."
+redirect.error.determining.location="Error determining redirect location: ({0})."
+redirect.infinite.loop="Infinite loop in chained redirects detected."
+redirect.limit.reached="Max chained redirect limit ({0}) exceeded."
diff --git a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/FollowRedirectsTest.java b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/FollowRedirectsTest.java
new file mode 100644
index 00000000000..269562297d1
--- /dev/null
+++ b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/FollowRedirectsTest.java
@@ -0,0 +1,163 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.netty.connector;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
+
+import java.net.URI;
+import java.util.logging.Logger;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.ProcessingException;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Response;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.netty.connector.internal.RedirectException;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+public class FollowRedirectsTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(FollowRedirectsTest.class.getName());
+ private static final String TEST_URL = "http://localhost:9998/test";
+
+ @Path("/test")
+ public static class RedirectResource {
+ @GET
+ public String get() {
+ return "GET";
+ }
+
+ @GET
+ @Path("redirect")
+ public Response redirect() {
+ return Response.seeOther(URI.create(TEST_URL)).build();
+ }
+
+ @GET
+ @Path("loop")
+ public Response loop() {
+ return Response.seeOther(URI.create(TEST_URL + "/loop")).build();
+ }
+
+ @GET
+ @Path("redirect2")
+ public Response redirect2() {
+ return Response.seeOther(URI.create(TEST_URL + "/redirect")).build();
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(RedirectResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.property(ClientProperties.FOLLOW_REDIRECTS, false);
+ config.connectorProvider(new NettyConnectorProvider());
+ }
+
+ @Test
+ public void testDoFollow() {
+ final URI u = target().getUri();
+ ClientConfig config = new ClientConfig().property(ClientProperties.FOLLOW_REDIRECTS, true);
+ config.connectorProvider(new NettyConnectorProvider());
+ Client c = ClientBuilder.newClient(config);
+ WebTarget t = c.target(u);
+ Response r = t.path("test/redirect")
+ .request().get();
+ assertEquals(200, r.getStatus());
+ assertEquals("GET", r.readEntity(String.class));
+ c.close();
+ }
+
+ @Test
+ public void testDoFollowPerRequestOverride() {
+ WebTarget t = target("test/redirect");
+ t.property(ClientProperties.FOLLOW_REDIRECTS, true);
+ Response r = t.request().get();
+ assertEquals(200, r.getStatus());
+ assertEquals("GET", r.readEntity(String.class));
+ }
+
+ @Test
+ public void testDontFollow() {
+ WebTarget t = target("test/redirect");
+ assertEquals(303, t.request().get().getStatus());
+ }
+
+ @Test
+ public void testDontFollowPerRequestOverride() {
+ final URI u = target().getUri();
+ ClientConfig config = new ClientConfig().property(ClientProperties.FOLLOW_REDIRECTS, true);
+ config.connectorProvider(new NettyConnectorProvider());
+ Client client = ClientBuilder.newClient(config);
+ WebTarget t = client.target(u);
+ t.property(ClientProperties.FOLLOW_REDIRECTS, false);
+ Response r = t.path("test/redirect").request().get();
+ assertEquals(303, r.getStatus());
+ client.close();
+ }
+
+ @Test
+ public void testInfiniteLoop() {
+ WebTarget t = target("test/loop");
+ t.property(ClientProperties.FOLLOW_REDIRECTS, true);
+ try {
+ t.request().get();
+ fail("Expected exception");
+ } catch (ProcessingException e) {
+ assertEquals(RedirectException.class, e.getCause().getClass());
+ assertEquals(LocalizationMessages.REDIRECT_INFINITE_LOOP(), e.getCause().getMessage());
+ }
+ }
+
+ @Test
+ public void testRedirectLimitReached() {
+ WebTarget t = target("test/redirect2");
+ t.property(ClientProperties.FOLLOW_REDIRECTS, true);
+ t.property(NettyClientProperties.MAX_REDIRECTS, 1);
+ try {
+ t.request().get();
+ fail("Expected exception");
+ } catch (ProcessingException e) {
+ assertEquals(RedirectException.class, e.getCause().getClass());
+ assertEquals(LocalizationMessages.REDIRECT_LIMIT_REACHED(1), e.getCause().getMessage());
+ }
+ }
+
+ @Test
+ public void testRedirectNoLimitReached() {
+ WebTarget t = target("test/redirect2");
+ t.property(ClientProperties.FOLLOW_REDIRECTS, true);
+ Response r = t.request().get();
+ assertEquals(200, r.getStatus());
+ assertEquals("GET", r.readEntity(String.class));
+ }
+}
diff --git a/docs/src/main/docbook/appendix-properties.xml b/docs/src/main/docbook/appendix-properties.xml
index 2dd099d2280..0f085eb6d43 100644
--- a/docs/src/main/docbook/appendix-properties.xml
+++ b/docs/src/main/docbook/appendix-properties.xml
@@ -1810,6 +1810,18 @@
+
+ &jersey.netty.NettyClientProperties.MAX_REDIRECTS;
+ jersey.config.client.NettyConnectorProvider.maxRedirect
+
+
+ This property determines the maximal number of redirects during single request. Value is expected to be
+ positive number. Default value is 5.
+ HTTP redirection must be enabled by property org.glassfish.jersey.client.ClientProperties.FOLLOW_REDIRECTS
+ otherwise &jersey.netty.NettyClientProperties.MAX_REDIRECTS; is not applied.
+
+
+
diff --git a/docs/src/main/docbook/jersey.ent b/docs/src/main/docbook/jersey.ent
index 88d5f4f471e..1c8bdb05646 100644
--- a/docs/src/main/docbook/jersey.ent
+++ b/docs/src/main/docbook/jersey.ent
@@ -537,6 +537,7 @@
NettyClientProperties.IDLE_CONNECTION_PRUNE_TIMEOUT" >
NettyClientProperties.MAX_CONNECTIONS" >
NettyClientProperties.MAX_CONNECTIONS_TOTAL" >
+NettyClientProperties.MAX_REDIRECTS" >
NettyConnectorProvider">
ApplicationHandler">
@BackgroundScheduler">
From 31f6557fce90b7dade46afacfc4c97b65883bb2c Mon Sep 17 00:00:00 2001
From: jansupol
Date: Thu, 14 Apr 2022 21:13:23 +0200
Subject: [PATCH 042/305] Adopt ASM 9.3
Signed-off-by: jansupol
---
NOTICE.md | 2 +-
.../org/objectweb/asm/AnnotationVisitor.java | 16 ++++-----
.../org/objectweb/asm/ByteVector.java | 12 +++++++
.../org/objectweb/asm/ClassReader.java | 15 ++++----
.../org/objectweb/asm/ClassVisitor.java | 17 +++++----
.../org/objectweb/asm/ClassWriter.java | 34 ++++++++++++++----
.../org/objectweb/asm/FieldVisitor.java | 19 +++++-----
.../org/objectweb/asm/MethodVisitor.java | 30 ++++++++--------
.../org/objectweb/asm/MethodWriter.java | 35 ++++++++++---------
.../org/objectweb/asm/ModuleVisitor.java | 4 +--
.../repackaged/org/objectweb/asm/Opcodes.java | 1 +
.../objectweb/asm/RecordComponentVisitor.java | 4 +--
.../repackaged/org/objectweb/asm/Type.java | 2 +-
.../scanning/AnnotationAcceptingListener.java | 4 +--
.../main/resources/META-INF/NOTICE.markdown | 2 +-
pom.xml | 2 +-
16 files changed, 116 insertions(+), 83 deletions(-)
diff --git a/NOTICE.md b/NOTICE.md
index c0ef15f0567..7a27297587b 100644
--- a/NOTICE.md
+++ b/NOTICE.md
@@ -95,7 +95,7 @@ KineticJS, v4.7.1
* Project: http://www.kineticjs.com, https://github.com/ericdrowell/KineticJS
* Copyright: Eric Rowell
-org.objectweb.asm Version 8.0
+org.objectweb.asm Version 9.3
* License: Modified BSD (https://asm.ow2.io/license.html)
* Copyright (c) 2000-2011 INRIA, France Telecom. All rights reserved.
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/AnnotationVisitor.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/AnnotationVisitor.java
index 8ca20390142..0654582e496 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/AnnotationVisitor.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/AnnotationVisitor.java
@@ -38,8 +38,8 @@
public abstract class AnnotationVisitor {
/**
- * The ASM API version implemented by this visitor. The value of this field must be one of {@link
- * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6} or {@link Opcodes#ASM7}.
+ * The ASM API version implemented by this visitor. The value of this field must be one of the
+ * {@code ASM}x values in {@link Opcodes}.
*/
protected final int api;
@@ -52,22 +52,22 @@ public abstract class AnnotationVisitor {
/**
* Constructs a new {@link AnnotationVisitor}.
*
- * @param api the ASM API version implemented by this visitor. Must be one of {@link
- * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6} or {@link Opcodes#ASM7}.
+ * @param api the ASM API version implemented by this visitor. Must be one of the {@code
+ * ASM}x values in {@link Opcodes}.
*/
- public AnnotationVisitor(final int api) {
+ protected AnnotationVisitor(final int api) {
this(api, null);
}
/**
* Constructs a new {@link AnnotationVisitor}.
*
- * @param api the ASM API version implemented by this visitor. Must be one of {@link
- * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6} or {@link Opcodes#ASM7}.
+ * @param api the ASM API version implemented by this visitor. Must be one of the {@code
+ * ASM}x values in {@link Opcodes}.
* @param annotationVisitor the annotation visitor to which this visitor must delegate method
* calls. May be {@literal null}.
*/
- public AnnotationVisitor(final int api, final AnnotationVisitor annotationVisitor) {
+ protected AnnotationVisitor(final int api, final AnnotationVisitor annotationVisitor) {
if (api != Opcodes.ASM9
&& api != Opcodes.ASM8
&& api != Opcodes.ASM7
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ByteVector.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ByteVector.java
index 7b386a06f25..472318f8203 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ByteVector.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ByteVector.java
@@ -65,6 +65,15 @@ public ByteVector(final int initialCapacity) {
this.length = data.length;
}
+ /**
+ * Returns the actual number of bytes in this vector.
+ *
+ * @return the actual number of bytes in this vector.
+ */
+ public int size() {
+ return length;
+ }
+
/**
* Puts a byte into this byte vector. The byte vector is automatically enlarged if necessary.
*
@@ -352,6 +361,9 @@ public ByteVector putByteArray(
* @param size number of additional bytes that this byte vector should be able to receive.
*/
private void enlarge(final int size) {
+ if (length > data.length) {
+ throw new AssertionError("Internal error");
+ }
int doubleCapacity = 2 * data.length;
int minimalCapacity = length + size;
byte[] newData = new byte[doubleCapacity > minimalCapacity ? doubleCapacity : minimalCapacity];
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassReader.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassReader.java
index b0173c81419..cd4a6bb5ad5 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassReader.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassReader.java
@@ -194,7 +194,7 @@ public ClassReader(
this.b = classFileBuffer;
// Check the class' major_version. This field is after the magic and minor_version fields, which
// use 4 and 2 bytes respectively.
- if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V18) {
+ if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V19) {
throw new IllegalArgumentException(
"Unsupported class file major version " + readShort(classFileOffset + 6));
}
@@ -308,12 +308,13 @@ public ClassReader(final String className) throws IOException {
* @return the content of the given input stream.
* @throws IOException if a problem occurs during reading.
*/
+ @SuppressWarnings("PMD.UseTryWithResources")
private static byte[] readStream(final InputStream inputStream, final boolean close)
throws IOException {
if (inputStream == null) {
throw new IOException("Class not found");
}
- int bufferSize = calculateBufferSize(inputStream);
+ int bufferSize = computeBufferSize(inputStream);
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream()) {
byte[] data = new byte[bufferSize];
int bytesRead;
@@ -334,19 +335,19 @@ private static byte[] readStream(final InputStream inputStream, final boolean cl
}
}
- private static int calculateBufferSize(final InputStream inputStream) throws IOException {
+ private static int computeBufferSize(final InputStream inputStream) throws IOException {
int expectedLength = inputStream.available();
/*
- * Some implementations can return 0 while holding available data
- * (e.g. new FileInputStream("/proc/a_file"))
- * Also in some pathological cases a very small number might be returned,
- * and in this case we use default size
+ * Some implementations can return 0 while holding available data (e.g. new
+ * FileInputStream("/proc/a_file")). Also in some pathological cases a very small number might
+ * be returned, and in this case we use a default size.
*/
if (expectedLength < 256) {
return INPUT_STREAM_DATA_CHUNK_SIZE;
}
return Math.min(expectedLength, MAX_BUFFER_SIZE);
}
+
// -----------------------------------------------------------------------------------------------
// Accessors
// -----------------------------------------------------------------------------------------------
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassVisitor.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassVisitor.java
index e3a5b605f21..8ebf594f640 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassVisitor.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassVisitor.java
@@ -40,8 +40,8 @@
public abstract class ClassVisitor {
/**
- * The ASM API version implemented by this visitor. The value of this field must be one of {@link
- * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6} or {@link Opcodes#ASM7}.
+ * The ASM API version implemented by this visitor. The value of this field must be one of the
+ * {@code ASM}x values in {@link Opcodes}.
*/
protected final int api;
@@ -51,23 +51,22 @@ public abstract class ClassVisitor {
/**
* Constructs a new {@link ClassVisitor}.
*
- * @param api the ASM API version implemented by this visitor. Must be one of {@link
- * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6} or {@link Opcodes#ASM7}.
+ * @param api the ASM API version implemented by this visitor. Must be one of the {@code
+ * ASM}x values in {@link Opcodes}.
*/
- public ClassVisitor(final int api) {
+ protected ClassVisitor(final int api) {
this(api, null);
}
/**
* Constructs a new {@link ClassVisitor}.
*
- * @param api the ASM API version implemented by this visitor. Must be one of {@link
- * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6}, {@link Opcodes#ASM7}, {@link
- * Opcodes#ASM8} or {@link Opcodes#ASM9}.
+ * @param api the ASM API version implemented by this visitor. Must be one of the {@code
+ * ASM}x values in {@link Opcodes}.
* @param classVisitor the class visitor to which this visitor must delegate method calls. May be
* null.
*/
- public ClassVisitor(final int api, final ClassVisitor classVisitor) {
+ protected ClassVisitor(final int api, final ClassVisitor classVisitor) {
if (api != Opcodes.ASM9
&& api != Opcodes.ASM8
&& api != Opcodes.ASM7
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassWriter.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassWriter.java
index 81176b8cc91..de2c44194a2 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassWriter.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassWriter.java
@@ -65,6 +65,12 @@ public class ClassWriter extends ClassVisitor {
*/
public static final int COMPUTE_FRAMES = 2;
+ /**
+ * The flags passed to the constructor. Must be zero or more of {@link #COMPUTE_MAXS} and {@link
+ * #COMPUTE_FRAMES}.
+ */
+ private final int flags;
+
// Note: fields are ordered as in the ClassFile structure, and those related to attributes are
// ordered as in Section 4.7 of the JVMS.
@@ -248,23 +254,39 @@ public ClassWriter(final int flags) {
* @param classReader the {@link ClassReader} used to read the original class. It will be used to
* copy the entire constant pool and bootstrap methods from the original class and also to
* copy other fragments of original bytecode where applicable.
- * @param flags option flags that can be used to modify the default behavior of this class.Must be
- * zero or more of {@link #COMPUTE_MAXS} and {@link #COMPUTE_FRAMES}. These option flags do
- * not affect methods that are copied as is in the new class. This means that neither the
+ * @param flags option flags that can be used to modify the default behavior of this class. Must
+ * be zero or more of {@link #COMPUTE_MAXS} and {@link #COMPUTE_FRAMES}. These option flags
+ * do not affect methods that are copied as is in the new class. This means that neither the
* maximum stack size nor the stack frames will be computed for these methods .
*/
public ClassWriter(final ClassReader classReader, final int flags) {
super(/* latest api = */ Opcodes.ASM9);
+ this.flags = flags;
symbolTable = classReader == null ? new SymbolTable(this) : new SymbolTable(this, classReader);
if ((flags & COMPUTE_FRAMES) != 0) {
- this.compute = MethodWriter.COMPUTE_ALL_FRAMES;
+ compute = MethodWriter.COMPUTE_ALL_FRAMES;
} else if ((flags & COMPUTE_MAXS) != 0) {
- this.compute = MethodWriter.COMPUTE_MAX_STACK_AND_LOCAL;
+ compute = MethodWriter.COMPUTE_MAX_STACK_AND_LOCAL;
} else {
- this.compute = MethodWriter.COMPUTE_NOTHING;
+ compute = MethodWriter.COMPUTE_NOTHING;
}
}
+ // -----------------------------------------------------------------------------------------------
+ // Accessors
+ // -----------------------------------------------------------------------------------------------
+
+ /**
+ * Returns true if all the given flags were passed to the constructor.
+ *
+ * @param flags some option flags. Must be zero or more of {@link #COMPUTE_MAXS} and {@link
+ * #COMPUTE_FRAMES}.
+ * @return true if all the given flags, or more, were passed to the constructor.
+ */
+ public boolean hasFlags(final int flags) {
+ return (this.flags & flags) == flags;
+ }
+
// -----------------------------------------------------------------------------------------------
// Implementation of the ClassVisitor abstract class
// -----------------------------------------------------------------------------------------------
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/FieldVisitor.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/FieldVisitor.java
index 716d6b0fbe6..64865d6d9a4 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/FieldVisitor.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/FieldVisitor.java
@@ -37,9 +37,8 @@
public abstract class FieldVisitor {
/**
- * The ASM API version implemented by this visitor. The value of this field must be one of {@link
- * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6}, {@link Opcodes#ASM7}, {@link
- * Opcodes#ASM8} or {@link Opcodes#ASM9}.
+ * The ASM API version implemented by this visitor. The value of this field must be one of the
+ * {@code ASM}x values in {@link Opcodes}.
*/
protected final int api;
@@ -49,24 +48,22 @@ public abstract class FieldVisitor {
/**
* Constructs a new {@link FieldVisitor}.
*
- * @param api the ASM API version implemented by this visitor. Must be one of {@link
- * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6}, {@link Opcodes#ASM7}, {@link
- * Opcodes#ASM8} or {@link Opcodes#ASM9}.
+ * @param api the ASM API version implemented by this visitor. Must be one of the {@code
+ * ASM}x values in {@link Opcodes}.
*/
- public FieldVisitor(final int api) {
+ protected FieldVisitor(final int api) {
this(api, null);
}
/**
* Constructs a new {@link FieldVisitor}.
*
- * @param api the ASM API version implemented by this visitor. Must be one of {@link
- * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6}, {@link Opcodes#ASM7} or {@link
- * Opcodes#ASM8}.
+ * @param api the ASM API version implemented by this visitor. Must be one of the {@code
+ * ASM}x values in {@link Opcodes}.
* @param fieldVisitor the field visitor to which this visitor must delegate method calls. May be
* null.
*/
- public FieldVisitor(final int api, final FieldVisitor fieldVisitor) {
+ protected FieldVisitor(final int api, final FieldVisitor fieldVisitor) {
if (api != Opcodes.ASM9
&& api != Opcodes.ASM8
&& api != Opcodes.ASM7
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodVisitor.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodVisitor.java
index 77392c7fec1..805aed50170 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodVisitor.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodVisitor.java
@@ -51,8 +51,8 @@ public abstract class MethodVisitor {
private static final String REQUIRES_ASM5 = "This feature requires ASM5";
/**
- * The ASM API version implemented by this visitor. The value of this field must be one of {@link
- * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6} or {@link Opcodes#ASM7}.
+ * The ASM API version implemented by this visitor. The value of this field must be one of the
+ * {@code ASM}x values in {@link Opcodes}.
*/
protected final int api;
@@ -64,22 +64,22 @@ public abstract class MethodVisitor {
/**
* Constructs a new {@link MethodVisitor}.
*
- * @param api the ASM API version implemented by this visitor. Must be one of {@link
- * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6} or {@link Opcodes#ASM7}.
+ * @param api the ASM API version implemented by this visitor. Must be one of the {@code
+ * ASM}x values in {@link Opcodes}.
*/
- public MethodVisitor(final int api) {
+ protected MethodVisitor(final int api) {
this(api, null);
}
/**
* Constructs a new {@link MethodVisitor}.
*
- * @param api the ASM API version implemented by this visitor. Must be one of {@link
- * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6} or {@link Opcodes#ASM7}.
+ * @param api the ASM API version implemented by this visitor. Must be one of the {@code
+ * ASM}x values in {@link Opcodes}.
* @param methodVisitor the method visitor to which this visitor must delegate method calls. May
* be null.
*/
- public MethodVisitor(final int api, final MethodVisitor methodVisitor) {
+ protected MethodVisitor(final int api, final MethodVisitor methodVisitor) {
if (api != Opcodes.ASM9
&& api != Opcodes.ASM8
&& api != Opcodes.ASM7
@@ -351,12 +351,12 @@ public void visitIntInsn(final int opcode, final int operand) {
*
* @param opcode the opcode of the local variable instruction to be visited. This opcode is either
* ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE, LSTORE, FSTORE, DSTORE, ASTORE or RET.
- * @param var the operand of the instruction to be visited. This operand is the index of a local
- * variable.
+ * @param varIndex the operand of the instruction to be visited. This operand is the index of a
+ * local variable.
*/
- public void visitVarInsn(final int opcode, final int var) {
+ public void visitVarInsn(final int opcode, final int varIndex) {
if (mv != null) {
- mv.visitVarInsn(opcode, var);
+ mv.visitVarInsn(opcode, varIndex);
}
}
@@ -554,12 +554,12 @@ public void visitLdcInsn(final Object value) {
/**
* Visits an IINC instruction.
*
- * @param var index of the local variable to be incremented.
+ * @param varIndex index of the local variable to be incremented.
* @param increment amount to increment the local variable by.
*/
- public void visitIincInsn(final int var, final int increment) {
+ public void visitIincInsn(final int varIndex, final int increment) {
if (mv != null) {
- mv.visitIincInsn(var, increment);
+ mv.visitIincInsn(varIndex, increment);
}
}
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodWriter.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodWriter.java
index 24f7f6182c7..ea2e4e48ed5 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodWriter.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodWriter.java
@@ -466,7 +466,8 @@ final class MethodWriter extends MethodVisitor {
/**
* Indicates what must be computed. Must be one of {@link #COMPUTE_ALL_FRAMES}, {@link
- * #COMPUTE_INSERTED_FRAMES}, {@link #COMPUTE_MAX_STACK_AND_LOCAL} or {@link #COMPUTE_NOTHING}.
+ * #COMPUTE_INSERTED_FRAMES}, {@link COMPUTE_MAX_STACK_AND_LOCAL_FROM_FRAMES}, {@link
+ * #COMPUTE_MAX_STACK_AND_LOCAL} or {@link #COMPUTE_NOTHING}.
*/
private final int compute;
@@ -904,26 +905,26 @@ public void visitIntInsn(final int opcode, final int operand) {
}
@Override
- public void visitVarInsn(final int opcode, final int var) {
+ public void visitVarInsn(final int opcode, final int varIndex) {
lastBytecodeOffset = code.length;
// Add the instruction to the bytecode of the method.
- if (var < 4 && opcode != Opcodes.RET) {
+ if (varIndex < 4 && opcode != Opcodes.RET) {
int optimizedOpcode;
if (opcode < Opcodes.ISTORE) {
- optimizedOpcode = Constants.ILOAD_0 + ((opcode - Opcodes.ILOAD) << 2) + var;
+ optimizedOpcode = Constants.ILOAD_0 + ((opcode - Opcodes.ILOAD) << 2) + varIndex;
} else {
- optimizedOpcode = Constants.ISTORE_0 + ((opcode - Opcodes.ISTORE) << 2) + var;
+ optimizedOpcode = Constants.ISTORE_0 + ((opcode - Opcodes.ISTORE) << 2) + varIndex;
}
code.putByte(optimizedOpcode);
- } else if (var >= 256) {
- code.putByte(Constants.WIDE).put12(opcode, var);
+ } else if (varIndex >= 256) {
+ code.putByte(Constants.WIDE).put12(opcode, varIndex);
} else {
- code.put11(opcode, var);
+ code.put11(opcode, varIndex);
}
// If needed, update the maximum stack size and number of locals, and stack map frames.
if (currentBasicBlock != null) {
if (compute == COMPUTE_ALL_FRAMES || compute == COMPUTE_INSERTED_FRAMES) {
- currentBasicBlock.frame.execute(opcode, var, null, null);
+ currentBasicBlock.frame.execute(opcode, varIndex, null, null);
} else {
if (opcode == Opcodes.RET) {
// No stack size delta.
@@ -945,9 +946,9 @@ public void visitVarInsn(final int opcode, final int var) {
|| opcode == Opcodes.DLOAD
|| opcode == Opcodes.LSTORE
|| opcode == Opcodes.DSTORE) {
- currentMaxLocals = var + 2;
+ currentMaxLocals = varIndex + 2;
} else {
- currentMaxLocals = var + 1;
+ currentMaxLocals = varIndex + 1;
}
if (currentMaxLocals > maxLocals) {
maxLocals = currentMaxLocals;
@@ -1307,21 +1308,21 @@ public void visitLdcInsn(final Object value) {
}
@Override
- public void visitIincInsn(final int var, final int increment) {
+ public void visitIincInsn(final int varIndex, final int increment) {
lastBytecodeOffset = code.length;
// Add the instruction to the bytecode of the method.
- if ((var > 255) || (increment > 127) || (increment < -128)) {
- code.putByte(Constants.WIDE).put12(Opcodes.IINC, var).putShort(increment);
+ if ((varIndex > 255) || (increment > 127) || (increment < -128)) {
+ code.putByte(Constants.WIDE).put12(Opcodes.IINC, varIndex).putShort(increment);
} else {
- code.putByte(Opcodes.IINC).put11(var, increment);
+ code.putByte(Opcodes.IINC).put11(varIndex, increment);
}
// If needed, update the maximum stack size and number of locals, and stack map frames.
if (currentBasicBlock != null
&& (compute == COMPUTE_ALL_FRAMES || compute == COMPUTE_INSERTED_FRAMES)) {
- currentBasicBlock.frame.execute(Opcodes.IINC, var, null, null);
+ currentBasicBlock.frame.execute(Opcodes.IINC, varIndex, null, null);
}
if (compute != COMPUTE_NOTHING) {
- int currentMaxLocals = var + 1;
+ int currentMaxLocals = varIndex + 1;
if (currentMaxLocals > maxLocals) {
maxLocals = currentMaxLocals;
}
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ModuleVisitor.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ModuleVisitor.java
index 0089d06a4fe..96675909fa8 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ModuleVisitor.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ModuleVisitor.java
@@ -53,7 +53,7 @@ public abstract class ModuleVisitor {
* @param api the ASM API version implemented by this visitor. Must be one of {@link Opcodes#ASM6}
* or {@link Opcodes#ASM7}.
*/
- public ModuleVisitor(final int api) {
+ protected ModuleVisitor(final int api) {
this(api, null);
}
@@ -65,7 +65,7 @@ public ModuleVisitor(final int api) {
* @param moduleVisitor the module visitor to which this visitor must delegate method calls. May
* be null.
*/
- public ModuleVisitor(final int api, final ModuleVisitor moduleVisitor) {
+ protected ModuleVisitor(final int api, final ModuleVisitor moduleVisitor) {
if (api != Opcodes.ASM9
&& api != Opcodes.ASM8
&& api != Opcodes.ASM7
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Opcodes.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Opcodes.java
index 7850f210138..0a591eccd89 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Opcodes.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Opcodes.java
@@ -284,6 +284,7 @@ public interface Opcodes {
int V16 = 0 << 16 | 60;
int V17 = 0 << 16 | 61;
int V18 = 0 << 16 | 62;
+ int V19 = 0 << 16 | 63;
/**
* Version flag indicating that the class is using 'preview' features.
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/RecordComponentVisitor.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/RecordComponentVisitor.java
index bab13adeb31..65cf92c9c86 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/RecordComponentVisitor.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/RecordComponentVisitor.java
@@ -53,7 +53,7 @@ public abstract class RecordComponentVisitor {
* @param api the ASM API version implemented by this visitor. Must be one of {@link Opcodes#ASM8}
* or {@link Opcodes#ASM9}.
*/
- public RecordComponentVisitor(final int api) {
+ protected RecordComponentVisitor(final int api) {
this(api, null);
}
@@ -64,7 +64,7 @@ public RecordComponentVisitor(final int api) {
* @param recordComponentVisitor the record component visitor to which this visitor must delegate
* method calls. May be null.
*/
- public RecordComponentVisitor(
+ protected RecordComponentVisitor(
final int api, final RecordComponentVisitor recordComponentVisitor) {
if (api != Opcodes.ASM9
&& api != Opcodes.ASM8
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Type.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Type.java
index dbe11cce591..ab8687e4e85 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Type.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Type.java
@@ -440,7 +440,7 @@ private static Type getTypeInternal(
case '(':
return new Type(METHOD, descriptorBuffer, descriptorBegin, descriptorEnd);
default:
- throw new IllegalArgumentException();
+ throw new IllegalArgumentException("Invalid descriptor: " + descriptorBuffer);
}
}
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/internal/scanning/AnnotationAcceptingListener.java b/core-server/src/main/java/org/glassfish/jersey/server/internal/scanning/AnnotationAcceptingListener.java
index 99c098134e2..df41359f48d 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/internal/scanning/AnnotationAcceptingListener.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/internal/scanning/AnnotationAcceptingListener.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -303,7 +303,7 @@ private Class getClassForName(final String className) {
private static class ClassReaderWrapper {
private static final Logger LOGGER = Logger.getLogger(ClassReader.class.getName());
- private static final int WARN_VERSION = Opcodes.V18;
+ private static final int WARN_VERSION = Opcodes.V19;
private static final int INPUT_STREAM_DATA_CHUNK_SIZE = 4096;
private final byte[] b;
diff --git a/core-server/src/main/resources/META-INF/NOTICE.markdown b/core-server/src/main/resources/META-INF/NOTICE.markdown
index f975c4963c2..9399ca71520 100644
--- a/core-server/src/main/resources/META-INF/NOTICE.markdown
+++ b/core-server/src/main/resources/META-INF/NOTICE.markdown
@@ -36,7 +36,7 @@ org.glassfish.jersey.server.internal.monitoring.core
* Copyright (c) 2015-2018 Oracle and/or its affiliates. All rights reserved.
* Copyright 2010-2013 Coda Hale and Yammer, Inc.
-org.objectweb.asm Version 8.0
+org.objectweb.asm Version 9.3
* License: Modified BSD (https://asm.ow2.io/license.html)
* Copyright: (c) 2000-2011 INRIA, France Telecom. All rights reserved.
diff --git a/pom.xml b/pom.xml
index 4f2ea788808..983da586ed1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2108,7 +2108,7 @@
${project.version}
- 9.2
+ 9.3
2.3.6
1.1
2.0.2
From f40c630b60f018da7938d63895f5c29ef13ce0f5 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Fri, 20 May 2022 20:22:29 +0200
Subject: [PATCH 043/305] Prevent LoggingFeature timeout on context#hasEntity
for HEADERS_ONLY
Signed-off-by: jansupol
---
.../jersey/logging/ClientLoggingFilter.java | 4 +-
.../jersey/logging/ServerLoggingFilter.java | 4 +-
.../jersey/logging/HasEntityTimeoutTest.java | 277 ++++++++++++++++++
3 files changed, 281 insertions(+), 4 deletions(-)
create mode 100644 core-common/src/test/java/org/glassfish/jersey/logging/HasEntityTimeoutTest.java
diff --git a/core-common/src/main/java/org/glassfish/jersey/logging/ClientLoggingFilter.java b/core-common/src/main/java/org/glassfish/jersey/logging/ClientLoggingFilter.java
index b250915db6f..8b9b6fb042e 100644
--- a/core-common/src/main/java/org/glassfish/jersey/logging/ClientLoggingFilter.java
+++ b/core-common/src/main/java/org/glassfish/jersey/logging/ClientLoggingFilter.java
@@ -83,7 +83,7 @@ public void filter(final ClientRequestContext context) throws IOException {
printRequestLine(b, "Sending client request", id, context.getMethod(), context.getUri());
printPrefixedHeaders(b, id, REQUEST_PREFIX, context.getStringHeaders());
- if (context.hasEntity() && printEntity(verbosity, context.getMediaType())) {
+ if (printEntity(verbosity, context.getMediaType()) && context.hasEntity()) {
final OutputStream stream = new LoggingStream(b, context.getEntityStream());
context.setEntityStream(stream);
context.setProperty(ENTITY_LOGGER_PROPERTY, stream);
@@ -107,7 +107,7 @@ public void filter(final ClientRequestContext requestContext, final ClientRespon
printResponseLine(b, "Client response received", id, responseContext.getStatus());
printPrefixedHeaders(b, id, RESPONSE_PREFIX, responseContext.getHeaders());
- if (responseContext.hasEntity() && printEntity(verbosity, responseContext.getMediaType())) {
+ if (printEntity(verbosity, responseContext.getMediaType()) && responseContext.hasEntity()) {
responseContext.setEntityStream(logInboundEntity(b, responseContext.getEntityStream(),
MessageUtils.getCharset(responseContext.getMediaType())));
}
diff --git a/core-common/src/main/java/org/glassfish/jersey/logging/ServerLoggingFilter.java b/core-common/src/main/java/org/glassfish/jersey/logging/ServerLoggingFilter.java
index 87cac240c1a..b0f8523b7c3 100644
--- a/core-common/src/main/java/org/glassfish/jersey/logging/ServerLoggingFilter.java
+++ b/core-common/src/main/java/org/glassfish/jersey/logging/ServerLoggingFilter.java
@@ -83,7 +83,7 @@ public void filter(final ContainerRequestContext context) throws IOException {
printRequestLine(b, "Server has received a request", id, context.getMethod(), context.getUriInfo().getRequestUri());
printPrefixedHeaders(b, id, REQUEST_PREFIX, context.getHeaders());
- if (context.hasEntity() && printEntity(verbosity, context.getMediaType())) {
+ if (printEntity(verbosity, context.getMediaType()) && context.hasEntity()) {
context.setEntityStream(
logInboundEntity(b, context.getEntityStream(), MessageUtils.getCharset(context.getMediaType())));
}
@@ -105,7 +105,7 @@ public void filter(final ContainerRequestContext requestContext, final Container
printResponseLine(b, "Server responded with a response", id, responseContext.getStatus());
printPrefixedHeaders(b, id, RESPONSE_PREFIX, responseContext.getStringHeaders());
- if (responseContext.hasEntity() && printEntity(verbosity, responseContext.getMediaType())) {
+ if (printEntity(verbosity, responseContext.getMediaType()) && responseContext.hasEntity()) {
final OutputStream stream = new LoggingStream(b, responseContext.getEntityStream());
responseContext.setEntityStream(stream);
requestContext.setProperty(ENTITY_LOGGER_PROPERTY, stream);
diff --git a/core-common/src/test/java/org/glassfish/jersey/logging/HasEntityTimeoutTest.java b/core-common/src/test/java/org/glassfish/jersey/logging/HasEntityTimeoutTest.java
new file mode 100644
index 00000000000..35459f94221
--- /dev/null
+++ b/core-common/src/test/java/org/glassfish/jersey/logging/HasEntityTimeoutTest.java
@@ -0,0 +1,277 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.logging;
+
+import javax.ws.rs.ProcessingException;
+import javax.ws.rs.client.ClientRequestContext;
+import javax.ws.rs.client.ClientResponseContext;
+import javax.ws.rs.container.ContainerRequestContext;
+import javax.ws.rs.container.ContainerResponseContext;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.MultivaluedHashMap;
+import javax.ws.rs.core.UriInfo;
+import org.junit.Test;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.lang.reflect.InvocationHandler;
+import java.lang.reflect.Method;
+import java.lang.reflect.Proxy;
+import java.net.SocketTimeoutException;
+import java.net.URI;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+
+public class HasEntityTimeoutTest {
+
+ private enum DirectionType {
+ INBOUND,
+ OUTBOUND
+ }
+
+ private static class UriInfoHandler implements InvocationHandler {
+
+ @Override
+ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
+ switch (method.getName()) {
+ case "getRequestUri":
+ return URI.create("http://localhost:8080/get");
+ }
+ return null;
+ }
+ }
+
+ private static class RequestResponseHandler implements InvocationHandler {
+ private final DirectionType type;
+
+ private RequestResponseHandler(DirectionType type) {
+ this.type = type;
+ }
+
+ @Override
+ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
+ switch (method.getName()) {
+ case "hasEntity":
+ throw new ProcessingException(new SocketTimeoutException("Read timed out"));
+ case "getUri":
+ return URI.create("http://localhost:8080");
+ case "getStringHeaders":
+ case "getHeaders":
+ return new MultivaluedHashMap();
+ case "getMethod":
+ return "GET";
+ case "getMediaType":
+ return MediaType.SERVER_SENT_EVENTS_TYPE;
+ case "getEntityStream":
+ return type == DirectionType.OUTBOUND
+ ? new ByteArrayOutputStream()
+ : new ByteArrayInputStream("entity".getBytes());
+ case "getStatus":
+ return 200;
+ case "getUriInfo":
+ return Proxy.newProxyInstance(
+ UriInfo.class.getClassLoader(),
+ new Class[]{UriInfo.class},
+ new UriInfoHandler());
+ }
+ return null;
+ }
+ }
+
+ @Test
+ public void testClientFilterTimedOut() throws IOException {
+ ClientLoggingFilter loggingFilter = new ClientLoggingFilter(
+ LoggingFeature.builder()
+ .withLogger(Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME))
+ .level(Level.INFO)
+ .verbosity(LoggingFeature.Verbosity.HEADERS_ONLY)
+ .maxEntitySize(10)
+ );
+
+ ClientRequestContext clientRequestContext = (ClientRequestContext) Proxy.newProxyInstance(
+ ClientRequestContext.class.getClassLoader(),
+ new Class[]{ClientRequestContext.class},
+ new RequestResponseHandler(DirectionType.OUTBOUND));
+ loggingFilter.filter(clientRequestContext);
+ }
+
+ @Test
+ public void testClientFilterTimedOutException() throws IOException {
+ ClientLoggingFilter loggingFilter = new ClientLoggingFilter(
+ LoggingFeature.builder()
+ .withLogger(Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME))
+ .level(Level.INFO)
+ .verbosity(LoggingFeature.Verbosity.PAYLOAD_ANY)
+ .maxEntitySize(10)
+ );
+
+ ClientRequestContext clientRequestContext = (ClientRequestContext) Proxy.newProxyInstance(
+ ClientRequestContext.class.getClassLoader(),
+ new Class[]{ClientRequestContext.class},
+ new RequestResponseHandler(DirectionType.OUTBOUND));
+ try {
+ loggingFilter.filter(clientRequestContext);
+ throw new RuntimeException("The expected exception has not been thrown");
+ } catch (ProcessingException pe) {
+ // expected
+ }
+ }
+
+ @Test
+ public void testClientFilterResponseTimedOut() throws IOException {
+ ClientLoggingFilter loggingFilter = new ClientLoggingFilter(
+ LoggingFeature.builder()
+ .withLogger(Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME))
+ .level(Level.INFO)
+ .verbosity(LoggingFeature.Verbosity.HEADERS_ONLY)
+ .maxEntitySize(10)
+ );
+
+ ClientRequestContext clientRequestContext = (ClientRequestContext) Proxy.newProxyInstance(
+ ClientRequestContext.class.getClassLoader(),
+ new Class[]{ClientRequestContext.class},
+ new RequestResponseHandler(DirectionType.OUTBOUND));
+
+ ClientResponseContext clientResponseContext = (ClientResponseContext) Proxy.newProxyInstance(
+ ClientResponseContext.class.getClassLoader(),
+ new Class[]{ClientResponseContext.class},
+ new RequestResponseHandler(DirectionType.INBOUND));
+ loggingFilter.filter(clientRequestContext, clientResponseContext);
+ }
+
+ @Test
+ public void testClientFilterResponseTimedOutException() throws IOException {
+ ClientLoggingFilter loggingFilter = new ClientLoggingFilter(
+ LoggingFeature.builder()
+ .withLogger(Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME))
+ .level(Level.INFO)
+ .verbosity(LoggingFeature.Verbosity.PAYLOAD_ANY)
+ .maxEntitySize(10)
+ );
+
+ ClientRequestContext clientRequestContext = (ClientRequestContext) Proxy.newProxyInstance(
+ ClientRequestContext.class.getClassLoader(),
+ new Class[]{ClientRequestContext.class},
+ new RequestResponseHandler(DirectionType.OUTBOUND));
+
+ ClientResponseContext clientResponseContext = (ClientResponseContext) Proxy.newProxyInstance(
+ ClientResponseContext.class.getClassLoader(),
+ new Class[]{ClientResponseContext.class},
+ new RequestResponseHandler(DirectionType.INBOUND));
+
+ try {
+ loggingFilter.filter(clientRequestContext, clientResponseContext);
+ throw new RuntimeException("The expected exception has not been thrown");
+ } catch (ProcessingException pe) {
+ // expected
+ }
+ }
+
+ @Test
+ public void testServerFilterTimedOut() throws IOException {
+ ServerLoggingFilter loggingFilter = new ServerLoggingFilter(
+ LoggingFeature.builder()
+ .withLogger(Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME))
+ .level(Level.INFO)
+ .verbosity(LoggingFeature.Verbosity.HEADERS_ONLY)
+ .maxEntitySize(10)
+ );
+
+ ContainerRequestContext containerRequestContext = (ContainerRequestContext) Proxy.newProxyInstance(
+ ContainerRequestContext.class.getClassLoader(),
+ new Class[]{ContainerRequestContext.class},
+ new RequestResponseHandler(DirectionType.INBOUND));
+ loggingFilter.filter(containerRequestContext);
+ }
+
+ @Test
+ public void testServerFilterTimedOutException() throws IOException {
+ ServerLoggingFilter loggingFilter = new ServerLoggingFilter(
+ LoggingFeature.builder()
+ .withLogger(Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME))
+ .level(Level.INFO)
+ .verbosity(LoggingFeature.Verbosity.PAYLOAD_ANY)
+ .maxEntitySize(10)
+ );
+
+ ContainerRequestContext containerRequestContext = (ContainerRequestContext) Proxy.newProxyInstance(
+ ContainerRequestContext.class.getClassLoader(),
+ new Class[]{ContainerRequestContext.class},
+ new RequestResponseHandler(DirectionType.INBOUND));
+
+ try {
+ loggingFilter.filter(containerRequestContext);
+ throw new RuntimeException("The expected exception has not been thrown");
+ } catch (ProcessingException pe) {
+ // expected
+ }
+ }
+
+ @Test
+ public void testServerFilterResponseTimedOut() throws IOException {
+ ServerLoggingFilter loggingFilter = new ServerLoggingFilter(
+ LoggingFeature.builder()
+ .withLogger(Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME))
+ .level(Level.INFO)
+ .verbosity(LoggingFeature.Verbosity.HEADERS_ONLY)
+ .maxEntitySize(10)
+ );
+
+ ContainerRequestContext containerRequestContext = (ContainerRequestContext) Proxy.newProxyInstance(
+ ContainerRequestContext.class.getClassLoader(),
+ new Class[]{ContainerRequestContext.class},
+ new RequestResponseHandler(DirectionType.INBOUND));
+
+ ContainerResponseContext containerResponseContext = (ContainerResponseContext) Proxy.newProxyInstance(
+ ContainerResponseContext.class.getClassLoader(),
+ new Class[]{ContainerResponseContext.class},
+ new RequestResponseHandler(DirectionType.OUTBOUND));
+
+ loggingFilter.filter(containerRequestContext, containerResponseContext);
+ }
+
+ @Test
+ public void testServerFilterResponseTimedOutException() throws IOException {
+ ServerLoggingFilter loggingFilter = new ServerLoggingFilter(
+ LoggingFeature.builder()
+ .withLogger(Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME))
+ .level(Level.INFO)
+ .verbosity(LoggingFeature.Verbosity.PAYLOAD_ANY)
+ .maxEntitySize(10)
+ );
+
+ ContainerRequestContext containerRequestContext = (ContainerRequestContext) Proxy.newProxyInstance(
+ ContainerRequestContext.class.getClassLoader(),
+ new Class[]{ContainerRequestContext.class},
+ new RequestResponseHandler(DirectionType.INBOUND));
+
+ ContainerResponseContext containerResponseContext = (ContainerResponseContext) Proxy.newProxyInstance(
+ ContainerResponseContext.class.getClassLoader(),
+ new Class[]{ContainerResponseContext.class},
+ new RequestResponseHandler(DirectionType.OUTBOUND));
+
+ try {
+ loggingFilter.filter(containerRequestContext, containerResponseContext);
+ throw new RuntimeException("The expected exception has not been thrown");
+ } catch (ProcessingException pe) {
+ // expected
+ }
+ }
+
+}
From bf6dd3db9f52f2511ed66430a5d51a6464754ace Mon Sep 17 00:00:00 2001
From: jansupol
Date: Thu, 26 May 2022 14:31:55 +0200
Subject: [PATCH 044/305] Remove Spring 4 from Bom pom
Signed-off-by: jansupol
---
bom/pom.xml | 5 -----
1 file changed, 5 deletions(-)
diff --git a/bom/pom.xml b/bom/pom.xml
index 235c34e779d..eebaa713f30 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -198,11 +198,6 @@
jersey-servlet-portability
${project.version}
-
- org.glassfish.jersey.ext
- jersey-spring4
- ${project.version}
-
org.glassfish.jersey.ext
jersey-spring5
From ff90a43bec44c444878afbac68dcb346798ec211 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Mon, 6 Jun 2022 14:55:50 +0200
Subject: [PATCH 045/305] Possibly use jersey WebServer with
SeBootstrap.Configurator Document SeBootstrap API
Signed-off-by: jansupol
---
.../httpserver/GrizzlyHttpServerProvider.java | 17 +-
.../GrizzlyHttpServerProviderTest.java | 12 +-
.../jersey/jdkhttp/JdkHttpServerProvider.java | 15 +-
.../jdkhttp/JdkHttpServerProviderTest.java | 12 +-
.../jersey/jetty/JettyHttpServerProvider.java | 17 +-
.../jetty/JettyHttpServerProviderTest.java | 11 +-
.../httpserver/NettyHttpServerProvider.java | 15 +-
.../NettyHttpServerProviderTest.java | 11 +-
.../simple/SimpleHttpServerProvider.java | 15 +-
.../simple/SimpleHttpServerProviderTest.java | 11 +-
.../JerseySeBootstrapConfiguration.java | 2 +-
.../jersey/server/ServerProperties.java | 4 +-
.../jersey/server/WebServerFactory.java | 7 +-
.../server/internal/RuntimeDelegateImpl.java | 10 +-
.../jersey/server/spi/WebServerProvider.java | 29 +++-
.../server/spi/WebServerProviderTest.java | 159 ++++++++++++++++++
docs/src/main/docbook/appendix-properties.xml | 72 ++++++++
docs/src/main/docbook/deployment.xml | 82 +++++++++
docs/src/main/docbook/jersey.ent | 11 ++
.../jmockit/server/WebServerFactoryTest.java | 10 +-
20 files changed, 426 insertions(+), 96 deletions(-)
create mode 100644 core-server/src/test/java/org/glassfish/jersey/server/spi/WebServerProviderTest.java
diff --git a/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProvider.java b/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProvider.java
index a3f911c61f5..f9cfac21631 100644
--- a/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProvider.java
+++ b/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -17,6 +17,7 @@
package org.glassfish.jersey.grizzly2.httpserver;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.grizzly.http.server.HttpServer;
@@ -33,18 +34,18 @@
public final class GrizzlyHttpServerProvider implements WebServerProvider {
@Override
- public final T createServer(final Class type, final Application application,
- final JerseySeBootstrapConfiguration configuration) {
- return GrizzlyHttpServer.class == type || WebServer.class == type
- ? type.cast(new GrizzlyHttpServer(application, configuration))
+ public T createServer(final Class type, final Application application,
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(GrizzlyHttpServer.class, type, configuration)
+ ? type.cast(new GrizzlyHttpServer(application, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
@Override
public T createServer(Class type, Class extends Application> applicationClass,
- JerseySeBootstrapConfiguration configuration) {
- return GrizzlyHttpServer.class == type || WebServer.class == type
- ? type.cast(new GrizzlyHttpServer(applicationClass, configuration))
+ SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(GrizzlyHttpServer.class, type, configuration)
+ ? type.cast(new GrizzlyHttpServer(applicationClass, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
}
diff --git a/containers/grizzly2-http/src/test/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProviderTest.java b/containers/grizzly2-http/src/test/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProviderTest.java
index a7310d048dd..6f933cddcd6 100644
--- a/containers/grizzly2-http/src/test/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProviderTest.java
+++ b/containers/grizzly2-http/src/test/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -17,7 +17,6 @@
package org.glassfish.jersey.grizzly2.httpserver;
-import static java.lang.Boolean.FALSE;
import static java.lang.Boolean.TRUE;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
@@ -45,7 +44,6 @@
import org.glassfish.grizzly.http.server.HttpServer;
import org.glassfish.jersey.internal.util.PropertiesHelper;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.server.spi.Container;
import org.glassfish.jersey.server.spi.WebServer;
@@ -82,10 +80,9 @@ private void shouldProvideServer(final Object application, final Resource resour
final SeBootstrap.Configuration configuration = configuration(getPort());
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer = Application.class.isInstance(application)
- ? webServerProvider.createServer(WebServer.class, (Application) application, jerseySeConfig)
- : webServerProvider.createServer(WebServer.class, (Class) application, jerseySeConfig);
+ ? webServerProvider.createServer(WebServer.class, (Application) application, configuration)
+ : webServerProvider.createServer(WebServer.class, (Class) application, configuration);
final Object nativeHandle = webServer.unwrap(Object.class);
final CompletionStage> start = webServer.start();
final Object startResult = start.toCompletableFuture().get();
@@ -157,8 +154,7 @@ public void shouldScanFreePort() {
final SeBootstrap.Configuration configuration = configuration(SeBootstrap.Configuration.FREE_PORT);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
- final WebServer webServer = webServerProvider.createServer(WebServer.class, application, jerseySeConfig);
+ final WebServer webServer = webServerProvider.createServer(WebServer.class, application, configuration);
// then
assertThat(webServer.port(), is(greaterThan(0)));
diff --git a/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProvider.java b/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProvider.java
index 4510c53fc84..b9edb3022cd 100644
--- a/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProvider.java
+++ b/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -17,6 +17,7 @@
package org.glassfish.jersey.jdkhttp;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
@@ -35,17 +36,17 @@ public final class JdkHttpServerProvider implements WebServerProvider {
@Override
public T createServer(final Class type, final Application application,
- final JerseySeBootstrapConfiguration configuration) {
- return JdkHttpServer.class == type || WebServer.class == type
- ? type.cast(new JdkHttpServer(application, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(JdkHttpServer.class, type, configuration)
+ ? type.cast(new JdkHttpServer(application, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
@Override
public T createServer(final Class type, final Class extends Application> applicationClass,
- final JerseySeBootstrapConfiguration configuration) {
- return JdkHttpServer.class == type || WebServer.class == type
- ? type.cast(new JdkHttpServer(applicationClass, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(JdkHttpServer.class, type, configuration)
+ ? type.cast(new JdkHttpServer(applicationClass, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
}
diff --git a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProviderTest.java b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProviderTest.java
index ade52847c54..c37f7670b14 100644
--- a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProviderTest.java
+++ b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -18,7 +18,6 @@
package org.glassfish.jersey.jdkhttp;
import static java.lang.Boolean.FALSE;
-import static java.lang.Boolean.TRUE;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.Matchers.greaterThan;
@@ -44,7 +43,6 @@
import jakarta.ws.rs.core.UriBuilder;
import org.glassfish.jersey.internal.util.PropertiesHelper;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.server.spi.Container;
import org.glassfish.jersey.server.spi.WebServer;
@@ -83,10 +81,9 @@ private void shouldProvideServer(final Object application, final Resource resour
final SeBootstrap.Configuration configuration = configuration(getPort());
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer = Application.class.isInstance(application)
- ? webServerProvider.createServer(WebServer.class, (Application) application, jerseySeConfig)
- : webServerProvider.createServer(WebServer.class, (Class) application, jerseySeConfig);
+ ? webServerProvider.createServer(WebServer.class, (Application) application, configuration)
+ : webServerProvider.createServer(WebServer.class, (Class) application, configuration);
final Object nativeHandle = webServer.unwrap(Object.class);
final CompletionStage> start = webServer.start();
final Object startResult = start.toCompletableFuture().get();
@@ -158,8 +155,7 @@ public final void shouldScanFreePort() throws InterruptedException, ExecutionExc
final SeBootstrap.Configuration configuration = configuration(SeBootstrap.Configuration.FREE_PORT);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
- final WebServer webServer = webServerProvider.createServer(WebServer.class, application, jerseySeConfig);
+ final WebServer webServer = webServerProvider.createServer(WebServer.class, application, configuration);
// then
assertThat(webServer.port(), is(greaterThan(0)));
diff --git a/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpServerProvider.java b/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpServerProvider.java
index fe776b9f406..5122435d85b 100644
--- a/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpServerProvider.java
+++ b/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpServerProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -17,6 +17,7 @@
package org.glassfish.jersey.jetty;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
@@ -33,18 +34,18 @@
public final class JettyHttpServerProvider implements WebServerProvider {
@Override
- public final T createServer(final Class type, final Application application,
- final JerseySeBootstrapConfiguration configuration) {
- return JettyHttpServer.class == type || WebServer.class == type
- ? type.cast(new JettyHttpServer(application, configuration))
+ public T createServer(final Class type, final Application application,
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(JettyHttpServer.class, type, configuration)
+ ? type.cast(new JettyHttpServer(application, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
@Override
public T createServer(final Class type, final Class extends Application> applicationClass,
- final JerseySeBootstrapConfiguration configuration) {
- return JettyHttpServer.class == type || WebServer.class == type
- ? type.cast(new JettyHttpServer(applicationClass, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(JettyHttpServer.class, type, configuration)
+ ? type.cast(new JettyHttpServer(applicationClass, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
}
diff --git a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/JettyHttpServerProviderTest.java b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/JettyHttpServerProviderTest.java
index 1aa8b454956..81c1bd6c84a 100644
--- a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/JettyHttpServerProviderTest.java
+++ b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/JettyHttpServerProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -45,7 +45,6 @@
import jakarta.ws.rs.core.UriBuilder;
import org.glassfish.jersey.internal.util.PropertiesHelper;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.server.spi.Container;
import org.glassfish.jersey.server.spi.WebServer;
@@ -82,10 +81,9 @@ private void shouldProvideServer(final Object application, final Resource resour
final SeBootstrap.Configuration configuration = configuration(getPort(), FALSE);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer = Application.class.isInstance(application)
- ? webServerProvider.createServer(WebServer.class, (Application) application, jerseySeConfig)
- : webServerProvider.createServer(WebServer.class, (Class) application, jerseySeConfig);
+ ? webServerProvider.createServer(WebServer.class, (Application) application, configuration)
+ : webServerProvider.createServer(WebServer.class, (Class) application, configuration);
final Object nativeHandle = webServer.unwrap(Object.class);
final CompletionStage> start = webServer.start();
final Object startResult = start.toCompletableFuture().get();
@@ -157,8 +155,7 @@ public final void shouldScanFreePort() throws InterruptedException, ExecutionExc
final SeBootstrap.Configuration configuration = configuration(SeBootstrap.Configuration.FREE_PORT, TRUE);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
- final WebServer webServer = webServerProvider.createServer(WebServer.class, application, jerseySeConfig);
+ final WebServer webServer = webServerProvider.createServer(WebServer.class, application, configuration);
// then
assertThat(webServer.port(), is(greaterThan(0)));
diff --git a/containers/netty-http/src/main/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProvider.java b/containers/netty-http/src/main/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProvider.java
index 34c700e1043..0749369a1f8 100644
--- a/containers/netty-http/src/main/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProvider.java
+++ b/containers/netty-http/src/main/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -17,6 +17,7 @@
package org.glassfish.jersey.netty.httpserver;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
@@ -35,17 +36,17 @@ public final class NettyHttpServerProvider implements WebServerProvider {
@Override
public T createServer(final Class type, final Application application,
- final JerseySeBootstrapConfiguration configuration) {
- return NettyHttpServer.class == type || WebServer.class == type
- ? type.cast(new NettyHttpServer(application, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(NettyHttpServer.class, type, configuration)
+ ? type.cast(new NettyHttpServer(application, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
@Override
public T createServer(final Class type, final Class extends Application> applicationClass,
- final JerseySeBootstrapConfiguration configuration) {
- return NettyHttpServer.class == type || WebServer.class == type
- ? type.cast(new NettyHttpServer(applicationClass, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(NettyHttpServer.class, type, configuration)
+ ? type.cast(new NettyHttpServer(applicationClass, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
}
diff --git a/containers/netty-http/src/test/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProviderTest.java b/containers/netty-http/src/test/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProviderTest.java
index 3837377475f..69b2e7e4cdc 100644
--- a/containers/netty-http/src/test/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProviderTest.java
+++ b/containers/netty-http/src/test/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -44,7 +44,6 @@
import jakarta.ws.rs.core.UriBuilder;
import org.glassfish.jersey.internal.util.PropertiesHelper;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.server.spi.Container;
import org.glassfish.jersey.server.spi.WebServer;
@@ -84,10 +83,9 @@ private void shouldProvideServer(final Object application, final Resource resour
final SeBootstrap.Configuration configuration = configuration(getPort(), FALSE);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer = Application.class.isInstance(application)
- ? webServerProvider.createServer(WebServer.class, (Application) application, jerseySeConfig)
- : webServerProvider.createServer(WebServer.class, (Class) application, jerseySeConfig);
+ ? webServerProvider.createServer(WebServer.class, (Application) application, configuration)
+ : webServerProvider.createServer(WebServer.class, (Class) application, configuration);
final Object nativeHandle = webServer.unwrap(Object.class);
final CompletionStage> start = webServer.start();
final Object startResult = start.toCompletableFuture().get();
@@ -160,8 +158,7 @@ public final void shouldScanFreePort() throws InterruptedException, ExecutionExc
final SeBootstrap.Configuration configuration = configuration(SeBootstrap.Configuration.FREE_PORT, TRUE);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
- final WebServer webServer = webServerProvider.createServer(WebServer.class, application, jerseySeConfig);
+ final WebServer webServer = webServerProvider.createServer(WebServer.class, application, configuration);
// then
assertThat(webServer.port(), is(greaterThan(0)));
diff --git a/containers/simple-http/src/main/java/org/glassfish/jersey/simple/SimpleHttpServerProvider.java b/containers/simple-http/src/main/java/org/glassfish/jersey/simple/SimpleHttpServerProvider.java
index c4a26a7d980..33bd6a7dc5e 100644
--- a/containers/simple-http/src/main/java/org/glassfish/jersey/simple/SimpleHttpServerProvider.java
+++ b/containers/simple-http/src/main/java/org/glassfish/jersey/simple/SimpleHttpServerProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -17,6 +17,7 @@
package org.glassfish.jersey.simple;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
@@ -33,17 +34,17 @@ public final class SimpleHttpServerProvider implements WebServerProvider {
@Override
public T createServer(final Class type, final Application application,
- final JerseySeBootstrapConfiguration configuration) {
- return SimpleHttpServer.class == type || WebServer.class == type
- ? type.cast(new SimpleHttpServer(application, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(SimpleHttpServer.class, type, configuration)
+ ? type.cast(new SimpleHttpServer(application, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
@Override
public T createServer(final Class type, final Class extends Application> applicationClass,
- final JerseySeBootstrapConfiguration configuration) {
- return SimpleHttpServer.class == type || WebServer.class == type
- ? type.cast(new SimpleHttpServer(applicationClass, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(SimpleHttpServer.class, type, configuration)
+ ? type.cast(new SimpleHttpServer(applicationClass, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
}
diff --git a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/SimpleHttpServerProviderTest.java b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/SimpleHttpServerProviderTest.java
index 02314ea784e..c32e77caac5 100644
--- a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/SimpleHttpServerProviderTest.java
+++ b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/SimpleHttpServerProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -44,7 +44,6 @@
import jakarta.ws.rs.core.UriBuilder;
import org.glassfish.jersey.internal.util.PropertiesHelper;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.server.spi.Container;
import org.glassfish.jersey.server.spi.WebServer;
@@ -82,10 +81,9 @@ private void shouldProvideServer(final Object application, final Resource resour
final SeBootstrap.Configuration configuration = configuration(getPort(), FALSE);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer = Application.class.isInstance(application)
- ? webServerProvider.createServer(WebServer.class, (Application) application, jerseySeConfig)
- : webServerProvider.createServer(WebServer.class, (Class) application, jerseySeConfig);
+ ? webServerProvider.createServer(WebServer.class, (Application) application, configuration)
+ : webServerProvider.createServer(WebServer.class, (Class) application, configuration);
final Object nativeHandle = webServer.unwrap(Object.class);
final CompletionStage> start = webServer.start();
final Object startResult = start.toCompletableFuture().get();
@@ -157,8 +155,7 @@ public final void shouldScanFreePort() throws InterruptedException, ExecutionExc
final SeBootstrap.Configuration configuration = configuration(SeBootstrap.Configuration.FREE_PORT, TRUE);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
- final WebServer webServer = webServerProvider.createServer(WebServer.class, application, jerseySeConfig);
+ final WebServer webServer = webServerProvider.createServer(WebServer.class, application, configuration);
// then
assertThat(webServer.port(), is(greaterThan(0)));
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/JerseySeBootstrapConfiguration.java b/core-server/src/main/java/org/glassfish/jersey/server/JerseySeBootstrapConfiguration.java
index 3bfe5db7756..0f1d6d7e678 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/JerseySeBootstrapConfiguration.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/JerseySeBootstrapConfiguration.java
@@ -96,7 +96,7 @@ private int resolvePort() {
}
private int _resolvePort(boolean allowPrivilegedPort) {
- final int basePort = allowPrivilegedPort ? 0 : 1023;
+ final int basePort = allowPrivilegedPort ? 0 : 1024;
// Get the initial range parameters
final int lower = basePort;
final int range = 0xFFFF;
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/ServerProperties.java b/core-server/src/main/java/org/glassfish/jersey/server/ServerProperties.java
index 099ce702290..5d8a3ad16dd 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/ServerProperties.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/ServerProperties.java
@@ -775,8 +775,8 @@ public final class ServerProperties {
* {@code WEBSERVER_ALLOW_PRIVILEGED_PORTS} is {@code false}.
*
*
- * If {@link jakarta.ws.rs.SeBootstrap.Configuration#PORT} is set to {@code 0}, the implementation chooses random ports
- * (0-65535) when {@code WEBSERVER_ALLOW_PRIVILEGED_PORTS} is {@code true}, or (1024-65535) when
+ * If {@link jakarta.ws.rs.SeBootstrap.Configuration#PORT} is set to {@code 0}, the implementation scans for random unused
+ * port (0-65535) when {@code WEBSERVER_ALLOW_PRIVILEGED_PORTS} is {@code true}, or (1024-65535) when
* {@code WEBSERVER_ALLOW_PRIVILEGED_PORTS} is {@code false.}
*
*
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/WebServerFactory.java b/core-server/src/main/java/org/glassfish/jersey/server/WebServerFactory.java
index 6454fc1732f..2b61d4ae54f 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/WebServerFactory.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/WebServerFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -18,6 +18,7 @@
package org.glassfish.jersey.server;
import jakarta.ws.rs.ProcessingException;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.internal.ServiceFinder;
@@ -63,7 +64,7 @@ private WebServerFactory() {
* if no server provider supports the type.
*/
public static T createServer(final Class type, final Application application,
- final JerseySeBootstrapConfiguration configuration) {
+ final SeBootstrap.Configuration configuration) {
for (final WebServerProvider webServerProvider : ServiceFinder.find(WebServerProvider.class)) {
final T server = webServerProvider.createServer(type, application, configuration);
if (server != null) {
@@ -99,7 +100,7 @@ public static T createServer(final Class type, final Ap
* if no server provider supports the type.
*/
public static T createServer(final Class type, final Class extends Application> application,
- final JerseySeBootstrapConfiguration configuration) {
+ final SeBootstrap.Configuration configuration) {
for (final WebServerProvider webServerProvider : ServiceFinder.find(WebServerProvider.class)) {
final T server = webServerProvider.createServer(type, application, configuration);
if (server != null) {
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/internal/RuntimeDelegateImpl.java b/core-server/src/main/java/org/glassfish/jersey/server/internal/RuntimeDelegateImpl.java
index 1af9a406bb5..bfaad0e1084 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/internal/RuntimeDelegateImpl.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/internal/RuntimeDelegateImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -72,10 +72,8 @@ public CompletableFuture bootstrap(final Application appli
? (Class) configuration.property(ServerProperties.WEBSERVER_CLASS)
: WebServer.class;
- final JerseySeBootstrapConfiguration jerseySeConfiguration
- = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer
- = WebServerFactory.createServer(httpServerClass, application, jerseySeConfiguration);
+ = WebServerFactory.createServer(httpServerClass, application, configuration);
return instance(configuration, webServer);
});
}
@@ -89,10 +87,8 @@ public CompletableFuture bootstrap(final Class extends A
? (Class) configuration.property(ServerProperties.WEBSERVER_CLASS)
: WebServer.class;
- final JerseySeBootstrapConfiguration jerseySeConfiguration
- = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer
- = WebServerFactory.createServer(httpServerClass, applicationClass, jerseySeConfiguration);
+ = WebServerFactory.createServer(httpServerClass, applicationClass, configuration);
return instance(configuration, webServer);
});
}
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/spi/WebServerProvider.java b/core-server/src/main/java/org/glassfish/jersey/server/spi/WebServerProvider.java
index 63453ee106c..d1d5d2c40db 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/spi/WebServerProvider.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/spi/WebServerProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -24,7 +24,7 @@
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.server.ApplicationHandler;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
+import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.spi.Contract;
/**
@@ -86,7 +86,7 @@ public interface WebServerProvider {
*/
T createServer(Class type,
Application application,
- JerseySeBootstrapConfiguration configuration) throws ProcessingException;
+ SeBootstrap.Configuration configuration) throws ProcessingException;
/**
* Creates a server of a given type which runs the given application using the
@@ -108,5 +108,26 @@ T createServer(Class type,
*/
T createServer(Class type,
Class extends Application> applicationClass,
- JerseySeBootstrapConfiguration configuration) throws ProcessingException;
+ SeBootstrap.Configuration configuration) throws ProcessingException;
+
+
+ /**
+ * Utility function that matches {@code WebServerProvider} supported type with the user type passed either
+ * as {@link ServerProperties#WEBSERVER_CLASS} property (higher priority) or by the {@code userType} argument
+ * (lower priority).
+ * @param supportedType The type supported by the {@code WebServerProvider} implementation
+ * @param userType The user type passed in by the user, usually {@link WebServer} class.
+ * @param configuration The configuration to check {@link ServerProperties#WEBSERVER_CLASS} property
+ * @param The {@link WebServer} subtype
+ * @return @{code true} if the user provided type matches the supported type.
+ */
+ static boolean isSupportedWebServer(
+ Class extends WebServer> supportedType, Class userType, SeBootstrap.Configuration configuration) {
+ final Object webServerObj = configuration.property(ServerProperties.WEBSERVER_CLASS);
+ final Class extends WebServer> webServerCls = webServerObj == null || WebServer.class.equals(webServerObj)
+ ? null : (Class extends WebServer>) webServerObj;
+ // WebServer.class.equals(webServerObj) is the default, and then we want userType
+ return (webServerCls != null && webServerCls.isAssignableFrom(supportedType))
+ || (webServerCls == null && userType.isAssignableFrom(supportedType));
+ }
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/spi/WebServerProviderTest.java b/core-server/src/test/java/org/glassfish/jersey/server/spi/WebServerProviderTest.java
new file mode 100644
index 00000000000..553f76dc0d0
--- /dev/null
+++ b/core-server/src/test/java/org/glassfish/jersey/server/spi/WebServerProviderTest.java
@@ -0,0 +1,159 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.server.spi;
+
+import jakarta.ws.rs.ProcessingException;
+import jakarta.ws.rs.SeBootstrap;
+import jakarta.ws.rs.core.Application;
+import org.glassfish.jersey.server.ServerProperties;
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.util.concurrent.CompletionStage;
+
+public class WebServerProviderTest {
+ @Test
+ public void testPropertySetsDifferentClass() {
+ SeBootstrap.Configuration config =
+ SeBootstrap.Configuration.builder().property(ServerProperties.WEBSERVER_CLASS, WebServerTestImpl2.class).build();
+
+ Assert.assertNull(new WebServerProviderTestImpl().createServer(WebServerTestImpl.class, Application.class, config));
+ }
+
+ @Test
+ public void testPropertySetsCorrectClass() {
+ SeBootstrap.Configuration config =
+ SeBootstrap.Configuration.builder().property(ServerProperties.WEBSERVER_CLASS, WebServerTestImpl.class).build();
+
+ Assert.assertTrue(
+ WebServerTestImpl.class.isInstance(
+ new WebServerProviderTestImpl().createServer(WebServerTestImpl2.class, Application.class, config)
+ )
+ );
+ }
+
+ @Test
+ public void testPropertySetsNothingUserTypeIsWrong() {
+ SeBootstrap.Configuration config =
+ SeBootstrap.Configuration.builder().build();
+
+ Assert.assertNull(new WebServerProviderTestImpl().createServer(WebServerTestImpl2.class, Application.class, config));
+ }
+
+ @Test
+ public void testPropertySetsNothingUserTypeIsCorrectClass() {
+ SeBootstrap.Configuration config =
+ SeBootstrap.Configuration.builder().build();
+
+ Assert.assertTrue(
+ WebServerTestImpl.class.isInstance(
+ new WebServerProviderTestImpl().createServer(WebServerTestImpl.class, Application.class, config)
+ )
+ );
+ }
+
+ @Test
+ public void testPropertySetsNothingUserTypeIsSuperClass() {
+ SeBootstrap.Configuration config =
+ SeBootstrap.Configuration.builder().build();
+
+ Assert.assertTrue(
+ WebServerTestImpl.class.isInstance(
+ new WebServerProviderTestImpl().createServer(WebServer.class, Application.class, config)
+ )
+ );
+ }
+
+ public static class WebServerProviderTestImpl implements WebServerProvider {
+
+ @Override
+ public T createServer(
+ Class type, Application application, SeBootstrap.Configuration configuration) throws ProcessingException {
+ if (WebServerProvider.isSupportedWebServer(WebServerTestImpl.class, type, configuration)) {
+ return (T) new WebServerTestImpl();
+ }
+ return null;
+ }
+
+ @Override
+ public T createServer(
+ Class type,
+ Class extends Application> applicationClass,
+ SeBootstrap.Configuration configuration) throws ProcessingException {
+ if (WebServerProvider.isSupportedWebServer(WebServerTestImpl.class, type, configuration)) {
+ return (T) new WebServerTestImpl();
+ }
+ return null;
+ }
+ }
+
+ public static class WebServerTestImpl implements WebServer {
+
+ @Override
+ public Container container() {
+ return null;
+ }
+
+ @Override
+ public int port() {
+ return 0;
+ }
+
+ @Override
+ public CompletionStage> start() {
+ return null;
+ }
+
+ @Override
+ public CompletionStage> stop() {
+ return null;
+ }
+
+ @Override
+ public T unwrap(Class nativeClass) {
+ return null;
+ }
+ }
+
+ public static class WebServerTestImpl2 implements WebServer {
+
+ @Override
+ public Container container() {
+ return null;
+ }
+
+ @Override
+ public int port() {
+ return 0;
+ }
+
+ @Override
+ public CompletionStage> start() {
+ return null;
+ }
+
+ @Override
+ public CompletionStage> stop() {
+ return null;
+ }
+
+ @Override
+ public T unwrap(Class nativeClass) {
+ return null;
+ }
+ };
+}
diff --git a/docs/src/main/docbook/appendix-properties.xml b/docs/src/main/docbook/appendix-properties.xml
index dcd681b0d45..46274bdf7c0 100644
--- a/docs/src/main/docbook/appendix-properties.xml
+++ b/docs/src/main/docbook/appendix-properties.xml
@@ -731,6 +731,78 @@
+
+ SeBootstrap and WebServer related configuration properties
+
+
+ List of SeBootstrap configuration properties that can be found in &jersey.server.ServerProperties; class.
+
+
+
+ List of SeBootstrap and WebServer configuration properties
+
+
+
+ Constant
+ Value
+ Description
+
+
+
+
+ &jersey.server.ServerProperties.WEBSERVER_ALLOW_PRIVILEGED_PORTS;
+ jersey.config.server.bootstrap.webserver.allow.privileged.ports
+
+
+ Defines whether to allow privileged ports (0-1023) to be used to start the
+ &lit.jersey.server.spi.WebServer; implementation to be chosen from the unused ports when the
+ &lit.jaxrs.SeBootstrap.Configuration; PORT is set to -1 or unset.
+
+
+ The default ports are 80 for HTTP and 443 for HTTPS when
+ WEBSERVER_ALLOW_PRIVILEGED_PORTS is &lit.true; or 8080 for HTTP and 8443 for HTTPS when
+ WEBSERVER_ALLOW_PRIVILEGED_PORTS is &lit.false;.
+
+
+ If &lit.jaxrs.SeBootstrap.Configuration; PORT is set to 0 , the implementation scans for
+ random port (0-65535) when WEBSERVER_ALLOW_PRIVILEGED_PORTS is &lit.true;, or
+ (1024-65535) when WEBSERVER_ALLOW_PRIVILEGED_PORTS is &lit.false;.
+
+
+ The default this is &lit.false;. Use &lit.true; to allow a restricted port number.
+
+
+
+
+ &jersey.server.ServerProperties.WEBSERVER_AUTO_START;
+ jersey.config.server.bootstrap.webserver.autostart
+
+
+ Whether to automatically startup WebServer at bootstrap.
+
+
+ By default, servers are immediately listening to connections after bootstrap,
+ so no explicit invocation of WebServer#start() is needed.
+
+
+
+
+ &jersey.server.ServerProperties.WEBSERVER_CLASS;
+ jersey.config.server.bootstrap.webserver.class
+
+
+ Defines the implementation of WebServer to bootstrap.
+
+
+ By default auto-selects the first server provider found.
+
+
+
+
+
+
+
+
Servlet configuration properties
diff --git a/docs/src/main/docbook/deployment.xml b/docs/src/main/docbook/deployment.xml
index 55d8bb7fdd7..9fac43cf6c1 100644
--- a/docs/src/main/docbook/deployment.xml
+++ b/docs/src/main/docbook/deployment.xml
@@ -508,6 +508,88 @@ Channel server = NettyHttpContainerProvider.createServer(baseUri, resourceConfig
+
+
+ Jakarta REST Bootstrap API
+
+ Jakarta REST 3.1 comes with a new API for starting an application in Java SE environment. This
+ Bootstrap API is mainly represented by &lit.jaxrs.SeBootstrap; interface.
+ The Jakarta REST application is started as follows:
+ Application application = new MyApplication();
+SeBootstrap.Configuration.Builder configBuilder = SeBootstrap.Configuration.builder();
+CompletionStage<SeBootstrap.Instance> completionStage = SeBootstrap.start(application, configBuilder.build());
+
+
+ Later, when the SE application is no longer needed, it can be shutdown as follows:
+ CompletionStage<SeBootstrap.Instance> completionStage = ...
+SeBootstrap.Instance instance = completionStage().get();
+instance.stop();
+
+
+ The &lit.jaxrs.SeBootstrap.Configuration; allows for configuring the Jersey runtime. The Jakarta REST 3.1 allows
+ for configuring the HTTP port, the protocol (HTTP), the hostname, the root path, and SSL. The
+ &lit.jaxrs.SeBootstrap; is configured as follows:
+ SeBootstrap.Configuration.Builder configBuilder = SeBootstrap.Configuration.builder();
+configBuilder.property(SeBootstrap.Configuration.PROTOCOL, "HTTP")
+ .property(SeBootstrap.Configuration.HOST, "localhost")
+ .property(SeBootstrap.Configuration.PORT, 1234)
+ .property(SeBootstrap.Configuration.ROOT_PATH, "/root/path");
+
+
+ The &lit.jaxrs.SeBootstrap; deployment is backed up by an HTTP server described in
+ . If multiple Jersey container modules are on the classpath,
+ the first found is used.
+
+
+
+
+ Jersey WebServer SPI
+
+ Jersey &jersey.server.spi.WebServer; and &jersey.server.spi.WebServerProvider; are SPI interfaces similar to
+ &jersey.server.spi.ContainerProvider; but they are used for the SE deployment. They serve as a bridge between
+ Jersey containers and &lit.jaxrs.SeBootstrap; API.
+ The Jakarta REST application can be started as follows:
+ Application application = new MyApplication();
+SeBootstrap.Configuration.Builder configBuilder = SeBootstrap.Configuration.builder();
+WebServer webServer = WebServerFactory.createServer(WebServer.class, application, configBuilder.build());
+
+
+ Later, when the SE application is no longer needed, it can be shutdown as follows:
+ WebServer webServer = ...
+webServer.stop();
+
+
+ &jersey.server.WebServerFactory; is used to automatically choose among available implementations on a classpath.
+ If there are multiple implementations available, the first found is used. The user can choose the implementation
+ of a &lit.jersey.server.spi.WebServer; by a concrete WebServer subclass, for instance:
+
+WebServer webServer = WebServerFactory.createServer(GrizzlyHttpServer.class, application, configBuilder.build());
+ Another way to choose the &lit.jersey.server.spi.WebServer; implementation is by the
+ &lit.jersey.server.spi.WebServerProvider; implementation:
+
+WebServer webServer = GrizzlyHttpServerProvider.createServer(WebServer.class, application, configBuilder.build());
+
+
+ For additional customization of the WebServer settings, see .
+
+
+
+
+
+ When the port is set to -1, the default ports are used.
+ Unlike the default ports used by the , the &lit.jaxrs.SeBootstrap; API and
+ &lit.jersey.server.spi.WebServer; SPI use default ports 8080 and 8443, respectively.
+
+
+ When the port is set to 0, the implementation scans for a free port. The privileged ports are skipped, and the
+ scanning starts with port 1024.
+
+
+ Using the restricted ports can be ensured either by setting directly the port, or by setting
+ &jersey.server.ServerProperties.WEBSERVER_ALLOW_PRIVILEGED_PORTS; property to true in the
+ &lit.jaxrs.SeBootstrap.Configuration;
+
+
diff --git a/docs/src/main/docbook/jersey.ent b/docs/src/main/docbook/jersey.ent
index bc123fe1b1e..e7db84fa3aa 100644
--- a/docs/src/main/docbook/jersey.ent
+++ b/docs/src/main/docbook/jersey.ent
@@ -234,6 +234,7 @@
Response.Status">
Response.Status.Family">
Response.StatusType">
+SeBootstrap">
SecurityContext">
StreamingOutput">
UriBuilder">
@@ -605,11 +606,15 @@
ServerProperties.LOCATION_HEADER_RELATIVE_URI_RESOLUTION_RFC7231" >
ServerProperties.UNWRAP_COMPLETION_STAGE_IN_WRITER_ENABLE" >
ServerProperties.EMPTY_REQUEST_MEDIA_TYPE_MATCHES_ANY_CONSUMES" >
+ServerProperties.WEBSERVER_ALLOW_PRIVILEGED_PORTS" >
+ServerProperties.WEBSERVER_AUTO_START" >
+ServerProperties.WEBSERVER_CLASS" >
Uri">
UriConnegFilter">
WadlFeature">
WadlGenerator">
WadlGeneratorConfig">
+WebServerFactory">
MethodHandler">
ComponentModelValidator">
ApplicationEvent">
@@ -652,6 +657,8 @@
ContainerProvider">
ExternalRequestScope">
RequestScopedInitializer">
+WebServer">
+WebServerProvider">
ServletContainer">
ServletProperties">
ServletProperties.FILTER_CONTEXT_PATH">
@@ -791,6 +798,8 @@
@QueryParam">
ReaderInterceptor">
ReaderInterceptorContext">
+SeBootstrap">
+SeBootstrap.Configuration">
WebApplicationException">
WriterInterceptor">
WriterInterceptorContext">
@@ -1112,6 +1121,8 @@
TokenResource">
ComponentProvider">
ContainerProvider">
+WebServer">
+WebServerProvider">
ServletContainer">
ServletProperties">
ServletProperties.FILTER_CONTEXT_PATH">
diff --git a/tests/jmockit/src/test/java/org/glassfish/jersey/tests/jmockit/server/WebServerFactoryTest.java b/tests/jmockit/src/test/java/org/glassfish/jersey/tests/jmockit/server/WebServerFactoryTest.java
index 28311344750..974404c0a89 100644
--- a/tests/jmockit/src/test/java/org/glassfish/jersey/tests/jmockit/server/WebServerFactoryTest.java
+++ b/tests/jmockit/src/test/java/org/glassfish/jersey/tests/jmockit/server/WebServerFactoryTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -23,6 +23,7 @@
import java.util.Iterator;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.internal.ServiceFinder;
@@ -30,7 +31,6 @@
import org.glassfish.jersey.internal.guava.Iterators;
import org.glassfish.jersey.internal.inject.InjectionManager;
import org.glassfish.jersey.internal.inject.InjectionManagerFactory;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
import org.glassfish.jersey.server.WebServerFactory;
import org.glassfish.jersey.server.spi.WebServer;
import org.glassfish.jersey.server.spi.WebServerProvider;
@@ -50,7 +50,7 @@ public final class WebServerFactoryTest {
@Test
public final void shouldBuildServer(@Mocked final Application mockApplication,
@Mocked final WebServer mockServer,
- @Mocked final JerseySeBootstrapConfiguration mockConfiguration,
+ @Mocked final SeBootstrap.Configuration mockConfiguration,
@Mocked final InjectionManager mockInjectionManager) {
// given
ServiceFinder.setIteratorProvider(new ServiceIteratorProvider() {
@@ -63,7 +63,7 @@ public final Iterator createIterator(final Class service, final String
public final U createServer(
final Class type,
final Application application,
- final JerseySeBootstrapConfiguration configuration) {
+ final SeBootstrap.Configuration configuration) {
return application == mockApplication && configuration == mockConfiguration
? type.cast(mockServer)
: null;
@@ -73,7 +73,7 @@ public final U createServer(
public T createServer(
final Class type,
final Class extends Application> applicationClass,
- final JerseySeBootstrapConfiguration configuration) {
+ final SeBootstrap.Configuration configuration) {
return null;
}
}
From 54a2854a52fa4e0d59781676d70bcc64c8cc8d9a Mon Sep 17 00:00:00 2001
From: jansupol
Date: Mon, 6 Jun 2022 14:55:50 +0200
Subject: [PATCH 046/305] Possibly use jersey WebServer with
SeBootstrap.Configurator Document SeBootstrap API
Signed-off-by: jansupol
---
.../httpserver/GrizzlyHttpServerProvider.java | 17 +-
.../GrizzlyHttpServerProviderTest.java | 12 +-
.../jersey/jdkhttp/JdkHttpServerProvider.java | 15 +-
.../jdkhttp/JdkHttpServerProviderTest.java | 12 +-
.../jersey/jetty/JettyHttpServerProvider.java | 17 +-
.../jetty/JettyHttpServerProviderTest.java | 11 +-
.../httpserver/NettyHttpServerProvider.java | 15 +-
.../NettyHttpServerProviderTest.java | 11 +-
.../simple/SimpleHttpServerProvider.java | 15 +-
.../simple/SimpleHttpServerProviderTest.java | 11 +-
.../JerseySeBootstrapConfiguration.java | 2 +-
.../jersey/server/ServerProperties.java | 4 +-
.../jersey/server/WebServerFactory.java | 7 +-
.../server/internal/RuntimeDelegateImpl.java | 10 +-
.../jersey/server/spi/WebServerProvider.java | 29 +++-
.../server/spi/WebServerProviderTest.java | 159 ++++++++++++++++++
docs/src/main/docbook/appendix-properties.xml | 72 ++++++++
docs/src/main/docbook/deployment.xml | 82 +++++++++
docs/src/main/docbook/jersey.ent | 11 ++
.../jmockit/server/WebServerFactoryTest.java | 10 +-
20 files changed, 426 insertions(+), 96 deletions(-)
create mode 100644 core-server/src/test/java/org/glassfish/jersey/server/spi/WebServerProviderTest.java
diff --git a/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProvider.java b/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProvider.java
index a3f911c61f5..f9cfac21631 100644
--- a/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProvider.java
+++ b/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -17,6 +17,7 @@
package org.glassfish.jersey.grizzly2.httpserver;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.grizzly.http.server.HttpServer;
@@ -33,18 +34,18 @@
public final class GrizzlyHttpServerProvider implements WebServerProvider {
@Override
- public final T createServer(final Class type, final Application application,
- final JerseySeBootstrapConfiguration configuration) {
- return GrizzlyHttpServer.class == type || WebServer.class == type
- ? type.cast(new GrizzlyHttpServer(application, configuration))
+ public T createServer(final Class type, final Application application,
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(GrizzlyHttpServer.class, type, configuration)
+ ? type.cast(new GrizzlyHttpServer(application, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
@Override
public T createServer(Class type, Class extends Application> applicationClass,
- JerseySeBootstrapConfiguration configuration) {
- return GrizzlyHttpServer.class == type || WebServer.class == type
- ? type.cast(new GrizzlyHttpServer(applicationClass, configuration))
+ SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(GrizzlyHttpServer.class, type, configuration)
+ ? type.cast(new GrizzlyHttpServer(applicationClass, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
}
diff --git a/containers/grizzly2-http/src/test/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProviderTest.java b/containers/grizzly2-http/src/test/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProviderTest.java
index a7310d048dd..6f933cddcd6 100644
--- a/containers/grizzly2-http/src/test/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProviderTest.java
+++ b/containers/grizzly2-http/src/test/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -17,7 +17,6 @@
package org.glassfish.jersey.grizzly2.httpserver;
-import static java.lang.Boolean.FALSE;
import static java.lang.Boolean.TRUE;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
@@ -45,7 +44,6 @@
import org.glassfish.grizzly.http.server.HttpServer;
import org.glassfish.jersey.internal.util.PropertiesHelper;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.server.spi.Container;
import org.glassfish.jersey.server.spi.WebServer;
@@ -82,10 +80,9 @@ private void shouldProvideServer(final Object application, final Resource resour
final SeBootstrap.Configuration configuration = configuration(getPort());
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer = Application.class.isInstance(application)
- ? webServerProvider.createServer(WebServer.class, (Application) application, jerseySeConfig)
- : webServerProvider.createServer(WebServer.class, (Class) application, jerseySeConfig);
+ ? webServerProvider.createServer(WebServer.class, (Application) application, configuration)
+ : webServerProvider.createServer(WebServer.class, (Class) application, configuration);
final Object nativeHandle = webServer.unwrap(Object.class);
final CompletionStage> start = webServer.start();
final Object startResult = start.toCompletableFuture().get();
@@ -157,8 +154,7 @@ public void shouldScanFreePort() {
final SeBootstrap.Configuration configuration = configuration(SeBootstrap.Configuration.FREE_PORT);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
- final WebServer webServer = webServerProvider.createServer(WebServer.class, application, jerseySeConfig);
+ final WebServer webServer = webServerProvider.createServer(WebServer.class, application, configuration);
// then
assertThat(webServer.port(), is(greaterThan(0)));
diff --git a/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProvider.java b/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProvider.java
index 4510c53fc84..b9edb3022cd 100644
--- a/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProvider.java
+++ b/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -17,6 +17,7 @@
package org.glassfish.jersey.jdkhttp;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
@@ -35,17 +36,17 @@ public final class JdkHttpServerProvider implements WebServerProvider {
@Override
public T createServer(final Class type, final Application application,
- final JerseySeBootstrapConfiguration configuration) {
- return JdkHttpServer.class == type || WebServer.class == type
- ? type.cast(new JdkHttpServer(application, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(JdkHttpServer.class, type, configuration)
+ ? type.cast(new JdkHttpServer(application, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
@Override
public T createServer(final Class type, final Class extends Application> applicationClass,
- final JerseySeBootstrapConfiguration configuration) {
- return JdkHttpServer.class == type || WebServer.class == type
- ? type.cast(new JdkHttpServer(applicationClass, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(JdkHttpServer.class, type, configuration)
+ ? type.cast(new JdkHttpServer(applicationClass, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
}
diff --git a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProviderTest.java b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProviderTest.java
index ade52847c54..c37f7670b14 100644
--- a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProviderTest.java
+++ b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpServerProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -18,7 +18,6 @@
package org.glassfish.jersey.jdkhttp;
import static java.lang.Boolean.FALSE;
-import static java.lang.Boolean.TRUE;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.Matchers.greaterThan;
@@ -44,7 +43,6 @@
import jakarta.ws.rs.core.UriBuilder;
import org.glassfish.jersey.internal.util.PropertiesHelper;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.server.spi.Container;
import org.glassfish.jersey.server.spi.WebServer;
@@ -83,10 +81,9 @@ private void shouldProvideServer(final Object application, final Resource resour
final SeBootstrap.Configuration configuration = configuration(getPort());
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer = Application.class.isInstance(application)
- ? webServerProvider.createServer(WebServer.class, (Application) application, jerseySeConfig)
- : webServerProvider.createServer(WebServer.class, (Class) application, jerseySeConfig);
+ ? webServerProvider.createServer(WebServer.class, (Application) application, configuration)
+ : webServerProvider.createServer(WebServer.class, (Class) application, configuration);
final Object nativeHandle = webServer.unwrap(Object.class);
final CompletionStage> start = webServer.start();
final Object startResult = start.toCompletableFuture().get();
@@ -158,8 +155,7 @@ public final void shouldScanFreePort() throws InterruptedException, ExecutionExc
final SeBootstrap.Configuration configuration = configuration(SeBootstrap.Configuration.FREE_PORT);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
- final WebServer webServer = webServerProvider.createServer(WebServer.class, application, jerseySeConfig);
+ final WebServer webServer = webServerProvider.createServer(WebServer.class, application, configuration);
// then
assertThat(webServer.port(), is(greaterThan(0)));
diff --git a/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpServerProvider.java b/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpServerProvider.java
index fe776b9f406..5122435d85b 100644
--- a/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpServerProvider.java
+++ b/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpServerProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -17,6 +17,7 @@
package org.glassfish.jersey.jetty;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
@@ -33,18 +34,18 @@
public final class JettyHttpServerProvider implements WebServerProvider {
@Override
- public final T createServer(final Class type, final Application application,
- final JerseySeBootstrapConfiguration configuration) {
- return JettyHttpServer.class == type || WebServer.class == type
- ? type.cast(new JettyHttpServer(application, configuration))
+ public T createServer(final Class type, final Application application,
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(JettyHttpServer.class, type, configuration)
+ ? type.cast(new JettyHttpServer(application, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
@Override
public T createServer(final Class type, final Class extends Application> applicationClass,
- final JerseySeBootstrapConfiguration configuration) {
- return JettyHttpServer.class == type || WebServer.class == type
- ? type.cast(new JettyHttpServer(applicationClass, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(JettyHttpServer.class, type, configuration)
+ ? type.cast(new JettyHttpServer(applicationClass, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
}
diff --git a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/JettyHttpServerProviderTest.java b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/JettyHttpServerProviderTest.java
index 1aa8b454956..81c1bd6c84a 100644
--- a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/JettyHttpServerProviderTest.java
+++ b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/JettyHttpServerProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -45,7 +45,6 @@
import jakarta.ws.rs.core.UriBuilder;
import org.glassfish.jersey.internal.util.PropertiesHelper;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.server.spi.Container;
import org.glassfish.jersey.server.spi.WebServer;
@@ -82,10 +81,9 @@ private void shouldProvideServer(final Object application, final Resource resour
final SeBootstrap.Configuration configuration = configuration(getPort(), FALSE);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer = Application.class.isInstance(application)
- ? webServerProvider.createServer(WebServer.class, (Application) application, jerseySeConfig)
- : webServerProvider.createServer(WebServer.class, (Class) application, jerseySeConfig);
+ ? webServerProvider.createServer(WebServer.class, (Application) application, configuration)
+ : webServerProvider.createServer(WebServer.class, (Class) application, configuration);
final Object nativeHandle = webServer.unwrap(Object.class);
final CompletionStage> start = webServer.start();
final Object startResult = start.toCompletableFuture().get();
@@ -157,8 +155,7 @@ public final void shouldScanFreePort() throws InterruptedException, ExecutionExc
final SeBootstrap.Configuration configuration = configuration(SeBootstrap.Configuration.FREE_PORT, TRUE);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
- final WebServer webServer = webServerProvider.createServer(WebServer.class, application, jerseySeConfig);
+ final WebServer webServer = webServerProvider.createServer(WebServer.class, application, configuration);
// then
assertThat(webServer.port(), is(greaterThan(0)));
diff --git a/containers/netty-http/src/main/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProvider.java b/containers/netty-http/src/main/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProvider.java
index 34c700e1043..0749369a1f8 100644
--- a/containers/netty-http/src/main/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProvider.java
+++ b/containers/netty-http/src/main/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -17,6 +17,7 @@
package org.glassfish.jersey.netty.httpserver;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
@@ -35,17 +36,17 @@ public final class NettyHttpServerProvider implements WebServerProvider {
@Override
public T createServer(final Class type, final Application application,
- final JerseySeBootstrapConfiguration configuration) {
- return NettyHttpServer.class == type || WebServer.class == type
- ? type.cast(new NettyHttpServer(application, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(NettyHttpServer.class, type, configuration)
+ ? type.cast(new NettyHttpServer(application, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
@Override
public T createServer(final Class type, final Class extends Application> applicationClass,
- final JerseySeBootstrapConfiguration configuration) {
- return NettyHttpServer.class == type || WebServer.class == type
- ? type.cast(new NettyHttpServer(applicationClass, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(NettyHttpServer.class, type, configuration)
+ ? type.cast(new NettyHttpServer(applicationClass, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
}
diff --git a/containers/netty-http/src/test/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProviderTest.java b/containers/netty-http/src/test/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProviderTest.java
index 3837377475f..69b2e7e4cdc 100644
--- a/containers/netty-http/src/test/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProviderTest.java
+++ b/containers/netty-http/src/test/java/org/glassfish/jersey/netty/httpserver/NettyHttpServerProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -44,7 +44,6 @@
import jakarta.ws.rs.core.UriBuilder;
import org.glassfish.jersey.internal.util.PropertiesHelper;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.server.spi.Container;
import org.glassfish.jersey.server.spi.WebServer;
@@ -84,10 +83,9 @@ private void shouldProvideServer(final Object application, final Resource resour
final SeBootstrap.Configuration configuration = configuration(getPort(), FALSE);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer = Application.class.isInstance(application)
- ? webServerProvider.createServer(WebServer.class, (Application) application, jerseySeConfig)
- : webServerProvider.createServer(WebServer.class, (Class) application, jerseySeConfig);
+ ? webServerProvider.createServer(WebServer.class, (Application) application, configuration)
+ : webServerProvider.createServer(WebServer.class, (Class) application, configuration);
final Object nativeHandle = webServer.unwrap(Object.class);
final CompletionStage> start = webServer.start();
final Object startResult = start.toCompletableFuture().get();
@@ -160,8 +158,7 @@ public final void shouldScanFreePort() throws InterruptedException, ExecutionExc
final SeBootstrap.Configuration configuration = configuration(SeBootstrap.Configuration.FREE_PORT, TRUE);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
- final WebServer webServer = webServerProvider.createServer(WebServer.class, application, jerseySeConfig);
+ final WebServer webServer = webServerProvider.createServer(WebServer.class, application, configuration);
// then
assertThat(webServer.port(), is(greaterThan(0)));
diff --git a/containers/simple-http/src/main/java/org/glassfish/jersey/simple/SimpleHttpServerProvider.java b/containers/simple-http/src/main/java/org/glassfish/jersey/simple/SimpleHttpServerProvider.java
index c4a26a7d980..33bd6a7dc5e 100644
--- a/containers/simple-http/src/main/java/org/glassfish/jersey/simple/SimpleHttpServerProvider.java
+++ b/containers/simple-http/src/main/java/org/glassfish/jersey/simple/SimpleHttpServerProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -17,6 +17,7 @@
package org.glassfish.jersey.simple;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
@@ -33,17 +34,17 @@ public final class SimpleHttpServerProvider implements WebServerProvider {
@Override
public T createServer(final Class type, final Application application,
- final JerseySeBootstrapConfiguration configuration) {
- return SimpleHttpServer.class == type || WebServer.class == type
- ? type.cast(new SimpleHttpServer(application, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(SimpleHttpServer.class, type, configuration)
+ ? type.cast(new SimpleHttpServer(application, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
@Override
public T createServer(final Class type, final Class extends Application> applicationClass,
- final JerseySeBootstrapConfiguration configuration) {
- return SimpleHttpServer.class == type || WebServer.class == type
- ? type.cast(new SimpleHttpServer(applicationClass, configuration))
+ final SeBootstrap.Configuration configuration) {
+ return WebServerProvider.isSupportedWebServer(SimpleHttpServer.class, type, configuration)
+ ? type.cast(new SimpleHttpServer(applicationClass, JerseySeBootstrapConfiguration.from(configuration)))
: null;
}
}
diff --git a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/SimpleHttpServerProviderTest.java b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/SimpleHttpServerProviderTest.java
index 02314ea784e..c32e77caac5 100644
--- a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/SimpleHttpServerProviderTest.java
+++ b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/SimpleHttpServerProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -44,7 +44,6 @@
import jakarta.ws.rs.core.UriBuilder;
import org.glassfish.jersey.internal.util.PropertiesHelper;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.server.spi.Container;
import org.glassfish.jersey.server.spi.WebServer;
@@ -82,10 +81,9 @@ private void shouldProvideServer(final Object application, final Resource resour
final SeBootstrap.Configuration configuration = configuration(getPort(), FALSE);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer = Application.class.isInstance(application)
- ? webServerProvider.createServer(WebServer.class, (Application) application, jerseySeConfig)
- : webServerProvider.createServer(WebServer.class, (Class) application, jerseySeConfig);
+ ? webServerProvider.createServer(WebServer.class, (Application) application, configuration)
+ : webServerProvider.createServer(WebServer.class, (Class) application, configuration);
final Object nativeHandle = webServer.unwrap(Object.class);
final CompletionStage> start = webServer.start();
final Object startResult = start.toCompletableFuture().get();
@@ -157,8 +155,7 @@ public final void shouldScanFreePort() throws InterruptedException, ExecutionExc
final SeBootstrap.Configuration configuration = configuration(SeBootstrap.Configuration.FREE_PORT, TRUE);
// when
- final JerseySeBootstrapConfiguration jerseySeConfig = JerseySeBootstrapConfiguration.from(configuration);
- final WebServer webServer = webServerProvider.createServer(WebServer.class, application, jerseySeConfig);
+ final WebServer webServer = webServerProvider.createServer(WebServer.class, application, configuration);
// then
assertThat(webServer.port(), is(greaterThan(0)));
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/JerseySeBootstrapConfiguration.java b/core-server/src/main/java/org/glassfish/jersey/server/JerseySeBootstrapConfiguration.java
index 3bfe5db7756..0f1d6d7e678 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/JerseySeBootstrapConfiguration.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/JerseySeBootstrapConfiguration.java
@@ -96,7 +96,7 @@ private int resolvePort() {
}
private int _resolvePort(boolean allowPrivilegedPort) {
- final int basePort = allowPrivilegedPort ? 0 : 1023;
+ final int basePort = allowPrivilegedPort ? 0 : 1024;
// Get the initial range parameters
final int lower = basePort;
final int range = 0xFFFF;
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/ServerProperties.java b/core-server/src/main/java/org/glassfish/jersey/server/ServerProperties.java
index 099ce702290..5d8a3ad16dd 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/ServerProperties.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/ServerProperties.java
@@ -775,8 +775,8 @@ public final class ServerProperties {
* {@code WEBSERVER_ALLOW_PRIVILEGED_PORTS} is {@code false}.
*
*
- * If {@link jakarta.ws.rs.SeBootstrap.Configuration#PORT} is set to {@code 0}, the implementation chooses random ports
- * (0-65535) when {@code WEBSERVER_ALLOW_PRIVILEGED_PORTS} is {@code true}, or (1024-65535) when
+ * If {@link jakarta.ws.rs.SeBootstrap.Configuration#PORT} is set to {@code 0}, the implementation scans for random unused
+ * port (0-65535) when {@code WEBSERVER_ALLOW_PRIVILEGED_PORTS} is {@code true}, or (1024-65535) when
* {@code WEBSERVER_ALLOW_PRIVILEGED_PORTS} is {@code false.}
*
*
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/WebServerFactory.java b/core-server/src/main/java/org/glassfish/jersey/server/WebServerFactory.java
index 6454fc1732f..2b61d4ae54f 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/WebServerFactory.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/WebServerFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -18,6 +18,7 @@
package org.glassfish.jersey.server;
import jakarta.ws.rs.ProcessingException;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.internal.ServiceFinder;
@@ -63,7 +64,7 @@ private WebServerFactory() {
* if no server provider supports the type.
*/
public static T createServer(final Class type, final Application application,
- final JerseySeBootstrapConfiguration configuration) {
+ final SeBootstrap.Configuration configuration) {
for (final WebServerProvider webServerProvider : ServiceFinder.find(WebServerProvider.class)) {
final T server = webServerProvider.createServer(type, application, configuration);
if (server != null) {
@@ -99,7 +100,7 @@ public static T createServer(final Class type, final Ap
* if no server provider supports the type.
*/
public static T createServer(final Class type, final Class extends Application> application,
- final JerseySeBootstrapConfiguration configuration) {
+ final SeBootstrap.Configuration configuration) {
for (final WebServerProvider webServerProvider : ServiceFinder.find(WebServerProvider.class)) {
final T server = webServerProvider.createServer(type, application, configuration);
if (server != null) {
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/internal/RuntimeDelegateImpl.java b/core-server/src/main/java/org/glassfish/jersey/server/internal/RuntimeDelegateImpl.java
index 1af9a406bb5..bfaad0e1084 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/internal/RuntimeDelegateImpl.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/internal/RuntimeDelegateImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -72,10 +72,8 @@ public CompletableFuture bootstrap(final Application appli
? (Class) configuration.property(ServerProperties.WEBSERVER_CLASS)
: WebServer.class;
- final JerseySeBootstrapConfiguration jerseySeConfiguration
- = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer
- = WebServerFactory.createServer(httpServerClass, application, jerseySeConfiguration);
+ = WebServerFactory.createServer(httpServerClass, application, configuration);
return instance(configuration, webServer);
});
}
@@ -89,10 +87,8 @@ public CompletableFuture bootstrap(final Class extends A
? (Class) configuration.property(ServerProperties.WEBSERVER_CLASS)
: WebServer.class;
- final JerseySeBootstrapConfiguration jerseySeConfiguration
- = JerseySeBootstrapConfiguration.from(configuration);
final WebServer webServer
- = WebServerFactory.createServer(httpServerClass, applicationClass, jerseySeConfiguration);
+ = WebServerFactory.createServer(httpServerClass, applicationClass, configuration);
return instance(configuration, webServer);
});
}
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/spi/WebServerProvider.java b/core-server/src/main/java/org/glassfish/jersey/server/spi/WebServerProvider.java
index 63453ee106c..d1d5d2c40db 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/spi/WebServerProvider.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/spi/WebServerProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -24,7 +24,7 @@
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.server.ApplicationHandler;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
+import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.spi.Contract;
/**
@@ -86,7 +86,7 @@ public interface WebServerProvider {
*/
T createServer(Class type,
Application application,
- JerseySeBootstrapConfiguration configuration) throws ProcessingException;
+ SeBootstrap.Configuration configuration) throws ProcessingException;
/**
* Creates a server of a given type which runs the given application using the
@@ -108,5 +108,26 @@ T createServer(Class type,
*/
T createServer(Class type,
Class extends Application> applicationClass,
- JerseySeBootstrapConfiguration configuration) throws ProcessingException;
+ SeBootstrap.Configuration configuration) throws ProcessingException;
+
+
+ /**
+ * Utility function that matches {@code WebServerProvider} supported type with the user type passed either
+ * as {@link ServerProperties#WEBSERVER_CLASS} property (higher priority) or by the {@code userType} argument
+ * (lower priority).
+ * @param supportedType The type supported by the {@code WebServerProvider} implementation
+ * @param userType The user type passed in by the user, usually {@link WebServer} class.
+ * @param configuration The configuration to check {@link ServerProperties#WEBSERVER_CLASS} property
+ * @param The {@link WebServer} subtype
+ * @return @{code true} if the user provided type matches the supported type.
+ */
+ static boolean isSupportedWebServer(
+ Class extends WebServer> supportedType, Class userType, SeBootstrap.Configuration configuration) {
+ final Object webServerObj = configuration.property(ServerProperties.WEBSERVER_CLASS);
+ final Class extends WebServer> webServerCls = webServerObj == null || WebServer.class.equals(webServerObj)
+ ? null : (Class extends WebServer>) webServerObj;
+ // WebServer.class.equals(webServerObj) is the default, and then we want userType
+ return (webServerCls != null && webServerCls.isAssignableFrom(supportedType))
+ || (webServerCls == null && userType.isAssignableFrom(supportedType));
+ }
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/spi/WebServerProviderTest.java b/core-server/src/test/java/org/glassfish/jersey/server/spi/WebServerProviderTest.java
new file mode 100644
index 00000000000..553f76dc0d0
--- /dev/null
+++ b/core-server/src/test/java/org/glassfish/jersey/server/spi/WebServerProviderTest.java
@@ -0,0 +1,159 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.server.spi;
+
+import jakarta.ws.rs.ProcessingException;
+import jakarta.ws.rs.SeBootstrap;
+import jakarta.ws.rs.core.Application;
+import org.glassfish.jersey.server.ServerProperties;
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.util.concurrent.CompletionStage;
+
+public class WebServerProviderTest {
+ @Test
+ public void testPropertySetsDifferentClass() {
+ SeBootstrap.Configuration config =
+ SeBootstrap.Configuration.builder().property(ServerProperties.WEBSERVER_CLASS, WebServerTestImpl2.class).build();
+
+ Assert.assertNull(new WebServerProviderTestImpl().createServer(WebServerTestImpl.class, Application.class, config));
+ }
+
+ @Test
+ public void testPropertySetsCorrectClass() {
+ SeBootstrap.Configuration config =
+ SeBootstrap.Configuration.builder().property(ServerProperties.WEBSERVER_CLASS, WebServerTestImpl.class).build();
+
+ Assert.assertTrue(
+ WebServerTestImpl.class.isInstance(
+ new WebServerProviderTestImpl().createServer(WebServerTestImpl2.class, Application.class, config)
+ )
+ );
+ }
+
+ @Test
+ public void testPropertySetsNothingUserTypeIsWrong() {
+ SeBootstrap.Configuration config =
+ SeBootstrap.Configuration.builder().build();
+
+ Assert.assertNull(new WebServerProviderTestImpl().createServer(WebServerTestImpl2.class, Application.class, config));
+ }
+
+ @Test
+ public void testPropertySetsNothingUserTypeIsCorrectClass() {
+ SeBootstrap.Configuration config =
+ SeBootstrap.Configuration.builder().build();
+
+ Assert.assertTrue(
+ WebServerTestImpl.class.isInstance(
+ new WebServerProviderTestImpl().createServer(WebServerTestImpl.class, Application.class, config)
+ )
+ );
+ }
+
+ @Test
+ public void testPropertySetsNothingUserTypeIsSuperClass() {
+ SeBootstrap.Configuration config =
+ SeBootstrap.Configuration.builder().build();
+
+ Assert.assertTrue(
+ WebServerTestImpl.class.isInstance(
+ new WebServerProviderTestImpl().createServer(WebServer.class, Application.class, config)
+ )
+ );
+ }
+
+ public static class WebServerProviderTestImpl implements WebServerProvider {
+
+ @Override
+ public T createServer(
+ Class type, Application application, SeBootstrap.Configuration configuration) throws ProcessingException {
+ if (WebServerProvider.isSupportedWebServer(WebServerTestImpl.class, type, configuration)) {
+ return (T) new WebServerTestImpl();
+ }
+ return null;
+ }
+
+ @Override
+ public T createServer(
+ Class type,
+ Class extends Application> applicationClass,
+ SeBootstrap.Configuration configuration) throws ProcessingException {
+ if (WebServerProvider.isSupportedWebServer(WebServerTestImpl.class, type, configuration)) {
+ return (T) new WebServerTestImpl();
+ }
+ return null;
+ }
+ }
+
+ public static class WebServerTestImpl implements WebServer {
+
+ @Override
+ public Container container() {
+ return null;
+ }
+
+ @Override
+ public int port() {
+ return 0;
+ }
+
+ @Override
+ public CompletionStage> start() {
+ return null;
+ }
+
+ @Override
+ public CompletionStage> stop() {
+ return null;
+ }
+
+ @Override
+ public T unwrap(Class nativeClass) {
+ return null;
+ }
+ }
+
+ public static class WebServerTestImpl2 implements WebServer {
+
+ @Override
+ public Container container() {
+ return null;
+ }
+
+ @Override
+ public int port() {
+ return 0;
+ }
+
+ @Override
+ public CompletionStage> start() {
+ return null;
+ }
+
+ @Override
+ public CompletionStage> stop() {
+ return null;
+ }
+
+ @Override
+ public T unwrap(Class nativeClass) {
+ return null;
+ }
+ };
+}
diff --git a/docs/src/main/docbook/appendix-properties.xml b/docs/src/main/docbook/appendix-properties.xml
index dcd681b0d45..46274bdf7c0 100644
--- a/docs/src/main/docbook/appendix-properties.xml
+++ b/docs/src/main/docbook/appendix-properties.xml
@@ -731,6 +731,78 @@
+
+ SeBootstrap and WebServer related configuration properties
+
+
+ List of SeBootstrap configuration properties that can be found in &jersey.server.ServerProperties; class.
+
+
+
+ List of SeBootstrap and WebServer configuration properties
+
+
+
+ Constant
+ Value
+ Description
+
+
+
+
+ &jersey.server.ServerProperties.WEBSERVER_ALLOW_PRIVILEGED_PORTS;
+ jersey.config.server.bootstrap.webserver.allow.privileged.ports
+
+
+ Defines whether to allow privileged ports (0-1023) to be used to start the
+ &lit.jersey.server.spi.WebServer; implementation to be chosen from the unused ports when the
+ &lit.jaxrs.SeBootstrap.Configuration; PORT is set to -1 or unset.
+
+
+ The default ports are 80 for HTTP and 443 for HTTPS when
+ WEBSERVER_ALLOW_PRIVILEGED_PORTS is &lit.true; or 8080 for HTTP and 8443 for HTTPS when
+ WEBSERVER_ALLOW_PRIVILEGED_PORTS is &lit.false;.
+
+
+ If &lit.jaxrs.SeBootstrap.Configuration; PORT is set to 0 , the implementation scans for
+ random port (0-65535) when WEBSERVER_ALLOW_PRIVILEGED_PORTS is &lit.true;, or
+ (1024-65535) when WEBSERVER_ALLOW_PRIVILEGED_PORTS is &lit.false;.
+
+
+ The default this is &lit.false;. Use &lit.true; to allow a restricted port number.
+
+
+
+
+ &jersey.server.ServerProperties.WEBSERVER_AUTO_START;
+ jersey.config.server.bootstrap.webserver.autostart
+
+
+ Whether to automatically startup WebServer at bootstrap.
+
+
+ By default, servers are immediately listening to connections after bootstrap,
+ so no explicit invocation of WebServer#start() is needed.
+
+
+
+
+ &jersey.server.ServerProperties.WEBSERVER_CLASS;
+ jersey.config.server.bootstrap.webserver.class
+
+
+ Defines the implementation of WebServer to bootstrap.
+
+
+ By default auto-selects the first server provider found.
+
+
+
+
+
+
+
+
Servlet configuration properties
diff --git a/docs/src/main/docbook/deployment.xml b/docs/src/main/docbook/deployment.xml
index 55d8bb7fdd7..9fac43cf6c1 100644
--- a/docs/src/main/docbook/deployment.xml
+++ b/docs/src/main/docbook/deployment.xml
@@ -508,6 +508,88 @@ Channel server = NettyHttpContainerProvider.createServer(baseUri, resourceConfig
+
+
+ Jakarta REST Bootstrap API
+
+ Jakarta REST 3.1 comes with a new API for starting an application in Java SE environment. This
+ Bootstrap API is mainly represented by &lit.jaxrs.SeBootstrap; interface.
+ The Jakarta REST application is started as follows:
+ Application application = new MyApplication();
+SeBootstrap.Configuration.Builder configBuilder = SeBootstrap.Configuration.builder();
+CompletionStage<SeBootstrap.Instance> completionStage = SeBootstrap.start(application, configBuilder.build());
+
+
+ Later, when the SE application is no longer needed, it can be shutdown as follows:
+ CompletionStage<SeBootstrap.Instance> completionStage = ...
+SeBootstrap.Instance instance = completionStage().get();
+instance.stop();
+
+
+ The &lit.jaxrs.SeBootstrap.Configuration; allows for configuring the Jersey runtime. The Jakarta REST 3.1 allows
+ for configuring the HTTP port, the protocol (HTTP), the hostname, the root path, and SSL. The
+ &lit.jaxrs.SeBootstrap; is configured as follows:
+ SeBootstrap.Configuration.Builder configBuilder = SeBootstrap.Configuration.builder();
+configBuilder.property(SeBootstrap.Configuration.PROTOCOL, "HTTP")
+ .property(SeBootstrap.Configuration.HOST, "localhost")
+ .property(SeBootstrap.Configuration.PORT, 1234)
+ .property(SeBootstrap.Configuration.ROOT_PATH, "/root/path");
+
+
+ The &lit.jaxrs.SeBootstrap; deployment is backed up by an HTTP server described in
+ . If multiple Jersey container modules are on the classpath,
+ the first found is used.
+
+
+
+
+ Jersey WebServer SPI
+
+ Jersey &jersey.server.spi.WebServer; and &jersey.server.spi.WebServerProvider; are SPI interfaces similar to
+ &jersey.server.spi.ContainerProvider; but they are used for the SE deployment. They serve as a bridge between
+ Jersey containers and &lit.jaxrs.SeBootstrap; API.
+ The Jakarta REST application can be started as follows:
+ Application application = new MyApplication();
+SeBootstrap.Configuration.Builder configBuilder = SeBootstrap.Configuration.builder();
+WebServer webServer = WebServerFactory.createServer(WebServer.class, application, configBuilder.build());
+
+
+ Later, when the SE application is no longer needed, it can be shutdown as follows:
+ WebServer webServer = ...
+webServer.stop();
+
+
+ &jersey.server.WebServerFactory; is used to automatically choose among available implementations on a classpath.
+ If there are multiple implementations available, the first found is used. The user can choose the implementation
+ of a &lit.jersey.server.spi.WebServer; by a concrete WebServer subclass, for instance:
+
+WebServer webServer = WebServerFactory.createServer(GrizzlyHttpServer.class, application, configBuilder.build());
+ Another way to choose the &lit.jersey.server.spi.WebServer; implementation is by the
+ &lit.jersey.server.spi.WebServerProvider; implementation:
+
+WebServer webServer = GrizzlyHttpServerProvider.createServer(WebServer.class, application, configBuilder.build());
+
+
+ For additional customization of the WebServer settings, see .
+
+
+
+
+
+ When the port is set to -1, the default ports are used.
+ Unlike the default ports used by the , the &lit.jaxrs.SeBootstrap; API and
+ &lit.jersey.server.spi.WebServer; SPI use default ports 8080 and 8443, respectively.
+
+
+ When the port is set to 0, the implementation scans for a free port. The privileged ports are skipped, and the
+ scanning starts with port 1024.
+
+
+ Using the restricted ports can be ensured either by setting directly the port, or by setting
+ &jersey.server.ServerProperties.WEBSERVER_ALLOW_PRIVILEGED_PORTS; property to true in the
+ &lit.jaxrs.SeBootstrap.Configuration;
+
+
diff --git a/docs/src/main/docbook/jersey.ent b/docs/src/main/docbook/jersey.ent
index bc123fe1b1e..e7db84fa3aa 100644
--- a/docs/src/main/docbook/jersey.ent
+++ b/docs/src/main/docbook/jersey.ent
@@ -234,6 +234,7 @@
Response.Status">
Response.Status.Family">
Response.StatusType">
+SeBootstrap">
SecurityContext">
StreamingOutput">
UriBuilder">
@@ -605,11 +606,15 @@
ServerProperties.LOCATION_HEADER_RELATIVE_URI_RESOLUTION_RFC7231" >
ServerProperties.UNWRAP_COMPLETION_STAGE_IN_WRITER_ENABLE" >
ServerProperties.EMPTY_REQUEST_MEDIA_TYPE_MATCHES_ANY_CONSUMES" >
+ServerProperties.WEBSERVER_ALLOW_PRIVILEGED_PORTS" >
+ServerProperties.WEBSERVER_AUTO_START" >
+ServerProperties.WEBSERVER_CLASS" >
Uri">
UriConnegFilter">
WadlFeature">
WadlGenerator">
WadlGeneratorConfig">
+WebServerFactory">
MethodHandler">
ComponentModelValidator">
ApplicationEvent">
@@ -652,6 +657,8 @@
ContainerProvider">
ExternalRequestScope">
RequestScopedInitializer">
+WebServer">
+WebServerProvider">
ServletContainer">
ServletProperties">
ServletProperties.FILTER_CONTEXT_PATH">
@@ -791,6 +798,8 @@
@QueryParam">
ReaderInterceptor">
ReaderInterceptorContext">
+SeBootstrap">
+SeBootstrap.Configuration">
WebApplicationException">
WriterInterceptor">
WriterInterceptorContext">
@@ -1112,6 +1121,8 @@
TokenResource">
ComponentProvider">
ContainerProvider">
+WebServer">
+WebServerProvider">
ServletContainer">
ServletProperties">
ServletProperties.FILTER_CONTEXT_PATH">
diff --git a/tests/jmockit/src/test/java/org/glassfish/jersey/tests/jmockit/server/WebServerFactoryTest.java b/tests/jmockit/src/test/java/org/glassfish/jersey/tests/jmockit/server/WebServerFactoryTest.java
index 28311344750..974404c0a89 100644
--- a/tests/jmockit/src/test/java/org/glassfish/jersey/tests/jmockit/server/WebServerFactoryTest.java
+++ b/tests/jmockit/src/test/java/org/glassfish/jersey/tests/jmockit/server/WebServerFactoryTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -23,6 +23,7 @@
import java.util.Iterator;
+import jakarta.ws.rs.SeBootstrap;
import jakarta.ws.rs.core.Application;
import org.glassfish.jersey.internal.ServiceFinder;
@@ -30,7 +31,6 @@
import org.glassfish.jersey.internal.guava.Iterators;
import org.glassfish.jersey.internal.inject.InjectionManager;
import org.glassfish.jersey.internal.inject.InjectionManagerFactory;
-import org.glassfish.jersey.server.JerseySeBootstrapConfiguration;
import org.glassfish.jersey.server.WebServerFactory;
import org.glassfish.jersey.server.spi.WebServer;
import org.glassfish.jersey.server.spi.WebServerProvider;
@@ -50,7 +50,7 @@ public final class WebServerFactoryTest {
@Test
public final void shouldBuildServer(@Mocked final Application mockApplication,
@Mocked final WebServer mockServer,
- @Mocked final JerseySeBootstrapConfiguration mockConfiguration,
+ @Mocked final SeBootstrap.Configuration mockConfiguration,
@Mocked final InjectionManager mockInjectionManager) {
// given
ServiceFinder.setIteratorProvider(new ServiceIteratorProvider() {
@@ -63,7 +63,7 @@ public final Iterator createIterator(final Class service, final String
public final U createServer(
final Class type,
final Application application,
- final JerseySeBootstrapConfiguration configuration) {
+ final SeBootstrap.Configuration configuration) {
return application == mockApplication && configuration == mockConfiguration
? type.cast(mockServer)
: null;
@@ -73,7 +73,7 @@ public final U createServer(
public T createServer(
final Class type,
final Class extends Application> applicationClass,
- final JerseySeBootstrapConfiguration configuration) {
+ final SeBootstrap.Configuration configuration) {
return null;
}
}
From abd1a436fda7ad762f59befc21ee378a4ba0054f Mon Sep 17 00:00:00 2001
From: jansupol
Date: Wed, 8 Jun 2022 16:00:56 +0200
Subject: [PATCH 047/305] Call CompletionCallback just once with
DefaultExceptionMapper Do not propagate error to the client
Signed-off-by: jansupol
---
.../jersey/server/DefaultExceptionMapper.java | 7 +-
.../jersey/server/ServerRuntime.java | 22 +++---
.../server/DefaultExceptionMapperTest.java | 75 +++++++++++++++++++
3 files changed, 90 insertions(+), 14 deletions(-)
create mode 100644 core-server/src/test/java/org/glassfish/jersey/server/DefaultExceptionMapperTest.java
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/DefaultExceptionMapper.java b/core-server/src/main/java/org/glassfish/jersey/server/DefaultExceptionMapper.java
index b120e699a7d..bd7c4d18f05 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/DefaultExceptionMapper.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/DefaultExceptionMapper.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,6 +19,7 @@
import jakarta.ws.rs.WebApplicationException;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.ExceptionMapper;
+import org.glassfish.jersey.server.internal.LocalizationMessages;
class DefaultExceptionMapper implements ExceptionMapper {
@Override
@@ -35,6 +36,8 @@ private static Response processWebApplicationException(WebApplicationException e
}
private static Response processDefaultException(Throwable exception) {
- return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(exception.getMessage()).build();
+ return Response.status(Response.Status.INTERNAL_SERVER_ERROR)
+ .entity(LocalizationMessages.ERROR_EXCEPTION_MAPPING_THROWN_TO_CONTAINER())
+ .build();
}
}
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java b/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java
index 2e3a2635d15..007c9a5c496 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java
@@ -365,11 +365,11 @@ public Responder(final RequestProcessingContext processingContext, final ServerR
public void process(ContainerResponse response) {
processingContext.monitoringEventBuilder().setContainerResponse(response);
- response = processResponse(response);
+ response = processResponse(response, null);
release(response);
}
- private ContainerResponse processResponse(ContainerResponse response) {
+ private ContainerResponse processResponse(ContainerResponse response, Throwable unmappedThrowable) {
final Stage respondingRoot = processingContext.createRespondingRoot();
if (respondingRoot != null) {
@@ -379,7 +379,7 @@ private ContainerResponse processResponse(ContainerResponse response) {
// no-exception zone
// the methods below are guaranteed to not throw any exceptions
- completionCallbackRunner.onComplete(null);
+ completionCallbackRunner.onComplete(unmappedThrowable);
return response;
}
@@ -427,7 +427,7 @@ public void process(final Throwable throwable) {
final Response exceptionResponse = mapException(throwable);
try {
response = preProcessResponse(exceptionResponse, request);
- processResponse(response);
+ processResponse(response, null);
} catch (final Throwable respError) {
LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_PROCESSING_RESPONSE_FROM_ALREADY_MAPPED_EXCEPTION());
processingContext.monitoringEventBuilder()
@@ -448,9 +448,10 @@ public void process(final Throwable throwable) {
try {
request.getResponseWriter().failure(responseError);
} finally {
- completionCallbackRunner.onComplete(responseError);
-
defaultMapperResponse = processResponseWithDefaultExceptionMapper(responseError, request);
+
+ // completionCallbackRunner.onComplete(responseError); is called from
+ // processResponseWithDefaultExceptionMapper
}
}
@@ -488,7 +489,7 @@ private boolean processResponseError(final Throwable responseError) {
if (processedError != null) {
processedResponse =
- processResponse(new ContainerResponse(processingContext.request(), processedError));
+ processResponse(new ContainerResponse(processingContext.request(), processedError), null);
processed = true;
}
} catch (final Throwable throwable) {
@@ -545,10 +546,7 @@ private Response mapException(final Throwable originalThrowable) throws Throwabl
final long timestamp = tracingLogger.timestamp(ServerTraceEvent.EXCEPTION_MAPPING);
final ExceptionMapper mapper = runtime.exceptionMappers.findMapping(throwable);
- if (mapper != null
- && !DefaultExceptionMapper.class.getName()
- .equals(mapper.getClass().getName())
- ) {
+ if (mapper != null && !DefaultExceptionMapper.class.isInstance(mapper)) {
return processExceptionWithMapper(mapper, throwable, timestamp);
}
if (waeResponse != null) {
@@ -625,7 +623,7 @@ private ContainerResponse processResponseWithDefaultExceptionMapper(Throwable ex
ContainerRequest request) {
long timestamp = tracingLogger.timestamp(ServerTraceEvent.EXCEPTION_MAPPING);
final Response response = processExceptionWithMapper(DEFAULT_EXCEPTION_MAPPER, exception, timestamp);
- return processResponse(preProcessResponse(response, request));
+ return processResponse(preProcessResponse(response, request), exception);
}
private ContainerResponse writeResponse(final ContainerResponse response) {
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/DefaultExceptionMapperTest.java b/core-server/src/test/java/org/glassfish/jersey/server/DefaultExceptionMapperTest.java
new file mode 100644
index 00000000000..74b11537f5b
--- /dev/null
+++ b/core-server/src/test/java/org/glassfish/jersey/server/DefaultExceptionMapperTest.java
@@ -0,0 +1,75 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.server;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.container.AsyncResponse;
+import jakarta.ws.rs.container.CompletionCallback;
+import jakarta.ws.rs.container.Suspended;
+import jakarta.ws.rs.core.Response;
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.io.IOException;
+import java.util.concurrent.atomic.AtomicInteger;
+
+public class DefaultExceptionMapperTest {
+ public static final String MESSAGE = "DefaultExceptionMapperTest I/O Exception";
+ @Test
+ public void testIOException() {
+ IOException ioe = new IOException(MESSAGE);
+ DefaultExceptionMapper mapper = new DefaultExceptionMapper();
+ Response response = mapper.toResponse(ioe);
+ Assert.assertFalse(response.getEntity().toString().contains(MESSAGE));
+ }
+
+ @Test
+ public void testCompletionCallback() {
+ AtomicInteger counter = new AtomicInteger();
+ CompletionCallback hitOnceCallback = new CompletionCallback() {
+ @Override
+ public void onComplete(Throwable throwable) {
+ counter.incrementAndGet();
+ }
+ };
+ ResourceConfig resourceConfig = new ResourceConfig().register(new IOExThrowingResource(hitOnceCallback));
+ ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
+ try {
+ applicationHandler.apply(RequestContextBuilder.from("/", "GET").build()).get();
+ } catch (Exception e) {
+ // expected
+ }
+
+ Assert.assertEquals(1, counter.get());
+ }
+
+ @Path("/")
+ public static class IOExThrowingResource {
+ private final CompletionCallback callback;
+
+ public IOExThrowingResource(CompletionCallback callback) {
+ this.callback = callback;
+ }
+
+ @GET
+ public String doGet(@Suspended AsyncResponse asyncResponse) throws IOException {
+ asyncResponse.register(callback);
+ throw new IOException(MESSAGE);
+ }
+ }
+}
From 6abd64c8124b03100ca67b48c06d0fe31f8d64cb Mon Sep 17 00:00:00 2001
From: jansupol <15908245+jansupol@users.noreply.github.com>
Date: Thu, 9 Jun 2022 07:29:22 +0200
Subject: [PATCH 048/305] Update Netty proxy settings (#5071)
Signed-off-by: jansupol
---
.../jersey/jetty/connector/ProxyTest.java | 147 -------------
.../netty/connector/NettyConnector.java | 60 +++++-
.../connector/proxy/ProxySelectorTest.java | 159 ++++++++++++++
.../e2e/client/connector/proxy/ProxyTest.java | 199 ++++++++++++++++++
4 files changed, 412 insertions(+), 153 deletions(-)
delete mode 100644 connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/ProxyTest.java
create mode 100644 tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxySelectorTest.java
create mode 100644 tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/ProxyTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/ProxyTest.java
deleted file mode 100644
index d5b4a02110d..00000000000
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/ProxyTest.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
- * Copyright (c) 2019 Banco do Brasil S/A. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.jetty.connector;
-
-import org.eclipse.jetty.server.Request;
-import org.eclipse.jetty.server.Server;
-import org.eclipse.jetty.server.handler.AbstractHandler;
-import org.glassfish.jersey.client.ClientConfig;
-import org.glassfish.jersey.client.ClientProperties;
-import org.glassfish.jersey.server.ResourceConfig;
-import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.ws.rs.GET;
-import javax.ws.rs.Path;
-import javax.ws.rs.core.Application;
-import javax.ws.rs.core.Response;
-import java.io.IOException;
-import java.nio.charset.Charset;
-import java.util.Base64;
-
-import static org.junit.Assert.assertEquals;
-
-/**
- * @author Marcelo Rubim
-\ */
-public class ProxyTest extends JerseyTest {
- private static final Charset CHARACTER_SET = Charset.forName("iso-8859-1");
- private static final String PROXY_URI = "http://127.0.0.1:9997";
- private static final String PROXY_USERNAME = "proxy-user";
- private static final String PROXY_PASSWORD = "proxy-password";
-
-
- @Path("")
- public static class ProxyResource {
-
- @GET
- public Response getProxy() {
- return Response.status(407).header("Proxy-Authenticate", "Basic").build();
- }
-
- }
-
- @Path("proxyTest")
- public static class ProxyTestResource {
-
- @GET
- public Response getOK() {
- return Response.ok().build();
- }
-
- }
-
- @Override
- protected Application configure() {
- ResourceConfig config = new ResourceConfig(ProxyResource.class, ProxyTestResource.class);
- return config;
- }
-
- @Override
- protected void configureClient(ClientConfig config) {
- config.connectorProvider(new JettyConnectorProvider());
- }
-
- @Test
- public void testGet407() {
- startFakeProxy();
- client().property(ClientProperties.PROXY_URI, ProxyTest.PROXY_URI);
- Response response = target("proxyTest").request().get();
- assertEquals(407, response.getStatus());
- }
-
- @Test
- public void testGetSuccess() {
- startFakeProxy();
- client().property(ClientProperties.PROXY_URI, ProxyTest.PROXY_URI);
- client().property(ClientProperties.PROXY_USERNAME, ProxyTest.PROXY_USERNAME);
- client().property(ClientProperties.PROXY_PASSWORD, ProxyTest.PROXY_PASSWORD);
- Response response = target("proxyTest").request().get();
- assertEquals(200, response.getStatus());
- }
-
- private void startFakeProxy(){
- Server server = new Server(9997);
- server.setHandler(new ProxyHandler());
- try {
- server.start();
- } catch (Exception e) {
-
- }
- }
-
- class ProxyHandler extends AbstractHandler {
- @Override
- public void handle(String target,
- Request baseRequest,
- HttpServletRequest request,
- HttpServletResponse response) throws IOException,
- ServletException {
-
- if (request.getHeader("Proxy-Authorization") != null) {
- String proxyAuthorization = request.getHeader("Proxy-Authorization");
- String decoded = new String(Base64.getDecoder().decode(proxyAuthorization.substring(6).getBytes()),
- CHARACTER_SET);
- final String[] split = decoded.split(":");
- final String username = split[0];
- final String password = split[1];
-
- if (!username.equals(PROXY_USERNAME)) {
- response.setStatus(400);
- System.out.println("Found unexpected username: " + username);
- }
-
- if (!password.equals(PROXY_PASSWORD)) {
- response.setStatus(400);
- System.out.println("Found unexpected password: " + username);
- }
- response.setStatus(200);
- //TODO Add redirect to requestURI
- } else {
- response.setStatus(407);
- response.addHeader("Proxy-Authenticate", "Basic");
- }
-
-
- baseRequest.setHandled(true);
- }
- }
-}
diff --git a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
index ba1f8c23543..6d67c9d8672 100644
--- a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
+++ b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
@@ -19,6 +19,9 @@
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;
+import java.net.Proxy;
+import java.net.ProxySelector;
+import java.net.SocketAddress;
import java.net.URI;
import java.util.ArrayList;
import java.util.HashMap;
@@ -45,6 +48,7 @@
import io.netty.channel.Channel;
import io.netty.channel.ChannelDuplexHandler;
import io.netty.channel.ChannelHandlerContext;
+import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.ChannelPipeline;
@@ -53,16 +57,20 @@
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.handler.codec.http.DefaultFullHttpRequest;
+import io.netty.handler.codec.http.DefaultHttpHeaders;
import io.netty.handler.codec.http.DefaultHttpRequest;
import io.netty.handler.codec.http.HttpChunkedInput;
import io.netty.handler.codec.http.HttpClientCodec;
import io.netty.handler.codec.http.HttpContentDecompressor;
import io.netty.handler.codec.http.HttpHeaderNames;
+import io.netty.handler.codec.http.HttpHeaders;
import io.netty.handler.codec.http.HttpMethod;
import io.netty.handler.codec.http.HttpRequest;
import io.netty.handler.codec.http.HttpUtil;
import io.netty.handler.codec.http.HttpVersion;
import io.netty.handler.proxy.HttpProxyHandler;
+import io.netty.handler.proxy.ProxyConnectionEvent;
+import io.netty.handler.proxy.ProxyHandler;
import io.netty.handler.ssl.ApplicationProtocolConfig;
import io.netty.handler.ssl.ClientAuth;
import io.netty.handler.ssl.IdentityCipherSuiteFilter;
@@ -223,6 +231,8 @@ protected void execute(final ClientRequest jerseyRequest, final Set redirec
}
}
+ Integer connectTimeout = jerseyRequest.resolveProperty(ClientProperties.CONNECT_TIMEOUT, 0);
+
if (chan == null) {
Bootstrap b = new Bootstrap();
b.group(group)
@@ -246,8 +256,29 @@ protected void initChannel(SocketChannel ch) throws Exception {
InetSocketAddress proxyAddr = new InetSocketAddress(u.getHost(),
u.getPort() == -1 ? 8080 : u.getPort());
- p.addLast(userName == null ? new HttpProxyHandler(proxyAddr)
- : new HttpProxyHandler(proxyAddr, userName, password));
+ ProxyHandler proxy = createProxyHandler(jerseyRequest, proxyAddr, userName, password, connectTimeout);
+ p.addLast(proxy);
+ } else {
+ ProxySelector sel = ProxySelector.getDefault();
+ for (Proxy proxy: sel.select(requestUri)) {
+ if (Proxy.Type.HTTP.equals(proxy.type())) {
+ SocketAddress proxyAddress = proxy.address();
+ if (InetSocketAddress.class.isInstance(proxy.address())) {
+ InetSocketAddress proxyAddr = (InetSocketAddress) proxyAddress;
+ if (proxyAddr.isUnresolved()
+ && proxyAddr.getHostName() != null
+ && proxyAddr.getHostName().startsWith("http://")) {
+ proxyAddress = new InetSocketAddress(
+ proxyAddr.getHostString().substring(7), proxyAddr.getPort()
+ );
+ }
+ }
+ ProxyHandler proxyHandler
+ = createProxyHandler(jerseyRequest, proxyAddress, null, null, connectTimeout);
+ p.addLast(proxyHandler);
+ break;
+ }
+ }
}
// Enable HTTPS if necessary.
@@ -284,7 +315,6 @@ protected void initChannel(SocketChannel ch) throws Exception {
});
// connect timeout
- Integer connectTimeout = jerseyRequest.resolveProperty(ClientProperties.CONNECT_TIMEOUT, 0);
if (connectTimeout > 0) {
b.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, connectTimeout);
}
@@ -357,9 +387,7 @@ protected void initChannel(SocketChannel ch) throws Exception {
}
// headers
- for (final Map.Entry> e : jerseyRequest.getStringHeaders().entrySet()) {
- nettyRequest.headers().add(e.getKey(), e.getValue());
- }
+ setHeaders(jerseyRequest, nettyRequest.headers());
// host header - http 1.1
nettyRequest.headers().add(HttpHeaderNames.HOST, jerseyRequest.getUri().getHost());
@@ -484,4 +512,24 @@ public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exc
}
}
}
+
+ private static ProxyHandler createProxyHandler(ClientRequest jerseyRequest, SocketAddress proxyAddr,
+ String userName, String password, long connectTimeout) {
+ HttpHeaders httpHeaders = setHeaders(jerseyRequest, new DefaultHttpHeaders());
+
+ ProxyHandler proxy = userName == null ? new HttpProxyHandler(proxyAddr, httpHeaders)
+ : new HttpProxyHandler(proxyAddr, userName, password, httpHeaders);
+ if (connectTimeout > 0) {
+ proxy.setConnectTimeoutMillis(connectTimeout);
+ }
+
+ return proxy;
+ }
+
+ private static HttpHeaders setHeaders(ClientRequest jerseyRequest, HttpHeaders headers) {
+ for (final Map.Entry> e : jerseyRequest.getStringHeaders().entrySet()) {
+ headers.add(e.getKey(), e.getValue());
+ }
+ return headers;
+ }
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxySelectorTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxySelectorTest.java
new file mode 100644
index 00000000000..4580facf24e
--- /dev/null
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxySelectorTest.java
@@ -0,0 +1,159 @@
+/*
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019 Banco do Brasil S/A. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.e2e.client.connector.proxy;
+
+import org.eclipse.jetty.server.HttpChannel;
+import org.eclipse.jetty.server.Request;
+import org.eclipse.jetty.server.Server;
+import org.eclipse.jetty.server.handler.AbstractHandler;
+import org.glassfish.jersey.apache.connector.ApacheConnectorProvider;
+import org.glassfish.jersey.apache5.connector.Apache5ConnectorProvider;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.spi.ConnectorProvider;
+import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
+import org.glassfish.jersey.netty.connector.NettyConnectorProvider;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.ws.rs.ProcessingException;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Response;
+import java.lang.reflect.InvocationTargetException;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import static org.junit.Assert.assertEquals;
+
+/**
+ * Moved from jetty-connector
+ * @author Marcelo Rubim
+ */
+@RunWith(Parameterized.class)
+public class ProxySelectorTest {
+ private static final String NO_PASS = "no-pass";
+
+ @Parameterized.Parameters(name = "{index}: {0}")
+ public static List testData() {
+ return Arrays.asList(new Object[][]{
+// {ApacheConnectorProvider.class},
+// {Apache5ConnectorProvider.class},
+// {JettyConnectorProvider.class},
+ {NettyConnectorProvider.class},
+ });
+ }
+
+ private final ConnectorProvider connectorProvider;
+
+ public ProxySelectorTest(Class extends ConnectorProvider> connectorProviderClass)
+ throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
+ this.connectorProvider = connectorProviderClass.getConstructor().newInstance();
+ }
+
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(connectorProvider);
+ }
+
+ @Test
+ public void testGetNoPass() {
+ try (Response response = target("proxyTest").request().header(NO_PASS, 200).get()) {
+ assertEquals(200, response.getStatus());
+ }
+ }
+
+ @Test
+ public void testGet407() {
+ try (Response response = target("proxyTest").request().get()) {
+ assertEquals(407, response.getStatus());
+ } catch (ProcessingException pe) {
+ Assert.assertTrue(pe.getMessage().contains("407")); // netty
+ }
+ }
+
+ private static Server server;
+ @BeforeClass
+ public static void startFakeProxy() {
+ server = new Server(9997);
+ server.setHandler(new ProxyHandler());
+ try {
+ server.start();
+ } catch (Exception e) {
+
+ }
+
+ System.setProperty("http.proxyHost", "http://localhost");
+ System.setProperty("http.proxyPort", "9997");
+ }
+
+ @AfterClass
+ public static void tearDownProxy() {
+ try {
+ server.stop();
+ } catch (Exception e) {
+
+ } finally {
+ System.clearProperty("http.proxyHost");
+ System.clearProperty("http.proxyPort");
+ }
+ }
+
+ private static Client client;
+ @Before
+ public void beforeEach() {
+ ClientConfig config = new ClientConfig();
+ this.configureClient(config);
+ client = ClientBuilder.newClient(config);
+ }
+
+ private Client client() {
+ return client;
+ }
+
+ private WebTarget target(String path) {
+ // ProxySelector goes DIRECT to localhost, no matter the proxy
+ return client().target("http://eclipse.org:9998").path(path);
+ }
+
+ static class ProxyHandler extends AbstractHandler {
+ Set httpConnect = new HashSet<>();
+ @Override
+ public void handle(String target,
+ Request baseRequest,
+ HttpServletRequest request,
+ HttpServletResponse response) {
+ if (request.getHeader(NO_PASS) != null) {
+ response.setStatus(Integer.parseInt(request.getHeader(NO_PASS)));
+ } else {
+ response.setStatus(407);
+ response.addHeader("Proxy-Authenticate", "Basic");
+ }
+
+ baseRequest.setHandled(true);
+ }
+ }
+}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java
new file mode 100644
index 00000000000..93e69c2124c
--- /dev/null
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java
@@ -0,0 +1,199 @@
+/*
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019 Banco do Brasil S/A. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.e2e.client.connector.proxy;
+
+import org.eclipse.jetty.server.HttpChannel;
+import org.eclipse.jetty.server.Request;
+import org.eclipse.jetty.server.Server;
+import org.eclipse.jetty.server.handler.AbstractHandler;
+import org.glassfish.jersey.apache.connector.ApacheConnectorProvider;
+import org.glassfish.jersey.apache5.connector.Apache5ConnectorProvider;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.client.spi.ConnectorProvider;
+import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
+import org.glassfish.jersey.netty.connector.NettyConnectorProvider;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.ws.rs.ProcessingException;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.Response;
+import java.lang.reflect.InvocationTargetException;
+import java.nio.charset.Charset;
+import java.util.Arrays;
+import java.util.Base64;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import static org.junit.Assert.assertEquals;
+
+/**
+ * Moved from jetty-connector
+ * @author Marcelo Rubim
+ */
+@RunWith(Parameterized.class)
+public class ProxyTest {
+ private static final Charset CHARACTER_SET = Charset.forName("iso-8859-1");
+ private static final String PROXY_URI = "http://127.0.0.1:9997";
+ private static final String PROXY_USERNAME = "proxy-user";
+ private static final String PROXY_PASSWORD = "proxy-password";
+ private static final String NO_PASS = "no-pass";
+
+ @Parameterized.Parameters(name = "{index}: {0}")
+ public static List testData() {
+ return Arrays.asList(new Object[][]{
+ {ApacheConnectorProvider.class},
+ {Apache5ConnectorProvider.class},
+ {JettyConnectorProvider.class},
+ {NettyConnectorProvider.class},
+ });
+ }
+
+ private final ConnectorProvider connectorProvider;
+
+ public ProxyTest(Class extends ConnectorProvider> connectorProviderClass)
+ throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
+ this.connectorProvider = connectorProviderClass.getConstructor().newInstance();
+ }
+
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(connectorProvider);
+ }
+
+ @Test
+ public void testGetNoPass() {
+ client().property(ClientProperties.PROXY_URI, ProxyTest.PROXY_URI);
+ try (Response response = target("proxyTest").request().header(NO_PASS, 200).get()) {
+ assertEquals(200, response.getStatus());
+ }
+ }
+
+ @Test
+ public void testGet407() {
+ client().property(ClientProperties.PROXY_URI, ProxyTest.PROXY_URI);
+ try (Response response = target("proxyTest").request().get()) {
+ assertEquals(407, response.getStatus());
+ } catch (ProcessingException pe) {
+ Assert.assertTrue(pe.getMessage().contains("407")); // netty
+ }
+ }
+
+ @Test
+ public void testGetSuccess() {
+ client().property(ClientProperties.PROXY_URI, ProxyTest.PROXY_URI);
+ client().property(ClientProperties.PROXY_USERNAME, ProxyTest.PROXY_USERNAME);
+ client().property(ClientProperties.PROXY_PASSWORD, ProxyTest.PROXY_PASSWORD);
+ Response response = target("proxyTest").request().get();
+ assertEquals(200, response.getStatus());
+ }
+
+ private static Server server;
+ @BeforeClass
+ public static void startFakeProxy() {
+ server = new Server(9997);
+ server.setHandler(new ProxyHandler());
+ try {
+ server.start();
+ } catch (Exception e) {
+
+ }
+ }
+
+ @AfterClass
+ public static void tearDownProxy() {
+ try {
+ server.stop();
+ } catch (Exception e) {
+
+ }
+ }
+
+ private static Client client;
+ @Before
+ public void beforeEach() {
+ ClientConfig config = new ClientConfig();
+ this.configureClient(config);
+ client = ClientBuilder.newClient(config);
+ }
+
+ private Client client() {
+ return client;
+ }
+
+ private WebTarget target(String path) {
+ return client().target("http://localhost:9998").path(path);
+ }
+
+ static class ProxyHandler extends AbstractHandler {
+ Set httpConnect = new HashSet<>();
+ @Override
+ public void handle(String target,
+ Request baseRequest,
+ HttpServletRequest request,
+ HttpServletResponse response) {
+ if (request.getHeader(NO_PASS) != null) {
+ response.setStatus(Integer.parseInt(request.getHeader(NO_PASS)));
+ } else if (request.getHeader("Proxy-Authorization") != null) {
+ String proxyAuthorization = request.getHeader("Proxy-Authorization");
+ String decoded = new String(Base64.getDecoder().decode(proxyAuthorization.substring(6).getBytes()),
+ CHARACTER_SET);
+ final String[] split = decoded.split(":");
+ final String username = split[0];
+ final String password = split[1];
+
+ if (!username.equals(PROXY_USERNAME)) {
+ response.setStatus(400);
+ System.out.println("Found unexpected username: " + username);
+ }
+
+ if (!password.equals(PROXY_PASSWORD)) {
+ response.setStatus(400);
+ System.out.println("Found unexpected password: " + username);
+ }
+
+ if (response.getStatus() != 400) {
+ response.setStatus(200);
+ if ("CONNECT".equalsIgnoreCase(baseRequest.getMethod())) { // NETTY way of doing proxy
+ httpConnect.add(baseRequest.getHttpChannel());
+ }
+ }
+ //TODO Add redirect to requestURI
+ } else {
+ if (httpConnect.contains(baseRequest.getHttpChannel())) {
+ response.setStatus(200);
+ } else {
+ response.setStatus(407);
+ response.addHeader("Proxy-Authenticate", "Basic");
+ }
+ }
+
+ baseRequest.setHandled(true);
+ }
+ }
+}
From 78ea6dc1d6b64e5118a218797fe1b89d0cdd4efa Mon Sep 17 00:00:00 2001
From: Maxim Nesen <24524084+senivam@users.noreply.github.com>
Date: Thu, 9 Jun 2022 13:39:23 +0200
Subject: [PATCH 049/305] Make JacksonFeature configurable (#5074)
Signed-off-by: Maxim Nesen
---
.../glassfish/jersey/CommonProperties.java | 53 +++++++++++++-
docs/src/main/docbook/appendix-properties.xml | 36 ++++++++++
docs/src/main/docbook/jersey.ent | 6 ++
docs/src/main/docbook/media.xml | 11 ++-
media/json-jackson/pom.xml | 3 +-
.../DefaultJacksonJaxbJsonProvider.java | 40 +++++++++--
...JsonJacksonProviderForBothModulesTest.java | 43 +++++++++++
...JacksonProviderForDisabledModulesTest.java | 71 +++++++++++++++++++
...nJacksonProviderForEnabledModulesTest.java | 42 +++++++++++
.../internal/model/JAXBServiceTest.java | 62 ++++++++++++++++
.../rest-client14-compatibility/pom.xml | 7 +-
11 files changed, 358 insertions(+), 16 deletions(-)
create mode 100644 media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForBothModulesTest.java
create mode 100644 media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForDisabledModulesTest.java
create mode 100644 media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForEnabledModulesTest.java
create mode 100644 media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/model/JAXBServiceTest.java
diff --git a/core-common/src/main/java/org/glassfish/jersey/CommonProperties.java b/core-common/src/main/java/org/glassfish/jersey/CommonProperties.java
index 50fceb1df79..762a08b0503 100644
--- a/core-common/src/main/java/org/glassfish/jersey/CommonProperties.java
+++ b/core-common/src/main/java/org/glassfish/jersey/CommonProperties.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -255,6 +255,55 @@ public final class CommonProperties {
*/
public static final String JAXRS_SERVICE_LOADING_ENABLE = "jakarta.ws.rs.loadServices";
+ /**
+ * Comma separated list of jackson modules which are only enabled (only those modules will be used)
+ * for json-jackson processing
+ *
+ * @since 2.36
+ */
+ public static final String JSON_JACKSON_ENABLED_MODULES = "jersey.config.json.jackson.enabled.modules";
+
+ /**
+ * Client-specific version of {@link CommonProperties#JSON_JACKSON_ENABLED_MODULES}.
+ *
+ * If present, it overrides the generic one for the client environment.
+ * @since 2.36
+ */
+ public static final String JSON_JACKSON_ENABLED_MODULES_CLIENT = "jersey.config.client.json.jackson.enabled.modules";
+
+ /**
+ * Server-specific version of {@link CommonProperties#JSON_JACKSON_ENABLED_MODULES}.
+ *
+ * If present, it overrides the generic one for the server environment.
+ * @since 2.36
+ */
+ public static final String JSON_JACKSON_ENABLED_MODULES_SERVER = "jersey.config.server.json.jackson.enabled.modules";
+
+ /**
+ * Comma separated list of jackson modules which shall be excluded from json-jackson processing.
+ * the JaxbAnnotationModule is always excluded (cannot be configured).
+ *
+ * @since 2.36
+ */
+
+ public static final String JSON_JACKSON_DISABLED_MODULES = "jersey.config.json.jackson.disabled.modules";
+
+ /**
+ * Client-specific version of {@link CommonProperties#JSON_JACKSON_DISABLED_MODULES}.
+ *
+ * If present, it overrides the generic one for the client environment.
+ * @since 2.36
+ */
+ public static final String JSON_JACKSON_DISABLED_MODULES_CLIENT = "jersey.config.client.json.jackson.disabled.modules";
+
+ /**
+ * Server-specific version of {@link CommonProperties#JSON_JACKSON_DISABLED_MODULES}.
+ *
+ * If present, it overrides the generic one for the client environment.
+ * @since 2.36
+ */
+ public static final String JSON_JACKSON_DISABLED_MODULES_SERVER = "jersey.config.server.json.jackson.disabled.modules";
+
/**
* Prevent instantiation.
*/
@@ -274,7 +323,7 @@ private CommonProperties() {
*
* @since 2.8
*/
- public static Object getValue(final Map properties, final String propertyName, final Class> type) {
+ public static T getValue(final Map properties, final String propertyName, final Class type) {
return PropertiesHelper.getValue(properties, propertyName, type, CommonProperties.LEGACY_FALLBACK_MAP);
}
diff --git a/docs/src/main/docbook/appendix-properties.xml b/docs/src/main/docbook/appendix-properties.xml
index 0f085eb6d43..3da415b49ce 100644
--- a/docs/src/main/docbook/appendix-properties.xml
+++ b/docs/src/main/docbook/appendix-properties.xml
@@ -147,6 +147,42 @@
@since 2.30
+
+ &jersey.common.CommonProperties.JSON_JACKSON_ENABLED_MODULES; /
+ &jersey.common.CommonProperties.JSON_JACKSON_ENABLED_MODULES_CLIENT; /
+ &jersey.common.CommonProperties.JSON_JACKSON_ENABLED_MODULES_SERVER;
+
+
+ jersey.config.json.jackson.enabled.modules
+ jersey.config.client.json.jackson.enabled.modules
+ jersey.config.server.json.jackson.enabled.modules
+
+
+ Comma separated list of jackson modules which shall be used for json-jackson provider.
+ If set, only those modules will be used for JSON processing.
+
+ Default value is NULL
+ @since 2.36
+
+
+
+ &jersey.common.CommonProperties.JSON_JACKSON_DISABLED_MODULES; /
+ &jersey.common.CommonProperties.JSON_JACKSON_DISABLED_MODULES_CLIENT; /
+ &jersey.common.CommonProperties.JSON_JACKSON_DISABLED_MODULES_SERVER;
+
+
+ jersey.config.json.jackson.disabled.modules
+ jersey.config.client.json.jackson.disabled.modules
+ jersey.config.server.json.jackson.disabled.modules
+
+
+ Comma separated list of jackson modules which shall be excluded from json-jackson provider.
+ If set, those modules will be excluded from JSON processing.
+
+ Default value is NULL
+ @since 2.36
+
+
&jersey.logging.LoggingFeature.LOGGING_FEATURE_LOGGER_NAME;
diff --git a/docs/src/main/docbook/jersey.ent b/docs/src/main/docbook/jersey.ent
index 1c8bdb05646..e463997a619 100644
--- a/docs/src/main/docbook/jersey.ent
+++ b/docs/src/main/docbook/jersey.ent
@@ -394,6 +394,12 @@
CommonProperties.OUTBOUND_CONTENT_LENGTH_BUFFER_CLIENT" >
CommonProperties.OUTBOUND_CONTENT_LENGTH_BUFFER_SERVER" >
CommonProperties.PROVIDER_DEFAULT_DISABLE" >
+CommonProperties.JSON_JACKSON_ENABLED_MODULES" >
+CommonProperties.JSON_JACKSON_ENABLED_MODULES_CLIENT" >
+CommonProperties.JSON_JACKSON_ENABLED_MODULES_SERVER" >
+CommonProperties.JSON_JACKSON_DISABLED_MODULES" >
+CommonProperties.JSON_JACKSON_DISABLED_MODULES_CLIENT" >
+CommonProperties.JSON_JACKSON_DISABLED_MODULES_SERVER" >
DisposableSupplier">
InjectionManager">
AbstractBinder">
diff --git a/docs/src/main/docbook/media.xml b/docs/src/main/docbook/media.xml
index 547ac61f4ae..2946993351d 100644
--- a/docs/src/main/docbook/media.xml
+++ b/docs/src/main/docbook/media.xml
@@ -1,7 +1,7 @@
diff --git a/tests/integration/servlet-2.5-reload/src/test/java/org/glassfish/jersey/tests/integration/servlet_25_config_reload/ReloadTestIT.java b/tests/integration/servlet-2.5-reload/src/test/java/org/glassfish/jersey/tests/integration/servlet_25_config_reload/ReloadTestIT.java
index 6515b8aa3a3..67095bb87db 100644
--- a/tests/integration/servlet-2.5-reload/src/test/java/org/glassfish/jersey/tests/integration/servlet_25_config_reload/ReloadTestIT.java
+++ b/tests/integration/servlet-2.5-reload/src/test/java/org/glassfish/jersey/tests/integration/servlet_25_config_reload/ReloadTestIT.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,6 +24,7 @@
import org.glassfish.jersey.test.spi.TestContainerException;
import org.glassfish.jersey.test.spi.TestContainerFactory;
+import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
@@ -44,6 +45,7 @@ protected TestContainerFactory getTestContainerFactory() throws TestContainerExc
}
@Test
+ @Ignore //TODO - fix after 2.36
public void testReload() throws Exception {
Response response = target().path("helloworld").request().get();
assertEquals(200, response.getStatus());
From bc70ab97fa44b7a943b624ecba8a0a2e9d411fe3 Mon Sep 17 00:00:00 2001
From: Maxim Nesen <24524084+senivam@users.noreply.github.com>
Date: Mon, 13 Jun 2022 10:39:22 +0200
Subject: [PATCH 051/305] Dependencies versions update (#5078)
Signed-off-by: Maxim Nesen
---
pom.xml | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/pom.xml b/pom.xml
index 2b2267ab5be..6e9baffb3ee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2110,30 +2110,20 @@
9.3
2.3.6
- 1.1
- 2.0.2
2.11.0
3.3.2
- 2.0
3.1.0
8.28
3.3
- 3.2.5
1.3.3
1.7
3.0.4
2.3.27-incubating
1.9.59
- 1.16
- 2.4.4
31.1-jre
2.2
1.0.3
1.6
- 2.6.1
- org.glassfish.hk2.*;version="[2.5,4)"
- org.jvnet.hk2.*;version="[2.5,4)"
- 5.1.0
4.5.13
5.1.2
2.13.3
@@ -2145,9 +2135,6 @@
1.3.7
1.10.2
1.44
- 2.3.6
- 1.2.7
- 1.3.3
5.6.0
4.0.1
3.9.0
@@ -2158,15 +2145,11 @@
6.0.0
1.10.0
5.0.0
- 1.6.0
4.13.4
0.7.4
1.2.4
1.2.5
2.0.4
- 2.4
- 3.0.1
- 4.0.3
6.0.1
false
1.7.21
@@ -2182,7 +2165,16 @@
20.3.2
+ 1.2
+ 2.0.2
+ 3.2.6
5.1.0
+ 1.16
+ 2.4.4
+ 2.6.1
+ org.glassfish.hk2.*;version="[2.5,4)"
+ org.jvnet.hk2.*;version="[2.5,4)"
+ 5.1.0
3.0.8
1.2.2
3.0.3
@@ -2193,17 +2185,25 @@
2.2.3
2.0.2
2.3.3
- 2.3.3
+ 2.3.6
2.1
2.1.6
6.1.26
- 9.4.42.v20210604
+ 9.4.46.v20220331
6.1.14
1.0.2
1.1.6
1.1.6
+ 2.3.6
+ 1.2.7
+ 1.3.3
+ 2.0.1
1.9.13
- 2.7.9
- 1.0.9
+ 2.7.10
+ 1.6.1
+ 2.5
+ 3.0.1
+ 4.0.4
+ 1.0.11
From 54415d82e8e0b9ea10d19f8a3d79b990ea4a0e93 Mon Sep 17 00:00:00 2001
From: jersey-bot
Date: Mon, 13 Jun 2022 09:24:22 +0000
Subject: [PATCH 052/305] 2.36
---
archetypes/jersey-example-java8-webapp/pom.xml | 4 ++--
archetypes/jersey-heroku-webapp/pom.xml | 4 ++--
archetypes/jersey-quickstart-grizzly2/pom.xml | 4 ++--
archetypes/jersey-quickstart-webapp/pom.xml | 4 ++--
archetypes/pom.xml | 4 ++--
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 4 ++--
bundles/jaxrs-ri/pom.xml | 4 ++--
bundles/pom.xml | 4 ++--
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 4 ++--
connectors/helidon-connector/pom.xml | 4 ++--
connectors/jdk-connector/pom.xml | 4 ++--
connectors/jetty-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 4 ++--
containers/glassfish/pom.xml | 4 ++--
containers/grizzly2-http/pom.xml | 4 ++--
containers/grizzly2-servlet/pom.xml | 4 ++--
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 4 ++--
containers/jersey-servlet/pom.xml | 4 ++--
containers/jetty-http/pom.xml | 4 ++--
containers/jetty-servlet/pom.xml | 4 ++--
containers/netty-http/pom.xml | 4 ++--
containers/pom.xml | 4 ++--
containers/simple-http/pom.xml | 4 ++--
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 4 ++--
examples/assemblies/pom.xml | 4 ++--
examples/bookmark-em/pom.xml | 4 ++--
examples/bookmark/pom.xml | 4 ++--
examples/bookstore-webapp/pom.xml | 4 ++--
examples/cdi-webapp/pom.xml | 4 ++--
examples/clipboard-programmatic/pom.xml | 4 ++--
examples/clipboard/pom.xml | 4 ++--
examples/declarative-linking/pom.xml | 4 ++--
examples/entity-filtering-security/pom.xml | 4 ++--
examples/entity-filtering-selectable/pom.xml | 4 ++--
examples/entity-filtering/pom.xml | 4 ++--
examples/exception-mapping/pom.xml | 4 ++--
examples/extended-wadl-webapp/pom.xml | 4 ++--
examples/freemarker-webapp/pom.xml | 4 ++--
examples/groovy/pom.xml | 4 ++--
examples/helloworld-benchmark/pom.xml | 4 ++--
examples/helloworld-cdi2-se/pom.xml | 4 ++--
examples/helloworld-netty/pom.xml | 4 ++--
examples/helloworld-programmatic/pom.xml | 4 ++--
examples/helloworld-pure-jax-rs/pom.xml | 4 ++--
examples/helloworld-spring-annotations/pom.xml | 4 ++--
examples/helloworld-spring-webapp/pom.xml | 4 ++--
examples/helloworld-webapp/pom.xml | 4 ++--
examples/helloworld-weld/pom.xml | 4 ++--
examples/helloworld/pom.xml | 4 ++--
examples/http-patch/pom.xml | 4 ++--
examples/http-trace/pom.xml | 4 ++--
examples/https-clientserver-grizzly/pom.xml | 4 ++--
examples/https-server-glassfish/pom.xml | 4 ++--
examples/java8-webapp/pom.xml | 4 ++--
examples/jaxb/pom.xml | 4 ++--
examples/jaxrs-types-injection/pom.xml | 4 ++--
examples/jersey-ejb/pom.xml | 4 ++--
examples/json-binding-webapp/pom.xml | 4 ++--
examples/json-jackson/pom.xml | 4 ++--
examples/json-jackson1/pom.xml | 4 ++--
examples/json-jettison/pom.xml | 4 ++--
examples/json-moxy/pom.xml | 4 ++--
examples/json-processing-webapp/pom.xml | 4 ++--
examples/json-with-padding/pom.xml | 4 ++--
examples/managed-beans-webapp/pom.xml | 4 ++--
examples/managed-client-simple-webapp/pom.xml | 4 ++--
examples/managed-client-webapp/pom.xml | 4 ++--
examples/managed-client/pom.xml | 4 ++--
examples/multipart-webapp/pom.xml | 4 ++--
examples/oauth-client-twitter/pom.xml | 4 ++--
examples/open-tracing/pom.xml | 4 ++--
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 4 ++--
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 4 ++--
examples/osgi-helloworld-webapp/functional-test/pom.xml | 4 ++--
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 4 ++--
examples/osgi-helloworld-webapp/pom.xml | 4 ++--
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 4 ++--
examples/osgi-http-service/bundle/pom.xml | 4 ++--
examples/osgi-http-service/functional-test/pom.xml | 4 ++--
examples/osgi-http-service/pom.xml | 4 ++--
examples/pom.xml | 4 ++--
examples/reload/pom.xml | 4 ++--
examples/rx-client-webapp/pom.xml | 4 ++--
examples/server-async-managed/pom.xml | 4 ++--
examples/server-async-standalone/client/pom.xml | 4 ++--
examples/server-async-standalone/pom.xml | 4 ++--
examples/server-async-standalone/webapp/pom.xml | 4 ++--
examples/server-async/pom.xml | 4 ++--
examples/server-sent-events-jaxrs/pom.xml | 4 ++--
examples/server-sent-events-jersey/pom.xml | 4 ++--
examples/servlet3-webapp/pom.xml | 4 ++--
examples/simple-console/pom.xml | 4 ++--
examples/sse-item-store-jaxrs-webapp/pom.xml | 4 ++--
examples/sse-item-store-jersey-webapp/pom.xml | 4 ++--
examples/sse-twitter-aggregator/pom.xml | 4 ++--
examples/system-properties-example/pom.xml | 4 ++--
examples/webapp-example-parent/pom.xml | 4 ++--
examples/xml-moxy/pom.xml | 4 ++--
ext/bean-validation/pom.xml | 4 ++--
ext/cdi/jersey-cdi-rs-inject/pom.xml | 4 ++--
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 4 ++--
ext/cdi/jersey-cdi1x-transaction/pom.xml | 4 ++--
ext/cdi/jersey-cdi1x-validation/pom.xml | 4 ++--
ext/cdi/jersey-cdi1x/pom.xml | 4 ++--
ext/cdi/jersey-weld2-se/pom.xml | 4 ++--
ext/cdi/pom.xml | 4 ++--
ext/entity-filtering/pom.xml | 4 ++--
ext/metainf-services/pom.xml | 4 ++--
ext/microprofile/mp-config/pom.xml | 4 ++--
ext/microprofile/mp-rest-client/pom.xml | 4 ++--
ext/microprofile/pom.xml | 4 ++--
ext/mvc-bean-validation/pom.xml | 4 ++--
ext/mvc-freemarker/pom.xml | 4 ++--
ext/mvc-jsp/pom.xml | 4 ++--
ext/mvc-mustache/pom.xml | 4 ++--
ext/mvc/pom.xml | 4 ++--
ext/pom.xml | 4 ++--
ext/proxy-client/pom.xml | 4 ++--
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 4 ++--
ext/rx/rx-client-rxjava2/pom.xml | 4 ++--
ext/servlet-portability/pom.xml | 4 ++--
ext/spring4/pom.xml | 4 ++--
ext/spring5/pom.xml | 4 ++--
ext/wadl-doclet/pom.xml | 4 ++--
incubator/cdi-inject-weld/pom.xml | 4 ++--
incubator/declarative-linking/pom.xml | 4 ++--
incubator/gae-integration/pom.xml | 4 ++--
incubator/html-json/pom.xml | 4 ++--
incubator/kryo/pom.xml | 4 ++--
incubator/open-tracing/pom.xml | 4 ++--
incubator/pom.xml | 4 ++--
inject/cdi2-se/pom.xml | 4 ++--
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 4 ++--
media/jaxb/pom.xml | 4 ++--
media/json-binding/pom.xml | 4 ++--
media/json-jackson/pom.xml | 2 +-
media/json-jackson1/pom.xml | 4 ++--
media/json-jettison/pom.xml | 4 ++--
media/json-processing/pom.xml | 4 ++--
media/moxy/pom.xml | 4 ++--
media/multipart/pom.xml | 4 ++--
media/pom.xml | 4 ++--
media/sse/pom.xml | 4 ++--
pom.xml | 2 +-
security/oauth1-client/pom.xml | 4 ++--
security/oauth1-server/pom.xml | 4 ++--
security/oauth1-signature/pom.xml | 4 ++--
security/oauth2-client/pom.xml | 4 ++--
security/pom.xml | 4 ++--
test-framework/core/pom.xml | 4 ++--
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 4 ++--
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 4 ++--
test-framework/providers/bundle/pom.xml | 4 ++--
test-framework/providers/external/pom.xml | 4 ++--
test-framework/providers/grizzly2/pom.xml | 4 ++--
test-framework/providers/inmemory/pom.xml | 4 ++--
test-framework/providers/jdk-http/pom.xml | 4 ++--
test-framework/providers/jetty/pom.xml | 4 ++--
test-framework/providers/netty/pom.xml | 4 ++--
test-framework/providers/pom.xml | 4 ++--
test-framework/providers/simple/pom.xml | 4 ++--
test-framework/util/pom.xml | 4 ++--
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 4 ++--
tests/e2e-inject/pom.xml | 4 ++--
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 4 ++--
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 4 ++--
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 4 ++--
.../cdi-integration/cdi-client-on-server/pom.xml | 4 ++--
tests/integration/cdi-integration/cdi-client/pom.xml | 4 ++--
.../integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 4 ++--
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 4 ++--
tests/integration/cdi-integration/cdi-log-check/pom.xml | 4 ++--
.../integration/cdi-integration/cdi-manually-bound/pom.xml | 4 ++--
.../integration/cdi-integration/cdi-multimodule/ear/pom.xml | 4 ++--
.../integration/cdi-integration/cdi-multimodule/lib/pom.xml | 4 ++--
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 4 ++--
.../cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../cdi-integration/cdi-multipart-webapp/pom.xml | 4 ++--
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 4 ++--
tests/integration/cdi-integration/cdi-singleton/pom.xml | 4 ++--
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 4 ++--
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 4 ++--
.../pom.xml | 4 ++--
.../cdi-with-jersey-injection-webapp/pom.xml | 4 ++--
.../cdi-integration/context-inject-on-server/pom.xml | 4 ++--
tests/integration/cdi-integration/pom.xml | 4 ++--
tests/integration/client-connector-provider/pom.xml | 4 ++--
tests/integration/ejb-multimodule-reload/ear/pom.xml | 4 ++--
tests/integration/ejb-multimodule-reload/lib/pom.xml | 4 ++--
tests/integration/ejb-multimodule-reload/pom.xml | 4 ++--
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 4 ++--
tests/integration/ejb-multimodule/lib/pom.xml | 4 ++--
tests/integration/ejb-multimodule/pom.xml | 4 ++--
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 4 ++--
tests/integration/j-376/pom.xml | 4 ++--
tests/integration/j-441/ear/pom.xml | 4 ++--
tests/integration/j-441/pom.xml | 4 ++--
tests/integration/j-441/war1/pom.xml | 4 ++--
tests/integration/j-441/war2/pom.xml | 4 ++--
tests/integration/j-59/ear/pom.xml | 4 ++--
tests/integration/j-59/lib/pom.xml | 4 ++--
tests/integration/j-59/pom.xml | 4 ++--
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 4 ++--
tests/integration/jersey-1107/pom.xml | 4 ++--
tests/integration/jersey-1223/pom.xml | 4 ++--
tests/integration/jersey-1604/pom.xml | 4 ++--
tests/integration/jersey-1667/pom.xml | 4 ++--
tests/integration/jersey-1829/pom.xml | 4 ++--
tests/integration/jersey-1883/pom.xml | 4 ++--
tests/integration/jersey-1928/pom.xml | 4 ++--
tests/integration/jersey-1960/pom.xml | 4 ++--
tests/integration/jersey-1964/pom.xml | 4 ++--
tests/integration/jersey-2031/pom.xml | 4 ++--
tests/integration/jersey-2136/pom.xml | 4 ++--
tests/integration/jersey-2137/pom.xml | 4 ++--
tests/integration/jersey-2154/pom.xml | 4 ++--
tests/integration/jersey-2160/pom.xml | 4 ++--
tests/integration/jersey-2164/pom.xml | 4 ++--
tests/integration/jersey-2167/pom.xml | 4 ++--
tests/integration/jersey-2176/pom.xml | 4 ++--
tests/integration/jersey-2184/pom.xml | 4 ++--
tests/integration/jersey-2255/pom.xml | 4 ++--
tests/integration/jersey-2322/pom.xml | 4 ++--
tests/integration/jersey-2335/pom.xml | 4 ++--
tests/integration/jersey-2421/pom.xml | 4 ++--
tests/integration/jersey-2551/pom.xml | 4 ++--
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 4 ++--
tests/integration/jersey-2654/pom.xml | 4 ++--
tests/integration/jersey-2673/pom.xml | 4 ++--
tests/integration/jersey-2689/pom.xml | 4 ++--
tests/integration/jersey-2704/pom.xml | 4 ++--
tests/integration/jersey-2776/pom.xml | 4 ++--
tests/integration/jersey-2794/pom.xml | 4 ++--
tests/integration/jersey-2846/pom.xml | 4 ++--
tests/integration/jersey-2878/pom.xml | 4 ++--
tests/integration/jersey-2892/pom.xml | 4 ++--
tests/integration/jersey-3662/pom.xml | 4 ++--
tests/integration/jersey-3670/pom.xml | 4 ++--
tests/integration/jersey-3796/pom.xml | 4 ++--
tests/integration/jersey-3992/pom.xml | 4 ++--
tests/integration/jersey-4003/pom.xml | 4 ++--
tests/integration/jersey-4099/pom.xml | 4 ++--
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 4 ++--
tests/integration/jersey-4542/pom.xml | 4 ++--
tests/integration/jersey-4697/pom.xml | 4 ++--
tests/integration/jersey-4722/pom.xml | 4 ++--
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 4 ++--
tests/integration/jetty-response-close/pom.xml | 4 ++--
tests/integration/microprofile/config/helidon/pom.xml | 4 ++--
tests/integration/microprofile/config/pom.xml | 4 ++--
tests/integration/microprofile/config/webapp/pom.xml | 4 ++--
tests/integration/microprofile/pom.xml | 4 ++--
tests/integration/microprofile/rest-client/pom.xml | 4 ++--
.../microprofile/rest-client14-compatibility/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/portability-jersey-1/pom.xml | 4 ++--
tests/integration/portability-jersey-2/pom.xml | 4 ++--
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 4 ++--
tests/integration/reactive-streams/sse/pom.xml | 4 ++--
tests/integration/security-digest/pom.xml | 4 ++--
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 4 ++--
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 4 ++--
tests/integration/servlet-2.5-filter/pom.xml | 4 ++--
tests/integration/servlet-2.5-inflector-1/pom.xml | 4 ++--
tests/integration/servlet-2.5-init-1/pom.xml | 4 ++--
tests/integration/servlet-2.5-init-2/pom.xml | 4 ++--
tests/integration/servlet-2.5-init-3/pom.xml | 4 ++--
tests/integration/servlet-2.5-init-4/pom.xml | 4 ++--
tests/integration/servlet-2.5-init-5/pom.xml | 4 ++--
tests/integration/servlet-2.5-init-6/pom.xml | 4 ++--
tests/integration/servlet-2.5-init-7/pom.xml | 4 ++--
tests/integration/servlet-2.5-init-8/pom.xml | 4 ++--
tests/integration/servlet-2.5-mvc-1/pom.xml | 4 ++--
tests/integration/servlet-2.5-mvc-2/pom.xml | 4 ++--
tests/integration/servlet-2.5-mvc-3/pom.xml | 4 ++--
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 4 ++--
tests/integration/servlet-3-chunked-io/pom.xml | 4 ++--
tests/integration/servlet-3-filter/pom.xml | 4 ++--
tests/integration/servlet-3-gf-async/pom.xml | 4 ++--
tests/integration/servlet-3-inflector-1/pom.xml | 4 ++--
tests/integration/servlet-3-init-1/pom.xml | 4 ++--
tests/integration/servlet-3-init-2/pom.xml | 4 ++--
tests/integration/servlet-3-init-3/pom.xml | 4 ++--
tests/integration/servlet-3-init-4/pom.xml | 4 ++--
tests/integration/servlet-3-init-5/pom.xml | 4 ++--
tests/integration/servlet-3-init-6/pom.xml | 4 ++--
tests/integration/servlet-3-init-7/pom.xml | 4 ++--
tests/integration/servlet-3-init-8/pom.xml | 4 ++--
tests/integration/servlet-3-init-9/pom.xml | 4 ++--
tests/integration/servlet-3-init-provider/pom.xml | 4 ++--
tests/integration/servlet-3-params/pom.xml | 4 ++--
tests/integration/servlet-3-sse-1/pom.xml | 4 ++--
tests/integration/servlet-4.0-mvc-1/pom.xml | 4 ++--
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 4 ++--
tests/integration/sonar-test/pom.xml | 4 ++--
tests/integration/spring4/pom.xml | 4 ++--
tests/integration/spring5/pom.xml | 4 ++--
tests/integration/tracing-support/pom.xml | 4 ++--
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 4 ++--
tests/mem-leaks/redeployment/pom.xml | 4 ++--
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 6 +++---
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../redeployment/redeployment-no-jersey-app/pom.xml | 4 ++--
.../redeployment/redeployment-threadlocals-app/pom.xml | 4 ++--
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 4 ++--
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 4 ++--
.../mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 4 ++--
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 4 ++--
tests/osgi/functional/pom.xml | 4 ++--
tests/osgi/pom.xml | 4 ++--
tests/performance/benchmarks/pom.xml | 4 ++--
tests/performance/pom.xml | 4 ++--
tests/performance/runners/jersey-grizzly-runner/pom.xml | 4 ++--
tests/performance/runners/pom.xml | 4 ++--
tests/performance/test-cases/assemblies/pom.xml | 4 ++--
tests/performance/test-cases/filter-dynamic/pom.xml | 4 ++--
tests/performance/test-cases/filter-global/pom.xml | 4 ++--
tests/performance/test-cases/filter-name/pom.xml | 4 ++--
tests/performance/test-cases/interceptor-dynamic/pom.xml | 4 ++--
tests/performance/test-cases/interceptor-global/pom.xml | 4 ++--
tests/performance/test-cases/interceptor-name/pom.xml | 4 ++--
tests/performance/test-cases/mbw-custom-provider/pom.xml | 4 ++--
tests/performance/test-cases/mbw-json-jackson/pom.xml | 4 ++--
tests/performance/test-cases/mbw-json-moxy/pom.xml | 4 ++--
tests/performance/test-cases/mbw-kryo/pom.xml | 4 ++--
tests/performance/test-cases/mbw-text-plain/pom.xml | 4 ++--
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 4 ++--
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 4 ++--
tests/performance/test-cases/param-srl/pom.xml | 4 ++--
tests/performance/test-cases/pom.xml | 4 ++--
tests/performance/test-cases/proxy-injection/pom.xml | 4 ++--
tests/performance/tools/pom.xml | 4 ++--
tests/pom.xml | 4 ++--
tests/stress/pom.xml | 2 +-
374 files changed, 701 insertions(+), 701 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index baa854d386a..303ca19c1f0 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -1,7 +1,7 @@
${jakarta.annotation.osgi.version},
- jakarta.json.*;version="[0,3)",
- org.glassfish.json.*;version="[0,3)",
+ jakarta.json.*;version="[2,3)",
*
@@ -81,13 +80,12 @@
jakarta.json-api
- org.glassfish
- jakarta.json
- module
+ org.eclipse.parsson
+ parsson
- org.glassfish
- jsonp-jaxrs
+ org.eclipse.parsson
+ parsson-media
diff --git a/media/json-processing/src/main/java/org/glassfish/jersey/jsonp/JsonProcessingFeature.java b/media/json-processing/src/main/java/org/glassfish/jersey/jsonp/JsonProcessingFeature.java
index cc1c913802d..aa3e96cc9c8 100644
--- a/media/json-processing/src/main/java/org/glassfish/jersey/jsonp/JsonProcessingFeature.java
+++ b/media/json-processing/src/main/java/org/glassfish/jersey/jsonp/JsonProcessingFeature.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,10 +20,10 @@
import jakarta.ws.rs.core.Feature;
import jakarta.ws.rs.core.FeatureContext;
-import org.glassfish.jersey.CommonProperties;
+import org.eclipse.parsson.media.JsonValueBodyReader;
+import org.eclipse.parsson.media.JsonValueBodyWriter;
-import org.glassfish.json.jaxrs.JsonValueBodyReader;
-import org.glassfish.json.jaxrs.JsonValueBodyWriter;
+import org.glassfish.jersey.CommonProperties;
/**
* {@link Feature} used to register JSON-P providers.
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index 2a36b2cbab4..f590550e8e3 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -101,9 +101,8 @@
jakarta.json.bind-api
- org.glassfish
- jakarta.json
- module
+ org.eclipse.parsson
+ parsson
diff --git a/pom.xml b/pom.xml
index 1d8f55354f3..a2d73bc1f36 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1841,14 +1841,13 @@
${jakarta.jsonp.version}
- org.glassfish
- jakarta.json
- module
+ org.eclipse.parsson
+ parsson
${jsonp.ri.version}
- org.glassfish
- jsonp-jaxrs
+ org.eclipse.parsson
+ parsson-media
${jsonp.jaxrs.version}
@@ -2122,11 +2121,10 @@
1.6
org.glassfish.hk2.*;version="[2.5,4)"
org.jvnet.hk2.*;version="[2.5,4)"
- 6.0.0
4.5.13
5.1.2
2.13.3
- 3.25.0-GA
+ 3.28.0-GA
3.3.0.Final
1.19.3
${jersey1.version}
@@ -2169,16 +2167,17 @@
20.3.2
- 6.0.0
+ 6.2.5
+ 6.2.5
3.0.0
- 4.0.0
+ 4.0.1
3.0.1
2.0.0
- 3.0.2
+ 3.0.3
3.0.0
2.0.0
- 2.0.0
+ 2.0.1
5.0.0
4.0.0
2.0.1
@@ -2188,22 +2187,22 @@
jakarta.annotation.*;version="[2.0,3)"
2.0.0
2.0.1
- 2.0.0
- 2.0.1
+ 2.0.1
+ 2.0.2
3.0.0
3.0.0
3.0.1
3.0.2
3.0
3.0.0
- 11.0.7
- 11.0.7
+ 11.0.9
+ 11.0.9
6.1.14
2.0.0
- 2.0.1
- 2.0.1
+ 1.0.0
+ 1.0.0
3.0.2
- 2.0.3
+ 2.0.4
1.3.2
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index 23317baaf65..b898c4ede08 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -309,14 +309,13 @@
jakarta.json-api
- org.glassfish
- jakarta.json
- module
+ org.eclipse.parsson
+ parsson
test
- org.glassfish
- jsonp-jaxrs
+ org.eclipse.parsson
+ parsson-media
test
diff --git a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonProcessingTest.java b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonProcessingTest.java
index ca3a7a0976c..4d4ca72038f 100644
--- a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonProcessingTest.java
+++ b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonProcessingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -69,8 +69,9 @@ public static Option[] configuration() {
// JSON processing.
mavenBundle().groupId("org.glassfish.jersey.media").artifactId("jersey-media-json-processing")
.versionAsInProject(),
- mavenBundle().groupId("org.glassfish").artifactId("jakarta.json").versionAsInProject(),
- mavenBundle().groupId("org.glassfish").artifactId("jsonp-jaxrs").versionAsInProject()
+ mavenBundle().groupId("jakarta.json").artifactId("jakarta.json-api").versionAsInProject(),
+ mavenBundle().groupId("org.eclipse.parsson").artifactId("parsson").versionAsInProject(),
+ mavenBundle().groupId("org.eclipse.parsson").artifactId("parsson-media").versionAsInProject()
));
options = Helper.addPaxExamMavenLocalRepositoryProperty(options);
From e114d5ed8bd48a750e98e517112bb5dceb739ef2 Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Tue, 14 Jun 2022 10:19:55 +0200
Subject: [PATCH 057/305] fix for user-guide markup
Signed-off-by: Maxim Nesen
---
docs/src/main/docbook/appendix-properties.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/src/main/docbook/appendix-properties.xml b/docs/src/main/docbook/appendix-properties.xml
index 3da415b49ce..6bd970abad6 100644
--- a/docs/src/main/docbook/appendix-properties.xml
+++ b/docs/src/main/docbook/appendix-properties.xml
@@ -149,8 +149,8 @@
&jersey.common.CommonProperties.JSON_JACKSON_ENABLED_MODULES; /
- &jersey.common.CommonProperties.JSON_JACKSON_ENABLED_MODULES_CLIENT; /
- &jersey.common.CommonProperties.JSON_JACKSON_ENABLED_MODULES_SERVER;
+ &jersey.common.CommonProperties.JSON_JACKSON_ENABLED_MODULES_CLIENT; /
+ &jersey.common.CommonProperties.JSON_JACKSON_ENABLED_MODULES_SERVER;
jersey.config.json.jackson.enabled.modules
@@ -167,8 +167,8 @@
&jersey.common.CommonProperties.JSON_JACKSON_DISABLED_MODULES; /
- &jersey.common.CommonProperties.JSON_JACKSON_DISABLED_MODULES_CLIENT; /
- &jersey.common.CommonProperties.JSON_JACKSON_DISABLED_MODULES_SERVER;
+ &jersey.common.CommonProperties.JSON_JACKSON_DISABLED_MODULES_CLIENT; /
+ &jersey.common.CommonProperties.JSON_JACKSON_DISABLED_MODULES_SERVER;
jersey.config.json.jackson.disabled.modules
From eea1322df66cc307842b81114c7e55313281e0ce Mon Sep 17 00:00:00 2001
From: jersey-bot
Date: Wed, 15 Jun 2022 13:01:14 +0000
Subject: [PATCH 058/305] 3.0.5
---
archetypes/jersey-example-java8-webapp/pom.xml | 2 +-
archetypes/jersey-heroku-webapp/pom.xml | 2 +-
archetypes/jersey-quickstart-grizzly2/pom.xml | 2 +-
archetypes/jersey-quickstart-webapp/pom.xml | 2 +-
archetypes/pom.xml | 2 +-
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 4 ++--
bundles/jaxrs-ri/pom.xml | 2 +-
bundles/pom.xml | 2 +-
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 2 +-
connectors/helidon-connector/pom.xml | 2 +-
connectors/jdk-connector/pom.xml | 2 +-
connectors/jetty-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 2 +-
containers/glassfish/pom.xml | 2 +-
containers/grizzly2-http/pom.xml | 2 +-
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-http/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
containers/netty-http/pom.xml | 2 +-
containers/pom.xml | 2 +-
containers/simple-http/pom.xml | 2 +-
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 4 ++--
examples/assemblies/pom.xml | 2 +-
examples/bookmark-em/pom.xml | 2 +-
examples/bookmark/pom.xml | 2 +-
examples/bookstore-webapp/pom.xml | 2 +-
examples/cdi-webapp/pom.xml | 2 +-
examples/clipboard-programmatic/pom.xml | 2 +-
examples/clipboard/pom.xml | 2 +-
examples/declarative-linking/pom.xml | 2 +-
examples/entity-filtering-security/pom.xml | 2 +-
examples/entity-filtering-selectable/pom.xml | 2 +-
examples/entity-filtering/pom.xml | 2 +-
examples/exception-mapping/pom.xml | 2 +-
examples/extended-wadl-webapp/pom.xml | 2 +-
examples/freemarker-webapp/pom.xml | 2 +-
examples/groovy/pom.xml | 2 +-
examples/helloworld-benchmark/pom.xml | 2 +-
examples/helloworld-cdi2-se/pom.xml | 2 +-
examples/helloworld-netty/pom.xml | 2 +-
examples/helloworld-programmatic/pom.xml | 2 +-
examples/helloworld-pure-jax-rs/pom.xml | 2 +-
examples/helloworld-webapp/pom.xml | 2 +-
examples/helloworld-weld/pom.xml | 2 +-
examples/helloworld/pom.xml | 2 +-
examples/http-patch/pom.xml | 2 +-
examples/http-trace/pom.xml | 2 +-
examples/https-clientserver-grizzly/pom.xml | 2 +-
examples/https-server-glassfish/pom.xml | 2 +-
examples/java8-webapp/pom.xml | 2 +-
examples/jaxb/pom.xml | 2 +-
examples/jaxrs-types-injection/pom.xml | 2 +-
examples/jersey-ejb/pom.xml | 2 +-
examples/json-binding-webapp/pom.xml | 2 +-
examples/json-jackson/pom.xml | 2 +-
examples/json-jettison/pom.xml | 2 +-
examples/json-moxy/pom.xml | 2 +-
examples/json-processing-webapp/pom.xml | 2 +-
examples/json-with-padding/pom.xml | 2 +-
examples/managed-beans-webapp/pom.xml | 2 +-
examples/managed-client-simple-webapp/pom.xml | 2 +-
examples/managed-client-webapp/pom.xml | 2 +-
examples/managed-client/pom.xml | 2 +-
examples/multipart-webapp/pom.xml | 2 +-
examples/oauth-client-twitter/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 2 +-
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/functional-test/pom.xml | 2 +-
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/pom.xml | 2 +-
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 2 +-
examples/pom.xml | 2 +-
examples/reload/pom.xml | 2 +-
examples/rx-client-webapp/pom.xml | 2 +-
examples/server-async-managed/pom.xml | 2 +-
examples/server-async-standalone/client/pom.xml | 2 +-
examples/server-async-standalone/pom.xml | 2 +-
examples/server-async-standalone/webapp/pom.xml | 2 +-
examples/server-async/pom.xml | 2 +-
examples/server-sent-events-jaxrs/pom.xml | 2 +-
examples/server-sent-events-jersey/pom.xml | 2 +-
examples/servlet3-webapp/pom.xml | 2 +-
examples/simple-console/pom.xml | 2 +-
examples/sse-item-store-jaxrs-webapp/pom.xml | 2 +-
examples/sse-item-store-jersey-webapp/pom.xml | 2 +-
examples/sse-twitter-aggregator/pom.xml | 2 +-
examples/system-properties-example/pom.xml | 2 +-
examples/webapp-example-parent/pom.xml | 2 +-
examples/xml-moxy/pom.xml | 2 +-
ext/bean-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-transaction/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi1x/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 2 +-
ext/cdi/pom.xml | 2 +-
ext/entity-filtering/pom.xml | 2 +-
ext/metainf-services/pom.xml | 2 +-
ext/microprofile/mp-config/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/microprofile/pom.xml | 2 +-
ext/mvc-bean-validation/pom.xml | 2 +-
ext/mvc-freemarker/pom.xml | 2 +-
ext/mvc-jsp/pom.xml | 2 +-
ext/mvc-mustache/pom.xml | 2 +-
ext/mvc/pom.xml | 2 +-
ext/pom.xml | 2 +-
ext/proxy-client/pom.xml | 2 +-
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 2 +-
ext/rx/rx-client-rxjava2/pom.xml | 2 +-
ext/spring6/pom.xml | 2 +-
ext/wadl-doclet/pom.xml | 2 +-
incubator/cdi-inject-weld/pom.xml | 2 +-
incubator/declarative-linking/pom.xml | 2 +-
incubator/gae-integration/pom.xml | 2 +-
incubator/html-json/pom.xml | 2 +-
incubator/kryo/pom.xml | 2 +-
incubator/open-tracing/pom.xml | 2 +-
incubator/pom.xml | 2 +-
inject/cdi2-se/pom.xml | 2 +-
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 2 +-
media/jaxb/pom.xml | 2 +-
media/json-binding/pom.xml | 2 +-
media/json-jackson/pom.xml | 2 +-
media/json-jettison/pom.xml | 2 +-
media/json-processing/pom.xml | 2 +-
media/moxy/pom.xml | 2 +-
media/multipart/pom.xml | 2 +-
media/pom.xml | 2 +-
media/sse/pom.xml | 2 +-
pom.xml | 2 +-
security/oauth1-client/pom.xml | 2 +-
security/oauth1-server/pom.xml | 2 +-
security/oauth1-signature/pom.xml | 2 +-
security/oauth2-client/pom.xml | 2 +-
security/pom.xml | 2 +-
test-framework/core/pom.xml | 2 +-
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 2 +-
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 2 +-
test-framework/providers/bundle/pom.xml | 2 +-
test-framework/providers/external/pom.xml | 2 +-
test-framework/providers/grizzly2/pom.xml | 2 +-
test-framework/providers/inmemory/pom.xml | 2 +-
test-framework/providers/jdk-http/pom.xml | 2 +-
test-framework/providers/jetty/pom.xml | 2 +-
test-framework/providers/netty/pom.xml | 2 +-
test-framework/providers/pom.xml | 2 +-
test-framework/providers/simple/pom.xml | 2 +-
test-framework/util/pom.xml | 2 +-
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 2 +-
tests/e2e-inject/pom.xml | 2 +-
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 2 +-
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 2 +-
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 2 +-
.../integration/cdi-integration/cdi-client-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-client/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 2 +-
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-log-check/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-manually-bound/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multipart-webapp/pom.xml | 2 +-
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-singleton/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 2 +-
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 2 +-
.../pom.xml | 2 +-
.../cdi-integration/cdi-with-jersey-injection-webapp/pom.xml | 2 +-
.../cdi-integration/context-inject-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/pom.xml | 2 +-
tests/integration/client-connector-provider/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule/pom.xml | 2 +-
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 2 +-
tests/integration/j-376/pom.xml | 2 +-
tests/integration/j-441/ear/pom.xml | 2 +-
tests/integration/j-441/pom.xml | 2 +-
tests/integration/j-441/war1/pom.xml | 2 +-
tests/integration/j-441/war2/pom.xml | 2 +-
tests/integration/j-59/ear/pom.xml | 2 +-
tests/integration/j-59/lib/pom.xml | 2 +-
tests/integration/j-59/pom.xml | 2 +-
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 2 +-
tests/integration/jersey-1107/pom.xml | 2 +-
tests/integration/jersey-1223/pom.xml | 2 +-
tests/integration/jersey-1604/pom.xml | 2 +-
tests/integration/jersey-1667/pom.xml | 2 +-
tests/integration/jersey-1883/pom.xml | 2 +-
tests/integration/jersey-1928/pom.xml | 2 +-
tests/integration/jersey-1960/pom.xml | 2 +-
tests/integration/jersey-1964/pom.xml | 2 +-
tests/integration/jersey-2031/pom.xml | 2 +-
tests/integration/jersey-2136/pom.xml | 2 +-
tests/integration/jersey-2137/pom.xml | 2 +-
tests/integration/jersey-2154/pom.xml | 2 +-
tests/integration/jersey-2160/pom.xml | 2 +-
tests/integration/jersey-2164/pom.xml | 2 +-
tests/integration/jersey-2167/pom.xml | 2 +-
tests/integration/jersey-2176/pom.xml | 2 +-
tests/integration/jersey-2184/pom.xml | 2 +-
tests/integration/jersey-2255/pom.xml | 2 +-
tests/integration/jersey-2322/pom.xml | 2 +-
tests/integration/jersey-2335/pom.xml | 2 +-
tests/integration/jersey-2421/pom.xml | 2 +-
tests/integration/jersey-2551/pom.xml | 2 +-
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 2 +-
tests/integration/jersey-2654/pom.xml | 2 +-
tests/integration/jersey-2673/pom.xml | 2 +-
tests/integration/jersey-2689/pom.xml | 2 +-
tests/integration/jersey-2704/pom.xml | 2 +-
tests/integration/jersey-2776/pom.xml | 2 +-
tests/integration/jersey-2794/pom.xml | 2 +-
tests/integration/jersey-2846/pom.xml | 2 +-
tests/integration/jersey-2878/pom.xml | 2 +-
tests/integration/jersey-2892/pom.xml | 2 +-
tests/integration/jersey-3662/pom.xml | 2 +-
tests/integration/jersey-3670/pom.xml | 2 +-
tests/integration/jersey-3796/pom.xml | 2 +-
tests/integration/jersey-3992/pom.xml | 2 +-
tests/integration/jersey-4003/pom.xml | 2 +-
tests/integration/jersey-4099/pom.xml | 2 +-
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 2 +-
tests/integration/jersey-4542/pom.xml | 2 +-
tests/integration/jersey-4697/pom.xml | 2 +-
tests/integration/jersey-4722/pom.xml | 2 +-
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 2 +-
tests/integration/microprofile/config/helidon/pom.xml | 2 +-
tests/integration/microprofile/config/pom.xml | 2 +-
tests/integration/microprofile/config/webapp/pom.xml | 2 +-
tests/integration/microprofile/pom.xml | 2 +-
tests/integration/microprofile/rest-client-tck/pom.xml | 2 +-
tests/integration/microprofile/rest-client/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 2 +-
tests/integration/reactive-streams/sse/pom.xml | 2 +-
tests/integration/security-digest/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 2 +-
tests/integration/servlet-2.5-filter/pom.xml | 2 +-
tests/integration/servlet-2.5-inflector-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-2/pom.xml | 2 +-
tests/integration/servlet-2.5-init-3/pom.xml | 2 +-
tests/integration/servlet-2.5-init-4/pom.xml | 2 +-
tests/integration/servlet-2.5-init-5/pom.xml | 2 +-
tests/integration/servlet-2.5-init-6/pom.xml | 2 +-
tests/integration/servlet-2.5-init-7/pom.xml | 2 +-
tests/integration/servlet-2.5-init-8/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-1/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-2/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-3/pom.xml | 2 +-
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 2 +-
tests/integration/servlet-3-chunked-io/pom.xml | 2 +-
tests/integration/servlet-3-filter/pom.xml | 2 +-
tests/integration/servlet-3-gf-async/pom.xml | 2 +-
tests/integration/servlet-3-inflector-1/pom.xml | 2 +-
tests/integration/servlet-3-init-1/pom.xml | 2 +-
tests/integration/servlet-3-init-2/pom.xml | 2 +-
tests/integration/servlet-3-init-3/pom.xml | 2 +-
tests/integration/servlet-3-init-4/pom.xml | 2 +-
tests/integration/servlet-3-init-5/pom.xml | 2 +-
tests/integration/servlet-3-init-6/pom.xml | 2 +-
tests/integration/servlet-3-init-7/pom.xml | 2 +-
tests/integration/servlet-3-init-8/pom.xml | 2 +-
tests/integration/servlet-3-init-9/pom.xml | 2 +-
tests/integration/servlet-3-init-provider/pom.xml | 2 +-
tests/integration/servlet-3-params/pom.xml | 2 +-
tests/integration/servlet-3-sse-1/pom.xml | 2 +-
tests/integration/servlet-4.0-mvc-1/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 2 +-
tests/integration/sonar-test/pom.xml | 2 +-
tests/integration/spring6/pom.xml | 2 +-
tests/integration/tracing-support/pom.xml | 2 +-
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 2 +-
tests/mem-leaks/redeployment/pom.xml | 2 +-
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 4 ++--
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment/redeployment-threadlocals-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 2 +-
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 2 +-
tests/osgi/functional/pom.xml | 2 +-
tests/osgi/pom.xml | 2 +-
tests/performance/benchmarks/pom.xml | 2 +-
tests/performance/pom.xml | 2 +-
tests/performance/runners/jersey-grizzly-runner/pom.xml | 2 +-
tests/performance/runners/pom.xml | 2 +-
tests/performance/test-cases/assemblies/pom.xml | 2 +-
tests/performance/test-cases/filter-dynamic/pom.xml | 2 +-
tests/performance/test-cases/filter-global/pom.xml | 2 +-
tests/performance/test-cases/filter-name/pom.xml | 2 +-
tests/performance/test-cases/interceptor-dynamic/pom.xml | 2 +-
tests/performance/test-cases/interceptor-global/pom.xml | 2 +-
tests/performance/test-cases/interceptor-name/pom.xml | 2 +-
tests/performance/test-cases/mbw-custom-provider/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-jackson/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-moxy/pom.xml | 2 +-
tests/performance/test-cases/mbw-kryo/pom.xml | 2 +-
tests/performance/test-cases/mbw-text-plain/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 2 +-
tests/performance/test-cases/param-srl/pom.xml | 2 +-
tests/performance/test-cases/pom.xml | 2 +-
tests/performance/test-cases/proxy-injection/pom.xml | 2 +-
tests/performance/tools/pom.xml | 2 +-
tests/pom.xml | 2 +-
tests/stress/pom.xml | 2 +-
360 files changed, 363 insertions(+), 363 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index a31bd683b26..ab7714f1793 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0-SNAPSHOT
+ 3.0.5
jersey-example-java8-webapp
diff --git a/archetypes/jersey-heroku-webapp/pom.xml b/archetypes/jersey-heroku-webapp/pom.xml
index e33c51f5b7f..f2c211d7897 100644
--- a/archetypes/jersey-heroku-webapp/pom.xml
+++ b/archetypes/jersey-heroku-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0-SNAPSHOT
+ 3.0.5
maven-archetype
diff --git a/archetypes/jersey-quickstart-grizzly2/pom.xml b/archetypes/jersey-quickstart-grizzly2/pom.xml
index 32d4a9a8695..0929e9e3a4f 100644
--- a/archetypes/jersey-quickstart-grizzly2/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0-SNAPSHOT
+ 3.0.5
jersey-quickstart-grizzly2
maven-archetype
diff --git a/archetypes/jersey-quickstart-webapp/pom.xml b/archetypes/jersey-quickstart-webapp/pom.xml
index 5b395540d44..e219c6fc465 100644
--- a/archetypes/jersey-quickstart-webapp/pom.xml
+++ b/archetypes/jersey-quickstart-webapp/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0-SNAPSHOT
+ 3.0.5
4.0.0
maven-archetype
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index baba57c9962..7e321187a61 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.5
org.glassfish.jersey.archetypes
diff --git a/bom/pom.xml b/bom/pom.xml
index e64e12fa029..cb2c0904508 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,7 +30,7 @@
org.glassfish.jersey
jersey-bom
- 3.1.0-SNAPSHOT
+ 3.0.5
pom
jersey-bom
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index 7e3c65c302e..8738be2fc53 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.1.0-SNAPSHOT
+ 3.0.5
apidocs
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index a3e5e7b414a..6ad85d7166b 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -1,7 +1,7 @@
+
+ org.glassfish.main.ejb
+ ejb-container
+ 6.0.0
+ provided
+
+
+ org.glassfish.main.common
+ container-common
+ 6.0.0
+ provided
+
+
+ org.glassfish.main.hk2
+ hk2-config
+ 6.0.0
+ provided
+ true
+
@@ -111,59 +131,4 @@
-
-
-
- jdk8
-
- 1.8
-
-
-
- org.glassfish.main.ejb
- ejb-container
- 6.0.0
- provided
-
-
- org.glassfish.main.common
- container-common
- 6.0.0
- provided
-
-
- org.glassfish.main.hk2
- hk2-config
- 6.0.0
- provided
- true
-
-
-
-
- jdk11
-
- [11,)
-
-
-
- org.glassfish.main.ejb
- ejb-container
- provided
-
-
- org.glassfish.main.common
- container-common
- provided
-
-
- org.glassfish.main.hk2
- hk2-config
- provided
- true
-
-
-
-
-
-
+
diff --git a/pom.xml b/pom.xml
index a63892d9c5a..c010f31fc5e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2174,7 +2174,7 @@
3.0.0-M6
- 5.0.0.CR2
+ 5.0.0.SP2
3.1.7.SP1
8.0.0.Alpha1
@@ -2186,9 +2186,9 @@
7.0.0-M2
- 4.0.0
+ 4.0.1
4.0.1
- 4.0.0-M1
+ 4.0.0
2.0.0
3.0.3
org.glassfish.hk2.*;version="[3.0,4)"
@@ -2203,18 +2203,18 @@
5.0.0
5.0.0-M1
jakarta.annotation.*;version="[2.0,3)"
- 2.1.0
+ 2.1.1
2.0.1
2.1.0
2.1.0
3.1.0
- 3.0.1
+ 3.0.2
4.0.0
- 4.0.0-M3
+ 4.0.0
3.1
3.1.0
- 11.0.7
- 11.0.7
+ 11.0.9
+ 11.0.9
6.1.14
3.0.0
1.1.0
From a83d288f3952b92a6a713ffc74ac22165a973fbd Mon Sep 17 00:00:00 2001
From: jbescos
Date: Fri, 1 Jul 2022 14:48:57 +0200
Subject: [PATCH 061/305] Support ClientProperties.PROXY_URI & al in
HttpUrlConnector (#5091)
* Support for proxy in HttpUrlConnector
Signed-off-by: Jorge Bescos Gascon
---
.../jersey/client/ClientProperties.java | 17 ++++++-
.../client/HttpUrlConnectorProvider.java | 20 +++++++-
.../client/internal/HttpUrlConnector.java | 48 ++++++++++++++++---
.../client/internal/localization.properties | 3 +-
.../jersey/client/HttpUrlConnectorTest.java | 2 +-
.../glassfish/jersey/ExternalProperties.java | 14 +++++-
.../e2e/client/connector/proxy/ProxyTest.java | 5 +-
.../externalproperties/HttpProxyTest.java | 2 +-
.../jersey4003/LostResponseTest.java | 40 ++++++++--------
9 files changed, 116 insertions(+), 35 deletions(-)
diff --git a/core-client/src/main/java/org/glassfish/jersey/client/ClientProperties.java b/core-client/src/main/java/org/glassfish/jersey/client/ClientProperties.java
index 7f1752ec71a..4b42f102975 100644
--- a/core-client/src/main/java/org/glassfish/jersey/client/ClientProperties.java
+++ b/core-client/src/main/java/org/glassfish/jersey/client/ClientProperties.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -520,4 +520,19 @@ public static T getValue(final Map properties, final String key,
public static T getValue(final Map properties, final String key, final Class type) {
return PropertiesHelper.getValue(properties, key, type, null);
}
+
+ /**
+ * Get the value of the specified property. If null, it will obtain it from System property.
+ *
+ * If the property is not set the method will return {@code null}.
+ *
+ * @param properties Map of properties to get the property value from.
+ * @param key Name of the property.
+ * @param systemKey Name of the System property.
+ * @return Value of the property or {@code null}.
+ * @since 2.37
+ */
+ public static String getValue(Map properties, String key, String systemKey) {
+ return PropertiesHelper.getValue(properties, key, System.getProperty(systemKey), String.class, null);
+ }
}
diff --git a/core-client/src/main/java/org/glassfish/jersey/client/HttpUrlConnectorProvider.java b/core-client/src/main/java/org/glassfish/jersey/client/HttpUrlConnectorProvider.java
index 7389781ece4..25a6d78cf56 100644
--- a/core-client/src/main/java/org/glassfish/jersey/client/HttpUrlConnectorProvider.java
+++ b/core-client/src/main/java/org/glassfish/jersey/client/HttpUrlConnectorProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,6 +18,7 @@
import java.io.IOException;
import java.net.HttpURLConnection;
+import java.net.Proxy;
import java.net.URL;
import java.util.Map;
import java.util.logging.Logger;
@@ -267,6 +268,23 @@ public interface ConnectionFactory {
* @throws java.io.IOException in case the connection cannot be provided.
*/
public HttpURLConnection getConnection(URL url) throws IOException;
+
+ /**
+ * Get a {@link java.net.HttpURLConnection} for a given URL.
+ *
+ * Implementation of the method MUST be thread-safe and MUST ensure that
+ * a dedicated {@link java.net.HttpURLConnection} instance is returned for concurrent
+ * requests.
+ *
+ *
+ * @param url the endpoint URL.
+ * @param proxy the configured proxy or null.
+ * @return the {@link java.net.HttpURLConnection}.
+ * @throws java.io.IOException in case the connection cannot be provided.
+ */
+ default HttpURLConnection getConnection(URL url, Proxy proxy) throws IOException {
+ return (proxy == null) ? getConnection(url) : (HttpURLConnection) url.openConnection(proxy);
+ }
}
private static class DefaultConnectionFactory implements ConnectionFactory {
diff --git a/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java b/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java
index 443c8573ed1..ef85fa8eafc 100644
--- a/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java
+++ b/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,13 +21,18 @@
import java.io.InputStream;
import java.lang.reflect.Field;
import java.net.HttpURLConnection;
+import java.net.InetSocketAddress;
import java.net.ProtocolException;
+import java.net.Proxy;
+import java.net.Proxy.Type;
import java.net.SocketTimeoutException;
import java.net.URI;
import java.net.URISyntaxException;
import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
+import java.util.Arrays;
+import java.util.Base64;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
@@ -37,17 +42,19 @@
import java.util.concurrent.Future;
import java.util.logging.Level;
import java.util.logging.Logger;
+import java.util.regex.Pattern;
import java.util.stream.Collectors;
+import javax.net.ssl.HostnameVerifier;
+import javax.net.ssl.HttpsURLConnection;
+import javax.net.ssl.SSLSocketFactory;
import javax.ws.rs.ProcessingException;
import javax.ws.rs.client.Client;
+import javax.ws.rs.core.Configuration;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.core.Response;
-import javax.net.ssl.HostnameVerifier;
-import javax.net.ssl.HttpsURLConnection;
-import javax.net.ssl.SSLSocketFactory;
-
+import org.glassfish.jersey.ExternalProperties;
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.ClientRequest;
import org.glassfish.jersey.client.ClientResponse;
@@ -314,10 +321,37 @@ protected void secureConnection(final JerseyClient client, final HttpURLConnecti
}
}
+ private static URI getProxyUriValue(Object proxy) {
+ if (proxy instanceof URI) {
+ return (URI) proxy;
+ } else if (proxy instanceof String) {
+ return URI.create((String) proxy);
+ } else {
+ throw new ProcessingException(LocalizationMessages.WRONG_PROXY_URI_TYPE(ClientProperties.PROXY_URI));
+ }
+ }
+
private ClientResponse _apply(final ClientRequest request) throws IOException {
final HttpURLConnection uc;
-
- uc = this.connectionFactory.getConnection(request.getUri().toURL());
+ Proxy proxy = null;
+ Object proxyUri = request.getConfiguration().getProperties().get(ClientProperties.PROXY_URI);
+ if (proxyUri != null) {
+ URI uri = getProxyUriValue(proxyUri);
+ String username = ClientProperties.getValue(request.getConfiguration().getProperties(),
+ ClientProperties.PROXY_USERNAME, ExternalProperties.HTTP_PROXY_USER);
+ String password = ClientProperties.getValue(request.getConfiguration().getProperties(),
+ ClientProperties.PROXY_PASSWORD, ExternalProperties.HTTP_PROXY_PASSWORD);
+ if (username != null) {
+ StringBuilder auth = new StringBuilder().append(username).append(":");
+ if (password != null) {
+ auth.append(password);
+ }
+ String encoded = "Basic " + Base64.getEncoder().encodeToString(auth.toString().getBytes());
+ request.getHeaders().put("Proxy-Authorization", Arrays.asList(encoded));
+ }
+ proxy = new Proxy(Type.HTTP, new InetSocketAddress(uri.getHost(), uri.getPort()));
+ }
+ uc = this.connectionFactory.getConnection(request.getUri().toURL(), proxy);
uc.setDoInput(true);
final String httpMethod = request.getMethod();
diff --git a/core-client/src/main/resources/org/glassfish/jersey/client/internal/localization.properties b/core-client/src/main/resources/org/glassfish/jersey/client/internal/localization.properties
index 4bc0ae8e30b..8e3823cde34 100644
--- a/core-client/src/main/resources/org/glassfish/jersey/client/internal/localization.properties
+++ b/core-client/src/main/resources/org/glassfish/jersey/client/internal/localization.properties
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
@@ -84,3 +84,4 @@ error.request.cancelled=Request cancelled by the client call.
error.listener.init=ClientLifecycleListener {0} failed to initialize properly.
error.listener.close=ClientLifecycleListener {0} failed to close properly.
error.shutdownhook.close=Client shutdown hook {0} failed.
+wrong.proxy.uri.type=The proxy URI ("{0}") property MUST be an instance of String or URI.
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/HttpUrlConnectorTest.java b/core-client/src/test/java/org/glassfish/jersey/client/HttpUrlConnectorTest.java
index 7cd91213bdc..5bb7a787809 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/HttpUrlConnectorTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/HttpUrlConnectorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/core-common/src/main/java/org/glassfish/jersey/ExternalProperties.java b/core-common/src/main/java/org/glassfish/jersey/ExternalProperties.java
index 04ef1bd323f..a8f6ec6eee9 100644
--- a/core-common/src/main/java/org/glassfish/jersey/ExternalProperties.java
+++ b/core-common/src/main/java/org/glassfish/jersey/ExternalProperties.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,11 +32,21 @@ public final class ExternalProperties {
public static final String HTTP_PROXY_PORT = "http.proxyPort";
/**
- * Property used to indicates the hosts that should be accessed
+ * Property used to indicate the hosts that should be accessed
* without going through the proxy.
*/
public static final String HTTP_NON_PROXY_HOSTS = "http.nonProxyHosts";
+ /**
+ * Property used to specify the user name to authenticate with the proxy.
+ */
+ public static final String HTTP_PROXY_USER = "http.proxyUser";
+
+ /**
+ * Property used to specify the password to authenticate with the proxy.
+ */
+ public static final String HTTP_PROXY_PASSWORD = "http.proxyPassword";
+
/**
* Prevent instantiation.
*/
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java
index 93e69c2124c..b30d39e29c1 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java
@@ -25,6 +25,7 @@
import org.glassfish.jersey.apache5.connector.Apache5ConnectorProvider;
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.client.HttpUrlConnectorProvider;
import org.glassfish.jersey.client.spi.ConnectorProvider;
import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
import org.glassfish.jersey.netty.connector.NettyConnectorProvider;
@@ -72,6 +73,7 @@ public static List testData() {
{Apache5ConnectorProvider.class},
{JettyConnectorProvider.class},
{NettyConnectorProvider.class},
+ {HttpUrlConnectorProvider.class},
});
}
@@ -110,7 +112,8 @@ public void testGetSuccess() {
client().property(ClientProperties.PROXY_USERNAME, ProxyTest.PROXY_USERNAME);
client().property(ClientProperties.PROXY_PASSWORD, ProxyTest.PROXY_PASSWORD);
Response response = target("proxyTest").request().get();
- assertEquals(200, response.getStatus());
+ response.bufferEntity();
+ assertEquals(response.readEntity(String.class), 200, response.getStatus());
}
private static Server server;
diff --git a/tests/integration/externalproperties/src/test/java/org/glassfish/jersey/tests/externalproperties/HttpProxyTest.java b/tests/integration/externalproperties/src/test/java/org/glassfish/jersey/tests/externalproperties/HttpProxyTest.java
index 94100297f0a..f74a55da144 100644
--- a/tests/integration/externalproperties/src/test/java/org/glassfish/jersey/tests/externalproperties/HttpProxyTest.java
+++ b/tests/integration/externalproperties/src/test/java/org/glassfish/jersey/tests/externalproperties/HttpProxyTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
diff --git a/tests/integration/jersey-4003/src/test/java/org/glassfish/jersey/tests/integration/jersey4003/LostResponseTest.java b/tests/integration/jersey-4003/src/test/java/org/glassfish/jersey/tests/integration/jersey4003/LostResponseTest.java
index 2ba8042961c..1780d05a8d1 100644
--- a/tests/integration/jersey-4003/src/test/java/org/glassfish/jersey/tests/integration/jersey4003/LostResponseTest.java
+++ b/tests/integration/jersey-4003/src/test/java/org/glassfish/jersey/tests/integration/jersey4003/LostResponseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,28 +16,11 @@
package org.glassfish.jersey.tests.integration.jersey4003;
-import org.glassfish.jersey.client.ClientConfig;
-import org.glassfish.jersey.client.HttpUrlConnectorProvider;
-import org.glassfish.jersey.client.JerseyClientBuilder;
-import org.glassfish.jersey.client.JerseyCompletionStageRxInvoker;
-
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
-
-import org.mockito.Mockito;
-
-import javax.ws.rs.client.Client;
-import javax.ws.rs.client.Entity;
-import javax.ws.rs.client.InvocationCallback;
-import javax.ws.rs.client.ResponseProcessingException;
-import javax.ws.rs.core.GenericType;
-import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.Response;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
+import java.net.Proxy;
import java.net.URL;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.CountDownLatch;
@@ -46,6 +29,23 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.client.InvocationCallback;
+import javax.ws.rs.client.ResponseProcessingException;
+import javax.ws.rs.core.GenericType;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.HttpUrlConnectorProvider;
+import org.glassfish.jersey.client.JerseyClientBuilder;
+import org.glassfish.jersey.client.JerseyCompletionStageRxInvoker;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Test;
+import org.mockito.Mockito;
+
public class LostResponseTest {
private static final String DUMMY_URL = "http://foo";
@@ -59,7 +59,7 @@ public void setup() throws IOException {
HttpUrlConnectorProvider.ConnectionFactory connectionFactory =
Mockito.mock(HttpUrlConnectorProvider.ConnectionFactory.class);
HttpURLConnection connection = Mockito.mock(HttpURLConnection.class);
- Mockito.when(connectionFactory.getConnection(Mockito.any(URL.class))).thenReturn(connection);
+ Mockito.when(connectionFactory.getConnection(Mockito.any(URL.class), Mockito.any())).thenReturn(connection);
OutputStream outputStream = Mockito.mock(OutputStream.class);
Mockito.when(connection.getOutputStream()).thenReturn(outputStream);
From efce4793d97dda1a0755c3daaaf278f150210055 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Sat, 16 Jul 2022 23:10:33 +0200
Subject: [PATCH 062/305] Fix Multipart media type override by Jersey defaults.
Signed-off-by: jansupol
---
.../JerseyEntityPartBuilderProvider.java | 10 ++-
.../jersey/media/multipart/MediaTypeTest.java | 73 +++++++++++++++++++
2 files changed, 80 insertions(+), 3 deletions(-)
create mode 100644 media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MediaTypeTest.java
diff --git a/media/multipart/src/main/java/org/glassfish/jersey/media/multipart/JerseyEntityPartBuilderProvider.java b/media/multipart/src/main/java/org/glassfish/jersey/media/multipart/JerseyEntityPartBuilderProvider.java
index 61583d16670..307eb9769c3 100644
--- a/media/multipart/src/main/java/org/glassfish/jersey/media/multipart/JerseyEntityPartBuilderProvider.java
+++ b/media/multipart/src/main/java/org/glassfish/jersey/media/multipart/JerseyEntityPartBuilderProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -159,7 +159,7 @@ protected FormDataBodyPart build() {
final StreamDataBodyPart streamDataBodyPart = new StreamDataBodyPart();
streamDataBodyPart.setFilename(fileName);
fillFormData(streamDataBodyPart);
- streamDataBodyPart.setStreamEntity(content);
+ streamDataBodyPart.setStreamEntity(content, mediaType);
return streamDataBodyPart;
}
}
@@ -173,7 +173,11 @@ protected FileMethodData(File content) {
protected FormDataBodyPart build() {
final FileDataBodyPart fileDataBodyPart = new FileDataBodyPart();
fillFormData(fileDataBodyPart);
- fileDataBodyPart.setFileEntity(content);
+ if (mediaType != null) {
+ fileDataBodyPart.setFileEntity(content, mediaType);
+ } else {
+ fileDataBodyPart.setFileEntity(content);
+ }
return fileDataBodyPart;
}
}
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MediaTypeTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MediaTypeTest.java
new file mode 100644
index 00000000000..0787a19e373
--- /dev/null
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MediaTypeTest.java
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.media.multipart;
+
+import jakarta.ws.rs.core.EntityPart;
+import jakarta.ws.rs.core.MediaType;
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.IOException;
+
+public class MediaTypeTest {
+ @Test
+ public void testInputStreamDataMediaType() throws IOException {
+ ByteArrayInputStream bais = new ByteArrayInputStream("test".getBytes());
+ EntityPart entityPart = EntityPart.withName("textFile").fileName("test.txt")
+ .content(bais)
+ .mediaType(MediaType.TEXT_PLAIN_TYPE)
+ .build();
+ Assert.assertEquals(MediaType.TEXT_PLAIN_TYPE, entityPart.getMediaType());
+ }
+
+ @Test
+ public void testFileDataMediaType() throws IOException {
+ EntityPart entityPart = EntityPart.withName("textFile")
+ .content(new File("anyname"), File.class)
+ .mediaType(MediaType.TEXT_PLAIN_TYPE)
+ .build();
+ Assert.assertEquals(MediaType.TEXT_PLAIN_TYPE, entityPart.getMediaType());
+ }
+
+ @Test
+ public void testGenericDataMediaType() throws IOException {
+ EntityPart entityPart = EntityPart.withName("textFile")
+ .content("Hello", String.class)
+ .mediaType(MediaType.TEXT_PLAIN_TYPE)
+ .build();
+ Assert.assertEquals(MediaType.TEXT_PLAIN_TYPE, entityPart.getMediaType());
+ }
+
+ @Test
+ public void testInputStreamDataNullMediaType() throws IOException {
+ ByteArrayInputStream bais = new ByteArrayInputStream("test".getBytes());
+ EntityPart entityPart = EntityPart.withName("textFile").fileName("test.txt")
+ .content(bais)
+ .build();
+ Assert.assertEquals(MediaType.APPLICATION_OCTET_STREAM_TYPE, entityPart.getMediaType());
+ }
+
+ @Test
+ public void testGenericDataNullMediaType() throws IOException {
+ EntityPart entityPart = EntityPart.withName("textFile")
+ .content("Hello", String.class)
+ .build();
+ Assert.assertEquals(MediaType.TEXT_PLAIN_TYPE, entityPart.getMediaType());
+ }
+}
From aac1cac48afc4aa7dd516283a1f1005a1810a8be Mon Sep 17 00:00:00 2001
From: jansupol
Date: Fri, 8 Jul 2022 14:24:08 +0200
Subject: [PATCH 063/305] Move Proxy parsing logic from connectors to a common
class
Signed-off-by: jansupol
---
.../apache/connector/ApacheConnector.java | 46 ++--
.../apache/connector/localization.properties | 4 +-
.../apache5/connector/Apache5Connector.java | 46 ++--
.../apache5/connector/localization.properties | 2 -
.../grizzly/connector/GrizzlyConnector.java | 43 ++--
.../grizzly/connector/localization.properties | 5 +-
.../jetty/connector/JettyConnector.java | 28 +--
.../jetty/connector/localization.properties | 4 +-
.../netty/connector/NettyConnector.java | 71 ++----
.../netty/connector/localization.properties | 1 -
.../jersey/client/ClientProperties.java | 15 --
.../jersey/client/innate/ClientProxy.java | 212 ++++++++++++++++++
.../jersey/client/innate/package-info.java | 21 ++
.../client/internal/HttpUrlConnector.java | 42 +---
.../client/internal/localization.properties | 1 +
.../connector/proxy/ProxySelectorTest.java | 5 +-
.../e2e/client/connector/proxy/ProxyTest.java | 6 +-
17 files changed, 323 insertions(+), 229 deletions(-)
create mode 100644 core-client/src/main/java/org/glassfish/jersey/client/innate/ClientProxy.java
create mode 100644 core-client/src/main/java/org/glassfish/jersey/client/innate/package-info.java
diff --git a/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnector.java b/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnector.java
index 81e94b4b17f..60c5e833999 100644
--- a/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnector.java
+++ b/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnector.java
@@ -29,6 +29,7 @@
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
+import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;
import java.util.concurrent.atomic.AtomicLong;
@@ -51,6 +52,7 @@
import org.glassfish.jersey.client.ClientRequest;
import org.glassfish.jersey.client.ClientResponse;
import org.glassfish.jersey.client.RequestEntityProcessing;
+import org.glassfish.jersey.client.innate.ClientProxy;
import org.glassfish.jersey.client.spi.AsyncConnectorCallback;
import org.glassfish.jersey.client.spi.Connector;
import org.glassfish.jersey.internal.util.PropertiesHelper;
@@ -279,28 +281,20 @@ class ApacheConnector implements Connector {
clientBuilder.setRetryHandler((HttpRequestRetryHandler) retryHandler);
}
- final Object proxyUri;
- proxyUri = config.getProperty(ClientProperties.PROXY_URI);
- if (proxyUri != null) {
- final URI u = getProxyUri(proxyUri);
- final HttpHost proxy = new HttpHost(u.getHost(), u.getPort(), u.getScheme());
- final String userName;
- userName = ClientProperties.getValue(config.getProperties(), ClientProperties.PROXY_USERNAME, String.class);
- if (userName != null) {
- final String password;
- password = ClientProperties.getValue(config.getProperties(), ClientProperties.PROXY_PASSWORD, String.class);
-
- if (password != null) {
- final CredentialsProvider credsProvider = new BasicCredentialsProvider();
- credsProvider.setCredentials(
- new AuthScope(u.getHost(), u.getPort()),
- new UsernamePasswordCredentials(userName, password)
- );
- clientBuilder.setDefaultCredentialsProvider(credsProvider);
- }
+ final Optional proxy = ClientProxy.proxyFromConfiguration(config);
+ proxy.ifPresent(clientProxy -> {
+ final URI u = clientProxy.uri();
+ final HttpHost proxyHost = new HttpHost(u.getHost(), u.getPort(), u.getScheme());
+ if (clientProxy.userName() != null && clientProxy.password() != null) {
+ final CredentialsProvider credsProvider = new BasicCredentialsProvider();
+ credsProvider.setCredentials(
+ new AuthScope(u.getHost(), u.getPort()),
+ new UsernamePasswordCredentials(clientProxy.userName(), clientProxy.password())
+ );
+ clientBuilder.setDefaultCredentialsProvider(credsProvider);
}
- clientBuilder.setProxy(proxy);
- }
+ clientBuilder.setProxy(proxyHost);
+ });
final Boolean preemptiveBasicAuthProperty = (Boolean) config.getProperties()
.get(ApacheClientProperties.PREEMPTIVE_BASIC_AUTHENTICATION);
@@ -452,16 +446,6 @@ public CookieStore getCookieStore() {
return cookieStore;
}
- private static URI getProxyUri(final Object proxy) {
- if (proxy instanceof URI) {
- return (URI) proxy;
- } else if (proxy instanceof String) {
- return URI.create((String) proxy);
- } else {
- throw new ProcessingException(LocalizationMessages.WRONG_PROXY_URI_TYPE(ClientProperties.PROXY_URI));
- }
- }
-
@Override
public ClientResponse apply(final ClientRequest clientRequest) throws ProcessingException {
final HttpUriRequest request = getUriHttpRequest(clientRequest);
diff --git a/connectors/apache-connector/src/main/resources/org/glassfish/jersey/apache/connector/localization.properties b/connectors/apache-connector/src/main/resources/org/glassfish/jersey/apache/connector/localization.properties
index f0cc55b8347..3b06461a3f6 100644
--- a/connectors/apache-connector/src/main/resources/org/glassfish/jersey/apache/connector/localization.properties
+++ b/connectors/apache-connector/src/main/resources/org/glassfish/jersey/apache/connector/localization.properties
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,7 +19,5 @@ error.reading.httpentity.stream=Error reading InputStream from HttpEntity: "{0}"
failed.to.stop.client=Failed to stop the client.
# {0} - property name, e.g. jersey.config.client.httpclient.connectionManager; {1}, {2} - full class name
ignoring.value.of.property=Ignoring value of property "{0}" ("{1}") - not instance of "{2}".
-# {0} - property name - jersey.config.client.httpclient.proxyUri
-wrong.proxy.uri.type=The proxy URI ("{0}") property MUST be an instance of String or URI.
invalid.configurable.component.type=The supplied component "{0}" is not assignable from JerseyClient or JerseyWebTarget.
expected.connector.provider.not.used=The supplied component is not configured to use a ApacheConnectorProvider.
diff --git a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java
index 9d101055f27..da7ccdd5ceb 100644
--- a/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java
+++ b/connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java
@@ -30,6 +30,7 @@
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
+import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;
import java.util.logging.Level;
@@ -93,6 +94,7 @@
import org.glassfish.jersey.client.ClientRequest;
import org.glassfish.jersey.client.ClientResponse;
import org.glassfish.jersey.client.RequestEntityProcessing;
+import org.glassfish.jersey.client.innate.ClientProxy;
import org.glassfish.jersey.client.spi.AsyncConnectorCallback;
import org.glassfish.jersey.client.spi.Connector;
import org.glassfish.jersey.internal.util.PropertiesHelper;
@@ -280,28 +282,20 @@ class Apache5Connector implements Connector {
clientBuilder.setRetryStrategy((HttpRequestRetryStrategy) retryHandler);
}
- final Object proxyUri;
- proxyUri = config.getProperty(ClientProperties.PROXY_URI);
- if (proxyUri != null) {
- final URI u = getProxyUri(proxyUri);
- final HttpHost proxy = new HttpHost(u.getScheme(), u.getHost(), u.getPort());
- final String userName;
- userName = ClientProperties.getValue(config.getProperties(), ClientProperties.PROXY_USERNAME, String.class);
- if (userName != null) {
- final String password;
- password = ClientProperties.getValue(config.getProperties(), ClientProperties.PROXY_PASSWORD, String.class);
-
- if (password != null) {
- final CredentialsStore credsProvider = new BasicCredentialsProvider();
- credsProvider.setCredentials(
- new AuthScope(u.getHost(), u.getPort()),
- new UsernamePasswordCredentials(userName, password.toCharArray())
- );
- clientBuilder.setDefaultCredentialsProvider(credsProvider);
- }
+ final Optional proxy = ClientProxy.proxyFromConfiguration(config);
+ proxy.ifPresent(clientProxy -> {
+ final URI u = clientProxy.uri();
+ final HttpHost proxyHost = new HttpHost(u.getScheme(), u.getHost(), u.getPort());
+ if (clientProxy.userName() != null && clientProxy.password() != null) {
+ final CredentialsStore credsProvider = new BasicCredentialsProvider();
+ credsProvider.setCredentials(
+ new AuthScope(u.getHost(), u.getPort()),
+ new UsernamePasswordCredentials(clientProxy.userName(), clientProxy.password().toCharArray())
+ );
+ clientBuilder.setDefaultCredentialsProvider(credsProvider);
}
- clientBuilder.setProxy(proxy);
- }
+ clientBuilder.setProxy(proxyHost);
+ });
final Boolean preemptiveBasicAuthProperty = (Boolean) config.getProperties()
.get(Apache5ClientProperties.PREEMPTIVE_BASIC_AUTHENTICATION);
@@ -456,16 +450,6 @@ public CookieStore getCookieStore() {
return cookieStore;
}
- private static URI getProxyUri(final Object proxy) {
- if (proxy instanceof URI) {
- return (URI) proxy;
- } else if (proxy instanceof String) {
- return URI.create((String) proxy);
- } else {
- throw new ProcessingException(LocalizationMessages.WRONG_PROXY_URI_TYPE(ClientProperties.PROXY_URI));
- }
- }
-
@Override
public ClientResponse apply(final ClientRequest clientRequest) throws ProcessingException {
final HttpUriRequest request = getUriHttpRequest(clientRequest);
diff --git a/connectors/apache5-connector/src/main/resources/org/glassfish/jersey/apache5/connector/localization.properties b/connectors/apache5-connector/src/main/resources/org/glassfish/jersey/apache5/connector/localization.properties
index 16dbc30eca5..1f6e4a6f9b2 100644
--- a/connectors/apache5-connector/src/main/resources/org/glassfish/jersey/apache5/connector/localization.properties
+++ b/connectors/apache5-connector/src/main/resources/org/glassfish/jersey/apache5/connector/localization.properties
@@ -19,7 +19,5 @@ error.reading.httpentity.stream=Error reading InputStream from HttpEntity: "{0}"
failed.to.stop.client=Failed to stop the client.
# {0} - property name, e.g. jersey.config.client.httpclient.connectionManager; {1}, {2} - full class name
ignoring.value.of.property=Ignoring value of property "{0}" ("{1}") - not instance of "{2}".
-# {0} - property name - jersey.config.client.httpclient.proxyUri
-wrong.proxy.uri.type=The proxy URI ("{0}") property MUST be an instance of String or URI.
invalid.configurable.component.type=The supplied component "{0}" is not assignable from JerseyClient or JerseyWebTarget.
expected.connector.provider.not.used=The supplied component is not configured to use a ApacheConnectorProvider.
diff --git a/connectors/grizzly-connector/src/main/java/org/glassfish/jersey/grizzly/connector/GrizzlyConnector.java b/connectors/grizzly-connector/src/main/java/org/glassfish/jersey/grizzly/connector/GrizzlyConnector.java
index ced8f4376e6..14a3e307b63 100644
--- a/connectors/grizzly-connector/src/main/java/org/glassfish/jersey/grizzly/connector/GrizzlyConnector.java
+++ b/connectors/grizzly-connector/src/main/java/org/glassfish/jersey/grizzly/connector/GrizzlyConnector.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,6 +22,7 @@
import java.net.URI;
import java.util.List;
import java.util.Map;
+import java.util.Optional;
import java.util.Properties;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
@@ -39,6 +40,7 @@
import org.glassfish.jersey.client.ClientRequest;
import org.glassfish.jersey.client.ClientResponse;
import org.glassfish.jersey.client.RequestEntityProcessing;
+import org.glassfish.jersey.client.innate.ClientProxy;
import org.glassfish.jersey.client.spi.AsyncConnectorCallback;
import org.glassfish.jersey.client.spi.Connector;
import org.glassfish.jersey.internal.Version;
@@ -83,7 +85,7 @@ class GrizzlyConnector implements Connector {
GrizzlyConnector(final Client client,
final Configuration config,
final GrizzlyConnectorProvider.AsyncClientCustomizer asyncClientCustomizer) {
- AsyncHttpClientConfig.Builder builder = new AsyncHttpClientConfig.Builder();
+ final AsyncHttpClientConfig.Builder builder = new AsyncHttpClientConfig.Builder();
ExecutorService executorService;
if (config != null) {
@@ -95,7 +97,7 @@ class GrizzlyConnector implements Connector {
executorService = Executors.newCachedThreadPool();
}
- builder = builder.setExecutorService(executorService);
+ builder.setExecutorService(executorService);
builder.setConnectTimeout(ClientProperties.getValue(config.getProperties(),
ClientProperties.CONNECT_TIMEOUT, 10000));
@@ -103,29 +105,23 @@ class GrizzlyConnector implements Connector {
builder.setRequestTimeout(ClientProperties.getValue(config.getProperties(),
ClientProperties.READ_TIMEOUT, 10000));
- Object proxyUri;
- proxyUri = config.getProperty(ClientProperties.PROXY_URI);
- if (proxyUri != null) {
- final URI u = getProxyUri(proxyUri);
+ final Optional proxy = ClientProxy.proxyFromConfiguration(config);
+ proxy.ifPresent(clientProxy -> {
+ final URI u = clientProxy.uri();
final Properties proxyProperties = new Properties();
proxyProperties.setProperty(ProxyUtils.PROXY_PROTOCOL, u.getScheme());
proxyProperties.setProperty(ProxyUtils.PROXY_HOST, u.getHost());
proxyProperties.setProperty(ProxyUtils.PROXY_PORT, String.valueOf(u.getPort()));
- final String userName = ClientProperties.getValue(
- config.getProperties(), ClientProperties.PROXY_USERNAME, String.class);
- if (userName != null) {
- proxyProperties.setProperty(ProxyUtils.PROXY_USER, userName);
-
- final String password = ClientProperties.getValue(
- config.getProperties(), ClientProperties.PROXY_PASSWORD, String.class);
- if (password != null) {
- proxyProperties.setProperty(ProxyUtils.PROXY_PASSWORD, password);
+ if (clientProxy.userName() != null) {
+ proxyProperties.setProperty(ProxyUtils.PROXY_USER, clientProxy.userName());
+ if (clientProxy.password() != null) {
+ proxyProperties.setProperty(ProxyUtils.PROXY_PASSWORD, clientProxy.password());
}
}
ProxyServerSelector proxyServerSelector = ProxyUtils.createProxyServerSelector(proxyProperties);
builder.setProxyServerSelector(proxyServerSelector);
- }
+ });
} else {
executorService = Executors.newCachedThreadPool();
builder.setExecutorService(executorService);
@@ -140,7 +136,7 @@ class GrizzlyConnector implements Connector {
}
if (asyncClientCustomizer != null) {
- builder = asyncClientCustomizer.customize(client, config, builder);
+ asyncClientCustomizer.customize(client, config, builder);
}
AsyncHttpClientConfig asyncClientConfig = builder.build();
@@ -148,17 +144,6 @@ class GrizzlyConnector implements Connector {
this.grizzlyClient = new AsyncHttpClient(new GrizzlyAsyncHttpProvider(asyncClientConfig), asyncClientConfig);
}
- @SuppressWarnings("ChainOfInstanceofChecks")
- private static URI getProxyUri(final Object proxy) {
- if (proxy instanceof URI) {
- return (URI) proxy;
- } else if (proxy instanceof String) {
- return URI.create((String) proxy);
- } else {
- throw new ProcessingException(LocalizationMessages.WRONG_PROXY_URI_TYPE(ClientProperties.PROXY_URI));
- }
- }
-
/**
* Get the underlying Grizzly {@link com.ning.http.client.AsyncHttpClient} instance.
*
diff --git a/connectors/grizzly-connector/src/main/resources/org/glassfish/jersey/grizzly/connector/localization.properties b/connectors/grizzly-connector/src/main/resources/org/glassfish/jersey/grizzly/connector/localization.properties
index 7fb050ec9da..2d577c6e9a4 100644
--- a/connectors/grizzly-connector/src/main/resources/org/glassfish/jersey/grizzly/connector/localization.properties
+++ b/connectors/grizzly-connector/src/main/resources/org/glassfish/jersey/grizzly/connector/localization.properties
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,5 +16,4 @@
error.buffering.entity=Error buffering the entity.
expected.connector.provider.not.used=The supplied component is not configured to use a GrizzlyConnectorProvider.
-invalid.configurable.component.type=The supplied component "{0}" is not assignable from JerseyClient or JerseyWebTarget.
-wrong.proxy.uri.type=The proxy URI ("{0}") property MUST be an instance of String or URI.
+invalid.configurable.component.type=The supplied component "{0}" is not assignable from JerseyClient or JerseyWebTarget.
\ No newline at end of file
diff --git a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java
index 780adc1e8a5..1456d4b5bdc 100644
--- a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java
+++ b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java
@@ -31,10 +31,8 @@
import java.util.Optional;
import java.util.concurrent.CancellationException;
import java.util.concurrent.CompletableFuture;
-import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
-import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import java.util.logging.Level;
@@ -54,6 +52,7 @@
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.ClientRequest;
import org.glassfish.jersey.client.ClientResponse;
+import org.glassfish.jersey.client.innate.ClientProxy;
import org.glassfish.jersey.client.spi.AsyncConnectorCallback;
import org.glassfish.jersey.client.spi.Connector;
import org.glassfish.jersey.internal.util.collection.ByteBufferInputStream;
@@ -187,19 +186,17 @@ class JettyConnector implements Connector {
auth.addAuthentication((BasicAuthentication) basicAuthProvider);
}
- final Object proxyUri = config.getProperties().get(ClientProperties.PROXY_URI);
- if (proxyUri != null) {
- final URI u = getProxyUri(proxyUri);
+ final Optional proxy = ClientProxy.proxyFromConfiguration(config);
+ proxy.ifPresent(clientProxy -> {
final ProxyConfiguration proxyConfig = client.getProxyConfiguration();
+ final URI u = clientProxy.uri();
proxyConfig.getProxies().add(new HttpProxy(u.getHost(), u.getPort()));
- final Object proxyUsername = config.getProperties().get(ClientProperties.PROXY_USERNAME);
- if (proxyUsername != null) {
- final Object proxyPassword = config.getProperties().get(ClientProperties.PROXY_PASSWORD);
+ if (clientProxy.userName() != null) {
auth.addAuthentication(new BasicAuthentication(u, "<>",
- String.valueOf(proxyUsername), String.valueOf(proxyPassword)));
+ clientProxy.userName(), clientProxy.password()));
}
- }
+ });
if (disableCookies) {
client.setCookieStore(new HttpCookieStore.Empty());
@@ -223,17 +220,6 @@ class JettyConnector implements Connector {
this.cookieStore = client.getCookieStore();
}
- @SuppressWarnings("ChainOfInstanceofChecks")
- private static URI getProxyUri(final Object proxy) {
- if (proxy instanceof URI) {
- return (URI) proxy;
- } else if (proxy instanceof String) {
- return URI.create((String) proxy);
- } else {
- throw new ProcessingException(LocalizationMessages.WRONG_PROXY_URI_TYPE(ClientProperties.PROXY_URI));
- }
- }
-
/**
* Get the {@link HttpClient}.
*
diff --git a/connectors/jetty-connector/src/main/resources/org/glassfish/jersey/jetty/connector/localization.properties b/connectors/jetty-connector/src/main/resources/org/glassfish/jersey/jetty/connector/localization.properties
index 15d9708e91d..88cbe10eab1 100644
--- a/connectors/jetty-connector/src/main/resources/org/glassfish/jersey/jetty/connector/localization.properties
+++ b/connectors/jetty-connector/src/main/resources/org/glassfish/jersey/jetty/connector/localization.properties
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,7 +16,5 @@
# {0} - HTTP method, e.g. GET, DELETE
method.not.supported=Method {0} not supported.
-# {0} - property name - jersey.config.client.proxyUri
-wrong.proxy.uri.type=The proxy URI ("{0}") property MUST be an instance of String or URI.
invalid.configurable.component.type=The supplied component "{0}" is not assignable from JerseyClient or JerseyWebTarget.
expected.connector.provider.not.used=The supplied component is not configured to use a JettyConnectorProvider.
diff --git a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
index 6d67c9d8672..8bb117a9668 100644
--- a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
+++ b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/NettyConnector.java
@@ -19,8 +19,6 @@
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;
-import java.net.Proxy;
-import java.net.ProxySelector;
import java.net.SocketAddress;
import java.net.URI;
import java.util.ArrayList;
@@ -29,6 +27,7 @@
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
+import java.util.Optional;
import java.util.Set;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionException;
@@ -48,7 +47,6 @@
import io.netty.channel.Channel;
import io.netty.channel.ChannelDuplexHandler;
import io.netty.channel.ChannelHandlerContext;
-import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.ChannelPipeline;
@@ -69,7 +67,6 @@
import io.netty.handler.codec.http.HttpUtil;
import io.netty.handler.codec.http.HttpVersion;
import io.netty.handler.proxy.HttpProxyHandler;
-import io.netty.handler.proxy.ProxyConnectionEvent;
import io.netty.handler.proxy.ProxyHandler;
import io.netty.handler.ssl.ApplicationProtocolConfig;
import io.netty.handler.ssl.ClientAuth;
@@ -80,10 +77,12 @@
import io.netty.handler.timeout.IdleState;
import io.netty.handler.timeout.IdleStateEvent;
import io.netty.handler.timeout.IdleStateHandler;
+import io.netty.resolver.NoopAddressResolverGroup;
import io.netty.util.concurrent.GenericFutureListener;
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.ClientRequest;
import org.glassfish.jersey.client.ClientResponse;
+import org.glassfish.jersey.client.innate.ClientProxy;
import org.glassfish.jersey.client.spi.AsyncConnectorCallback;
import org.glassfish.jersey.client.spi.Connector;
import org.glassfish.jersey.message.internal.OutboundMessageContext;
@@ -235,6 +234,18 @@ protected void execute(final ClientRequest jerseyRequest, final Set redirec
if (chan == null) {
Bootstrap b = new Bootstrap();
+
+ // http proxy
+ Optional proxy = ClientProxy.proxyFromRequest(jerseyRequest);
+ if (!proxy.isPresent()) {
+ proxy = ClientProxy.proxyFromProperties(requestUri);
+ }
+ proxy.ifPresent(clientProxy -> {
+ b.resolver(NoopAddressResolverGroup.INSTANCE); // request hostname resolved by the HTTP proxy
+ });
+
+ final Optional handlerProxy = proxy;
+
b.group(group)
.channel(NioSocketChannel.class)
.handler(new ChannelInitializer() {
@@ -245,41 +256,14 @@ protected void initChannel(SocketChannel ch) throws Exception {
Configuration config = jerseyRequest.getConfiguration();
// http proxy
- final Object proxyUri = config.getProperties().get(ClientProperties.PROXY_URI);
- if (proxyUri != null) {
- final URI u = getProxyUri(proxyUri);
-
- final String userName = ClientProperties.getValue(
- config.getProperties(), ClientProperties.PROXY_USERNAME, String.class);
- final String password = ClientProperties.getValue(
- config.getProperties(), ClientProperties.PROXY_PASSWORD, String.class);
-
+ handlerProxy.ifPresent(clientProxy -> {
+ final URI u = clientProxy.uri();
InetSocketAddress proxyAddr = new InetSocketAddress(u.getHost(),
- u.getPort() == -1 ? 8080 : u.getPort());
- ProxyHandler proxy = createProxyHandler(jerseyRequest, proxyAddr, userName, password, connectTimeout);
- p.addLast(proxy);
- } else {
- ProxySelector sel = ProxySelector.getDefault();
- for (Proxy proxy: sel.select(requestUri)) {
- if (Proxy.Type.HTTP.equals(proxy.type())) {
- SocketAddress proxyAddress = proxy.address();
- if (InetSocketAddress.class.isInstance(proxy.address())) {
- InetSocketAddress proxyAddr = (InetSocketAddress) proxyAddress;
- if (proxyAddr.isUnresolved()
- && proxyAddr.getHostName() != null
- && proxyAddr.getHostName().startsWith("http://")) {
- proxyAddress = new InetSocketAddress(
- proxyAddr.getHostString().substring(7), proxyAddr.getPort()
- );
- }
- }
- ProxyHandler proxyHandler
- = createProxyHandler(jerseyRequest, proxyAddress, null, null, connectTimeout);
- p.addLast(proxyHandler);
- break;
- }
- }
- }
+ u.getPort() == -1 ? 8080 : u.getPort());
+ ProxyHandler proxy1 = createProxyHandler(jerseyRequest, proxyAddr,
+ clientProxy.userName(), clientProxy.password(), connectTimeout);
+ p.addLast(proxy1);
+ });
// Enable HTTPS if necessary.
if ("https".equals(requestUri.getScheme())) {
@@ -471,17 +455,6 @@ public void close() {
executorService.shutdown();
}
- @SuppressWarnings("ChainOfInstanceofChecks")
- private static URI getProxyUri(final Object proxy) {
- if (proxy instanceof URI) {
- return (URI) proxy;
- } else if (proxy instanceof String) {
- return URI.create((String) proxy);
- } else {
- throw new ProcessingException(LocalizationMessages.WRONG_PROXY_URI_TYPE(ClientProperties.PROXY_URI));
- }
- }
-
protected static class PruneIdlePool extends ChannelDuplexHandler {
HashMap> connections;
String key;
diff --git a/connectors/netty-connector/src/main/resources/org/glassfish/jersey/netty/connector/localization.properties b/connectors/netty-connector/src/main/resources/org/glassfish/jersey/netty/connector/localization.properties
index 9055d6277a0..ba91c4f6495 100644
--- a/connectors/netty-connector/src/main/resources/org/glassfish/jersey/netty/connector/localization.properties
+++ b/connectors/netty-connector/src/main/resources/org/glassfish/jersey/netty/connector/localization.properties
@@ -14,7 +14,6 @@
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
#
-wrong.proxy.uri.type=The proxy URI ("{0}") property MUST be an instance of String or URI.
wrong.read.timeout=Unexpected ("{0}") READ_TIMEOUT.
wrong.max.pool.size=Unexpected ("{0}") maximum number of connections per destination.
wrong.max.pool.total=Unexpected ("{0}") maximum number of connections total.
diff --git a/core-client/src/main/java/org/glassfish/jersey/client/ClientProperties.java b/core-client/src/main/java/org/glassfish/jersey/client/ClientProperties.java
index 4b42f102975..e5600ce382c 100644
--- a/core-client/src/main/java/org/glassfish/jersey/client/ClientProperties.java
+++ b/core-client/src/main/java/org/glassfish/jersey/client/ClientProperties.java
@@ -520,19 +520,4 @@ public static T getValue(final Map properties, final String key,
public static T getValue(final Map properties, final String key, final Class type) {
return PropertiesHelper.getValue(properties, key, type, null);
}
-
- /**
- * Get the value of the specified property. If null, it will obtain it from System property.
- *
- * If the property is not set the method will return {@code null}.
- *
- * @param properties Map of properties to get the property value from.
- * @param key Name of the property.
- * @param systemKey Name of the System property.
- * @return Value of the property or {@code null}.
- * @since 2.37
- */
- public static String getValue(Map properties, String key, String systemKey) {
- return PropertiesHelper.getValue(properties, key, System.getProperty(systemKey), String.class, null);
- }
}
diff --git a/core-client/src/main/java/org/glassfish/jersey/client/innate/ClientProxy.java b/core-client/src/main/java/org/glassfish/jersey/client/innate/ClientProxy.java
new file mode 100644
index 00000000000..00d407814a0
--- /dev/null
+++ b/core-client/src/main/java/org/glassfish/jersey/client/innate/ClientProxy.java
@@ -0,0 +1,212 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+package org.glassfish.jersey.client.innate;
+
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.client.ClientRequest;
+import org.glassfish.jersey.client.internal.LocalizationMessages;
+
+import javax.ws.rs.ProcessingException;
+import javax.ws.rs.core.Configuration;
+import javax.ws.rs.core.MultivaluedMap;
+import java.net.InetSocketAddress;
+import java.net.Proxy;
+import java.net.ProxySelector;
+import java.net.SocketAddress;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.Arrays;
+import java.util.Base64;
+import java.util.Locale;
+import java.util.Optional;
+
+/**
+ * Default client Proxy information internal object. It is used for parsing the proxy information in all connectors.
+ */
+public abstract class ClientProxy {
+
+ private ClientProxy() {
+ // do not instantiate
+ };
+
+ public static Optional proxyFromRequest(ClientRequest request) {
+ return getProxy(request);
+ }
+
+ public static Optional proxyFromProperties(URI requestUri) {
+ return getSystemPropertiesProxy(requestUri);
+ }
+
+ public static Optional proxyFromConfiguration(Configuration configuration) {
+ return getProxy(configuration);
+ }
+
+ public static ClientProxy proxy(Proxy proxy) {
+ return new ProxyClientProxy(proxy);
+ }
+
+ public static void setBasicAuthorizationHeader(MultivaluedMap headers, ClientProxy proxy) {
+ if (proxy.userName() != null) {
+ StringBuilder auth = new StringBuilder().append(proxy.userName()).append(":");
+ if (proxy.password() != null) {
+ auth.append(proxy.password());
+ }
+ String encoded = "Basic " + Base64.getEncoder().encodeToString(auth.toString().getBytes());
+ headers.put("Proxy-Authorization", Arrays.asList(encoded));
+ }
+ }
+
+ protected String userName;
+ protected String password;
+
+ private static ClientProxy toProxy(Object proxy) {
+ if (proxy instanceof String) {
+ return new UriClientProxy(URI.create((String) proxy));
+ } else if (proxy instanceof URI) {
+ return new UriClientProxy((URI) proxy);
+ } else if (Proxy.class.isInstance(proxy)) {
+ Proxy netProxy = Proxy.class.cast(proxy);
+ if (Proxy.Type.HTTP.equals(netProxy.type())) {
+ return new ProxyClientProxy(Proxy.class.cast(proxy));
+ } else {
+ return null;
+ }
+ } else {
+ throw new ProcessingException(LocalizationMessages.WRONG_PROXY_URI_TYPE(ClientProperties.PROXY_URI));
+ }
+ }
+
+ public abstract Proxy proxy();
+
+ public abstract URI uri();
+
+ public abstract Proxy.Type type();
+
+ public String password() {
+ return password;
+ }
+
+ public String userName() {
+ return userName;
+ };
+
+ private static Optional getProxy(ClientRequest request) {
+ Object proxyUri = request.resolveProperty(ClientProperties.PROXY_URI, Object.class);
+ if (proxyUri != null) {
+ ClientProxy proxy = toProxy(proxyUri);
+ if (proxy != null) {
+ proxy.userName = request.resolveProperty(ClientProperties.PROXY_USERNAME, String.class);
+ proxy.password = request.resolveProperty(ClientProperties.PROXY_PASSWORD, String.class);
+ return Optional.of(proxy);
+ } else {
+ return Optional.empty();
+ }
+ }
+ return Optional.empty();
+ }
+
+ private static Optional getProxy(Configuration config) {
+ Object proxyUri = config.getProperties().get(ClientProperties.PROXY_URI);
+ if (proxyUri != null) {
+ ClientProxy proxy = toProxy(proxyUri);
+ if (proxy != null) {
+ proxy.userName = ClientProperties.getValue(config.getProperties(), ClientProperties.PROXY_USERNAME, String.class);
+ proxy.password = ClientProperties.getValue(config.getProperties(), ClientProperties.PROXY_PASSWORD, String.class);
+ return Optional.of(proxy);
+ } else {
+ return Optional.empty();
+ }
+ }
+ return Optional.empty();
+ }
+
+ private static Optional getSystemPropertiesProxy(URI requestUri) {
+ ProxySelector sel = ProxySelector.getDefault();
+ for (Proxy proxy: sel.select(requestUri)) {
+ if (Proxy.Type.HTTP.equals(proxy.type())) {
+ return Optional.of(new ProxyClientProxy(proxy));
+ }
+ }
+ return Optional.empty();
+ }
+
+ private static final class ProxyClientProxy extends ClientProxy {
+
+ private final Proxy proxy;
+
+ private ProxyClientProxy(Proxy proxy) {
+ this.proxy = proxy;
+ }
+
+ @Override
+ public Proxy proxy() {
+ return proxy;
+ }
+
+ @Override
+ public Proxy.Type type() {
+ return proxy.type();
+ }
+
+ @Override
+ public URI uri() {
+ URI uri = null;
+ if (Proxy.Type.HTTP.equals(proxy.type())) {
+ SocketAddress proxyAddress = proxy.address();
+ if (InetSocketAddress.class.isInstance(proxy.address())) {
+ InetSocketAddress proxyAddr = (InetSocketAddress) proxyAddress;
+ try {
+ if (proxyAddr.isUnresolved()
+ && proxyAddr.getHostName() != null
+ && proxyAddr.getHostName().toLowerCase(Locale.ROOT).startsWith("http://")) {
+ String hostString = proxyAddr.getHostString().substring(7);
+ uri = new URI("http", null, hostString, proxyAddr.getPort(), null, null, null);
+ } else {
+ uri = new URI("http", null, proxyAddr.getHostString(), proxyAddr.getPort(), null, null, null);
+ }
+ } catch (URISyntaxException e) {
+ throw new ProcessingException(e);
+ }
+ }
+ }
+ return uri;
+ }
+ }
+
+ private static final class UriClientProxy extends ClientProxy {
+ private final URI uri;
+
+ private UriClientProxy(URI uri) {
+ this.uri = uri;
+ }
+
+ @Override
+ public Proxy proxy() {
+ return new Proxy(type(), new InetSocketAddress(uri.getHost(), uri.getPort()));
+ }
+
+ @Override
+ public Proxy.Type type() {
+ return Proxy.Type.HTTP;
+ }
+
+ @Override
+ public URI uri() {
+ return uri;
+ }
+ }
+}
+
diff --git a/core-client/src/main/java/org/glassfish/jersey/client/innate/package-info.java b/core-client/src/main/java/org/glassfish/jersey/client/innate/package-info.java
new file mode 100644
index 00000000000..016eea71638
--- /dev/null
+++ b/core-client/src/main/java/org/glassfish/jersey/client/innate/package-info.java
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+/**
+ * Jersey client MOST INTERNAL classes/interfaces.
+ * Shall not be used outside of Jersey.
+ */
+package org.glassfish.jersey.client.innate;
\ No newline at end of file
diff --git a/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java b/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java
index ef85fa8eafc..dc8af256b11 100644
--- a/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java
+++ b/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java
@@ -21,28 +21,23 @@
import java.io.InputStream;
import java.lang.reflect.Field;
import java.net.HttpURLConnection;
-import java.net.InetSocketAddress;
import java.net.ProtocolException;
-import java.net.Proxy;
-import java.net.Proxy.Type;
import java.net.SocketTimeoutException;
import java.net.URI;
import java.net.URISyntaxException;
import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
-import java.util.Arrays;
-import java.util.Base64;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
+import java.util.Optional;
import java.util.Set;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;
import java.util.logging.Level;
import java.util.logging.Logger;
-import java.util.regex.Pattern;
import java.util.stream.Collectors;
import javax.net.ssl.HostnameVerifier;
@@ -50,17 +45,16 @@
import javax.net.ssl.SSLSocketFactory;
import javax.ws.rs.ProcessingException;
import javax.ws.rs.client.Client;
-import javax.ws.rs.core.Configuration;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.core.Response;
-import org.glassfish.jersey.ExternalProperties;
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.ClientRequest;
import org.glassfish.jersey.client.ClientResponse;
import org.glassfish.jersey.client.HttpUrlConnectorProvider;
import org.glassfish.jersey.client.JerseyClient;
import org.glassfish.jersey.client.RequestEntityProcessing;
+import org.glassfish.jersey.client.innate.ClientProxy;
import org.glassfish.jersey.client.spi.AsyncConnectorCallback;
import org.glassfish.jersey.client.spi.Connector;
import org.glassfish.jersey.internal.util.PropertiesHelper;
@@ -321,37 +315,11 @@ protected void secureConnection(final JerseyClient client, final HttpURLConnecti
}
}
- private static URI getProxyUriValue(Object proxy) {
- if (proxy instanceof URI) {
- return (URI) proxy;
- } else if (proxy instanceof String) {
- return URI.create((String) proxy);
- } else {
- throw new ProcessingException(LocalizationMessages.WRONG_PROXY_URI_TYPE(ClientProperties.PROXY_URI));
- }
- }
-
private ClientResponse _apply(final ClientRequest request) throws IOException {
final HttpURLConnection uc;
- Proxy proxy = null;
- Object proxyUri = request.getConfiguration().getProperties().get(ClientProperties.PROXY_URI);
- if (proxyUri != null) {
- URI uri = getProxyUriValue(proxyUri);
- String username = ClientProperties.getValue(request.getConfiguration().getProperties(),
- ClientProperties.PROXY_USERNAME, ExternalProperties.HTTP_PROXY_USER);
- String password = ClientProperties.getValue(request.getConfiguration().getProperties(),
- ClientProperties.PROXY_PASSWORD, ExternalProperties.HTTP_PROXY_PASSWORD);
- if (username != null) {
- StringBuilder auth = new StringBuilder().append(username).append(":");
- if (password != null) {
- auth.append(password);
- }
- String encoded = "Basic " + Base64.getEncoder().encodeToString(auth.toString().getBytes());
- request.getHeaders().put("Proxy-Authorization", Arrays.asList(encoded));
- }
- proxy = new Proxy(Type.HTTP, new InetSocketAddress(uri.getHost(), uri.getPort()));
- }
- uc = this.connectionFactory.getConnection(request.getUri().toURL(), proxy);
+ Optional proxy = ClientProxy.proxyFromRequest(request);
+ proxy.ifPresent(clientProxy -> ClientProxy.setBasicAuthorizationHeader(request.getHeaders(), proxy.get()));
+ uc = this.connectionFactory.getConnection(request.getUri().toURL(), proxy.isPresent() ? proxy.get().proxy() : null);
uc.setDoInput(true);
final String httpMethod = request.getMethod();
diff --git a/core-client/src/main/resources/org/glassfish/jersey/client/internal/localization.properties b/core-client/src/main/resources/org/glassfish/jersey/client/internal/localization.properties
index 8e3823cde34..e66ceab3040 100644
--- a/core-client/src/main/resources/org/glassfish/jersey/client/internal/localization.properties
+++ b/core-client/src/main/resources/org/glassfish/jersey/client/internal/localization.properties
@@ -84,4 +84,5 @@ error.request.cancelled=Request cancelled by the client call.
error.listener.init=ClientLifecycleListener {0} failed to initialize properly.
error.listener.close=ClientLifecycleListener {0} failed to close properly.
error.shutdownhook.close=Client shutdown hook {0} failed.
+# {0} - property name - jersey.config.client.httpclient.proxyUri
wrong.proxy.uri.type=The proxy URI ("{0}") property MUST be an instance of String or URI.
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxySelectorTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxySelectorTest.java
index 4580facf24e..a813e545c64 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxySelectorTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxySelectorTest.java
@@ -61,9 +61,8 @@ public class ProxySelectorTest {
@Parameterized.Parameters(name = "{index}: {0}")
public static List testData() {
return Arrays.asList(new Object[][]{
-// {ApacheConnectorProvider.class},
-// {Apache5ConnectorProvider.class},
-// {JettyConnectorProvider.class},
+ // Apache, Grizzly, Jetty have the proxy set on constructor, i.e. ProxySelector cannot choose based on URI.
+ // HttpUrlConnector ignores proxy on localhost.
{NettyConnectorProvider.class},
});
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java
index b30d39e29c1..69be5f65916 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java
@@ -27,6 +27,7 @@
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.HttpUrlConnectorProvider;
import org.glassfish.jersey.client.spi.ConnectorProvider;
+import org.glassfish.jersey.grizzly.connector.GrizzlyConnectorProvider;
import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
import org.glassfish.jersey.netty.connector.NettyConnectorProvider;
import org.junit.AfterClass;
@@ -71,6 +72,7 @@ public static List testData() {
return Arrays.asList(new Object[][]{
{ApacheConnectorProvider.class},
{Apache5ConnectorProvider.class},
+ {GrizzlyConnectorProvider.class},
{JettyConnectorProvider.class},
{NettyConnectorProvider.class},
{HttpUrlConnectorProvider.class},
@@ -98,9 +100,11 @@ public void testGetNoPass() {
@Test
public void testGet407() {
+ // Grizzly sends (String)null password and username
+ int expected = GrizzlyConnectorProvider.class.isInstance(connectorProvider) ? 400 : 407;
client().property(ClientProperties.PROXY_URI, ProxyTest.PROXY_URI);
try (Response response = target("proxyTest").request().get()) {
- assertEquals(407, response.getStatus());
+ assertEquals(expected, response.getStatus());
} catch (ProcessingException pe) {
Assert.assertTrue(pe.getMessage().contains("407")); // netty
}
From e56740190b6d6153fd806aa22c68c3c0225b8339 Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Mon, 20 Jun 2022 16:03:27 +0200
Subject: [PATCH 064/305] maven-enforcer-plugin update
Signed-off-by: Maxim Nesen
---
pom.xml | 3 ++-
test-framework/maven/container-runner-maven-plugin/pom.xml | 7 -------
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
3 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/pom.xml b/pom.xml
index a2d73bc1f36..44a98b11639 100644
--- a/pom.xml
+++ b/pom.xml
@@ -236,7 +236,7 @@
org.apache.maven.plugins
maven-enforcer-plugin
- 3.0.0-M2
+ ${enforcer.version}
enforce-versions
@@ -2106,6 +2106,7 @@
2.3.27-incubating
1.9.59
1.16
+ 3.1.0
3.0
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index 1f75a57fcec..a9e39b62ca8 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -88,13 +88,6 @@
test
-
- org.apache.maven
- maven-project
- 2.2.1
- provided
-
-
org.codehaus.gmavenplus
gmavenplus-plugin
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index 909d37dced3..afbbe102221 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -34,7 +34,7 @@
org.apache.maven.plugins
maven-enforcer-plugin
- 1.4.1
+ ${enforcer.version}
junit
From 9210d506015e2c6dac280880353638d9eaa0b863 Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Wed, 22 Jun 2022 14:17:27 +0200
Subject: [PATCH 065/305] dependencies convergence validation with
dependencyConvergence enforcer rule
Signed-off-by: Maxim Nesen
---
examples/open-tracing/pom.xml | 12 +++-
incubator/html-json/pom.xml | 1 +
pom.xml | 1 +
.../container-runner-maven-plugin/pom.xml | 62 ++++++++++++++++++-
.../maven/custom-enforcer-rules/pom.xml | 20 ++++++
tests/integration/j-376/pom.xml | 2 -
tests/osgi/functional/pom.xml | 4 ++
7 files changed, 98 insertions(+), 4 deletions(-)
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index 21f246ee85d..71eca1909fe 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -52,7 +52,17 @@
com.uber.jaeger
jaeger-core
- 0.20.0
+ 0.27.0
+
+
+ org.slf4j
+ slf4j-api
+
+
+ org.apache.httpcomponents
+ httpcore
+
+
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index 086d6e318cb..3ad5b9ebb00 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -40,6 +40,7 @@
1.5.1
+ true
diff --git a/pom.xml b/pom.xml
index 44a98b11639..cf11075bd66 100644
--- a/pom.xml
+++ b/pom.xml
@@ -248,6 +248,7 @@
${java.version}
+
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index a9e39b62ca8..ce864fbb2a9 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -49,6 +49,28 @@
org.apache.maven
maven-core
${maven.version}
+
+
+ org.codehaus.plexus
+ plexus-component-annotations
+
+
+ org.codehaus.plexus
+ plexus-utils
+
+
+ org.codehaus.plexus
+ plexus-container-default
+
+
+ org.sonatype.plexus
+ plexus-sec-dispatcher
+
+
+ com.google.code.findbugs
+ jsr305
+
+
org.apache.maven
@@ -59,6 +81,12 @@
org.apache.maven
maven-plugin-api
${maven.version}
+
+
+ org.codehaus.plexus
+ plexus-utils
+
+
org.apache.maven
@@ -91,7 +119,29 @@
org.codehaus.gmavenplus
gmavenplus-plugin
- 1.7.0
+ 1.13.1
+
+
+ org.apache.maven.shared
+ file-management
+
+
+ org.apache.maven
+ maven-model
+
+
+ org.apache.maven
+ maven-core
+
+
+ org.apache.maven
+ maven-plugin-api
+
+
+ org.apache.maven
+ maven-artifact
+
+
@@ -104,6 +154,16 @@
groovy-all
pom
${groovy.version}
+
+
+ org.apache.ant
+ ant-launcher
+
+
+ org.apache.ant
+ ant
+
+
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index afbbe102221..454813d907e 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -40,6 +40,26 @@
junit
junit
+
+ org.codehaus.plexus
+ plexus-classworlds
+
+
+ org.codehaus.plexus
+ plexus-utils
+
+
+ commons-io
+ commons-io
+
+
+ org.apache.maven
+ maven-core
+
+
+ org.eclipse.aether
+ aether-util
+
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index a6c15351734..935cd8ffc1e 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -86,8 +86,6 @@
org.glassfish.grizzly
grizzly-http-server
- 2.3.16
- compile
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index b898c4ede08..0d093a21aa9 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -34,6 +34,10 @@
Functional Jersey OSGi tests
+
+ true
+
+
From d662df11735deb39e44bdc8d4241ae7131c72550 Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Wed, 22 Jun 2022 14:26:17 +0200
Subject: [PATCH 066/305] jakarta-api exclude due to dependencyConvergence
failure
Signed-off-by: Maxim Nesen
---
inject/hk2/pom.xml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index fd0875bd78a..0f9eacbdcdf 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -51,6 +51,10 @@
org.javassist
javassist
+
+ jakarta.inject
+ jakarta.inject-api
+
From 129e770f89647d3e29a7a747318e7ee63609ab0c Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Thu, 23 Jun 2022 12:54:18 +0200
Subject: [PATCH 067/305] new module for dependencyConvergence validation
Signed-off-by: Maxim Nesen
---
connectors/apache-connector/pom.xml | 12 +
connectors/apache5-connector/pom.xml | 12 +
connectors/grizzly-connector/pom.xml | 9 +
examples/groovy/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 12 +
ext/mvc-mustache/pom.xml | 11 +
ext/rx/rx-client-rxjava2/pom.xml | 8 +-
ext/spring6/pom.xml | 6 +
incubator/kryo/pom.xml | 11 +
pom.xml | 10 +-
.../container-runner-maven-plugin/pom.xml | 2 +-
tests/e2e-client/pom.xml | 5 +
...unkedInputStreamClosedPrematurelyTest.java | 19 +-
.../ssl/AbstractConnectorServerTest.java | 6 +-
.../e2e/client/connector/ssl/Server.java | 9 +-
.../e2e/server/wadl/WadlBeanParamTest.java | 7 +-
.../e2e/server/wadl/WadlResourceTest.java | 7 +-
tests/integration/jersey-5087/pom.xml | 333 ++++++++++++++++++
.../integration/jersey5087/Jersey5087.java | 26 ++
.../integration/jersey5087/Resource5087.java | 30 ++
.../jersey5087/Jersey5087Test.java | 53 +++
tests/integration/pom.xml | 1 +
23 files changed, 562 insertions(+), 31 deletions(-)
create mode 100644 tests/integration/jersey-5087/pom.xml
create mode 100644 tests/integration/jersey-5087/src/main/java/org/glassfish/jersey/tests/integration/jersey5087/Jersey5087.java
create mode 100644 tests/integration/jersey-5087/src/main/java/org/glassfish/jersey/tests/integration/jersey5087/Resource5087.java
create mode 100644 tests/integration/jersey-5087/src/test/java/org/glassfish/jersey/tests/integration/jersey5087/Jersey5087Test.java
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index f366855622c..258ef18f321 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -40,6 +40,18 @@
org.apache.httpcomponents
httpclient
+
+
+ commons-codec
+ commons-codec
+
+
+
+
+ commons-codec
+ commons-codec
+ ${commons.codec.version}
+ test
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
index 6e2441819de..9d08082d249 100644
--- a/connectors/apache5-connector/pom.xml
+++ b/connectors/apache5-connector/pom.xml
@@ -40,8 +40,20 @@
org.apache.httpcomponents.client5
httpclient5
+
+
+ org.slf4j
+ slf4j-api
+
+
+
+ org.slf4j
+ slf4j-api
+ ${slf4j.version}
+ test
+
org.glassfish.jersey.containers
jersey-container-grizzly2-http
diff --git a/connectors/grizzly-connector/pom.xml b/connectors/grizzly-connector/pom.xml
index a9327a5488d..ba96bfdfcf5 100644
--- a/connectors/grizzly-connector/pom.xml
+++ b/connectors/grizzly-connector/pom.xml
@@ -49,8 +49,17 @@
org.glassfish.grizzly
connection-pool
+
+ org.slf4j
+ slf4j-api
+
+
+ org.slf4j
+ slf4j-api
+ ${slf4j.version}
+
org.glassfish.grizzly
grizzly-websockets
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index c3cb7147e25..49a7051320d 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -77,7 +77,7 @@
org.codehaus.gmavenplus
gmavenplus-plugin
- 1.12.1
+ ${org.codehaus.gmavenplus.version}
1
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index 71eca1909fe..cc01f9962e1 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -52,7 +52,7 @@
com.uber.jaeger
jaeger-core
- 0.27.0
+ ${com.uber.jaeger.version}
org.slf4j
diff --git a/ext/cdi/jersey-weld2-se/pom.xml b/ext/cdi/jersey-weld2-se/pom.xml
index 17e5f204be7..18eddfb97ec 100644
--- a/ext/cdi/jersey-weld2-se/pom.xml
+++ b/ext/cdi/jersey-weld2-se/pom.xml
@@ -36,6 +36,12 @@
org.jboss.weld.se
weld-se-core
+
+
+ jakarta.interceptor
+ jakarta.interceptor-api
+
+
provided
@@ -51,6 +57,12 @@
jakarta.enterprise
jakarta.enterprise.cdi-api
+
+
+ jakarta.interceptor
+ jakarta.interceptor-api
+
+
diff --git a/ext/mvc-mustache/pom.xml b/ext/mvc-mustache/pom.xml
index 8a14f5c259e..c409a7c045e 100644
--- a/ext/mvc-mustache/pom.xml
+++ b/ext/mvc-mustache/pom.xml
@@ -66,6 +66,17 @@
com.github.spullara.mustache.java
compiler
${mustache.version}
+
+
+ com.google.guava
+ guava
+
+
+
+
+ com.google.guava
+ guava
+ ${guava.version}
diff --git a/ext/rx/rx-client-rxjava2/pom.xml b/ext/rx/rx-client-rxjava2/pom.xml
index d0f8bb24935..f859654bd67 100644
--- a/ext/rx/rx-client-rxjava2/pom.xml
+++ b/ext/rx/rx-client-rxjava2/pom.xml
@@ -42,11 +42,17 @@
io.reactivex.rxjava2
rxjava
${rxjava2.version}
+
+
+ org.reactivestreams
+ reactive-streams
+
+
org.reactivestreams
reactive-streams
- 1.0.0
+ ${reactive.streams.version}
diff --git a/ext/spring6/pom.xml b/ext/spring6/pom.xml
index c7817c6b712..701fc992ff5 100644
--- a/ext/spring6/pom.xml
+++ b/ext/spring6/pom.xml
@@ -89,6 +89,12 @@
org.glassfish.hk2
hk2
${hk2.version}
+
+
+ org.ow2.asm
+ asm
+
+
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index 7c09b331be7..36b1f1ba80d 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -48,6 +48,17 @@
com.esotericsoftware
kryo
+
+
+ org.ow2.asm
+ asm
+
+
+
+
+ org.ow2.asm
+ asm
+ ${asm.version}
diff --git a/pom.xml b/pom.xml
index cf11075bd66..ca17016addf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2109,6 +2109,14 @@
1.16
3.1.0
+
+ 2.0.0-alpha6
+ 1.15
+ 1.0.3
+ 0.27.0
+ 1.13.1
+
+
3.0
3.0
@@ -2134,7 +2142,7 @@
1.10.2
1.44
5.6.0
- 4.0.1
+ 4.0.2
3.9.0
0.8.17
4.1.75.Final
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index ce864fbb2a9..8306f9ff3c9 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -119,7 +119,7 @@
org.codehaus.gmavenplus
gmavenplus-plugin
- 1.13.1
+ ${org.codehaus.gmavenplus.version}
org.apache.maven.shared
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index 1dce53c7e4c..a286c36bf0c 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -182,6 +182,11 @@
xmlunit
test
+
+ commons-io
+ commons-io
+ ${commons.io.version}
+
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ChunkedInputStreamClosedPrematurelyTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ChunkedInputStreamClosedPrematurelyTest.java
index 33b1fbb8197..3298e5de6fb 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ChunkedInputStreamClosedPrematurelyTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ChunkedInputStreamClosedPrematurelyTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,6 +22,7 @@
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Arrays;
+import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ExecutionException;
@@ -57,8 +58,6 @@
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
-import com.google.common.util.concurrent.SettableFuture;
-
/**
* Reproducer for JERSEY-2705. Client side entity InputStream exception
* in chunked mode should not lead to the same behavior on the server side,
@@ -80,7 +79,7 @@ public class ChunkedInputStreamClosedPrematurelyTest extends JerseyTest {
@SuppressWarnings({"ThrowableResultOfMethodCallIgnored", "JavaDoc"})
public static class TestResource {
- private static final ConcurrentMap> REQUEST_MAP = new ConcurrentHashMap<>();
+ private static final ConcurrentMap> REQUEST_MAP = new ConcurrentHashMap<>();
@QueryParam(REQ_ID_PARAM_NAME)
private String reqId;
@@ -100,7 +99,7 @@ public String post(InputStream is) {
thrown = ex;
}
- if (!getFutureFor(reqId).set(thrown)) {
+ if (!getFutureFor(reqId).complete(thrown)) {
LOGGER.log(Level.WARNING,
"Unable to set stream processing exception into the settable future instance for request id " + reqId,
thrown);
@@ -113,7 +112,7 @@ public String post(InputStream is) {
@GET
public Boolean getRequestWasMade() {
// add a new future for the request if not there yet to avoid race conditions with POST processing
- final SettableFuture esf = getFutureFor(reqId);
+ final CompletableFuture esf = getFutureFor(reqId);
try {
// wait for up to three second for a request to be made;
// there is always a value, if set...
@@ -126,7 +125,7 @@ public Boolean getRequestWasMade() {
@Path("/requestCausedException")
@GET
public Boolean getRequestCausedException() {
- final SettableFuture esf = getFutureFor(reqId);
+ final CompletableFuture esf = getFutureFor(reqId);
try {
return esf.get(3, TimeUnit.SECONDS) != NO_EXCEPTION;
} catch (InterruptedException | ExecutionException | TimeoutException e) {
@@ -134,9 +133,9 @@ public Boolean getRequestCausedException() {
}
}
- private SettableFuture getFutureFor(String key) {
- final SettableFuture esf = SettableFuture.create();
- final SettableFuture oldEsf = REQUEST_MAP.putIfAbsent(key, esf);
+ private CompletableFuture getFutureFor(String key) {
+ final CompletableFuture esf = new CompletableFuture();
+ final CompletableFuture oldEsf = REQUEST_MAP.putIfAbsent(key, esf);
return (oldEsf != null) ? oldEsf : esf;
}
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/AbstractConnectorServerTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/AbstractConnectorServerTest.java
index f26fca912b2..7976f4dafef 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/AbstractConnectorServerTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/AbstractConnectorServerTest.java
@@ -36,7 +36,7 @@
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
-import com.google.common.io.ByteStreams;
+import org.apache.commons.io.IOUtils;
/**
* SSL connector hostname verification tests.
@@ -99,9 +99,9 @@ protected SSLContext getSslContext() throws IOException {
final InputStream trustStore = SslConnectorConfigurationTest.class.getResourceAsStream(clientTrustStore());
final InputStream keyStore = SslConnectorConfigurationTest.class.getResourceAsStream(CLIENT_KEY_STORE);
return SslConfigurator.newInstance()
- .trustStoreBytes(ByteStreams.toByteArray(trustStore))
+ .trustStoreBytes(IOUtils.toByteArray(trustStore))
.trustStorePassword("asdfgh")
- .keyStoreBytes(ByteStreams.toByteArray(keyStore))
+ .keyStoreBytes(IOUtils.toByteArray(keyStore))
.keyPassword("asdfgh")
.createSSLContext();
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/Server.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/Server.java
index c986c2c01f5..20795c326ea 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/Server.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/Server.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,6 +23,7 @@
import jakarta.ws.rs.core.UriBuilder;
+import org.apache.commons.io.IOUtils;
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory;
import org.glassfish.jersey.server.ResourceConfig;
@@ -31,8 +32,6 @@
import org.glassfish.grizzly.ssl.SSLContextConfigurator;
import org.glassfish.grizzly.ssl.SSLEngineConfigurator;
-import com.google.common.io.ByteStreams;
-
/**
* A simple SSL-secured HTTP server for testing purposes.
*
@@ -87,9 +86,9 @@ public static Server start(String keystore) throws IOException {
SSLContextConfigurator sslContext = new SSLContextConfigurator();
// set up security context
- sslContext.setKeyStoreBytes(ByteStreams.toByteArray(keyStore)); // contains server key pair
+ sslContext.setKeyStoreBytes(IOUtils.toByteArray(keyStore)); // contains server key pair
sslContext.setKeyStorePass("asdfgh");
- sslContext.setTrustStoreBytes(ByteStreams.toByteArray(trustStore)); // contains client certificate
+ sslContext.setTrustStoreBytes(IOUtils.toByteArray(trustStore)); // contains client certificate
sslContext.setTrustStorePass("asdfgh");
ResourceConfig rc = new ResourceConfig();
diff --git a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlBeanParamTest.java b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlBeanParamTest.java
index 195c6755aa7..9dc66d9b27c 100644
--- a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlBeanParamTest.java
+++ b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlBeanParamTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,6 +22,7 @@
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
+import java.util.Collections;
import jakarta.ws.rs.BeanParam;
import jakarta.ws.rs.CookieParam;
@@ -61,8 +62,6 @@
import org.w3c.dom.Element;
import org.w3c.dom.Node;
-import com.google.common.collect.ImmutableMap;
-
/**
* Tests whether WADL for a {@link BeanParam} annotated resource method parameter is generated properly.
*
@@ -168,7 +167,7 @@ private void testBeanParamConstructorInitializedBean(String resource) throws Exc
XPathConstants.NODE))
);
XMLUnit.setXpathNamespaceContext(
- new SimpleNamespaceContext(ImmutableMap.of("wadl", "http://wadl.dev.java.net/2009/02")));
+ new SimpleNamespaceContext(Collections.singletonMap("wadl", "http://wadl.dev.java.net/2009/02")));
diff.overrideElementQualifier(elementQualifier);
XMLAssert.assertXMLEqual(diff, true);
}
diff --git a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlResourceTest.java b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlResourceTest.java
index 72371288ed5..42e549e8d69 100644
--- a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlResourceTest.java
+++ b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl/WadlResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,6 +27,7 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.net.URI;
+import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -112,8 +113,6 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
-import com.google.common.collect.ImmutableMap;
-
import com.sun.research.ws.wadl.Method;
import com.sun.research.ws.wadl.Param;
import com.sun.research.ws.wadl.Request;
@@ -1279,7 +1278,7 @@ public void testWadlIsSameForAnnotatedAndNot() throws Exception {
XPathConstants.NODE))
);
XMLUnit.setXpathNamespaceContext(
- new SimpleNamespaceContext(ImmutableMap.of("wadl", "http://wadl.dev.java.net/2009/02")));
+ new SimpleNamespaceContext(Collections.singletonMap("wadl", "http://wadl.dev.java.net/2009/02")));
final ElementQualifier elementQualifier = new RecursiveElementNameAndTextQualifier();
diff.overrideElementQualifier(elementQualifier);
XMLAssert.assertXMLEqual(diff, true);
diff --git a/tests/integration/jersey-5087/pom.xml b/tests/integration/jersey-5087/pom.xml
new file mode 100644
index 00000000000..efbfe3c2e16
--- /dev/null
+++ b/tests/integration/jersey-5087/pom.xml
@@ -0,0 +1,333 @@
+
+
+
+
+
+ project
+ org.glassfish.jersey.tests.integration
+ 3.1.0-SNAPSHOT
+
+ 4.0.0
+
+ jersey-5087
+ war
+ jersey-tests-integration-jersey-5087
+
+ dependencyConvergence rule check
+
+
+
+
+ org.glassfish.jersey
+ jersey-bom
+ ${project.version}
+ pom
+ import
+
+
+
+
+
+
+ org.glassfish.jersey.core
+ jersey-common
+
+
+ org.glassfish.jersey.core
+ jersey-client
+
+
+ org.glassfish.jersey.core
+ jersey-server
+
+
+ org.glassfish.jersey.bundles
+ jaxrs-ri
+
+
+ org.glassfish.jersey.connectors
+ jersey-apache-connector
+
+
+ org.glassfish.jersey.connectors
+ jersey-apache5-connector
+
+
+ org.glassfish.jersey.connectors
+ jersey-helidon-connector
+
+
+ org.glassfish.jersey.connectors
+ jersey-grizzly-connector
+
+
+ org.glassfish.jersey.connectors
+ jersey-jetty-connector
+
+
+ org.glassfish.jersey.connectors
+ jersey-jdk-connector
+
+
+ org.glassfish.jersey.connectors
+ jersey-netty-connector
+
+
+ org.glassfish.jersey.containers
+ jersey-container-jetty-http
+
+
+ org.glassfish.jersey.containers
+ jersey-container-grizzly2-http
+
+
+ org.glassfish.jersey.containers
+ jersey-container-grizzly2-servlet
+
+
+ org.glassfish.jersey.containers
+ jersey-container-jetty-servlet
+
+
+ org.glassfish.jersey.containers
+ jersey-container-jdk-http
+
+
+ org.glassfish.jersey.containers
+ jersey-container-netty-http
+
+
+ org.glassfish.jersey.containers
+ jersey-container-servlet
+
+
+ org.glassfish.jersey.containers
+ jersey-container-servlet-core
+
+
+ org.glassfish.jersey.containers
+ jersey-container-simple-http
+
+
+ org.glassfish.jersey.containers.glassfish
+ jersey-gf-ejb
+
+
+ org.glassfish.jersey.ext
+ jersey-bean-validation
+
+
+ org.glassfish.jersey.ext
+ jersey-entity-filtering
+
+
+ org.glassfish.jersey.ext
+ jersey-metainf-services
+
+
+ org.glassfish.jersey.ext.microprofile
+ jersey-mp-config
+
+
+ org.glassfish.jersey.ext
+ jersey-mvc
+
+
+ org.glassfish.jersey.ext
+ jersey-mvc-bean-validation
+
+
+ org.glassfish.jersey.ext
+ jersey-mvc-freemarker
+
+
+ org.glassfish.jersey.ext
+ jersey-mvc-jsp
+
+
+ org.glassfish.jersey.ext
+ jersey-mvc-mustache
+
+
+ org.glassfish.jersey.ext
+ jersey-proxy-client
+
+
+ org.glassfish.jersey.ext
+ jersey-spring6
+
+
+ org.glassfish.jersey.ext
+ jersey-declarative-linking
+
+
+ org.glassfish.jersey.ext
+ jersey-wadl-doclet
+
+
+ org.glassfish.jersey.ext.cdi
+ jersey-weld2-se
+
+
+ org.glassfish.jersey.ext.cdi
+ jersey-cdi1x
+
+
+ org.glassfish.jersey.ext.cdi
+ jersey-cdi1x-transaction
+
+
+ org.glassfish.jersey.ext.cdi
+ jersey-cdi1x-validation
+
+
+ org.glassfish.jersey.ext.cdi
+ jersey-cdi1x-servlet
+
+
+ org.glassfish.jersey.ext.cdi
+ jersey-cdi1x-ban-custom-hk2-binding
+
+
+ org.glassfish.jersey.ext.cdi
+ jersey-cdi-rs-inject
+
+
+ org.glassfish.jersey.ext.rx
+ jersey-rx-client-guava
+
+
+ org.glassfish.jersey.ext.rx
+ jersey-rx-client-rxjava
+
+
+ org.glassfish.jersey.ext.rx
+ jersey-rx-client-rxjava2
+
+
+ org.glassfish.jersey.ext.microprofile
+ jersey-mp-rest-client
+
+
+ org.glassfish.jersey.media
+ jersey-media-jaxb
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-jackson
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-jettison
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-processing
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-binding
+
+
+ org.glassfish.jersey.media
+ jersey-media-kryo
+
+
+ org.glassfish.jersey.media
+ jersey-media-moxy
+
+
+ org.glassfish.jersey.media
+ jersey-media-multipart
+
+
+ org.glassfish.jersey.media
+ jersey-media-sse
+
+
+ org.glassfish.jersey.security
+ oauth1-client
+
+
+ org.glassfish.jersey.security
+ oauth1-server
+
+
+ org.glassfish.jersey.security
+ oauth1-signature
+
+
+ org.glassfish.jersey.security
+ oauth2-client
+
+
+ org.glassfish.jersey.inject
+ jersey-hk2
+
+
+ org.glassfish.jersey.inject
+ jersey-cdi2-se
+
+
+ org.glassfish.jersey.test-framework
+ jersey-test-framework-core
+
+
+ org.glassfish.jersey.test-framework.providers
+ jersey-test-framework-provider-bundle
+ pom
+
+
+ org.glassfish.jersey.test-framework.providers
+ jersey-test-framework-provider-external
+
+
+ org.glassfish.jersey.test-framework.providers
+ jersey-test-framework-provider-grizzly2
+
+
+ org.glassfish.jersey.test-framework.providers
+ jersey-test-framework-provider-inmemory
+
+
+ org.glassfish.jersey.test-framework.providers
+ jersey-test-framework-provider-jdk-http
+
+
+ org.glassfish.jersey.test-framework.providers
+ jersey-test-framework-provider-simple
+
+
+ org.glassfish.jersey.test-framework.providers
+ jersey-test-framework-provider-jetty
+
+
+ org.glassfish.jersey.test-framework
+ jersey-test-framework-util
+
+
+
+
+
+ true
+
+
\ No newline at end of file
diff --git a/tests/integration/jersey-5087/src/main/java/org/glassfish/jersey/tests/integration/jersey5087/Jersey5087.java b/tests/integration/jersey-5087/src/main/java/org/glassfish/jersey/tests/integration/jersey5087/Jersey5087.java
new file mode 100644
index 00000000000..05f4d67b4ec
--- /dev/null
+++ b/tests/integration/jersey-5087/src/main/java/org/glassfish/jersey/tests/integration/jersey5087/Jersey5087.java
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.integration.jersey5087;
+
+import org.glassfish.jersey.server.ResourceConfig;
+
+public class Jersey5087 extends ResourceConfig {
+
+ public Jersey5087() {
+ register(Resource5087.class);
+ }
+}
diff --git a/tests/integration/jersey-5087/src/main/java/org/glassfish/jersey/tests/integration/jersey5087/Resource5087.java b/tests/integration/jersey-5087/src/main/java/org/glassfish/jersey/tests/integration/jersey5087/Resource5087.java
new file mode 100644
index 00000000000..ce32dc3aebe
--- /dev/null
+++ b/tests/integration/jersey-5087/src/main/java/org/glassfish/jersey/tests/integration/jersey5087/Resource5087.java
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.integration.jersey5087;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+
+@Path("/")
+public class Resource5087 {
+
+ @GET
+ public String getResource() {
+ return "OK";
+ }
+
+}
diff --git a/tests/integration/jersey-5087/src/test/java/org/glassfish/jersey/tests/integration/jersey5087/Jersey5087Test.java b/tests/integration/jersey-5087/src/test/java/org/glassfish/jersey/tests/integration/jersey5087/Jersey5087Test.java
new file mode 100644
index 00000000000..8c1b3be51ed
--- /dev/null
+++ b/tests/integration/jersey-5087/src/test/java/org/glassfish/jersey/tests/integration/jersey5087/Jersey5087Test.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.integration.jersey5087;
+
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.server.ServerProperties;
+import org.glassfish.jersey.test.DeploymentContext;
+import org.glassfish.jersey.test.JerseyTest;
+import org.glassfish.jersey.test.ServletDeploymentContext;
+import org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory;
+import org.glassfish.jersey.test.spi.TestContainerFactory;
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.util.EnumSet;
+
+public class Jersey5087Test extends JerseyTest {
+
+ @Override
+ protected ResourceConfig configure() {
+ return new Jersey5087();
+ }
+
+ @Override
+ protected TestContainerFactory getTestContainerFactory() {
+ return new GrizzlyWebTestContainerFactory();
+ }
+
+ @Override
+ protected DeploymentContext configureDeployment() {
+ return ServletDeploymentContext.newInstance(Jersey5087.class);
+ }
+
+ @Test
+ public void testDependenciesClash() {
+ final String response = target().request().get(String.class);
+ Assert.assertEquals("OK", response);
+ }
+}
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index 6406f8de65e..1d5f1b6337d 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -59,6 +59,7 @@
jersey-4722
microprofile
reactive-streams
+ jersey-5087
From df9c2fcaa6a891c457877a77744edffff89e049e Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Thu, 23 Jun 2022 15:18:42 +0200
Subject: [PATCH 068/305] slf4j version
Signed-off-by: Maxim Nesen
---
pom.xml | 1 -
1 file changed, 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ca17016addf..7de8ef37461 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2161,7 +2161,6 @@
4.0.3
6.0.1
false
- 1.7.21
6.0.0-M3
3.0.0-M6
6.2.0.Final
From 82e89ac1b3e024a34489e3358e51466dc4c6aa6f Mon Sep 17 00:00:00 2001
From: jbescos
Date: Thu, 21 Jul 2022 14:46:41 +0200
Subject: [PATCH 069/305] Support GSON media (#5090)
* Support GSON media
Signed-off-by: Jorge Bescos Gascon
---
bom/pom.xml | 5 +
media/json-gson/pom.xml | 81 ++++++++++
.../jersey/gson/JsonGsonFeature.java | 75 ++++++++++
.../internal/JsonGsonAutoDiscoverable.java | 41 ++++++
.../gson/internal/JsonGsonProvider.java | 139 ++++++++++++++++++
.../glassfish/jersey/gson/package-info.java | 20 +++
...jersey.internal.spi.ForcedAutoDiscoverable | 1 +
.../jersey/gson/localization.properties | 19 +++
.../gson/internal/JsonGsonProviderTest.java | 77 ++++++++++
media/pom.xml | 1 +
pom.xml | 7 +
tests/e2e-server/pom.xml | 5 +
.../tests/e2e/server/GsonCustomTest.java | 75 ++++++++++
.../tests/e2e/server/GsonDefaultTest.java | 97 ++++++++++++
14 files changed, 643 insertions(+)
create mode 100644 media/json-gson/pom.xml
create mode 100644 media/json-gson/src/main/java/org/glassfish/jersey/gson/JsonGsonFeature.java
create mode 100644 media/json-gson/src/main/java/org/glassfish/jersey/gson/internal/JsonGsonAutoDiscoverable.java
create mode 100644 media/json-gson/src/main/java/org/glassfish/jersey/gson/internal/JsonGsonProvider.java
create mode 100644 media/json-gson/src/main/java/org/glassfish/jersey/gson/package-info.java
create mode 100644 media/json-gson/src/main/resources/META-INF/services/org.glassfish.jersey.internal.spi.ForcedAutoDiscoverable
create mode 100644 media/json-gson/src/main/resources/org/glassfish/jersey/gson/localization.properties
create mode 100644 media/json-gson/src/test/java/org/glassfish/jersey/gson/internal/JsonGsonProviderTest.java
create mode 100644 tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/GsonCustomTest.java
create mode 100644 tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/GsonDefaultTest.java
diff --git a/bom/pom.xml b/bom/pom.xml
index 23dbb1655e1..0cd67c4b8c9 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -296,6 +296,11 @@
jersey-media-json-processing
${project.version}
+
+ org.glassfish.jersey.media
+ jersey-media-json-gson
+ ${project.version}
+
org.glassfish.jersey.media
jersey-media-json-binding
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
new file mode 100644
index 00000000000..d1b45ea9677
--- /dev/null
+++ b/media/json-gson/pom.xml
@@ -0,0 +1,81 @@
+
+
+
+
+ 4.0.0
+
+
+ org.glassfish.jersey.media
+ project
+ 2.37-SNAPSHOT
+
+
+ jersey-media-json-gson
+ jar
+ jersey-media-json-gson
+
+
+ Jersey GSON support module.
+
+
+
+
+
+ com.sun.istack
+ istack-commons-maven-plugin
+ true
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ true
+
+
+ org.apache.felix
+ maven-bundle-plugin
+ true
+ true
+
+
+ org.glassfish.jersey.gson.*
+ ${javax.annotation.osgi.version},*
+
+ true
+
+
+
+
+
+
+
+ org.glassfish.jersey.core
+ jersey-common
+ ${project.version}
+
+
+ com.google.code.gson
+ gson
+
+
+ junit
+ junit
+ test
+
+
+
\ No newline at end of file
diff --git a/media/json-gson/src/main/java/org/glassfish/jersey/gson/JsonGsonFeature.java b/media/json-gson/src/main/java/org/glassfish/jersey/gson/JsonGsonFeature.java
new file mode 100644
index 00000000000..9e5cc556586
--- /dev/null
+++ b/media/json-gson/src/main/java/org/glassfish/jersey/gson/JsonGsonFeature.java
@@ -0,0 +1,75 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.gson;
+
+import javax.ws.rs.core.Configuration;
+import javax.ws.rs.core.Feature;
+import javax.ws.rs.core.FeatureContext;
+
+import org.glassfish.jersey.CommonProperties;
+import org.glassfish.jersey.gson.internal.JsonGsonAutoDiscoverable;
+import org.glassfish.jersey.gson.internal.JsonGsonProvider;
+import org.glassfish.jersey.internal.InternalProperties;
+import org.glassfish.jersey.internal.util.PropertiesHelper;
+/**
+ * Feature used to register Gson providers.
+ *
+ * The Feature is automatically enabled when {@link JsonGsonAutoDiscoverable} is on classpath.
+ * Default GSON configuration obtained by calling {@code GsonBuilder.create()} is used.
+ *
+ * Custom configuration, if required, can be achieved by implementing custom {@link javax.ws.rs.ext.ContextResolver} and
+ * registering it as a provider into JAX-RS runtime:
+ *
+ * @Provider
+ * @class GsonContextResolver implements ContextResolver<Gson> {
+ * @Override
+ * public Gson getContext(Class> type) {
+ * GsonBuilder builder = new GsonBuilder();
+ * // add custom configuration
+ * return builder.create();
+ * }
+ * }
+ *
+ *
+ */
+public class JsonGsonFeature implements Feature {
+
+ private static final String JSON_FEATURE = JsonGsonFeature.class.getSimpleName();
+
+ @Override
+ public boolean configure(final FeatureContext context) {
+ final Configuration config = context.getConfiguration();
+
+ final String jsonFeature = CommonProperties.getValue(
+ config.getProperties(),
+ config.getRuntimeType(),
+ InternalProperties.JSON_FEATURE, JSON_FEATURE, String.class);
+
+ // Other JSON providers registered.
+ if (!JSON_FEATURE.equalsIgnoreCase(jsonFeature)) {
+ return false;
+ }
+
+ // Disable other JSON providers.
+ context.property(PropertiesHelper.getPropertyNameForRuntime(
+ InternalProperties.JSON_FEATURE, config.getRuntimeType()), JSON_FEATURE);
+
+ context.register(JsonGsonProvider.class);
+
+ return true;
+ }
+}
diff --git a/media/json-gson/src/main/java/org/glassfish/jersey/gson/internal/JsonGsonAutoDiscoverable.java b/media/json-gson/src/main/java/org/glassfish/jersey/gson/internal/JsonGsonAutoDiscoverable.java
new file mode 100644
index 00000000000..b9fa6e226ac
--- /dev/null
+++ b/media/json-gson/src/main/java/org/glassfish/jersey/gson/internal/JsonGsonAutoDiscoverable.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.gson.internal;
+
+import javax.annotation.Priority;
+import javax.ws.rs.core.FeatureContext;
+
+import org.glassfish.jersey.gson.JsonGsonFeature;
+import org.glassfish.jersey.internal.spi.AutoDiscoverable;
+import org.glassfish.jersey.internal.spi.ForcedAutoDiscoverable;
+
+/**
+ * {@link ForcedAutoDiscoverable} registering {@link JsonGsonFeature} if the feature is not already registered.
+ *
+ *
+ * @see JsonGsonFeature
+ */
+@Priority(AutoDiscoverable.DEFAULT_PRIORITY)
+public class JsonGsonAutoDiscoverable implements ForcedAutoDiscoverable {
+
+ @Override
+ public void configure(FeatureContext context) {
+ if (!context.getConfiguration().isRegistered(JsonGsonFeature.class)) {
+ context.register(JsonGsonFeature.class);
+ }
+ }
+}
diff --git a/media/json-gson/src/main/java/org/glassfish/jersey/gson/internal/JsonGsonProvider.java b/media/json-gson/src/main/java/org/glassfish/jersey/gson/internal/JsonGsonProvider.java
new file mode 100644
index 00000000000..3799af1ebce
--- /dev/null
+++ b/media/json-gson/src/main/java/org/glassfish/jersey/gson/internal/JsonGsonProvider.java
@@ -0,0 +1,139 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.gson.internal;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.OutputStream;
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Type;
+
+import javax.ws.rs.Consumes;
+import javax.ws.rs.ProcessingException;
+import javax.ws.rs.Produces;
+import javax.ws.rs.WebApplicationException;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.MultivaluedMap;
+import javax.ws.rs.core.NoContentException;
+import javax.ws.rs.ext.ContextResolver;
+import javax.ws.rs.ext.Provider;
+import javax.ws.rs.ext.Providers;
+
+import org.glassfish.jersey.gson.LocalizationMessages;
+import org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider;
+import org.glassfish.jersey.message.internal.EntityInputStream;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+
+/**
+ * Entity provider (reader and writer) for Gson.
+ *
+ */
+@Provider
+@Produces({"application/json", "text/json", "*/*"})
+@Consumes({"application/json", "text/json", "*/*"})
+public class JsonGsonProvider extends AbstractMessageReaderWriterProvider {
+
+ private static final String JSON = "json";
+ private static final String PLUS_JSON = "+json";
+
+ private Providers providers;
+
+ public JsonGsonProvider(@Context Providers providers) {
+ this.providers = providers;
+ }
+
+ @Override
+ public boolean isReadable(Class> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
+ return supportsMediaType(mediaType);
+ }
+
+ @Override
+ public Object readFrom(Class type, Type genericType,
+ Annotation[] annotations,
+ MediaType mediaType,
+ MultivaluedMap httpHeaders,
+ InputStream entityStream) throws IOException, WebApplicationException {
+ EntityInputStream entityInputStream = new EntityInputStream(entityStream);
+ entityStream = entityInputStream;
+ if (entityInputStream.isEmpty()) {
+ throw new NoContentException(LocalizationMessages.ERROR_GSON_EMPTYSTREAM());
+ }
+ Gson gson = getGson(type);
+ try {
+ return gson.fromJson(new InputStreamReader(entityInputStream,
+ AbstractMessageReaderWriterProvider.getCharset(mediaType)), genericType);
+ } catch (Exception e) {
+ throw new ProcessingException(LocalizationMessages.ERROR_GSON_DESERIALIZATION(), e);
+ }
+ }
+
+ @Override
+ public boolean isWriteable(Class> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
+ return supportsMediaType(mediaType);
+ }
+
+ @Override
+ public void writeTo(Object o, Class> type, Type genericType,
+ Annotation[] annotations,
+ MediaType mediaType,
+ MultivaluedMap httpHeaders,
+ OutputStream entityStream) throws IOException, WebApplicationException {
+ Gson gson = getGson(type);
+ try {
+ entityStream.write(gson.toJson(o).getBytes(AbstractMessageReaderWriterProvider.getCharset(mediaType)));
+ entityStream.flush();
+ } catch (Exception e) {
+ throw new ProcessingException(LocalizationMessages.ERROR_GSON_SERIALIZATION(), e);
+ }
+ }
+
+ private Gson getGson(Class> type) {
+ final ContextResolver contextResolver = providers.getContextResolver(Gson.class, MediaType.APPLICATION_JSON_TYPE);
+ if (contextResolver != null) {
+ return contextResolver.getContext(type);
+ } else {
+ return GsonSingleton.INSTANCE.getInstance();
+ }
+ }
+
+ /**
+ * @return true for all media types of the pattern */json and
+ * */*+json.
+ */
+ private static boolean supportsMediaType(final MediaType mediaType) {
+ return mediaType.getSubtype().equals(JSON) || mediaType.getSubtype().endsWith(PLUS_JSON);
+ }
+
+ private enum GsonSingleton {
+ INSTANCE;
+
+ // Thread-safe
+ private Gson gsonInstance;
+
+ Gson getInstance() {
+ return gsonInstance;
+ }
+
+ GsonSingleton() {
+ this.gsonInstance = new GsonBuilder().create();
+ }
+ }
+}
diff --git a/media/json-gson/src/main/java/org/glassfish/jersey/gson/package-info.java b/media/json-gson/src/main/java/org/glassfish/jersey/gson/package-info.java
new file mode 100644
index 00000000000..12e6b905878
--- /dev/null
+++ b/media/json-gson/src/main/java/org/glassfish/jersey/gson/package-info.java
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+/**
+ * Jersey classes supporting JSON marshalling and unmarshalling using GSON.
+ */
+package org.glassfish.jersey.gson;
diff --git a/media/json-gson/src/main/resources/META-INF/services/org.glassfish.jersey.internal.spi.ForcedAutoDiscoverable b/media/json-gson/src/main/resources/META-INF/services/org.glassfish.jersey.internal.spi.ForcedAutoDiscoverable
new file mode 100644
index 00000000000..7f4e0ee8b10
--- /dev/null
+++ b/media/json-gson/src/main/resources/META-INF/services/org.glassfish.jersey.internal.spi.ForcedAutoDiscoverable
@@ -0,0 +1 @@
+org.glassfish.jersey.gson.internal.JsonGsonAutoDiscoverable
diff --git a/media/json-gson/src/main/resources/org/glassfish/jersey/gson/localization.properties b/media/json-gson/src/main/resources/org/glassfish/jersey/gson/localization.properties
new file mode 100644
index 00000000000..b2ea26adc03
--- /dev/null
+++ b/media/json-gson/src/main/resources/org/glassfish/jersey/gson/localization.properties
@@ -0,0 +1,19 @@
+#
+# Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License v. 2.0, which is available at
+# http://www.eclipse.org/legal/epl-2.0.
+#
+# This Source Code may also be made available under the following Secondary
+# Licenses when the conditions for such availability set forth in the
+# Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+# version 2 with the GNU Classpath Exception, which is available at
+# https://www.gnu.org/software/classpath/license.html.
+#
+# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+#
+
+error.gson.serialization=Error writing GSON serialized object.
+error.gson.deserialization=Error deserializing object from entity stream.
+error.gson.emptystream=GSON cannot parse empty input stream.
diff --git a/media/json-gson/src/test/java/org/glassfish/jersey/gson/internal/JsonGsonProviderTest.java b/media/json-gson/src/test/java/org/glassfish/jersey/gson/internal/JsonGsonProviderTest.java
new file mode 100644
index 00000000000..c7884d62993
--- /dev/null
+++ b/media/json-gson/src/test/java/org/glassfish/jersey/gson/internal/JsonGsonProviderTest.java
@@ -0,0 +1,77 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.gson.internal;
+
+import static javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Type;
+
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.MultivaluedHashMap;
+import javax.ws.rs.core.NoContentException;
+import javax.ws.rs.ext.ContextResolver;
+import javax.ws.rs.ext.ExceptionMapper;
+import javax.ws.rs.ext.MessageBodyReader;
+import javax.ws.rs.ext.MessageBodyWriter;
+import javax.ws.rs.ext.Providers;
+
+import org.junit.Test;
+
+public class JsonGsonProviderTest {
+
+ @Test(expected = NoContentException.class)
+ public void shouldThrowNoContentException() throws IOException {
+ Providers providers = new EmptyProviders();
+ MessageBodyReader mbr = (MessageBodyReader) new JsonGsonProvider(providers);
+ mbr.readFrom(Foo.class, Foo.class, new Annotation[0], APPLICATION_JSON_TYPE,
+ new MultivaluedHashMap<>(), new ByteArrayInputStream(new byte[0]));
+ }
+
+ private static final class Foo {
+ // no members
+ }
+
+ private static final class EmptyProviders implements Providers {
+
+ @Override
+ public final MessageBodyReader getMessageBodyReader(final Class type, final Type genericType,
+ final Annotation[] annotations, final MediaType mediaType) {
+ return null;
+ }
+
+ @Override
+ public final MessageBodyWriter getMessageBodyWriter(final Class type, final Type genericType,
+ final Annotation[] annotations, final MediaType mediaType) {
+ return null;
+ }
+
+ @Override
+ public final ExceptionMapper getExceptionMapper(final Class type) {
+ return null;
+ }
+
+ @Override
+ public final ContextResolver getContextResolver(final Class contextType, final MediaType mediaType) {
+ return null;
+ }
+
+ }
+
+}
diff --git a/media/pom.xml b/media/pom.xml
index 20fc3b49b0f..4f0d77f2371 100644
--- a/media/pom.xml
+++ b/media/pom.xml
@@ -38,6 +38,7 @@
jaxb
json-binding
+ json-gson
json-jackson
json-jackson1
json-jettison
diff --git a/pom.xml b/pom.xml
index 2466f402157..4047aa127c6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2061,6 +2061,12 @@
yasson
${yasson.version}
+
+
+ com.google.code.gson
+ gson
+ ${gson.version}
+
io.opentracing
@@ -2205,5 +2211,6 @@
3.0.1
4.0.4
1.0.11
+ 2.9.0
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index 6b8f3aa7326..2650a3d27ec 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -100,6 +100,11 @@
jersey-media-json-processing
test
+
+ org.glassfish.jersey.media
+ jersey-media-json-gson
+ test
+
org.glassfish.jersey.ext
jersey-bean-validation
diff --git a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/GsonCustomTest.java b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/GsonCustomTest.java
new file mode 100644
index 00000000000..3d9f0850f6c
--- /dev/null
+++ b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/GsonCustomTest.java
@@ -0,0 +1,75 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.e2e.server;
+
+import static org.junit.Assert.assertEquals;
+
+import java.util.Date;
+
+import javax.ws.rs.Consumes;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Response;
+import javax.ws.rs.ext.ContextResolver;
+import javax.ws.rs.ext.Provider;
+
+import org.glassfish.jersey.gson.JsonGsonFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+
+public class GsonCustomTest extends JerseyTest {
+
+ private static final Date date = new Date(0);
+
+ @Path("/test")
+ public static class Resource {
+
+ @GET
+ @Consumes("application/json")
+ public Date get() {
+ return date;
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(Resource.class).register(JsonGsonFeature.class).register(GsonContextResolver.class);
+ }
+
+ @Test
+ public void get() {
+ Response response = target("/test").request().get();
+ assertEquals(200, response.getStatus());
+ String obj = response.readEntity(String.class);
+ assertEquals("\"1970\"", obj);
+ }
+
+ @Provider
+ public static class GsonContextResolver implements ContextResolver {
+ @Override
+ public Gson getContext(Class> type) {
+ GsonBuilder builder = new GsonBuilder();
+ builder.setDateFormat("yyyy");
+ return builder.create();
+ }
+ }
+}
diff --git a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/GsonDefaultTest.java b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/GsonDefaultTest.java
new file mode 100644
index 00000000000..724a32864b0
--- /dev/null
+++ b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/GsonDefaultTest.java
@@ -0,0 +1,97 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.e2e.server;
+
+import static org.junit.Assert.assertEquals;
+
+import javax.ws.rs.Consumes;
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.client.Entity;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Response;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.gson.JsonGsonFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+public class GsonDefaultTest extends JerseyTest {
+
+ @Path("/test")
+ public static class Resource {
+
+ @POST
+ @Consumes("application/json")
+ @Produces("application/json")
+ public Obj post(Obj entity) {
+ entity.setValue("bar");
+ return entity;
+ }
+
+ @GET
+ @Consumes("application/json")
+ public Obj get() {
+ Obj entity = new Obj();
+ entity.setValue("get");
+ return entity;
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(Resource.class)
+ .register(JsonGsonFeature.class);
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.register(JsonGsonFeature.class);
+ }
+
+ @Test
+ public void get() {
+ Response response = target("/test").request().get();
+ assertEquals(200, response.getStatus());
+ Obj obj = response.readEntity(Obj.class);
+ assertEquals("get", obj.getValue());
+ }
+
+ @Test
+ public void post() {
+ Obj obj = new Obj();
+ obj.setValue("foo");
+ Response response = target("/test").request().post(Entity.json(obj));
+ assertEquals(200, response.getStatus());
+ obj = response.readEntity(Obj.class);
+ assertEquals("bar", obj.getValue());
+ }
+
+ public static class Obj {
+ private String value;
+
+ public String getValue() {
+ return value;
+ }
+ public void setValue(String value) {
+ this.value = value;
+ }
+ }
+}
From a79798c5bbefc5df6a0c2c17ba7ae86212a8b388 Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Tue, 26 Jul 2022 07:35:19 +0200
Subject: [PATCH 070/305] servlet version for spring6
Signed-off-by: Maxim Nesen
---
tests/integration/spring6/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/integration/spring6/pom.xml b/tests/integration/spring6/pom.xml
index e7df36c1d9b..6da46c52547 100644
--- a/tests/integration/spring6/pom.xml
+++ b/tests/integration/spring6/pom.xml
@@ -50,7 +50,7 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
+ ${servlet6.version}
provided
From 66ee8908cef853566a1e80cac4ef76a9f75116de Mon Sep 17 00:00:00 2001
From: Gaurav Gupta
Date: Mon, 1 Aug 2022 15:25:28 +0530
Subject: [PATCH 071/305] FISH-5723 Fixes WebappClassloader memory-leak issue
by removing JAXRSResources classes from cache on shutdown event (#5102)
* FISH-5723 Fixes WebappClassloader memory-leak issue by removing JAXRS Resources classes from cache on shutdown event
Signed-off-by: Gaurav Gupta
---
.../jersey/internal/util/collection/Cache.java | 13 ++++++++++++-
.../ext/cdi1x/internal/CdiComponentProvider.java | 8 +++++++-
...diComponentProviderClientRuntimeSpecifics.java | 9 ++++++++-
.../CdiComponentProviderRuntimeSpecifics.java | 5 ++++-
...diComponentProviderServerRuntimeSpecifics.java | 15 ++++++++++++++-
5 files changed, 45 insertions(+), 5 deletions(-)
diff --git a/core-common/src/main/java/org/glassfish/jersey/internal/util/collection/Cache.java b/core-common/src/main/java/org/glassfish/jersey/internal/util/collection/Cache.java
index 923552cbb4f..40d94abe266 100644
--- a/core-common/src/main/java/org/glassfish/jersey/internal/util/collection/Cache.java
+++ b/core-common/src/main/java/org/glassfish/jersey/internal/util/collection/Cache.java
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2022 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,6 +17,7 @@
package org.glassfish.jersey.internal.util.collection;
+import java.util.Enumeration;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutionException;
@@ -107,6 +109,15 @@ public void clear() {
cache.clear();
}
+ /**
+ * Get the cache keys
+ *
+ * @return
+ */
+ public Enumeration keys() {
+ return cache.keys();
+ }
+
/**
* Returns true if the key has already been cached.
*
diff --git a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
index 4d0eed33cfb..498f041f8de 100644
--- a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
+++ b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
- * Copyright (c) 2018 Payara Foundation and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2022 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -66,6 +66,7 @@
import jakarta.enterprise.inject.spi.Bean;
import jakarta.enterprise.inject.spi.BeanManager;
import jakarta.enterprise.inject.spi.BeforeBeanDiscovery;
+import jakarta.enterprise.inject.spi.BeforeShutdown;
import jakarta.enterprise.inject.spi.Extension;
import jakarta.enterprise.inject.spi.InjectionPoint;
import jakarta.enterprise.inject.spi.InjectionTarget;
@@ -960,6 +961,11 @@ private void beforeBeanDiscovery(@Observes final BeforeBeanDiscovery beforeBeanD
);
}
+ @SuppressWarnings("unused")
+ private void beforeShutDown(@Observes final BeforeShutdown beforeShutdown, final BeanManager beanManager) {
+ runtimeSpecifics.clearJaxRsResource(Thread.currentThread().getContextClassLoader());
+ }
+
/**
* Add a predicate to test HK2 dependency to create a CDI bridge bean to HK2 for it.
* @param predicate to test whether given class is a HK2 dependency.
diff --git a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderClientRuntimeSpecifics.java b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderClientRuntimeSpecifics.java
index bad8dcae6e5..a6eee5cf200 100644
--- a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderClientRuntimeSpecifics.java
+++ b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderClientRuntimeSpecifics.java
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2022 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,6 +21,7 @@
import jakarta.enterprise.inject.spi.AnnotatedType;
import jakarta.ws.rs.core.Context;
import java.lang.annotation.Annotation;
+import java.util.Enumeration;
import java.util.HashSet;
import java.util.Set;
@@ -59,4 +61,9 @@ public boolean isAcceptableResource(Class> resource) {
public boolean isJaxRsResource(Class> resource) {
return false;
}
+
+ @Override
+ public void clearJaxRsResource(ClassLoader loader) {
+ }
+
}
diff --git a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderRuntimeSpecifics.java b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderRuntimeSpecifics.java
index 9ca5ce49faf..359309f3522 100644
--- a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderRuntimeSpecifics.java
+++ b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderRuntimeSpecifics.java
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2022 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,4 +35,6 @@ interface CdiComponentProviderRuntimeSpecifics {
boolean isAcceptableResource(Class> resource);
boolean isJaxRsResource(Class> resource);
+
+ void clearJaxRsResource(ClassLoader loader);
}
diff --git a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderServerRuntimeSpecifics.java b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderServerRuntimeSpecifics.java
index a677436281a..826fdc21f9a 100644
--- a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderServerRuntimeSpecifics.java
+++ b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderServerRuntimeSpecifics.java
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2022 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -48,6 +49,7 @@
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
+import java.util.Enumeration;
/**
* Server side runtime CDI ComponentProvider specific implementation.
@@ -225,6 +227,17 @@ public boolean isJaxRsResource(Class> resource) {
return jaxRsResourceCache.apply(resource);
}
+ @Override
+ public void clearJaxRsResource(ClassLoader loader) {
+ Enumeration> keys = jaxRsResourceCache.keys();
+ while (keys.hasMoreElements()) {
+ Class> key = keys.nextElement();
+ if (key.getClassLoader() == loader) {
+ jaxRsResourceCache.remove(key);
+ }
+ }
+ }
+
@Override
public boolean containsJaxRsParameterizedCtor(final AnnotatedType annotatedType) {
return CdiComponentProvider
From 8cf7cab8e3c44ab02a758790eb9a7d37f106d8d8 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Thu, 21 Jul 2022 17:54:29 +0200
Subject: [PATCH 072/305] Support CompletionStage
Signed-off-by: jansupol
---
.../server/model/ResourceMethodInvoker.java | 11 ++++++----
tests/e2e-server/pom.xml | 5 +++++
.../tests/e2e/server/CompletionStageTest.java | 22 +++++++++++++++++--
3 files changed, 32 insertions(+), 6 deletions(-)
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/model/ResourceMethodInvoker.java b/core-server/src/main/java/org/glassfish/jersey/server/model/ResourceMethodInvoker.java
index 03729407a40..52d812fdd40 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/model/ResourceMethodInvoker.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/model/ResourceMethodInvoker.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -85,6 +85,7 @@ public class ResourceMethodInvoker implements Endpoint, ResourceInfo {
private final Type invocableResponseType;
private final boolean canUseInvocableResponseType;
private final boolean isCompletionStageResponseType;
+ private final boolean isCompletionStageResponseResponseType; // CompletionStage
private final Type completionStageResponseType;
private final ResourceMethodDispatcher dispatcher;
private final Method resourceMethod;
@@ -313,6 +314,8 @@ protected void configure() {
&& CompletionStage.class.isAssignableFrom((Class>) ((ParameterizedType) invocableResponseType).getRawType());
this.completionStageResponseType =
isCompletionStageResponseType ? ((ParameterizedType) invocableResponseType).getActualTypeArguments()[0] : null;
+ this.isCompletionStageResponseResponseType = Class.class.isInstance(completionStageResponseType)
+ && Response.class.isAssignableFrom((Class>) completionStageResponseType);
}
private void addNameBoundProviders(
@@ -465,7 +468,7 @@ private Response invoke(final RequestProcessingContext context, final Object res
if (canUseInvocableResponseType
&& response.hasEntity()
&& !(response.getEntityType() instanceof ParameterizedType)) {
- response.setEntityType(unwrapInvocableResponseType(context.request()));
+ response.setEntityType(unwrapInvocableResponseType(context.request(), response.getEntityType()));
}
return response;
@@ -484,10 +487,10 @@ private Response invoke(final RequestProcessingContext context, final Object res
return jaxrsResponse;
}
- private Type unwrapInvocableResponseType(ContainerRequest request) {
+ private Type unwrapInvocableResponseType(ContainerRequest request, Type entityType) {
if (isCompletionStageResponseType
&& request.resolveProperty(ServerProperties.UNWRAP_COMPLETION_STAGE_IN_WRITER_ENABLE, Boolean.FALSE)) {
- return completionStageResponseType;
+ return isCompletionStageResponseResponseType ? entityType : completionStageResponseType;
}
return invocableResponseType;
}
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index 2650a3d27ec..18cd6410925 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -100,6 +100,11 @@
jersey-media-json-processing
test
+
+ org.glassfish.jersey.media
+ jersey-media-json-binding
+ test
+
org.glassfish.jersey.media
jersey-media-json-gson
diff --git a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/CompletionStageTest.java b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/CompletionStageTest.java
index cf7ade3d684..fb4eafcb689 100644
--- a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/CompletionStageTest.java
+++ b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/CompletionStageTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,6 +18,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.ServerProperties;
+import org.glassfish.jersey.server.ServerRuntime;
import org.glassfish.jersey.test.JerseyTest;
import org.junit.Test;
@@ -64,7 +65,8 @@ public class CompletionStageTest extends JerseyTest {
@Override
protected Application configure() {
- return new ResourceConfig(CompletionStageResource.class, DataBeanWriter.class);
+ return new ResourceConfig(CompletionStageResource.class, DataBeanWriter.class)
+ .property(ServerProperties.UNWRAP_COMPLETION_STAGE_IN_WRITER_ENABLE, Boolean.TRUE);
}
@Test
@@ -104,6 +106,14 @@ public void testGetCompletedAsync() {
assertThat(response.readEntity(String.class), is(ENTITY));
}
+ @Test
+ public void testGetCompletedAsyncResponse() {
+ Response response = target("cs/completedAsyncResponse").request().get();
+
+ assertThat(response.getStatus(), is(200));
+ assertThat(response.readEntity(List.class).get(0), is(ENTITY));
+ }
+
@Test
public void testGetException400Async() {
Response response = target("cs/exception400Async").request().get();
@@ -213,6 +223,14 @@ public CompletionStage getCompletedAsync() {
return cs;
}
+ @GET
+ @Path("/completedAsyncResponse")
+ public CompletionStage getCompletedAsyncResponse() {
+ CompletableFuture cs = new CompletableFuture<>();
+ delaySubmit(() -> cs.complete(Response.ok().entity(Collections.singletonList(ENTITY)).build()));
+ return cs;
+ }
+
@GET
@Path("/exception400Async")
public CompletionStage getException400Async() {
From 1e6c6929be44a8a52ff0c2c14fec42cbf2522e6d Mon Sep 17 00:00:00 2001
From: David Joaquim
Date: Fri, 29 Jul 2022 15:15:36 +0200
Subject: [PATCH 073/305] Make sure the parent 'responseFuture'
CompletableFuture is completed. This ensures that the jettyRequest.abort()
operation is actually performed.
Current situation prevent this code to be ever called as only the chained CompletableFuture is completed.
---
.../org/glassfish/jersey/jetty/connector/JettyConnector.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java
index 1456d4b5bdc..89a0c05eb78 100644
--- a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java
+++ b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java
@@ -392,8 +392,8 @@ public Future> apply(final ClientRequest jerseyRequest, final AsyncConnectorCa
final AtomicBoolean callbackInvoked = new AtomicBoolean(false);
final Throwable failure;
try {
- final CompletableFuture responseFuture =
- new CompletableFuture().whenComplete(
+ final CompletableFuture responseFuture = new CompletableFuture();
+ responseFuture.whenComplete(
(clientResponse, throwable) -> {
if (throwable != null && throwable instanceof CancellationException) {
// take care of future cancellation
From da45922dca0f151e2253b1124f5fc9f751904550 Mon Sep 17 00:00:00 2001
From: Davide Menegatti
Date: Tue, 2 Aug 2022 07:35:06 +0200
Subject: [PATCH 074/305] [grizzly] Expose `start` argument while providing
`parentContext` (#5101)
---
.../httpserver/GrizzlyHttpServerFactory.java | 48 ++++++++++++++++++-
1 file changed, 47 insertions(+), 1 deletion(-)
diff --git a/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerFactory.java b/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerFactory.java
index ee2a58324bf..4164e3a40e1 100644
--- a/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerFactory.java
+++ b/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpServerFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -191,6 +191,31 @@ public static HttpServer createHttpServer(final URI uri,
true);
}
+ /**
+ * Create new {@link HttpServer} instance.
+ *
+ * @param uri uri on which the {@link ApplicationHandler} will be deployed. Only first path
+ * segment will be used as context path, the rest will be ignored.
+ * @param config web application configuration.
+ * @param secure used for call {@link NetworkListener#setSecure(boolean)}.
+ * @param sslEngineConfigurator Ssl settings to be passed to {@link NetworkListener#setSSLEngineConfig}.
+ * @param parentContext DI provider specific context with application's registered bindings.
+ * @param start if set to false, server will not get started, this allows end users to set
+ * additional properties on the underlying listener.
+ * @return newly created {@code HttpServer}.
+ * @throws ProcessingException in case of any failure when creating a new {@code HttpServer} instance.
+ * @see GrizzlyHttpContainer
+ * @since 2.37
+ */
+ public static HttpServer createHttpServer(final URI uri,
+ final ResourceConfig config,
+ final boolean secure,
+ final SSLEngineConfigurator sslEngineConfigurator,
+ final Object parentContext,
+ final boolean start) {
+ return createHttpServer(uri, new GrizzlyHttpContainer(config, parentContext), secure, sslEngineConfigurator, start);
+ }
+
/**
* Create new {@link HttpServer} instance.
*
@@ -209,6 +234,27 @@ public static HttpServer createHttpServer(final URI uri,
return createHttpServer(uri, new GrizzlyHttpContainer(config, parentContext), false, null, true);
}
+ /**
+ * Create new {@link HttpServer} instance.
+ *
+ * @param uri uri on which the {@link ApplicationHandler} will be deployed. Only first path
+ * segment will be used as context path, the rest will be ignored.
+ * @param config web application configuration.
+ * @param parentContext DI provider specific context with application's registered bindings.
+ * @param start if set to false, server will not get started, this allows end users to set
+ * additional properties on the underlying listener.
+ * @return newly created {@code HttpServer}.
+ * @throws ProcessingException in case of any failure when creating a new {@code HttpServer} instance.
+ * @see GrizzlyHttpContainer
+ * @since 2.37
+ */
+ public static HttpServer createHttpServer(final URI uri,
+ final ResourceConfig config,
+ final Object parentContext,
+ final boolean start) {
+ return createHttpServer(uri, new GrizzlyHttpContainer(config, parentContext), false, null, start);
+ }
+
/**
* Create new {@link HttpServer} instance.
*
From 79f453b0ea7a1d43da070f71d04d57bf46519f7d Mon Sep 17 00:00:00 2001
From: jersey-bot
Date: Thu, 4 Aug 2022 05:57:33 +0000
Subject: [PATCH 075/305] 3.0.6
---
archetypes/jersey-example-java8-webapp/pom.xml | 2 +-
archetypes/jersey-heroku-webapp/pom.xml | 2 +-
archetypes/jersey-quickstart-grizzly2/pom.xml | 2 +-
archetypes/jersey-quickstart-webapp/pom.xml | 2 +-
archetypes/pom.xml | 2 +-
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 2 +-
bundles/jaxrs-ri/pom.xml | 2 +-
bundles/pom.xml | 2 +-
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 2 +-
connectors/helidon-connector/pom.xml | 2 +-
connectors/jdk-connector/pom.xml | 2 +-
connectors/jetty-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 2 +-
containers/glassfish/pom.xml | 2 +-
containers/grizzly2-http/pom.xml | 2 +-
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-http/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
containers/netty-http/pom.xml | 2 +-
containers/pom.xml | 2 +-
containers/simple-http/pom.xml | 2 +-
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 2 +-
examples/assemblies/pom.xml | 2 +-
examples/bookmark-em/pom.xml | 2 +-
examples/bookmark/pom.xml | 2 +-
examples/bookstore-webapp/pom.xml | 2 +-
examples/cdi-webapp/pom.xml | 2 +-
examples/clipboard-programmatic/pom.xml | 2 +-
examples/clipboard/pom.xml | 2 +-
examples/declarative-linking/pom.xml | 2 +-
examples/entity-filtering-security/pom.xml | 2 +-
examples/entity-filtering-selectable/pom.xml | 2 +-
examples/entity-filtering/pom.xml | 2 +-
examples/exception-mapping/pom.xml | 2 +-
examples/extended-wadl-webapp/pom.xml | 2 +-
examples/freemarker-webapp/pom.xml | 2 +-
examples/groovy/pom.xml | 2 +-
examples/helloworld-benchmark/pom.xml | 2 +-
examples/helloworld-cdi2-se/pom.xml | 2 +-
examples/helloworld-netty/pom.xml | 2 +-
examples/helloworld-programmatic/pom.xml | 2 +-
examples/helloworld-pure-jax-rs/pom.xml | 2 +-
examples/helloworld-webapp/pom.xml | 2 +-
examples/helloworld-weld/pom.xml | 2 +-
examples/helloworld/pom.xml | 2 +-
examples/http-patch/pom.xml | 2 +-
examples/http-trace/pom.xml | 2 +-
examples/https-clientserver-grizzly/pom.xml | 2 +-
examples/https-server-glassfish/pom.xml | 2 +-
examples/java8-webapp/pom.xml | 2 +-
examples/jaxb/pom.xml | 2 +-
examples/jaxrs-types-injection/pom.xml | 2 +-
examples/jersey-ejb/pom.xml | 2 +-
examples/json-binding-webapp/pom.xml | 2 +-
examples/json-jackson/pom.xml | 2 +-
examples/json-jettison/pom.xml | 2 +-
examples/json-moxy/pom.xml | 2 +-
examples/json-processing-webapp/pom.xml | 2 +-
examples/json-with-padding/pom.xml | 2 +-
examples/managed-beans-webapp/pom.xml | 2 +-
examples/managed-client-simple-webapp/pom.xml | 2 +-
examples/managed-client-webapp/pom.xml | 2 +-
examples/managed-client/pom.xml | 2 +-
examples/multipart-webapp/pom.xml | 2 +-
examples/oauth-client-twitter/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 2 +-
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/functional-test/pom.xml | 2 +-
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/pom.xml | 2 +-
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 2 +-
examples/pom.xml | 2 +-
examples/reload/pom.xml | 2 +-
examples/rx-client-webapp/pom.xml | 2 +-
examples/server-async-managed/pom.xml | 2 +-
examples/server-async-standalone/client/pom.xml | 2 +-
examples/server-async-standalone/pom.xml | 2 +-
examples/server-async-standalone/webapp/pom.xml | 2 +-
examples/server-async/pom.xml | 2 +-
examples/server-sent-events-jaxrs/pom.xml | 2 +-
examples/server-sent-events-jersey/pom.xml | 2 +-
examples/servlet3-webapp/pom.xml | 2 +-
examples/simple-console/pom.xml | 2 +-
examples/sse-item-store-jaxrs-webapp/pom.xml | 2 +-
examples/sse-item-store-jersey-webapp/pom.xml | 2 +-
examples/sse-twitter-aggregator/pom.xml | 2 +-
examples/system-properties-example/pom.xml | 2 +-
examples/webapp-example-parent/pom.xml | 2 +-
examples/xml-moxy/pom.xml | 2 +-
ext/bean-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-transaction/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi1x/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 2 +-
ext/cdi/pom.xml | 2 +-
ext/entity-filtering/pom.xml | 2 +-
ext/metainf-services/pom.xml | 2 +-
ext/microprofile/mp-config/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/microprofile/pom.xml | 2 +-
ext/mvc-bean-validation/pom.xml | 2 +-
ext/mvc-freemarker/pom.xml | 2 +-
ext/mvc-jsp/pom.xml | 2 +-
ext/mvc-mustache/pom.xml | 2 +-
ext/mvc/pom.xml | 2 +-
ext/pom.xml | 2 +-
ext/proxy-client/pom.xml | 2 +-
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 2 +-
ext/rx/rx-client-rxjava2/pom.xml | 2 +-
ext/spring6/pom.xml | 2 +-
ext/wadl-doclet/pom.xml | 2 +-
incubator/cdi-inject-weld/pom.xml | 2 +-
incubator/declarative-linking/pom.xml | 2 +-
incubator/gae-integration/pom.xml | 2 +-
incubator/html-json/pom.xml | 2 +-
incubator/kryo/pom.xml | 2 +-
incubator/open-tracing/pom.xml | 2 +-
incubator/pom.xml | 2 +-
inject/cdi2-se/pom.xml | 2 +-
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 2 +-
media/jaxb/pom.xml | 2 +-
media/json-binding/pom.xml | 2 +-
media/json-gson/pom.xml | 2 +-
media/json-jackson/pom.xml | 2 +-
media/json-jettison/pom.xml | 2 +-
media/json-processing/pom.xml | 2 +-
media/moxy/pom.xml | 2 +-
media/multipart/pom.xml | 2 +-
media/pom.xml | 2 +-
media/sse/pom.xml | 2 +-
pom.xml | 2 +-
security/oauth1-client/pom.xml | 2 +-
security/oauth1-server/pom.xml | 2 +-
security/oauth1-signature/pom.xml | 2 +-
security/oauth2-client/pom.xml | 2 +-
security/pom.xml | 2 +-
test-framework/core/pom.xml | 2 +-
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 2 +-
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 2 +-
test-framework/providers/bundle/pom.xml | 2 +-
test-framework/providers/external/pom.xml | 2 +-
test-framework/providers/grizzly2/pom.xml | 2 +-
test-framework/providers/inmemory/pom.xml | 2 +-
test-framework/providers/jdk-http/pom.xml | 2 +-
test-framework/providers/jetty/pom.xml | 2 +-
test-framework/providers/netty/pom.xml | 2 +-
test-framework/providers/pom.xml | 2 +-
test-framework/providers/simple/pom.xml | 2 +-
test-framework/util/pom.xml | 2 +-
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 2 +-
tests/e2e-inject/pom.xml | 2 +-
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 2 +-
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 2 +-
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 2 +-
.../integration/cdi-integration/cdi-client-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-client/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 2 +-
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-log-check/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-manually-bound/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multipart-webapp/pom.xml | 2 +-
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-singleton/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 2 +-
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 2 +-
.../pom.xml | 2 +-
.../cdi-integration/cdi-with-jersey-injection-webapp/pom.xml | 2 +-
.../cdi-integration/context-inject-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/pom.xml | 2 +-
tests/integration/client-connector-provider/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule/pom.xml | 2 +-
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 2 +-
tests/integration/j-376/pom.xml | 2 +-
tests/integration/j-441/ear/pom.xml | 2 +-
tests/integration/j-441/pom.xml | 2 +-
tests/integration/j-441/war1/pom.xml | 2 +-
tests/integration/j-441/war2/pom.xml | 2 +-
tests/integration/j-59/ear/pom.xml | 2 +-
tests/integration/j-59/lib/pom.xml | 2 +-
tests/integration/j-59/pom.xml | 2 +-
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 2 +-
tests/integration/jersey-1107/pom.xml | 2 +-
tests/integration/jersey-1223/pom.xml | 2 +-
tests/integration/jersey-1604/pom.xml | 2 +-
tests/integration/jersey-1667/pom.xml | 2 +-
tests/integration/jersey-1883/pom.xml | 2 +-
tests/integration/jersey-1928/pom.xml | 2 +-
tests/integration/jersey-1960/pom.xml | 2 +-
tests/integration/jersey-1964/pom.xml | 2 +-
tests/integration/jersey-2031/pom.xml | 2 +-
tests/integration/jersey-2136/pom.xml | 2 +-
tests/integration/jersey-2137/pom.xml | 2 +-
tests/integration/jersey-2154/pom.xml | 2 +-
tests/integration/jersey-2160/pom.xml | 2 +-
tests/integration/jersey-2164/pom.xml | 2 +-
tests/integration/jersey-2167/pom.xml | 2 +-
tests/integration/jersey-2176/pom.xml | 2 +-
tests/integration/jersey-2184/pom.xml | 2 +-
tests/integration/jersey-2255/pom.xml | 2 +-
tests/integration/jersey-2322/pom.xml | 2 +-
tests/integration/jersey-2335/pom.xml | 2 +-
tests/integration/jersey-2421/pom.xml | 2 +-
tests/integration/jersey-2551/pom.xml | 2 +-
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 2 +-
tests/integration/jersey-2654/pom.xml | 2 +-
tests/integration/jersey-2673/pom.xml | 2 +-
tests/integration/jersey-2689/pom.xml | 2 +-
tests/integration/jersey-2704/pom.xml | 2 +-
tests/integration/jersey-2776/pom.xml | 2 +-
tests/integration/jersey-2794/pom.xml | 2 +-
tests/integration/jersey-2846/pom.xml | 2 +-
tests/integration/jersey-2878/pom.xml | 2 +-
tests/integration/jersey-2892/pom.xml | 2 +-
tests/integration/jersey-3662/pom.xml | 2 +-
tests/integration/jersey-3670/pom.xml | 2 +-
tests/integration/jersey-3796/pom.xml | 2 +-
tests/integration/jersey-3992/pom.xml | 2 +-
tests/integration/jersey-4003/pom.xml | 2 +-
tests/integration/jersey-4099/pom.xml | 2 +-
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 2 +-
tests/integration/jersey-4542/pom.xml | 2 +-
tests/integration/jersey-4697/pom.xml | 2 +-
tests/integration/jersey-4722/pom.xml | 2 +-
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-5087/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 2 +-
tests/integration/microprofile/config/helidon/pom.xml | 2 +-
tests/integration/microprofile/config/pom.xml | 2 +-
tests/integration/microprofile/config/webapp/pom.xml | 2 +-
tests/integration/microprofile/pom.xml | 2 +-
tests/integration/microprofile/rest-client-tck/pom.xml | 2 +-
tests/integration/microprofile/rest-client/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 2 +-
tests/integration/reactive-streams/sse/pom.xml | 2 +-
tests/integration/security-digest/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 2 +-
tests/integration/servlet-2.5-filter/pom.xml | 2 +-
tests/integration/servlet-2.5-inflector-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-2/pom.xml | 2 +-
tests/integration/servlet-2.5-init-3/pom.xml | 2 +-
tests/integration/servlet-2.5-init-4/pom.xml | 2 +-
tests/integration/servlet-2.5-init-5/pom.xml | 2 +-
tests/integration/servlet-2.5-init-6/pom.xml | 2 +-
tests/integration/servlet-2.5-init-7/pom.xml | 2 +-
tests/integration/servlet-2.5-init-8/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-1/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-2/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-3/pom.xml | 2 +-
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 2 +-
tests/integration/servlet-3-chunked-io/pom.xml | 2 +-
tests/integration/servlet-3-filter/pom.xml | 2 +-
tests/integration/servlet-3-gf-async/pom.xml | 2 +-
tests/integration/servlet-3-inflector-1/pom.xml | 2 +-
tests/integration/servlet-3-init-1/pom.xml | 2 +-
tests/integration/servlet-3-init-2/pom.xml | 2 +-
tests/integration/servlet-3-init-3/pom.xml | 2 +-
tests/integration/servlet-3-init-4/pom.xml | 2 +-
tests/integration/servlet-3-init-5/pom.xml | 2 +-
tests/integration/servlet-3-init-6/pom.xml | 2 +-
tests/integration/servlet-3-init-7/pom.xml | 2 +-
tests/integration/servlet-3-init-8/pom.xml | 2 +-
tests/integration/servlet-3-init-9/pom.xml | 2 +-
tests/integration/servlet-3-init-provider/pom.xml | 2 +-
tests/integration/servlet-3-params/pom.xml | 2 +-
tests/integration/servlet-3-sse-1/pom.xml | 2 +-
tests/integration/servlet-4.0-mvc-1/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 2 +-
tests/integration/sonar-test/pom.xml | 2 +-
tests/integration/spring6/pom.xml | 2 +-
tests/integration/tracing-support/pom.xml | 2 +-
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 2 +-
tests/mem-leaks/redeployment/pom.xml | 2 +-
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 4 ++--
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment/redeployment-threadlocals-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 2 +-
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 2 +-
tests/osgi/functional/pom.xml | 2 +-
tests/osgi/pom.xml | 2 +-
tests/performance/benchmarks/pom.xml | 2 +-
tests/performance/pom.xml | 2 +-
tests/performance/runners/jersey-grizzly-runner/pom.xml | 2 +-
tests/performance/runners/pom.xml | 2 +-
tests/performance/test-cases/assemblies/pom.xml | 2 +-
tests/performance/test-cases/filter-dynamic/pom.xml | 2 +-
tests/performance/test-cases/filter-global/pom.xml | 2 +-
tests/performance/test-cases/filter-name/pom.xml | 2 +-
tests/performance/test-cases/interceptor-dynamic/pom.xml | 2 +-
tests/performance/test-cases/interceptor-global/pom.xml | 2 +-
tests/performance/test-cases/interceptor-name/pom.xml | 2 +-
tests/performance/test-cases/mbw-custom-provider/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-jackson/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-moxy/pom.xml | 2 +-
tests/performance/test-cases/mbw-kryo/pom.xml | 2 +-
tests/performance/test-cases/mbw-text-plain/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 2 +-
tests/performance/test-cases/param-srl/pom.xml | 2 +-
tests/performance/test-cases/pom.xml | 2 +-
tests/performance/test-cases/proxy-injection/pom.xml | 2 +-
tests/performance/tools/pom.xml | 2 +-
tests/pom.xml | 2 +-
tests/stress/pom.xml | 2 +-
362 files changed, 363 insertions(+), 363 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index a31bd683b26..7b08a5d797e 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-example-java8-webapp
diff --git a/archetypes/jersey-heroku-webapp/pom.xml b/archetypes/jersey-heroku-webapp/pom.xml
index e33c51f5b7f..d2465cf200c 100644
--- a/archetypes/jersey-heroku-webapp/pom.xml
+++ b/archetypes/jersey-heroku-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0-SNAPSHOT
+ 3.0.6
maven-archetype
diff --git a/archetypes/jersey-quickstart-grizzly2/pom.xml b/archetypes/jersey-quickstart-grizzly2/pom.xml
index 32d4a9a8695..a01b5573809 100644
--- a/archetypes/jersey-quickstart-grizzly2/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-quickstart-grizzly2
maven-archetype
diff --git a/archetypes/jersey-quickstart-webapp/pom.xml b/archetypes/jersey-quickstart-webapp/pom.xml
index 5b395540d44..0835b356089 100644
--- a/archetypes/jersey-quickstart-webapp/pom.xml
+++ b/archetypes/jersey-quickstart-webapp/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
maven-archetype
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index baba57c9962..0dc7eb8a366 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.archetypes
diff --git a/bom/pom.xml b/bom/pom.xml
index 889fc20a45b..b7c6c237466 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,7 +30,7 @@
org.glassfish.jersey
jersey-bom
- 3.1.0-SNAPSHOT
+ 3.0.6
pom
jersey-bom
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index 7e3c65c302e..48ee3729777 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.1.0-SNAPSHOT
+ 3.0.6
apidocs
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index a6b8be3ce89..115fbb8e6f1 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.bundles
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-examples
diff --git a/bundles/jaxrs-ri/pom.xml b/bundles/jaxrs-ri/pom.xml
index e5a5b3c507d..afbfea2d356 100644
--- a/bundles/jaxrs-ri/pom.xml
+++ b/bundles/jaxrs-ri/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jaxrs-ri
diff --git a/bundles/pom.xml b/bundles/pom.xml
index b993bc606de..0e741448048 100644
--- a/bundles/pom.xml
+++ b/bundles/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.bundles
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index 258ef18f321..00037a9e5e6 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-apache-connector
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
index 9d08082d249..33acac525d4 100644
--- a/connectors/apache5-connector/pom.xml
+++ b/connectors/apache5-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-apache5-connector
diff --git a/connectors/grizzly-connector/pom.xml b/connectors/grizzly-connector/pom.xml
index ba96bfdfcf5..4b831424d18 100644
--- a/connectors/grizzly-connector/pom.xml
+++ b/connectors/grizzly-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-grizzly-connector
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index 2da4ae3b9b9..6d3bd707933 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.connectors
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/connectors/jdk-connector/pom.xml b/connectors/jdk-connector/pom.xml
index da0ccd9ce2d..af84b3c324a 100644
--- a/connectors/jdk-connector/pom.xml
+++ b/connectors/jdk-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-jdk-connector
diff --git a/connectors/jetty-connector/pom.xml b/connectors/jetty-connector/pom.xml
index 41fb47c959b..2d8f155c895 100644
--- a/connectors/jetty-connector/pom.xml
+++ b/connectors/jetty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-jetty-connector
diff --git a/connectors/netty-connector/pom.xml b/connectors/netty-connector/pom.xml
index b7d5da77914..bc1c2fc52ed 100644
--- a/connectors/netty-connector/pom.xml
+++ b/connectors/netty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-netty-connector
diff --git a/connectors/pom.xml b/connectors/pom.xml
index 188cda3efca..c28a03a40e9 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.connectors
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index ecfd83b7d79..37a48bba216 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers.glassfish
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-gf-ejb
diff --git a/containers/glassfish/pom.xml b/containers/glassfish/pom.xml
index 4bf9302e8b6..93330ce6f50 100644
--- a/containers/glassfish/pom.xml
+++ b/containers/glassfish/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.containers.glassfish
diff --git a/containers/grizzly2-http/pom.xml b/containers/grizzly2-http/pom.xml
index 5c628c8f4ed..5124f5f6bca 100644
--- a/containers/grizzly2-http/pom.xml
+++ b/containers/grizzly2-http/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-container-grizzly2-http
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index dbe618fa3d9..61aeca2beb5 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-container-grizzly2-servlet
diff --git a/containers/jdk-http/pom.xml b/containers/jdk-http/pom.xml
index 8a82c15ff6d..42c50538576 100644
--- a/containers/jdk-http/pom.xml
+++ b/containers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-container-jdk-http
diff --git a/containers/jersey-servlet-core/pom.xml b/containers/jersey-servlet-core/pom.xml
index 2348e36b13c..1b34dfdef8f 100644
--- a/containers/jersey-servlet-core/pom.xml
+++ b/containers/jersey-servlet-core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-container-servlet-core
diff --git a/containers/jersey-servlet/pom.xml b/containers/jersey-servlet/pom.xml
index 578e1e15761..5625be021ec 100644
--- a/containers/jersey-servlet/pom.xml
+++ b/containers/jersey-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-container-servlet
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index e601b0bbaa5..23b83db84b5 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.containers
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-container-jetty-http
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index f14891f8758..59047abf6fe 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-container-jetty-servlet
diff --git a/containers/netty-http/pom.xml b/containers/netty-http/pom.xml
index 77adb41a076..42fce178ec0 100644
--- a/containers/netty-http/pom.xml
+++ b/containers/netty-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-container-netty-http
diff --git a/containers/pom.xml b/containers/pom.xml
index 1c074501ff6..a72e67b6e4a 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.containers
diff --git a/containers/simple-http/pom.xml b/containers/simple-http/pom.xml
index 3aa97bb6441..48c6a2ee117 100644
--- a/containers/simple-http/pom.xml
+++ b/containers/simple-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-container-simple-http
diff --git a/core-client/pom.xml b/core-client/pom.xml
index 2b6a03a0312..de848a9478f 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.core
diff --git a/core-common/pom.xml b/core-common/pom.xml
index 8b5bf6d6db1..8aa59a90301 100644
--- a/core-common/pom.xml
+++ b/core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.core
diff --git a/core-server/pom.xml b/core-server/pom.xml
index b72ee2fc737..fc9e5679327 100644
--- a/core-server/pom.xml
+++ b/core-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.core
diff --git a/docs/pom.xml b/docs/pom.xml
index 85973ee587a..7c6e3db227c 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-documentation
pom
diff --git a/examples/assemblies/pom.xml b/examples/assemblies/pom.xml
index 79586a98272..72e7cdee38f 100644
--- a/examples/assemblies/pom.xml
+++ b/examples/assemblies/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
assemblies
diff --git a/examples/bookmark-em/pom.xml b/examples/bookmark-em/pom.xml
index f37da947292..314a5266083 100644
--- a/examples/bookmark-em/pom.xml
+++ b/examples/bookmark-em/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
bookmark-em
diff --git a/examples/bookmark/pom.xml b/examples/bookmark/pom.xml
index 1e2d0e6347e..ac896b768bc 100644
--- a/examples/bookmark/pom.xml
+++ b/examples/bookmark/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
bookmark
diff --git a/examples/bookstore-webapp/pom.xml b/examples/bookstore-webapp/pom.xml
index 101a8dc34a1..9bc27de7c40 100644
--- a/examples/bookstore-webapp/pom.xml
+++ b/examples/bookstore-webapp/pom.xml
@@ -35,7 +35,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
bookstore-webapp
diff --git a/examples/cdi-webapp/pom.xml b/examples/cdi-webapp/pom.xml
index 3b60b6c3b6f..803704fc4f2 100644
--- a/examples/cdi-webapp/pom.xml
+++ b/examples/cdi-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-webapp
diff --git a/examples/clipboard-programmatic/pom.xml b/examples/clipboard-programmatic/pom.xml
index 88a81c0beaf..757a61d8cbb 100644
--- a/examples/clipboard-programmatic/pom.xml
+++ b/examples/clipboard-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
clipboard-programmatic
diff --git a/examples/clipboard/pom.xml b/examples/clipboard/pom.xml
index 3e7b73f7bc0..1911d95e216 100644
--- a/examples/clipboard/pom.xml
+++ b/examples/clipboard/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
clipboard
diff --git a/examples/declarative-linking/pom.xml b/examples/declarative-linking/pom.xml
index 1bf96de3b54..333fc4ec413 100644
--- a/examples/declarative-linking/pom.xml
+++ b/examples/declarative-linking/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
declarative-linking
diff --git a/examples/entity-filtering-security/pom.xml b/examples/entity-filtering-security/pom.xml
index 0364ed79621..fa194f8a52e 100644
--- a/examples/entity-filtering-security/pom.xml
+++ b/examples/entity-filtering-security/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
entity-filtering-security
diff --git a/examples/entity-filtering-selectable/pom.xml b/examples/entity-filtering-selectable/pom.xml
index 06ab0368e4c..9ad95dbe259 100644
--- a/examples/entity-filtering-selectable/pom.xml
+++ b/examples/entity-filtering-selectable/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
entity-filtering-selectable
diff --git a/examples/entity-filtering/pom.xml b/examples/entity-filtering/pom.xml
index 0174dc93c37..b2ee846faf3 100644
--- a/examples/entity-filtering/pom.xml
+++ b/examples/entity-filtering/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
entity-filtering
diff --git a/examples/exception-mapping/pom.xml b/examples/exception-mapping/pom.xml
index a7f3486b545..36f1f9e145b 100644
--- a/examples/exception-mapping/pom.xml
+++ b/examples/exception-mapping/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
exception-mapping
diff --git a/examples/extended-wadl-webapp/pom.xml b/examples/extended-wadl-webapp/pom.xml
index 1aefde365a7..4f33f7e4d33 100644
--- a/examples/extended-wadl-webapp/pom.xml
+++ b/examples/extended-wadl-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
extended-wadl-webapp
diff --git a/examples/freemarker-webapp/pom.xml b/examples/freemarker-webapp/pom.xml
index fb06cc05386..5a3e5b9becf 100644
--- a/examples/freemarker-webapp/pom.xml
+++ b/examples/freemarker-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
freemarker-webapp
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index 49a7051320d..bccd416fb9e 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
groovy
jar
diff --git a/examples/helloworld-benchmark/pom.xml b/examples/helloworld-benchmark/pom.xml
index f8a99268e1c..fe01e02dfa3 100644
--- a/examples/helloworld-benchmark/pom.xml
+++ b/examples/helloworld-benchmark/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
helloworld-benchmark
diff --git a/examples/helloworld-cdi2-se/pom.xml b/examples/helloworld-cdi2-se/pom.xml
index bed881a9908..c59bf441892 100644
--- a/examples/helloworld-cdi2-se/pom.xml
+++ b/examples/helloworld-cdi2-se/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
helloworld-cdi2-se
diff --git a/examples/helloworld-netty/pom.xml b/examples/helloworld-netty/pom.xml
index 8c2475c8769..0dff5f45536 100644
--- a/examples/helloworld-netty/pom.xml
+++ b/examples/helloworld-netty/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
helloworld-netty
diff --git a/examples/helloworld-programmatic/pom.xml b/examples/helloworld-programmatic/pom.xml
index 96ffc6fbbf4..48e53af9623 100644
--- a/examples/helloworld-programmatic/pom.xml
+++ b/examples/helloworld-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
helloworld-programmatic
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index 7e4bcf87936..d847e01235e 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
helloworld-pure-jax-rs
diff --git a/examples/helloworld-webapp/pom.xml b/examples/helloworld-webapp/pom.xml
index 17d288b43c3..77be8411390 100644
--- a/examples/helloworld-webapp/pom.xml
+++ b/examples/helloworld-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
helloworld-webapp
diff --git a/examples/helloworld-weld/pom.xml b/examples/helloworld-weld/pom.xml
index f26f9e5e686..5163a97f414 100644
--- a/examples/helloworld-weld/pom.xml
+++ b/examples/helloworld-weld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
helloworld-weld
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index 1dce28b37b2..e12ab7919f0 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
helloworld
diff --git a/examples/http-patch/pom.xml b/examples/http-patch/pom.xml
index 5595f4b50e2..8168ae67d82 100644
--- a/examples/http-patch/pom.xml
+++ b/examples/http-patch/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
http-patch
diff --git a/examples/http-trace/pom.xml b/examples/http-trace/pom.xml
index 0a035c6082c..5e697ee70ad 100644
--- a/examples/http-trace/pom.xml
+++ b/examples/http-trace/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
http-trace
diff --git a/examples/https-clientserver-grizzly/pom.xml b/examples/https-clientserver-grizzly/pom.xml
index ca1b4d6fbe9..c9d6992bb67 100644
--- a/examples/https-clientserver-grizzly/pom.xml
+++ b/examples/https-clientserver-grizzly/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
https-clientserver-grizzly
diff --git a/examples/https-server-glassfish/pom.xml b/examples/https-server-glassfish/pom.xml
index d261beecb25..6c5f90fd0f9 100644
--- a/examples/https-server-glassfish/pom.xml
+++ b/examples/https-server-glassfish/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
https-server-glassfish
diff --git a/examples/java8-webapp/pom.xml b/examples/java8-webapp/pom.xml
index 6c45a33885c..96e1a5f389d 100644
--- a/examples/java8-webapp/pom.xml
+++ b/examples/java8-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
java8-webapp
diff --git a/examples/jaxb/pom.xml b/examples/jaxb/pom.xml
index 067bf562d83..28191b12042 100644
--- a/examples/jaxb/pom.xml
+++ b/examples/jaxb/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jaxb
diff --git a/examples/jaxrs-types-injection/pom.xml b/examples/jaxrs-types-injection/pom.xml
index b894ff6a5a7..71d4c6d1bed 100644
--- a/examples/jaxrs-types-injection/pom.xml
+++ b/examples/jaxrs-types-injection/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jaxrs-types-injection
diff --git a/examples/jersey-ejb/pom.xml b/examples/jersey-ejb/pom.xml
index d503a987e96..3e5107eb2b8 100644
--- a/examples/jersey-ejb/pom.xml
+++ b/examples/jersey-ejb/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-ejb
diff --git a/examples/json-binding-webapp/pom.xml b/examples/json-binding-webapp/pom.xml
index 5a24b6c8280..fd0966ef17e 100644
--- a/examples/json-binding-webapp/pom.xml
+++ b/examples/json-binding-webapp/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
json-binding-webapp
diff --git a/examples/json-jackson/pom.xml b/examples/json-jackson/pom.xml
index 8e497aabe26..d82a49ed613 100644
--- a/examples/json-jackson/pom.xml
+++ b/examples/json-jackson/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
json-jackson
diff --git a/examples/json-jettison/pom.xml b/examples/json-jettison/pom.xml
index 59a7ce9838a..978098cc4e1 100644
--- a/examples/json-jettison/pom.xml
+++ b/examples/json-jettison/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
json-jettison
diff --git a/examples/json-moxy/pom.xml b/examples/json-moxy/pom.xml
index d0aabc6ef59..b26f151cc0b 100644
--- a/examples/json-moxy/pom.xml
+++ b/examples/json-moxy/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
json-moxy
diff --git a/examples/json-processing-webapp/pom.xml b/examples/json-processing-webapp/pom.xml
index 053323f76fa..4499f18a8e9 100644
--- a/examples/json-processing-webapp/pom.xml
+++ b/examples/json-processing-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
json-processing-webapp
diff --git a/examples/json-with-padding/pom.xml b/examples/json-with-padding/pom.xml
index 7ed8acea4b3..d335527ef8a 100644
--- a/examples/json-with-padding/pom.xml
+++ b/examples/json-with-padding/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
json-with-padding
diff --git a/examples/managed-beans-webapp/pom.xml b/examples/managed-beans-webapp/pom.xml
index 622dd30521b..61932cd912c 100644
--- a/examples/managed-beans-webapp/pom.xml
+++ b/examples/managed-beans-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
managed-beans-webapp
diff --git a/examples/managed-client-simple-webapp/pom.xml b/examples/managed-client-simple-webapp/pom.xml
index 2382e8aa9e1..dfe98d02375 100644
--- a/examples/managed-client-simple-webapp/pom.xml
+++ b/examples/managed-client-simple-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
managed-client-simple-webapp
diff --git a/examples/managed-client-webapp/pom.xml b/examples/managed-client-webapp/pom.xml
index 06fdad5aa27..e820ae0daeb 100644
--- a/examples/managed-client-webapp/pom.xml
+++ b/examples/managed-client-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
managed-client-webapp
diff --git a/examples/managed-client/pom.xml b/examples/managed-client/pom.xml
index 9bbbb02098b..920f8c01bef 100644
--- a/examples/managed-client/pom.xml
+++ b/examples/managed-client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
managed-client
diff --git a/examples/multipart-webapp/pom.xml b/examples/multipart-webapp/pom.xml
index b507c8b63b1..3e30e894355 100644
--- a/examples/multipart-webapp/pom.xml
+++ b/examples/multipart-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
multipart-webapp
diff --git a/examples/oauth-client-twitter/pom.xml b/examples/oauth-client-twitter/pom.xml
index 608be823f7d..50c7cefca8a 100644
--- a/examples/oauth-client-twitter/pom.xml
+++ b/examples/oauth-client-twitter/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index cc01f9962e1..faa3ba48eea 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
open-tracing
diff --git a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
index ec2697d452e..6ff75fdfd2b 100644
--- a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
index c1f7a6f46ae..b46186be03e 100644
--- a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index 76e6a3f42cb..84deadb65b8 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
index 6966efcef5b..d9b98257710 100644
--- a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/pom.xml b/examples/osgi-helloworld-webapp/pom.xml
index 75874bf0550..e912af5d492 100644
--- a/examples/osgi-helloworld-webapp/pom.xml
+++ b/examples/osgi-helloworld-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/war-bundle/pom.xml b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
index ccd3eaf6ad4..2ae89996323 100644
--- a/examples/osgi-helloworld-webapp/war-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/pom.xml b/examples/pom.xml
index 118742699dd..600df699544 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
diff --git a/examples/reload/pom.xml b/examples/reload/pom.xml
index 2b35463e4a3..f3baa4fb164 100644
--- a/examples/reload/pom.xml
+++ b/examples/reload/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
reload
diff --git a/examples/rx-client-webapp/pom.xml b/examples/rx-client-webapp/pom.xml
index 61a1db54f16..6e990ebbbd3 100644
--- a/examples/rx-client-webapp/pom.xml
+++ b/examples/rx-client-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
rx-client-webapp
diff --git a/examples/server-async-managed/pom.xml b/examples/server-async-managed/pom.xml
index 229c32c68c4..f0f39e2af2e 100644
--- a/examples/server-async-managed/pom.xml
+++ b/examples/server-async-managed/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
server-async-managed
diff --git a/examples/server-async-standalone/client/pom.xml b/examples/server-async-standalone/client/pom.xml
index e1aa9c576fa..e3021d554e1 100644
--- a/examples/server-async-standalone/client/pom.xml
+++ b/examples/server-async-standalone/client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.1.0-SNAPSHOT
+ 3.0.6
server-async-standalone-client
diff --git a/examples/server-async-standalone/pom.xml b/examples/server-async-standalone/pom.xml
index 11cf0bf8eec..28b14a491ae 100644
--- a/examples/server-async-standalone/pom.xml
+++ b/examples/server-async-standalone/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
server-async-standalone
diff --git a/examples/server-async-standalone/webapp/pom.xml b/examples/server-async-standalone/webapp/pom.xml
index b38ff1cf16d..3d8c7da30fa 100644
--- a/examples/server-async-standalone/webapp/pom.xml
+++ b/examples/server-async-standalone/webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.1.0-SNAPSHOT
+ 3.0.6
server-async-standalone-webapp
diff --git a/examples/server-async/pom.xml b/examples/server-async/pom.xml
index 9b4ca355644..df0fd76716b 100644
--- a/examples/server-async/pom.xml
+++ b/examples/server-async/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
server-async
diff --git a/examples/server-sent-events-jaxrs/pom.xml b/examples/server-sent-events-jaxrs/pom.xml
index 0da67c32d77..c2b0c40a2df 100644
--- a/examples/server-sent-events-jaxrs/pom.xml
+++ b/examples/server-sent-events-jaxrs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
server-sent-events-jaxrs
diff --git a/examples/server-sent-events-jersey/pom.xml b/examples/server-sent-events-jersey/pom.xml
index e41180e254f..584a37ab70c 100644
--- a/examples/server-sent-events-jersey/pom.xml
+++ b/examples/server-sent-events-jersey/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
server-sent-events-jersey
diff --git a/examples/servlet3-webapp/pom.xml b/examples/servlet3-webapp/pom.xml
index ea52217633d..421e9f47c0d 100644
--- a/examples/servlet3-webapp/pom.xml
+++ b/examples/servlet3-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet3-webapp
diff --git a/examples/simple-console/pom.xml b/examples/simple-console/pom.xml
index 0b2e73d0bb7..f7e6ecca924 100644
--- a/examples/simple-console/pom.xml
+++ b/examples/simple-console/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
simple-console
diff --git a/examples/sse-item-store-jaxrs-webapp/pom.xml b/examples/sse-item-store-jaxrs-webapp/pom.xml
index 59682523e3b..2369335e803 100644
--- a/examples/sse-item-store-jaxrs-webapp/pom.xml
+++ b/examples/sse-item-store-jaxrs-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
sse-item-store-jaxrs-webapp
diff --git a/examples/sse-item-store-jersey-webapp/pom.xml b/examples/sse-item-store-jersey-webapp/pom.xml
index d7e47e29329..5e9d858f08b 100644
--- a/examples/sse-item-store-jersey-webapp/pom.xml
+++ b/examples/sse-item-store-jersey-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.0.6
sse-item-store-jersey-webapp
diff --git a/examples/sse-twitter-aggregator/pom.xml b/examples/sse-twitter-aggregator/pom.xml
index e147d378161..0060872dafd 100644
--- a/examples/sse-twitter-aggregator/pom.xml
+++ b/examples/sse-twitter-aggregator/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
sse-twitter-aggregator
diff --git a/examples/system-properties-example/pom.xml b/examples/system-properties-example/pom.xml
index 3eda788e879..972e8ffdcb3 100644
--- a/examples/system-properties-example/pom.xml
+++ b/examples/system-properties-example/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
system-properties-example
diff --git a/examples/webapp-example-parent/pom.xml b/examples/webapp-example-parent/pom.xml
index fadf66aae07..b657407cf7c 100644
--- a/examples/webapp-example-parent/pom.xml
+++ b/examples/webapp-example-parent/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
webapp-example-parent
diff --git a/examples/xml-moxy/pom.xml b/examples/xml-moxy/pom.xml
index 7ee7130c728..3b45773148f 100644
--- a/examples/xml-moxy/pom.xml
+++ b/examples/xml-moxy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.0.6
xml-moxy
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index 53ac3d1be24..d8e47b58764 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-bean-validation
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index bbc627cf7bf..4320934b849 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext.cdi
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
index 69c0f15d27f..5bc8ef4ecb3 100644
--- a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
+++ b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-cdi1x-ban-custom-hk2-binding
diff --git a/ext/cdi/jersey-cdi1x-servlet/pom.xml b/ext/cdi/jersey-cdi1x-servlet/pom.xml
index 17b9c911e59..bdc37f7b37a 100644
--- a/ext/cdi/jersey-cdi1x-servlet/pom.xml
+++ b/ext/cdi/jersey-cdi1x-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-cdi1x-servlet
diff --git a/ext/cdi/jersey-cdi1x-transaction/pom.xml b/ext/cdi/jersey-cdi1x-transaction/pom.xml
index 4ce8ff6c5de..93ce305aa7e 100644
--- a/ext/cdi/jersey-cdi1x-transaction/pom.xml
+++ b/ext/cdi/jersey-cdi1x-transaction/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-cdi1x-transaction
diff --git a/ext/cdi/jersey-cdi1x-validation/pom.xml b/ext/cdi/jersey-cdi1x-validation/pom.xml
index f176374d28a..e9f65d92610 100644
--- a/ext/cdi/jersey-cdi1x-validation/pom.xml
+++ b/ext/cdi/jersey-cdi1x-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-cdi1x-validation
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index e31ca92505e..01f385a61dc 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-cdi1x
diff --git a/ext/cdi/jersey-weld2-se/pom.xml b/ext/cdi/jersey-weld2-se/pom.xml
index 18eddfb97ec..42b911ca942 100644
--- a/ext/cdi/jersey-weld2-se/pom.xml
+++ b/ext/cdi/jersey-weld2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-weld2-se
diff --git a/ext/cdi/pom.xml b/ext/cdi/pom.xml
index ef2abf451ac..0343429b456 100644
--- a/ext/cdi/pom.xml
+++ b/ext/cdi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.ext.cdi
diff --git a/ext/entity-filtering/pom.xml b/ext/entity-filtering/pom.xml
index c3e322207c8..75d4ead2876 100644
--- a/ext/entity-filtering/pom.xml
+++ b/ext/entity-filtering/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-entity-filtering
diff --git a/ext/metainf-services/pom.xml b/ext/metainf-services/pom.xml
index 013934e000c..1de90cf6903 100644
--- a/ext/metainf-services/pom.xml
+++ b/ext/metainf-services/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-metainf-services
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index 97451e71b7e..6e8aab5acfc 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index cc11d33f93b..c71aadd1e6d 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/ext/microprofile/pom.xml b/ext/microprofile/pom.xml
index f75232d67ad..86f1eee89c0 100644
--- a/ext/microprofile/pom.xml
+++ b/ext/microprofile/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/ext/mvc-bean-validation/pom.xml b/ext/mvc-bean-validation/pom.xml
index 8fe8ffe0fed..dfa4f0ee548 100644
--- a/ext/mvc-bean-validation/pom.xml
+++ b/ext/mvc-bean-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-mvc-bean-validation
diff --git a/ext/mvc-freemarker/pom.xml b/ext/mvc-freemarker/pom.xml
index 214c883c3c9..7b87cdd46f9 100644
--- a/ext/mvc-freemarker/pom.xml
+++ b/ext/mvc-freemarker/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-mvc-freemarker
diff --git a/ext/mvc-jsp/pom.xml b/ext/mvc-jsp/pom.xml
index ccdea7095cb..8c43a639aff 100644
--- a/ext/mvc-jsp/pom.xml
+++ b/ext/mvc-jsp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-mvc-jsp
diff --git a/ext/mvc-mustache/pom.xml b/ext/mvc-mustache/pom.xml
index c409a7c045e..86ba7e77634 100644
--- a/ext/mvc-mustache/pom.xml
+++ b/ext/mvc-mustache/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-mvc-mustache
diff --git a/ext/mvc/pom.xml b/ext/mvc/pom.xml
index 68d79ad8f1a..870dec88e63 100644
--- a/ext/mvc/pom.xml
+++ b/ext/mvc/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-mvc
diff --git a/ext/pom.xml b/ext/pom.xml
index fa7003a00b2..0b3835f1723 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.ext
diff --git a/ext/proxy-client/pom.xml b/ext/proxy-client/pom.xml
index 26526f6622b..bc59fb50dba 100644
--- a/ext/proxy-client/pom.xml
+++ b/ext/proxy-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-proxy-client
diff --git a/ext/rx/pom.xml b/ext/rx/pom.xml
index f20bbbdc533..fe7275cdb21 100644
--- a/ext/rx/pom.xml
+++ b/ext/rx/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.ext.rx
diff --git a/ext/rx/rx-client-guava/pom.xml b/ext/rx/rx-client-guava/pom.xml
index 71fe9a9239e..f5eeab641d5 100644
--- a/ext/rx/rx-client-guava/pom.xml
+++ b/ext/rx/rx-client-guava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-rx-client-guava
diff --git a/ext/rx/rx-client-rxjava/pom.xml b/ext/rx/rx-client-rxjava/pom.xml
index 39043ceace0..2d024f81a3c 100644
--- a/ext/rx/rx-client-rxjava/pom.xml
+++ b/ext/rx/rx-client-rxjava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-rx-client-rxjava
diff --git a/ext/rx/rx-client-rxjava2/pom.xml b/ext/rx/rx-client-rxjava2/pom.xml
index f859654bd67..8aeca75a816 100644
--- a/ext/rx/rx-client-rxjava2/pom.xml
+++ b/ext/rx/rx-client-rxjava2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-rx-client-rxjava2
diff --git a/ext/spring6/pom.xml b/ext/spring6/pom.xml
index 701fc992ff5..1eb77f4ee53 100644
--- a/ext/spring6/pom.xml
+++ b/ext/spring6/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-spring6
diff --git a/ext/wadl-doclet/pom.xml b/ext/wadl-doclet/pom.xml
index e4f43c38566..b3c54815420 100644
--- a/ext/wadl-doclet/pom.xml
+++ b/ext/wadl-doclet/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
jersey-wadl-doclet
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index 999ecbb108b..7119199e841 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-cdi-inject-weld
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index 1c2d64279f4..12546fd0723 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.ext
diff --git a/incubator/gae-integration/pom.xml b/incubator/gae-integration/pom.xml
index b8b51b601f5..9f043234598 100644
--- a/incubator/gae-integration/pom.xml
+++ b/incubator/gae-integration/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-gae-integration
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index 3ad5b9ebb00..b2c50a88330 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.media
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index 36b1f1ba80d..91ee64e45e0 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.media
diff --git a/incubator/open-tracing/pom.xml b/incubator/open-tracing/pom.xml
index f9a3775af50..0a8032d24be 100644
--- a/incubator/open-tracing/pom.xml
+++ b/incubator/open-tracing/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.incubator
diff --git a/incubator/pom.xml b/incubator/pom.xml
index 9a9d6bc57d9..687a2a62ce1 100644
--- a/incubator/pom.xml
+++ b/incubator/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.incubator
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index f01855d727c..037a284f2e4 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-cdi2-se
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index 0f9eacbdcdf..d63eca2bcdd 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-hk2
diff --git a/inject/pom.xml b/inject/pom.xml
index 57a755dcc72..33b9e6f9668 100644
--- a/inject/pom.xml
+++ b/inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.inject
diff --git a/media/jaxb/pom.xml b/media/jaxb/pom.xml
index 2eaf52df496..4582109b729 100644
--- a/media/jaxb/pom.xml
+++ b/media/jaxb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-media-jaxb
diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
index 3ae3b876b69..d6e67d5a221 100644
--- a/media/json-binding/pom.xml
+++ b/media/json-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-media-json-binding
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index 8b2c2c5f090..2b13f050ffc 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-media-json-gson
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index 9456ee6234b..0272c3e686f 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-media-json-jackson
diff --git a/media/json-jettison/pom.xml b/media/json-jettison/pom.xml
index 9e69d1563e4..6c7c944c3fe 100644
--- a/media/json-jettison/pom.xml
+++ b/media/json-jettison/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-media-json-jettison
diff --git a/media/json-processing/pom.xml b/media/json-processing/pom.xml
index 373b1749528..174c3fb28ed 100644
--- a/media/json-processing/pom.xml
+++ b/media/json-processing/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-media-json-processing
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index f590550e8e3..4aa2e73bc8b 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-media-moxy
diff --git a/media/multipart/pom.xml b/media/multipart/pom.xml
index be3274697d6..29479c857aa 100644
--- a/media/multipart/pom.xml
+++ b/media/multipart/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-media-multipart
diff --git a/media/pom.xml b/media/pom.xml
index e738eb1ac89..67723285225 100644
--- a/media/pom.xml
+++ b/media/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.media
diff --git a/media/sse/pom.xml b/media/sse/pom.xml
index df3d62fcbdd..8dae2df2593 100644
--- a/media/sse/pom.xml
+++ b/media/sse/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-media-sse
diff --git a/pom.xml b/pom.xml
index 9469a2ca264..f4efce55761 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
org.glassfish.jersey
project
pom
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey
Eclipse Jersey is the open source (under dual EPL+GPL license) Jakarta RESTful WebServices 3.0
diff --git a/security/oauth1-client/pom.xml b/security/oauth1-client/pom.xml
index 11fd168ce3b..2a81509d70b 100644
--- a/security/oauth1-client/pom.xml
+++ b/security/oauth1-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.security
project
- 3.1.0-SNAPSHOT
+ 3.0.6
oauth1-client
diff --git a/security/oauth1-server/pom.xml b/security/oauth1-server/pom.xml
index 7af4fb9e572..52eb6ecafcc 100644
--- a/security/oauth1-server/pom.xml
+++ b/security/oauth1-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.security
project
- 3.1.0-SNAPSHOT
+ 3.0.6
oauth1-server
diff --git a/security/oauth1-signature/pom.xml b/security/oauth1-signature/pom.xml
index 22055bc726d..a9ff11f3349 100644
--- a/security/oauth1-signature/pom.xml
+++ b/security/oauth1-signature/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/security/oauth2-client/pom.xml b/security/oauth2-client/pom.xml
index e55aca53ac2..d481f04af4a 100644
--- a/security/oauth2-client/pom.xml
+++ b/security/oauth2-client/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/security/pom.xml b/security/pom.xml
index c457f1000c3..9276b6f979e 100644
--- a/security/pom.xml
+++ b/security/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.security
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index eeb186a0c2c..7402c88c699 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-test-framework-core
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index 8306f9ff3c9..4eb586d1561 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.1.0-SNAPSHOT
+ 3.0.6
container-runner-maven-plugin
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index 454813d907e..1100ab9c89a 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.1.0-SNAPSHOT
+ 3.0.6
custom-enforcer-rules
diff --git a/test-framework/maven/pom.xml b/test-framework/maven/pom.xml
index 495bf2028bd..57db6807c52 100644
--- a/test-framework/maven/pom.xml
+++ b/test-framework/maven/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.test-framework.maven
diff --git a/test-framework/memleak-test-common/pom.xml b/test-framework/memleak-test-common/pom.xml
index 08b0dacd366..3a96db645a1 100644
--- a/test-framework/memleak-test-common/pom.xml
+++ b/test-framework/memleak-test-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0-SNAPSHOT
+ 3.0.6
memleak-test-common
diff --git a/test-framework/pom.xml b/test-framework/pom.xml
index c85640a995a..551c451f12a 100644
--- a/test-framework/pom.xml
+++ b/test-framework/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.test-framework
diff --git a/test-framework/providers/bundle/pom.xml b/test-framework/providers/bundle/pom.xml
index 0ede2389128..a3d96071f4f 100644
--- a/test-framework/providers/bundle/pom.xml
+++ b/test-framework/providers/bundle/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-test-framework-provider-bundle
diff --git a/test-framework/providers/external/pom.xml b/test-framework/providers/external/pom.xml
index e3979deec37..954e6796748 100644
--- a/test-framework/providers/external/pom.xml
+++ b/test-framework/providers/external/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-test-framework-provider-external
diff --git a/test-framework/providers/grizzly2/pom.xml b/test-framework/providers/grizzly2/pom.xml
index 75ce20d1b15..d72d9f3175e 100644
--- a/test-framework/providers/grizzly2/pom.xml
+++ b/test-framework/providers/grizzly2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-test-framework-provider-grizzly2
diff --git a/test-framework/providers/inmemory/pom.xml b/test-framework/providers/inmemory/pom.xml
index a7156f4ef59..8d88fb355fc 100644
--- a/test-framework/providers/inmemory/pom.xml
+++ b/test-framework/providers/inmemory/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-test-framework-provider-inmemory
diff --git a/test-framework/providers/jdk-http/pom.xml b/test-framework/providers/jdk-http/pom.xml
index 01bc066849f..424d164d796 100644
--- a/test-framework/providers/jdk-http/pom.xml
+++ b/test-framework/providers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-test-framework-provider-jdk-http
diff --git a/test-framework/providers/jetty/pom.xml b/test-framework/providers/jetty/pom.xml
index 399d3de65c1..4393fdaffc8 100644
--- a/test-framework/providers/jetty/pom.xml
+++ b/test-framework/providers/jetty/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/test-framework/providers/netty/pom.xml b/test-framework/providers/netty/pom.xml
index a95f15aa4f4..fdfece4c58f 100644
--- a/test-framework/providers/netty/pom.xml
+++ b/test-framework/providers/netty/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-test-framework-provider-netty
diff --git a/test-framework/providers/pom.xml b/test-framework/providers/pom.xml
index 724c29593a1..8aefbabc56e 100644
--- a/test-framework/providers/pom.xml
+++ b/test-framework/providers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.test-framework.providers
diff --git a/test-framework/providers/simple/pom.xml b/test-framework/providers/simple/pom.xml
index 69ba9fd4f36..73d54a7e3d6 100644
--- a/test-framework/providers/simple/pom.xml
+++ b/test-framework/providers/simple/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/test-framework/util/pom.xml b/test-framework/util/pom.xml
index 0bcd9b7b2ae..0613fb17e43 100644
--- a/test-framework/util/pom.xml
+++ b/test-framework/util/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-test-framework-util
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index a286c36bf0c..7f3d09a3b7d 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.0.6
e2e-client
diff --git a/tests/e2e-core-common/pom.xml b/tests/e2e-core-common/pom.xml
index b0ff4ebf584..05ec55a9d1a 100644
--- a/tests/e2e-core-common/pom.xml
+++ b/tests/e2e-core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.0.6
e2e-core-common
diff --git a/tests/e2e-entity/pom.xml b/tests/e2e-entity/pom.xml
index 28d27472be7..8d344898459 100644
--- a/tests/e2e-entity/pom.xml
+++ b/tests/e2e-entity/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.0.6
e2e-entity
diff --git a/tests/e2e-inject/cdi-inject-weld/pom.xml b/tests/e2e-inject/cdi-inject-weld/pom.xml
index 97697b21f66..e79430b0ff7 100644
--- a/tests/e2e-inject/cdi-inject-weld/pom.xml
+++ b/tests/e2e-inject/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.1.0-SNAPSHOT
+ 3.0.6
e2e-inject-cdi-inject-weld
diff --git a/tests/e2e-inject/cdi2-se/pom.xml b/tests/e2e-inject/cdi2-se/pom.xml
index ea644cd7809..8ec2f4a7052 100644
--- a/tests/e2e-inject/cdi2-se/pom.xml
+++ b/tests/e2e-inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.1.0-SNAPSHOT
+ 3.0.6
e2e-inject-cdi2-se
diff --git a/tests/e2e-inject/hk2/pom.xml b/tests/e2e-inject/hk2/pom.xml
index df35d73128e..e11b87af71b 100644
--- a/tests/e2e-inject/hk2/pom.xml
+++ b/tests/e2e-inject/hk2/pom.xml
@@ -23,7 +23,7 @@
e2e-inject
org.glassfish.jersey.tests
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/e2e-inject/pom.xml b/tests/e2e-inject/pom.xml
index cc393e7c050..874e2a5b439 100644
--- a/tests/e2e-inject/pom.xml
+++ b/tests/e2e-inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.0.6
e2e-inject
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index 3500e1398b7..0c1a829897f 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.0.6
e2e-server
diff --git a/tests/e2e-testng/pom.xml b/tests/e2e-testng/pom.xml
index 9a7fc56ae86..dec70523c82 100644
--- a/tests/e2e-testng/pom.xml
+++ b/tests/e2e-testng/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.0.6
e2e-testng
diff --git a/tests/e2e/pom.xml b/tests/e2e/pom.xml
index 567044b8f2c..04d6fc764f2 100644
--- a/tests/e2e/pom.xml
+++ b/tests/e2e/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.0.6
e2e
diff --git a/tests/integration/asm/pom.xml b/tests/integration/asm/pom.xml
index 9ee983acef7..beac81c6b53 100644
--- a/tests/integration/asm/pom.xml
+++ b/tests/integration/asm/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/async-jersey-filter/pom.xml b/tests/integration/async-jersey-filter/pom.xml
index 1c46a019f1d..175d08ee7ee 100644
--- a/tests/integration/async-jersey-filter/pom.xml
+++ b/tests/integration/async-jersey-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
async-jersey-filter
diff --git a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
index cda9a701550..37cd9f280bb 100644
--- a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-beanvalidation-webapp
diff --git a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
index f64e3091088..9daebabb82c 100644
--- a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-client-on-server
diff --git a/tests/integration/cdi-integration/cdi-client/pom.xml b/tests/integration/cdi-integration/cdi-client/pom.xml
index 548e446c338..b2fa018d0fa 100644
--- a/tests/integration/cdi-integration/cdi-client/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-client
diff --git a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
index 77ed5518807..eec6743ab64 100644
--- a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-ejb-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
index a4e72f1ec0f..00e0a3a7f96 100644
--- a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-iface-with-non-jaxrs-impl-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-log-check/pom.xml b/tests/integration/cdi-integration/cdi-log-check/pom.xml
index c1aee4d8f55..da36e341ac2 100644
--- a/tests/integration/cdi-integration/cdi-log-check/pom.xml
+++ b/tests/integration/cdi-integration/cdi-log-check/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-log-check
diff --git a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
index c1925b89df7..763c66f0a75 100644
--- a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
+++ b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
index 62ad425b7f7..cdb58aa6173 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
index b89780385d6..2288c27c922 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
index 8bbd89ab7ab..94f820ce310 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-multimodule
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
index e5a76eadb03..184004e602c 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
index fd910a32d28..7cf789247c4 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
index 041a1b5adcc..5d3e8170b91 100644
--- a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-multipart-webapp
diff --git a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
index 190ca83e1eb..9171cd4730c 100644
--- a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
+++ b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-singleton/pom.xml b/tests/integration/cdi-integration/cdi-singleton/pom.xml
index 8a5395db181..e7574567568 100644
--- a/tests/integration/cdi-integration/cdi-singleton/pom.xml
+++ b/tests/integration/cdi-integration/cdi-singleton/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
index 7bd1175cff3..54dd407bc7c 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
index 670b8de7704..dceca9e4f41 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-with-jersey-injection-custom-cfg-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
index 33514e670d3..17df6e5bf14 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-with-jersey-injection-custom-hk2-banned-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
index 39966aedaa5..f25589e3c7a 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
cdi-with-jersey-injection-webapp
diff --git a/tests/integration/cdi-integration/context-inject-on-server/pom.xml b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
index 07b04520158..327bef2e1de 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/pom.xml
+++ b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.0.6
context-inject-on-server
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index 90d94f5e041..149e4c86875 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
pom
diff --git a/tests/integration/client-connector-provider/pom.xml b/tests/integration/client-connector-provider/pom.xml
index 3207806040f..38970982906 100644
--- a/tests/integration/client-connector-provider/pom.xml
+++ b/tests/integration/client-connector-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
client-connector-provider
diff --git a/tests/integration/ejb-multimodule-reload/ear/pom.xml b/tests/integration/ejb-multimodule-reload/ear/pom.xml
index 36e34e64839..6d3cc9df09e 100644
--- a/tests/integration/ejb-multimodule-reload/ear/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/lib/pom.xml b/tests/integration/ejb-multimodule-reload/lib/pom.xml
index e8f92151cc5..e5db5da0ea3 100644
--- a/tests/integration/ejb-multimodule-reload/lib/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/pom.xml b/tests/integration/ejb-multimodule-reload/pom.xml
index 40c879fb96b..fb6f88ea0be 100644
--- a/tests/integration/ejb-multimodule-reload/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
ejb-multimodule-reload
diff --git a/tests/integration/ejb-multimodule-reload/war1/pom.xml b/tests/integration/ejb-multimodule-reload/war1/pom.xml
index 32ee1603d80..24d6c5ef4e8 100644
--- a/tests/integration/ejb-multimodule-reload/war1/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/war2/pom.xml b/tests/integration/ejb-multimodule-reload/war2/pom.xml
index 8c9dd4cfb15..31aebf9b98c 100644
--- a/tests/integration/ejb-multimodule-reload/war2/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/ear/pom.xml b/tests/integration/ejb-multimodule/ear/pom.xml
index 22c8c1c989f..cc0238c8158 100644
--- a/tests/integration/ejb-multimodule/ear/pom.xml
+++ b/tests/integration/ejb-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/lib/pom.xml b/tests/integration/ejb-multimodule/lib/pom.xml
index f08831d68e2..19f9b34fc06 100644
--- a/tests/integration/ejb-multimodule/lib/pom.xml
+++ b/tests/integration/ejb-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/pom.xml b/tests/integration/ejb-multimodule/pom.xml
index 491874016d4..623970a4291 100644
--- a/tests/integration/ejb-multimodule/pom.xml
+++ b/tests/integration/ejb-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
ejb-multimodule
diff --git a/tests/integration/ejb-multimodule/war/pom.xml b/tests/integration/ejb-multimodule/war/pom.xml
index 0e315af07b2..9a4cf833c0c 100644
--- a/tests/integration/ejb-multimodule/war/pom.xml
+++ b/tests/integration/ejb-multimodule/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/ejb-test-webapp/pom.xml b/tests/integration/ejb-test-webapp/pom.xml
index 5597e2052d0..edb04905cd1 100644
--- a/tests/integration/ejb-test-webapp/pom.xml
+++ b/tests/integration/ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
ejb-test-webapp
diff --git a/tests/integration/externalproperties/pom.xml b/tests/integration/externalproperties/pom.xml
index 1ca814ee8aa..e27d329cf8f 100644
--- a/tests/integration/externalproperties/pom.xml
+++ b/tests/integration/externalproperties/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
externalproperties
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index 935cd8ffc1e..a5724ee413c 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
j-376
diff --git a/tests/integration/j-441/ear/pom.xml b/tests/integration/j-441/ear/pom.xml
index 2e2d1459f9d..d86acc35700 100644
--- a/tests/integration/j-441/ear/pom.xml
+++ b/tests/integration/j-441/ear/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
j-441-ear
diff --git a/tests/integration/j-441/pom.xml b/tests/integration/j-441/pom.xml
index 8d97ce9ab9e..c0ef064b4a1 100644
--- a/tests/integration/j-441/pom.xml
+++ b/tests/integration/j-441/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
j-441
diff --git a/tests/integration/j-441/war1/pom.xml b/tests/integration/j-441/war1/pom.xml
index 822b8a6711d..f72f1f921b3 100644
--- a/tests/integration/j-441/war1/pom.xml
+++ b/tests/integration/j-441/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/j-441/war2/pom.xml b/tests/integration/j-441/war2/pom.xml
index f13ec2f7bc9..4972560c5cb 100644
--- a/tests/integration/j-441/war2/pom.xml
+++ b/tests/integration/j-441/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/j-59/ear/pom.xml b/tests/integration/j-59/ear/pom.xml
index f211d2e1726..1fa21c23a3c 100644
--- a/tests/integration/j-59/ear/pom.xml
+++ b/tests/integration/j-59/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/j-59/lib/pom.xml b/tests/integration/j-59/lib/pom.xml
index 46fa64368ca..38572a9c0e0 100644
--- a/tests/integration/j-59/lib/pom.xml
+++ b/tests/integration/j-59/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/j-59/pom.xml b/tests/integration/j-59/pom.xml
index a222363e119..f45867d97ca 100644
--- a/tests/integration/j-59/pom.xml
+++ b/tests/integration/j-59/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
j-59
diff --git a/tests/integration/j-59/war/pom.xml b/tests/integration/j-59/war/pom.xml
index 9b77f25a761..626dadb4d6b 100644
--- a/tests/integration/j-59/war/pom.xml
+++ b/tests/integration/j-59/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
../../pom.xml
diff --git a/tests/integration/jaxrs-component-inject/pom.xml b/tests/integration/jaxrs-component-inject/pom.xml
index 9f31a725433..f84d52c76f6 100644
--- a/tests/integration/jaxrs-component-inject/pom.xml
+++ b/tests/integration/jaxrs-component-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jaxrs-component-inject
diff --git a/tests/integration/jersey-1107/pom.xml b/tests/integration/jersey-1107/pom.xml
index 625feb55d14..34e3ddad2f3 100644
--- a/tests/integration/jersey-1107/pom.xml
+++ b/tests/integration/jersey-1107/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-1107
diff --git a/tests/integration/jersey-1223/pom.xml b/tests/integration/jersey-1223/pom.xml
index c57b49704aa..30eae1b1965 100644
--- a/tests/integration/jersey-1223/pom.xml
+++ b/tests/integration/jersey-1223/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
jersey-1223
diff --git a/tests/integration/jersey-1604/pom.xml b/tests/integration/jersey-1604/pom.xml
index 3b15586b284..39e474d160c 100644
--- a/tests/integration/jersey-1604/pom.xml
+++ b/tests/integration/jersey-1604/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
jersey-1604
diff --git a/tests/integration/jersey-1667/pom.xml b/tests/integration/jersey-1667/pom.xml
index 218a99f761d..43c1af659f2 100644
--- a/tests/integration/jersey-1667/pom.xml
+++ b/tests/integration/jersey-1667/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-1667
diff --git a/tests/integration/jersey-1883/pom.xml b/tests/integration/jersey-1883/pom.xml
index 940b08b2112..b02af02093b 100644
--- a/tests/integration/jersey-1883/pom.xml
+++ b/tests/integration/jersey-1883/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-1883
diff --git a/tests/integration/jersey-1928/pom.xml b/tests/integration/jersey-1928/pom.xml
index 5463ed664bf..64740c8b160 100644
--- a/tests/integration/jersey-1928/pom.xml
+++ b/tests/integration/jersey-1928/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
jersey-1928
diff --git a/tests/integration/jersey-1960/pom.xml b/tests/integration/jersey-1960/pom.xml
index 9a1124f1bb1..8b113e298c5 100644
--- a/tests/integration/jersey-1960/pom.xml
+++ b/tests/integration/jersey-1960/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-1960
diff --git a/tests/integration/jersey-1964/pom.xml b/tests/integration/jersey-1964/pom.xml
index e639fb95dd4..f54802e2710 100644
--- a/tests/integration/jersey-1964/pom.xml
+++ b/tests/integration/jersey-1964/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-1964
diff --git a/tests/integration/jersey-2031/pom.xml b/tests/integration/jersey-2031/pom.xml
index 684455a8d6a..16a71aa822c 100644
--- a/tests/integration/jersey-2031/pom.xml
+++ b/tests/integration/jersey-2031/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2031
diff --git a/tests/integration/jersey-2136/pom.xml b/tests/integration/jersey-2136/pom.xml
index 634324dbe9f..2ee19c3316c 100644
--- a/tests/integration/jersey-2136/pom.xml
+++ b/tests/integration/jersey-2136/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2136
diff --git a/tests/integration/jersey-2137/pom.xml b/tests/integration/jersey-2137/pom.xml
index 2f4eafc5b8c..c463348267a 100644
--- a/tests/integration/jersey-2137/pom.xml
+++ b/tests/integration/jersey-2137/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2137
diff --git a/tests/integration/jersey-2154/pom.xml b/tests/integration/jersey-2154/pom.xml
index 45f25d8488e..9cc75fa5f16 100644
--- a/tests/integration/jersey-2154/pom.xml
+++ b/tests/integration/jersey-2154/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2154
diff --git a/tests/integration/jersey-2160/pom.xml b/tests/integration/jersey-2160/pom.xml
index e22af069b1c..d2e9357847c 100644
--- a/tests/integration/jersey-2160/pom.xml
+++ b/tests/integration/jersey-2160/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2160
diff --git a/tests/integration/jersey-2164/pom.xml b/tests/integration/jersey-2164/pom.xml
index 3e23d4cf436..4bb12c9579a 100644
--- a/tests/integration/jersey-2164/pom.xml
+++ b/tests/integration/jersey-2164/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2164
diff --git a/tests/integration/jersey-2167/pom.xml b/tests/integration/jersey-2167/pom.xml
index dbbf21560da..fd0cded3db8 100644
--- a/tests/integration/jersey-2167/pom.xml
+++ b/tests/integration/jersey-2167/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2167
diff --git a/tests/integration/jersey-2176/pom.xml b/tests/integration/jersey-2176/pom.xml
index 84d8735037f..abfb270ab09 100644
--- a/tests/integration/jersey-2176/pom.xml
+++ b/tests/integration/jersey-2176/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2176
diff --git a/tests/integration/jersey-2184/pom.xml b/tests/integration/jersey-2184/pom.xml
index 5e635ea194d..d516e16fe0d 100644
--- a/tests/integration/jersey-2184/pom.xml
+++ b/tests/integration/jersey-2184/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2184
diff --git a/tests/integration/jersey-2255/pom.xml b/tests/integration/jersey-2255/pom.xml
index 31c51502f9b..af44bf253fd 100644
--- a/tests/integration/jersey-2255/pom.xml
+++ b/tests/integration/jersey-2255/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2255
diff --git a/tests/integration/jersey-2322/pom.xml b/tests/integration/jersey-2322/pom.xml
index 4b9713d7f5d..4ed0431213c 100644
--- a/tests/integration/jersey-2322/pom.xml
+++ b/tests/integration/jersey-2322/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2322
diff --git a/tests/integration/jersey-2335/pom.xml b/tests/integration/jersey-2335/pom.xml
index 81335ccc902..b7b3fb64a85 100644
--- a/tests/integration/jersey-2335/pom.xml
+++ b/tests/integration/jersey-2335/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2335
diff --git a/tests/integration/jersey-2421/pom.xml b/tests/integration/jersey-2421/pom.xml
index 55e2bc7e6aa..309b8a24d03 100644
--- a/tests/integration/jersey-2421/pom.xml
+++ b/tests/integration/jersey-2421/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2421
diff --git a/tests/integration/jersey-2551/pom.xml b/tests/integration/jersey-2551/pom.xml
index ce2c269422b..c026c0203f9 100644
--- a/tests/integration/jersey-2551/pom.xml
+++ b/tests/integration/jersey-2551/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2551
diff --git a/tests/integration/jersey-2612/pom.xml b/tests/integration/jersey-2612/pom.xml
index 294dc90473e..37cbacea1aa 100644
--- a/tests/integration/jersey-2612/pom.xml
+++ b/tests/integration/jersey-2612/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2612
diff --git a/tests/integration/jersey-2637/pom.xml b/tests/integration/jersey-2637/pom.xml
index c20582d8fcf..3fbb0dc4dbf 100644
--- a/tests/integration/jersey-2637/pom.xml
+++ b/tests/integration/jersey-2637/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2637
diff --git a/tests/integration/jersey-2654/pom.xml b/tests/integration/jersey-2654/pom.xml
index f8277b1f5b2..a8cee6ff855 100644
--- a/tests/integration/jersey-2654/pom.xml
+++ b/tests/integration/jersey-2654/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2654
diff --git a/tests/integration/jersey-2673/pom.xml b/tests/integration/jersey-2673/pom.xml
index 8c23d2391df..46be248d442 100644
--- a/tests/integration/jersey-2673/pom.xml
+++ b/tests/integration/jersey-2673/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2673
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index 1780f966c14..c0586448a0c 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2689
diff --git a/tests/integration/jersey-2704/pom.xml b/tests/integration/jersey-2704/pom.xml
index cb57dc86e65..8e2c0ef3049 100644
--- a/tests/integration/jersey-2704/pom.xml
+++ b/tests/integration/jersey-2704/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2704
diff --git a/tests/integration/jersey-2776/pom.xml b/tests/integration/jersey-2776/pom.xml
index 00442751dd3..99e04e32694 100644
--- a/tests/integration/jersey-2776/pom.xml
+++ b/tests/integration/jersey-2776/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2776
diff --git a/tests/integration/jersey-2794/pom.xml b/tests/integration/jersey-2794/pom.xml
index 86a684442fa..7b10ff9b11d 100644
--- a/tests/integration/jersey-2794/pom.xml
+++ b/tests/integration/jersey-2794/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2794
diff --git a/tests/integration/jersey-2846/pom.xml b/tests/integration/jersey-2846/pom.xml
index 44b6dc5f611..0053bad3567 100644
--- a/tests/integration/jersey-2846/pom.xml
+++ b/tests/integration/jersey-2846/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2846
diff --git a/tests/integration/jersey-2878/pom.xml b/tests/integration/jersey-2878/pom.xml
index 61b1c9d35fd..7bebaddee6d 100644
--- a/tests/integration/jersey-2878/pom.xml
+++ b/tests/integration/jersey-2878/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2878
diff --git a/tests/integration/jersey-2892/pom.xml b/tests/integration/jersey-2892/pom.xml
index 5aea57a9f62..af6fbb6e861 100644
--- a/tests/integration/jersey-2892/pom.xml
+++ b/tests/integration/jersey-2892/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-2892
diff --git a/tests/integration/jersey-3662/pom.xml b/tests/integration/jersey-3662/pom.xml
index dd23d8e83d5..0dcedae471a 100644
--- a/tests/integration/jersey-3662/pom.xml
+++ b/tests/integration/jersey-3662/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/jersey-3670/pom.xml b/tests/integration/jersey-3670/pom.xml
index 63e1b4449d6..12882bfb6e8 100644
--- a/tests/integration/jersey-3670/pom.xml
+++ b/tests/integration/jersey-3670/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-3670
diff --git a/tests/integration/jersey-3796/pom.xml b/tests/integration/jersey-3796/pom.xml
index 4bbaf5f7396..da93965ac66 100644
--- a/tests/integration/jersey-3796/pom.xml
+++ b/tests/integration/jersey-3796/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-3796
diff --git a/tests/integration/jersey-3992/pom.xml b/tests/integration/jersey-3992/pom.xml
index acbfbb9a93b..a30a7dbf226 100644
--- a/tests/integration/jersey-3992/pom.xml
+++ b/tests/integration/jersey-3992/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-3992
diff --git a/tests/integration/jersey-4003/pom.xml b/tests/integration/jersey-4003/pom.xml
index 4c84ba5fdbf..1523b2ec961 100644
--- a/tests/integration/jersey-4003/pom.xml
+++ b/tests/integration/jersey-4003/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/jersey-4099/pom.xml b/tests/integration/jersey-4099/pom.xml
index 488d9ac8979..1816bfc5105 100644
--- a/tests/integration/jersey-4099/pom.xml
+++ b/tests/integration/jersey-4099/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-4099
diff --git a/tests/integration/jersey-4321/pom.xml b/tests/integration/jersey-4321/pom.xml
index 6cea96bb681..09ed63fd9f3 100644
--- a/tests/integration/jersey-4321/pom.xml
+++ b/tests/integration/jersey-4321/pom.xml
@@ -24,7 +24,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/jersey-4507/pom.xml b/tests/integration/jersey-4507/pom.xml
index 1d8671b9071..d78948d8417 100644
--- a/tests/integration/jersey-4507/pom.xml
+++ b/tests/integration/jersey-4507/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/jersey-4542/pom.xml b/tests/integration/jersey-4542/pom.xml
index dad386b37ae..802cf7186f2 100644
--- a/tests/integration/jersey-4542/pom.xml
+++ b/tests/integration/jersey-4542/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/jersey-4697/pom.xml b/tests/integration/jersey-4697/pom.xml
index 1bf92830725..1b29d9a6e3c 100644
--- a/tests/integration/jersey-4697/pom.xml
+++ b/tests/integration/jersey-4697/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/jersey-4722/pom.xml b/tests/integration/jersey-4722/pom.xml
index f13e71c3699..312bc32134b 100644
--- a/tests/integration/jersey-4722/pom.xml
+++ b/tests/integration/jersey-4722/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/jersey-4949/pom.xml b/tests/integration/jersey-4949/pom.xml
index 90b762815db..36497ca63df 100644
--- a/tests/integration/jersey-4949/pom.xml
+++ b/tests/integration/jersey-4949/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-4949
diff --git a/tests/integration/jersey-5087/pom.xml b/tests/integration/jersey-5087/pom.xml
index efbfe3c2e16..2d726fdfa7e 100644
--- a/tests/integration/jersey-5087/pom.xml
+++ b/tests/integration/jersey-5087/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/jersey-780/pom.xml b/tests/integration/jersey-780/pom.xml
index 884540c680b..415177e88c0 100644
--- a/tests/integration/jersey-780/pom.xml
+++ b/tests/integration/jersey-780/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-780
diff --git a/tests/integration/microprofile/config/helidon/pom.xml b/tests/integration/microprofile/config/helidon/pom.xml
index 4252efc714b..f7e75d5a5d9 100644
--- a/tests/integration/microprofile/config/helidon/pom.xml
+++ b/tests/integration/microprofile/config/helidon/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/microprofile/config/pom.xml b/tests/integration/microprofile/config/pom.xml
index 16f7cdfb63f..b7095cdfac1 100644
--- a/tests/integration/microprofile/config/pom.xml
+++ b/tests/integration/microprofile/config/pom.xml
@@ -22,7 +22,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
pom
diff --git a/tests/integration/microprofile/config/webapp/pom.xml b/tests/integration/microprofile/config/webapp/pom.xml
index ed1d5edd285..4814e3155a8 100644
--- a/tests/integration/microprofile/config/webapp/pom.xml
+++ b/tests/integration/microprofile/config/webapp/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/microprofile/pom.xml b/tests/integration/microprofile/pom.xml
index ef81370e9db..5bb89f1aba3 100644
--- a/tests/integration/microprofile/pom.xml
+++ b/tests/integration/microprofile/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
pom
diff --git a/tests/integration/microprofile/rest-client-tck/pom.xml b/tests/integration/microprofile/rest-client-tck/pom.xml
index 14e233474af..d9ba331f758 100644
--- a/tests/integration/microprofile/rest-client-tck/pom.xml
+++ b/tests/integration/microprofile/rest-client-tck/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/microprofile/rest-client/pom.xml b/tests/integration/microprofile/rest-client/pom.xml
index bce2a0da56d..c063e5e931d 100644
--- a/tests/integration/microprofile/rest-client/pom.xml
+++ b/tests/integration/microprofile/rest-client/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index 1d5f1b6337d..49b222d95b7 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.tests.integration
diff --git a/tests/integration/property-check/pom.xml b/tests/integration/property-check/pom.xml
index 81c0dbb903c..59ab9e8d25d 100644
--- a/tests/integration/property-check/pom.xml
+++ b/tests/integration/property-check/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
property-check
diff --git a/tests/integration/reactive-streams/pom.xml b/tests/integration/reactive-streams/pom.xml
index a3bd18578a5..431b3afd550 100644
--- a/tests/integration/reactive-streams/pom.xml
+++ b/tests/integration/reactive-streams/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
pom
diff --git a/tests/integration/reactive-streams/sse/pom.xml b/tests/integration/reactive-streams/sse/pom.xml
index 92abfb29eb3..2176e229049 100644
--- a/tests/integration/reactive-streams/sse/pom.xml
+++ b/tests/integration/reactive-streams/sse/pom.xml
@@ -22,7 +22,7 @@
reactive-streams-integration-project
org.glassfish.jersey.tests.integration.reactive
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/integration/security-digest/pom.xml b/tests/integration/security-digest/pom.xml
index a6dd8348609..72bce4f03a6 100644
--- a/tests/integration/security-digest/pom.xml
+++ b/tests/integration/security-digest/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
security-digest
diff --git a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
index c2fb0bb0649..f64104fa0b3 100644
--- a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-autodiscovery-1
diff --git a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
index 1e603bd1319..2f290a2f6cb 100644
--- a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-autodiscovery-2
diff --git a/tests/integration/servlet-2.5-filter/pom.xml b/tests/integration/servlet-2.5-filter/pom.xml
index 96f96610f77..9275f7606ae 100644
--- a/tests/integration/servlet-2.5-filter/pom.xml
+++ b/tests/integration/servlet-2.5-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-filter
diff --git a/tests/integration/servlet-2.5-inflector-1/pom.xml b/tests/integration/servlet-2.5-inflector-1/pom.xml
index 0c4a305309d..091e5d880ce 100644
--- a/tests/integration/servlet-2.5-inflector-1/pom.xml
+++ b/tests/integration/servlet-2.5-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-inflector-1
diff --git a/tests/integration/servlet-2.5-init-1/pom.xml b/tests/integration/servlet-2.5-init-1/pom.xml
index 54f437b6c97..ed36ac5fef3 100644
--- a/tests/integration/servlet-2.5-init-1/pom.xml
+++ b/tests/integration/servlet-2.5-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-init-1
diff --git a/tests/integration/servlet-2.5-init-2/pom.xml b/tests/integration/servlet-2.5-init-2/pom.xml
index dc45781a2ad..4cf4bd04518 100644
--- a/tests/integration/servlet-2.5-init-2/pom.xml
+++ b/tests/integration/servlet-2.5-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-init-2
diff --git a/tests/integration/servlet-2.5-init-3/pom.xml b/tests/integration/servlet-2.5-init-3/pom.xml
index 02ba933fba3..b2b471bb168 100644
--- a/tests/integration/servlet-2.5-init-3/pom.xml
+++ b/tests/integration/servlet-2.5-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-init-3
diff --git a/tests/integration/servlet-2.5-init-4/pom.xml b/tests/integration/servlet-2.5-init-4/pom.xml
index 0072028cb76..5b91fbf9cba 100644
--- a/tests/integration/servlet-2.5-init-4/pom.xml
+++ b/tests/integration/servlet-2.5-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-init-4
diff --git a/tests/integration/servlet-2.5-init-5/pom.xml b/tests/integration/servlet-2.5-init-5/pom.xml
index adc7d4946e9..fa51ad12742 100644
--- a/tests/integration/servlet-2.5-init-5/pom.xml
+++ b/tests/integration/servlet-2.5-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-init-5
diff --git a/tests/integration/servlet-2.5-init-6/pom.xml b/tests/integration/servlet-2.5-init-6/pom.xml
index 7f3ac5b7b3c..27e48e64796 100644
--- a/tests/integration/servlet-2.5-init-6/pom.xml
+++ b/tests/integration/servlet-2.5-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-init-6
diff --git a/tests/integration/servlet-2.5-init-7/pom.xml b/tests/integration/servlet-2.5-init-7/pom.xml
index 50fbc74d3e5..a7ff29a5c74 100644
--- a/tests/integration/servlet-2.5-init-7/pom.xml
+++ b/tests/integration/servlet-2.5-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-init-7
diff --git a/tests/integration/servlet-2.5-init-8/pom.xml b/tests/integration/servlet-2.5-init-8/pom.xml
index e3973955f57..34e0d07e0ba 100644
--- a/tests/integration/servlet-2.5-init-8/pom.xml
+++ b/tests/integration/servlet-2.5-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-init-8
diff --git a/tests/integration/servlet-2.5-mvc-1/pom.xml b/tests/integration/servlet-2.5-mvc-1/pom.xml
index ddf4d532ecf..f817c9129a0 100644
--- a/tests/integration/servlet-2.5-mvc-1/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-mvc-1
diff --git a/tests/integration/servlet-2.5-mvc-2/pom.xml b/tests/integration/servlet-2.5-mvc-2/pom.xml
index 7e8cd2117be..4055b1c1230 100644
--- a/tests/integration/servlet-2.5-mvc-2/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-mvc-2
diff --git a/tests/integration/servlet-2.5-mvc-3/pom.xml b/tests/integration/servlet-2.5-mvc-3/pom.xml
index 83bf515a132..7f445eb8aa1 100644
--- a/tests/integration/servlet-2.5-mvc-3/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-mvc-3
diff --git a/tests/integration/servlet-2.5-reload/pom.xml b/tests/integration/servlet-2.5-reload/pom.xml
index dbafe7fecab..e6add08b22c 100644
--- a/tests/integration/servlet-2.5-reload/pom.xml
+++ b/tests/integration/servlet-2.5-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-2.5-reload
diff --git a/tests/integration/servlet-3-async/pom.xml b/tests/integration/servlet-3-async/pom.xml
index 71619d6eaeb..4d67973100c 100644
--- a/tests/integration/servlet-3-async/pom.xml
+++ b/tests/integration/servlet-3-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-async
diff --git a/tests/integration/servlet-3-chunked-io/pom.xml b/tests/integration/servlet-3-chunked-io/pom.xml
index 70a99953d2e..0dafcee84a3 100644
--- a/tests/integration/servlet-3-chunked-io/pom.xml
+++ b/tests/integration/servlet-3-chunked-io/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-chunked-io
diff --git a/tests/integration/servlet-3-filter/pom.xml b/tests/integration/servlet-3-filter/pom.xml
index c5511749d4d..0ebac0140de 100644
--- a/tests/integration/servlet-3-filter/pom.xml
+++ b/tests/integration/servlet-3-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-filter
diff --git a/tests/integration/servlet-3-gf-async/pom.xml b/tests/integration/servlet-3-gf-async/pom.xml
index f741e8f51d3..7c2d31a9297 100644
--- a/tests/integration/servlet-3-gf-async/pom.xml
+++ b/tests/integration/servlet-3-gf-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-gf-async
diff --git a/tests/integration/servlet-3-inflector-1/pom.xml b/tests/integration/servlet-3-inflector-1/pom.xml
index af1d92971ed..cc6658ec044 100644
--- a/tests/integration/servlet-3-inflector-1/pom.xml
+++ b/tests/integration/servlet-3-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-inflector-1
diff --git a/tests/integration/servlet-3-init-1/pom.xml b/tests/integration/servlet-3-init-1/pom.xml
index 7c66926099f..b127e1ec6c9 100644
--- a/tests/integration/servlet-3-init-1/pom.xml
+++ b/tests/integration/servlet-3-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-init-1
diff --git a/tests/integration/servlet-3-init-2/pom.xml b/tests/integration/servlet-3-init-2/pom.xml
index ca8d028ed39..d8c421ea670 100644
--- a/tests/integration/servlet-3-init-2/pom.xml
+++ b/tests/integration/servlet-3-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-init-2
diff --git a/tests/integration/servlet-3-init-3/pom.xml b/tests/integration/servlet-3-init-3/pom.xml
index 5a37057e5fd..e1c39985b76 100644
--- a/tests/integration/servlet-3-init-3/pom.xml
+++ b/tests/integration/servlet-3-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-init-3
diff --git a/tests/integration/servlet-3-init-4/pom.xml b/tests/integration/servlet-3-init-4/pom.xml
index dde891b39ed..65ebc71f9cc 100644
--- a/tests/integration/servlet-3-init-4/pom.xml
+++ b/tests/integration/servlet-3-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-init-4
diff --git a/tests/integration/servlet-3-init-5/pom.xml b/tests/integration/servlet-3-init-5/pom.xml
index 8adf7f68b5d..b77080c3c79 100644
--- a/tests/integration/servlet-3-init-5/pom.xml
+++ b/tests/integration/servlet-3-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-init-5
diff --git a/tests/integration/servlet-3-init-6/pom.xml b/tests/integration/servlet-3-init-6/pom.xml
index 59ec309e1ce..c52e1929b40 100644
--- a/tests/integration/servlet-3-init-6/pom.xml
+++ b/tests/integration/servlet-3-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-init-6
diff --git a/tests/integration/servlet-3-init-7/pom.xml b/tests/integration/servlet-3-init-7/pom.xml
index 5fdb6023bd5..d92378b73ac 100644
--- a/tests/integration/servlet-3-init-7/pom.xml
+++ b/tests/integration/servlet-3-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-init-7
diff --git a/tests/integration/servlet-3-init-8/pom.xml b/tests/integration/servlet-3-init-8/pom.xml
index f65d7c0390b..6f31ce7c12f 100644
--- a/tests/integration/servlet-3-init-8/pom.xml
+++ b/tests/integration/servlet-3-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-init-8
diff --git a/tests/integration/servlet-3-init-9/pom.xml b/tests/integration/servlet-3-init-9/pom.xml
index 209e822aa16..6e60f707a37 100644
--- a/tests/integration/servlet-3-init-9/pom.xml
+++ b/tests/integration/servlet-3-init-9/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-init-9
diff --git a/tests/integration/servlet-3-init-provider/pom.xml b/tests/integration/servlet-3-init-provider/pom.xml
index 0406650fc5f..b0887741f9d 100644
--- a/tests/integration/servlet-3-init-provider/pom.xml
+++ b/tests/integration/servlet-3-init-provider/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-init-provider
diff --git a/tests/integration/servlet-3-params/pom.xml b/tests/integration/servlet-3-params/pom.xml
index 48177f9a876..aecdc1b7968 100644
--- a/tests/integration/servlet-3-params/pom.xml
+++ b/tests/integration/servlet-3-params/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-params
diff --git a/tests/integration/servlet-3-sse-1/pom.xml b/tests/integration/servlet-3-sse-1/pom.xml
index d71dd3aef06..42f10c11ac5 100644
--- a/tests/integration/servlet-3-sse-1/pom.xml
+++ b/tests/integration/servlet-3-sse-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-3-sse-1
diff --git a/tests/integration/servlet-4.0-mvc-1/pom.xml b/tests/integration/servlet-4.0-mvc-1/pom.xml
index 7cca8ac5b92..3a2eb655ad8 100644
--- a/tests/integration/servlet-4.0-mvc-1/pom.xml
+++ b/tests/integration/servlet-4.0-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-4.0-mvc-1
diff --git a/tests/integration/servlet-request-wrapper-binding-2/pom.xml b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
index 3437dbdab9d..2c9f44e5179 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-request-wrappper-binding-2
diff --git a/tests/integration/servlet-request-wrapper-binding/pom.xml b/tests/integration/servlet-request-wrapper-binding/pom.xml
index 2ff1a47eea4..3c4b9c0a002 100644
--- a/tests/integration/servlet-request-wrapper-binding/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-request-wrappper-binding
diff --git a/tests/integration/servlet-tests/pom.xml b/tests/integration/servlet-tests/pom.xml
index b7a2eb5e70f..6d8dfcc11c3 100644
--- a/tests/integration/servlet-tests/pom.xml
+++ b/tests/integration/servlet-tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
servlet-tests
diff --git a/tests/integration/sonar-test/pom.xml b/tests/integration/sonar-test/pom.xml
index 9dfddc2c0ff..b80ded83d6d 100644
--- a/tests/integration/sonar-test/pom.xml
+++ b/tests/integration/sonar-test/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
sonar-test
diff --git a/tests/integration/spring6/pom.xml b/tests/integration/spring6/pom.xml
index e7df36c1d9b..779b1c95df3 100644
--- a/tests/integration/spring6/pom.xml
+++ b/tests/integration/spring6/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
spring6
diff --git a/tests/integration/tracing-support/pom.xml b/tests/integration/tracing-support/pom.xml
index 384de24405c..3d3e6b83838 100644
--- a/tests/integration/tracing-support/pom.xml
+++ b/tests/integration/tracing-support/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.0.6
tracing-support
diff --git a/tests/jmockit/pom.xml b/tests/jmockit/pom.xml
index 74de78523e3..617d98a04c6 100644
--- a/tests/jmockit/pom.xml
+++ b/tests/jmockit/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests
- 3.1.0-SNAPSHOT
+ 3.0.6
4.0.0
diff --git a/tests/mem-leaks/pom.xml b/tests/mem-leaks/pom.xml
index f18ef800814..9c020ad8a5b 100644
--- a/tests/mem-leaks/pom.xml
+++ b/tests/mem-leaks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.tests.memleaks
diff --git a/tests/mem-leaks/redeployment/pom.xml b/tests/mem-leaks/redeployment/pom.xml
index 19c0244b2e9..c5df19940e9 100644
--- a/tests/mem-leaks/redeployment/pom.xml
+++ b/tests/mem-leaks/redeployment/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.tests.memleaks.redeployment
diff --git a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
index e56381d8bb0..3b7ec5fd8f3 100644
--- a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.1.0-SNAPSHOT
+ 3.0.6
redeployment-hello-world-app-ref
@@ -132,7 +132,7 @@
org.glassfish.jersey.examples
helloworld-webapp
war
- 3.1.0-SNAPSHOT
+ 3.0.6
diff --git a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
index 294bd3cd5ac..127d60bae1c 100644
--- a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.1.0-SNAPSHOT
+ 3.0.6
redeployment-leaking-test-app
diff --git a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
index c92c5bf34b8..0a818dc05a2 100644
--- a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.1.0-SNAPSHOT
+ 3.0.6
redeployment-no-jersey-app
diff --git a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
index af0c7e3aa31..100d335fb4d 100644
--- a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.1.0-SNAPSHOT
+ 3.0.6
redeployment-threadlocals-app
diff --git a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
index 51ab9701d8b..fa70a058865 100644
--- a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
bean-param-leak
diff --git a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
index 3be0eba0883..21b7b2bf421 100644
--- a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
+++ b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
leaking-test-app
diff --git a/tests/mem-leaks/test-cases/pom.xml b/tests/mem-leaks/test-cases/pom.xml
index 29b013dfd15..58196340203 100644
--- a/tests/mem-leaks/test-cases/pom.xml
+++ b/tests/mem-leaks/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.tests.memleaks.testcases
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
index faa55ad6ba5..fd40a6f99c2 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
shutdown-hook-leak-client
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
index f6548b61ed4..6e4f5cd94c2 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
shutdown-hook-leak
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index 0d093a21aa9..45a6c041005 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.osgi
project
- 3.1.0-SNAPSHOT
+ 3.0.6
jersey-tests-osgi-functional
diff --git a/tests/osgi/pom.xml b/tests/osgi/pom.xml
index 989185ab4ee..92753f4dafc 100644
--- a/tests/osgi/pom.xml
+++ b/tests/osgi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.tests.osgi
diff --git a/tests/performance/benchmarks/pom.xml b/tests/performance/benchmarks/pom.xml
index 07cbc44237b..1452d5988f1 100644
--- a/tests/performance/benchmarks/pom.xml
+++ b/tests/performance/benchmarks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.1.0-SNAPSHOT
+ 3.0.6
performance-test-benchmarks
diff --git a/tests/performance/pom.xml b/tests/performance/pom.xml
index 05a862021ca..58e7410a0d6 100644
--- a/tests/performance/pom.xml
+++ b/tests/performance/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.tests.performance
diff --git a/tests/performance/runners/jersey-grizzly-runner/pom.xml b/tests/performance/runners/jersey-grizzly-runner/pom.xml
index 6868a036671..fee46b061fe 100644
--- a/tests/performance/runners/jersey-grizzly-runner/pom.xml
+++ b/tests/performance/runners/jersey-grizzly-runner/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.runners
project
- 3.1.0-SNAPSHOT
+ 3.0.6
diff --git a/tests/performance/runners/pom.xml b/tests/performance/runners/pom.xml
index 02b7c6dcd11..c271f497eb1 100644
--- a/tests/performance/runners/pom.xml
+++ b/tests/performance/runners/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.tests.performance.runners
diff --git a/tests/performance/test-cases/assemblies/pom.xml b/tests/performance/test-cases/assemblies/pom.xml
index ae8fe5f9ce2..09668e90922 100644
--- a/tests/performance/test-cases/assemblies/pom.xml
+++ b/tests/performance/test-cases/assemblies/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
assemblies
diff --git a/tests/performance/test-cases/filter-dynamic/pom.xml b/tests/performance/test-cases/filter-dynamic/pom.xml
index 003a2ce98ed..448f2d60208 100644
--- a/tests/performance/test-cases/filter-dynamic/pom.xml
+++ b/tests/performance/test-cases/filter-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
filter-dynamic
diff --git a/tests/performance/test-cases/filter-global/pom.xml b/tests/performance/test-cases/filter-global/pom.xml
index 8cdc81e9f58..91fea1b02d7 100644
--- a/tests/performance/test-cases/filter-global/pom.xml
+++ b/tests/performance/test-cases/filter-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
filter-global
diff --git a/tests/performance/test-cases/filter-name/pom.xml b/tests/performance/test-cases/filter-name/pom.xml
index 19c273115d2..a13437a63bd 100644
--- a/tests/performance/test-cases/filter-name/pom.xml
+++ b/tests/performance/test-cases/filter-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
filter-name
diff --git a/tests/performance/test-cases/interceptor-dynamic/pom.xml b/tests/performance/test-cases/interceptor-dynamic/pom.xml
index 57378ead789..f6a84bebab7 100644
--- a/tests/performance/test-cases/interceptor-dynamic/pom.xml
+++ b/tests/performance/test-cases/interceptor-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
interceptor-dynamic
diff --git a/tests/performance/test-cases/interceptor-global/pom.xml b/tests/performance/test-cases/interceptor-global/pom.xml
index 6afa505ab0a..64e767535de 100644
--- a/tests/performance/test-cases/interceptor-global/pom.xml
+++ b/tests/performance/test-cases/interceptor-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
interceptor-global
diff --git a/tests/performance/test-cases/interceptor-name/pom.xml b/tests/performance/test-cases/interceptor-name/pom.xml
index 2ec1e087ccc..36faf1c9aab 100644
--- a/tests/performance/test-cases/interceptor-name/pom.xml
+++ b/tests/performance/test-cases/interceptor-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
interceptor-name
diff --git a/tests/performance/test-cases/mbw-custom-provider/pom.xml b/tests/performance/test-cases/mbw-custom-provider/pom.xml
index f340afd6a0a..7812840754f 100644
--- a/tests/performance/test-cases/mbw-custom-provider/pom.xml
+++ b/tests/performance/test-cases/mbw-custom-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
custom-provider
diff --git a/tests/performance/test-cases/mbw-json-jackson/pom.xml b/tests/performance/test-cases/mbw-json-jackson/pom.xml
index e8b343b45e6..e568999d7ca 100644
--- a/tests/performance/test-cases/mbw-json-jackson/pom.xml
+++ b/tests/performance/test-cases/mbw-json-jackson/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
json-jackson
diff --git a/tests/performance/test-cases/mbw-json-moxy/pom.xml b/tests/performance/test-cases/mbw-json-moxy/pom.xml
index ea3f2a11254..cd68476e0db 100644
--- a/tests/performance/test-cases/mbw-json-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-json-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
json-moxy
diff --git a/tests/performance/test-cases/mbw-kryo/pom.xml b/tests/performance/test-cases/mbw-kryo/pom.xml
index fdada6df314..ab8b10e9e87 100644
--- a/tests/performance/test-cases/mbw-kryo/pom.xml
+++ b/tests/performance/test-cases/mbw-kryo/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
mbw-kryo
diff --git a/tests/performance/test-cases/mbw-text-plain/pom.xml b/tests/performance/test-cases/mbw-text-plain/pom.xml
index 6b62603041e..44454933de3 100644
--- a/tests/performance/test-cases/mbw-text-plain/pom.xml
+++ b/tests/performance/test-cases/mbw-text-plain/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
text-plain
diff --git a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
index 9f94dd8d1fb..dfa6086b6ec 100644
--- a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
xml-jaxb
diff --git a/tests/performance/test-cases/mbw-xml-moxy/pom.xml b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
index d8ed09428bf..a3270faa601 100644
--- a/tests/performance/test-cases/mbw-xml-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
xml-moxy
diff --git a/tests/performance/test-cases/param-srl/pom.xml b/tests/performance/test-cases/param-srl/pom.xml
index 77734a37f70..981c6ef7688 100644
--- a/tests/performance/test-cases/param-srl/pom.xml
+++ b/tests/performance/test-cases/param-srl/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
param-srl
diff --git a/tests/performance/test-cases/pom.xml b/tests/performance/test-cases/pom.xml
index 409b6c3eedd..b888e89f8c3 100644
--- a/tests/performance/test-cases/pom.xml
+++ b/tests/performance/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.tests.performance.testcases
diff --git a/tests/performance/test-cases/proxy-injection/pom.xml b/tests/performance/test-cases/proxy-injection/pom.xml
index b579a0bfc6e..aee1eb2af71 100644
--- a/tests/performance/test-cases/proxy-injection/pom.xml
+++ b/tests/performance/test-cases/proxy-injection/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.0.6
proxy-injection
diff --git a/tests/performance/tools/pom.xml b/tests/performance/tools/pom.xml
index 98c2f34c436..fb4e2749d1c 100644
--- a/tests/performance/tools/pom.xml
+++ b/tests/performance/tools/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.tests.performance.tools
performance-test-tools
diff --git a/tests/pom.xml b/tests/pom.xml
index 0d1a49957c6..39955811fad 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.0.6
org.glassfish.jersey.tests
diff --git a/tests/stress/pom.xml b/tests/stress/pom.xml
index 95a9b8876bf..fa2434f6b4a 100644
--- a/tests/stress/pom.xml
+++ b/tests/stress/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.0.6
stress
From 7c3048beb9a371f8c48bbdadace09d712859d54c Mon Sep 17 00:00:00 2001
From: jersey-bot
Date: Thu, 4 Aug 2022 05:58:13 +0000
Subject: [PATCH 076/305] 3.0.99-SNAPSHOT
---
archetypes/jersey-example-java8-webapp/pom.xml | 2 +-
archetypes/jersey-heroku-webapp/pom.xml | 2 +-
archetypes/jersey-quickstart-grizzly2/pom.xml | 2 +-
archetypes/jersey-quickstart-webapp/pom.xml | 2 +-
archetypes/pom.xml | 2 +-
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 2 +-
bundles/jaxrs-ri/pom.xml | 2 +-
bundles/pom.xml | 2 +-
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 2 +-
connectors/helidon-connector/pom.xml | 2 +-
connectors/jdk-connector/pom.xml | 2 +-
connectors/jetty-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 2 +-
containers/glassfish/pom.xml | 2 +-
containers/grizzly2-http/pom.xml | 2 +-
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-http/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
containers/netty-http/pom.xml | 2 +-
containers/pom.xml | 2 +-
containers/simple-http/pom.xml | 2 +-
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 2 +-
examples/assemblies/pom.xml | 2 +-
examples/bookmark-em/pom.xml | 2 +-
examples/bookmark/pom.xml | 2 +-
examples/bookstore-webapp/pom.xml | 2 +-
examples/cdi-webapp/pom.xml | 2 +-
examples/clipboard-programmatic/pom.xml | 2 +-
examples/clipboard/pom.xml | 2 +-
examples/declarative-linking/pom.xml | 2 +-
examples/entity-filtering-security/pom.xml | 2 +-
examples/entity-filtering-selectable/pom.xml | 2 +-
examples/entity-filtering/pom.xml | 2 +-
examples/exception-mapping/pom.xml | 2 +-
examples/extended-wadl-webapp/pom.xml | 2 +-
examples/freemarker-webapp/pom.xml | 2 +-
examples/groovy/pom.xml | 2 +-
examples/helloworld-benchmark/pom.xml | 2 +-
examples/helloworld-cdi2-se/pom.xml | 2 +-
examples/helloworld-netty/pom.xml | 2 +-
examples/helloworld-programmatic/pom.xml | 2 +-
examples/helloworld-pure-jax-rs/pom.xml | 2 +-
examples/helloworld-webapp/pom.xml | 2 +-
examples/helloworld-weld/pom.xml | 2 +-
examples/helloworld/pom.xml | 2 +-
examples/http-patch/pom.xml | 2 +-
examples/http-trace/pom.xml | 2 +-
examples/https-clientserver-grizzly/pom.xml | 2 +-
examples/https-server-glassfish/pom.xml | 2 +-
examples/java8-webapp/pom.xml | 2 +-
examples/jaxb/pom.xml | 2 +-
examples/jaxrs-types-injection/pom.xml | 2 +-
examples/jersey-ejb/pom.xml | 2 +-
examples/json-binding-webapp/pom.xml | 2 +-
examples/json-jackson/pom.xml | 2 +-
examples/json-jettison/pom.xml | 2 +-
examples/json-moxy/pom.xml | 2 +-
examples/json-processing-webapp/pom.xml | 2 +-
examples/json-with-padding/pom.xml | 2 +-
examples/managed-beans-webapp/pom.xml | 2 +-
examples/managed-client-simple-webapp/pom.xml | 2 +-
examples/managed-client-webapp/pom.xml | 2 +-
examples/managed-client/pom.xml | 2 +-
examples/multipart-webapp/pom.xml | 2 +-
examples/oauth-client-twitter/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 2 +-
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/functional-test/pom.xml | 2 +-
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/pom.xml | 2 +-
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 2 +-
examples/pom.xml | 2 +-
examples/reload/pom.xml | 2 +-
examples/rx-client-webapp/pom.xml | 2 +-
examples/server-async-managed/pom.xml | 2 +-
examples/server-async-standalone/client/pom.xml | 2 +-
examples/server-async-standalone/pom.xml | 2 +-
examples/server-async-standalone/webapp/pom.xml | 2 +-
examples/server-async/pom.xml | 2 +-
examples/server-sent-events-jaxrs/pom.xml | 2 +-
examples/server-sent-events-jersey/pom.xml | 2 +-
examples/servlet3-webapp/pom.xml | 2 +-
examples/simple-console/pom.xml | 2 +-
examples/sse-item-store-jaxrs-webapp/pom.xml | 2 +-
examples/sse-item-store-jersey-webapp/pom.xml | 2 +-
examples/sse-twitter-aggregator/pom.xml | 2 +-
examples/system-properties-example/pom.xml | 2 +-
examples/webapp-example-parent/pom.xml | 2 +-
examples/xml-moxy/pom.xml | 2 +-
ext/bean-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-transaction/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi1x/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 2 +-
ext/cdi/pom.xml | 2 +-
ext/entity-filtering/pom.xml | 2 +-
ext/metainf-services/pom.xml | 2 +-
ext/microprofile/mp-config/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/microprofile/pom.xml | 2 +-
ext/mvc-bean-validation/pom.xml | 2 +-
ext/mvc-freemarker/pom.xml | 2 +-
ext/mvc-jsp/pom.xml | 2 +-
ext/mvc-mustache/pom.xml | 2 +-
ext/mvc/pom.xml | 2 +-
ext/pom.xml | 2 +-
ext/proxy-client/pom.xml | 2 +-
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 2 +-
ext/rx/rx-client-rxjava2/pom.xml | 2 +-
ext/spring6/pom.xml | 2 +-
ext/wadl-doclet/pom.xml | 2 +-
incubator/cdi-inject-weld/pom.xml | 2 +-
incubator/declarative-linking/pom.xml | 2 +-
incubator/gae-integration/pom.xml | 2 +-
incubator/html-json/pom.xml | 2 +-
incubator/kryo/pom.xml | 2 +-
incubator/open-tracing/pom.xml | 2 +-
incubator/pom.xml | 2 +-
inject/cdi2-se/pom.xml | 2 +-
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 2 +-
media/jaxb/pom.xml | 2 +-
media/json-binding/pom.xml | 2 +-
media/json-gson/pom.xml | 2 +-
media/json-jackson/pom.xml | 2 +-
media/json-jettison/pom.xml | 2 +-
media/json-processing/pom.xml | 2 +-
media/moxy/pom.xml | 2 +-
media/multipart/pom.xml | 2 +-
media/pom.xml | 2 +-
media/sse/pom.xml | 2 +-
pom.xml | 2 +-
security/oauth1-client/pom.xml | 2 +-
security/oauth1-server/pom.xml | 2 +-
security/oauth1-signature/pom.xml | 2 +-
security/oauth2-client/pom.xml | 2 +-
security/pom.xml | 2 +-
test-framework/core/pom.xml | 2 +-
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 2 +-
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 2 +-
test-framework/providers/bundle/pom.xml | 2 +-
test-framework/providers/external/pom.xml | 2 +-
test-framework/providers/grizzly2/pom.xml | 2 +-
test-framework/providers/inmemory/pom.xml | 2 +-
test-framework/providers/jdk-http/pom.xml | 2 +-
test-framework/providers/jetty/pom.xml | 2 +-
test-framework/providers/netty/pom.xml | 2 +-
test-framework/providers/pom.xml | 2 +-
test-framework/providers/simple/pom.xml | 2 +-
test-framework/util/pom.xml | 2 +-
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 2 +-
tests/e2e-inject/pom.xml | 2 +-
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 2 +-
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 2 +-
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 2 +-
.../integration/cdi-integration/cdi-client-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-client/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 2 +-
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-log-check/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-manually-bound/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multipart-webapp/pom.xml | 2 +-
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-singleton/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 2 +-
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 2 +-
.../pom.xml | 2 +-
.../cdi-integration/cdi-with-jersey-injection-webapp/pom.xml | 2 +-
.../cdi-integration/context-inject-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/pom.xml | 2 +-
tests/integration/client-connector-provider/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule/pom.xml | 2 +-
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 2 +-
tests/integration/j-376/pom.xml | 2 +-
tests/integration/j-441/ear/pom.xml | 2 +-
tests/integration/j-441/pom.xml | 2 +-
tests/integration/j-441/war1/pom.xml | 2 +-
tests/integration/j-441/war2/pom.xml | 2 +-
tests/integration/j-59/ear/pom.xml | 2 +-
tests/integration/j-59/lib/pom.xml | 2 +-
tests/integration/j-59/pom.xml | 2 +-
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 2 +-
tests/integration/jersey-1107/pom.xml | 2 +-
tests/integration/jersey-1223/pom.xml | 2 +-
tests/integration/jersey-1604/pom.xml | 2 +-
tests/integration/jersey-1667/pom.xml | 2 +-
tests/integration/jersey-1883/pom.xml | 2 +-
tests/integration/jersey-1928/pom.xml | 2 +-
tests/integration/jersey-1960/pom.xml | 2 +-
tests/integration/jersey-1964/pom.xml | 2 +-
tests/integration/jersey-2031/pom.xml | 2 +-
tests/integration/jersey-2136/pom.xml | 2 +-
tests/integration/jersey-2137/pom.xml | 2 +-
tests/integration/jersey-2154/pom.xml | 2 +-
tests/integration/jersey-2160/pom.xml | 2 +-
tests/integration/jersey-2164/pom.xml | 2 +-
tests/integration/jersey-2167/pom.xml | 2 +-
tests/integration/jersey-2176/pom.xml | 2 +-
tests/integration/jersey-2184/pom.xml | 2 +-
tests/integration/jersey-2255/pom.xml | 2 +-
tests/integration/jersey-2322/pom.xml | 2 +-
tests/integration/jersey-2335/pom.xml | 2 +-
tests/integration/jersey-2421/pom.xml | 2 +-
tests/integration/jersey-2551/pom.xml | 2 +-
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 2 +-
tests/integration/jersey-2654/pom.xml | 2 +-
tests/integration/jersey-2673/pom.xml | 2 +-
tests/integration/jersey-2689/pom.xml | 2 +-
tests/integration/jersey-2704/pom.xml | 2 +-
tests/integration/jersey-2776/pom.xml | 2 +-
tests/integration/jersey-2794/pom.xml | 2 +-
tests/integration/jersey-2846/pom.xml | 2 +-
tests/integration/jersey-2878/pom.xml | 2 +-
tests/integration/jersey-2892/pom.xml | 2 +-
tests/integration/jersey-3662/pom.xml | 2 +-
tests/integration/jersey-3670/pom.xml | 2 +-
tests/integration/jersey-3796/pom.xml | 2 +-
tests/integration/jersey-3992/pom.xml | 2 +-
tests/integration/jersey-4003/pom.xml | 2 +-
tests/integration/jersey-4099/pom.xml | 2 +-
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 2 +-
tests/integration/jersey-4542/pom.xml | 2 +-
tests/integration/jersey-4697/pom.xml | 2 +-
tests/integration/jersey-4722/pom.xml | 2 +-
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-5087/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 2 +-
tests/integration/microprofile/config/helidon/pom.xml | 2 +-
tests/integration/microprofile/config/pom.xml | 2 +-
tests/integration/microprofile/config/webapp/pom.xml | 2 +-
tests/integration/microprofile/pom.xml | 2 +-
tests/integration/microprofile/rest-client-tck/pom.xml | 2 +-
tests/integration/microprofile/rest-client/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 2 +-
tests/integration/reactive-streams/sse/pom.xml | 2 +-
tests/integration/security-digest/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 2 +-
tests/integration/servlet-2.5-filter/pom.xml | 2 +-
tests/integration/servlet-2.5-inflector-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-2/pom.xml | 2 +-
tests/integration/servlet-2.5-init-3/pom.xml | 2 +-
tests/integration/servlet-2.5-init-4/pom.xml | 2 +-
tests/integration/servlet-2.5-init-5/pom.xml | 2 +-
tests/integration/servlet-2.5-init-6/pom.xml | 2 +-
tests/integration/servlet-2.5-init-7/pom.xml | 2 +-
tests/integration/servlet-2.5-init-8/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-1/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-2/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-3/pom.xml | 2 +-
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 2 +-
tests/integration/servlet-3-chunked-io/pom.xml | 2 +-
tests/integration/servlet-3-filter/pom.xml | 2 +-
tests/integration/servlet-3-gf-async/pom.xml | 2 +-
tests/integration/servlet-3-inflector-1/pom.xml | 2 +-
tests/integration/servlet-3-init-1/pom.xml | 2 +-
tests/integration/servlet-3-init-2/pom.xml | 2 +-
tests/integration/servlet-3-init-3/pom.xml | 2 +-
tests/integration/servlet-3-init-4/pom.xml | 2 +-
tests/integration/servlet-3-init-5/pom.xml | 2 +-
tests/integration/servlet-3-init-6/pom.xml | 2 +-
tests/integration/servlet-3-init-7/pom.xml | 2 +-
tests/integration/servlet-3-init-8/pom.xml | 2 +-
tests/integration/servlet-3-init-9/pom.xml | 2 +-
tests/integration/servlet-3-init-provider/pom.xml | 2 +-
tests/integration/servlet-3-params/pom.xml | 2 +-
tests/integration/servlet-3-sse-1/pom.xml | 2 +-
tests/integration/servlet-4.0-mvc-1/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 2 +-
tests/integration/sonar-test/pom.xml | 2 +-
tests/integration/spring6/pom.xml | 2 +-
tests/integration/tracing-support/pom.xml | 2 +-
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 2 +-
tests/mem-leaks/redeployment/pom.xml | 2 +-
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 4 ++--
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment/redeployment-threadlocals-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 2 +-
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 2 +-
tests/osgi/functional/pom.xml | 2 +-
tests/osgi/pom.xml | 2 +-
tests/performance/benchmarks/pom.xml | 2 +-
tests/performance/pom.xml | 2 +-
tests/performance/runners/jersey-grizzly-runner/pom.xml | 2 +-
tests/performance/runners/pom.xml | 2 +-
tests/performance/test-cases/assemblies/pom.xml | 2 +-
tests/performance/test-cases/filter-dynamic/pom.xml | 2 +-
tests/performance/test-cases/filter-global/pom.xml | 2 +-
tests/performance/test-cases/filter-name/pom.xml | 2 +-
tests/performance/test-cases/interceptor-dynamic/pom.xml | 2 +-
tests/performance/test-cases/interceptor-global/pom.xml | 2 +-
tests/performance/test-cases/interceptor-name/pom.xml | 2 +-
tests/performance/test-cases/mbw-custom-provider/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-jackson/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-moxy/pom.xml | 2 +-
tests/performance/test-cases/mbw-kryo/pom.xml | 2 +-
tests/performance/test-cases/mbw-text-plain/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 2 +-
tests/performance/test-cases/param-srl/pom.xml | 2 +-
tests/performance/test-cases/pom.xml | 2 +-
tests/performance/test-cases/proxy-injection/pom.xml | 2 +-
tests/performance/tools/pom.xml | 2 +-
tests/pom.xml | 2 +-
tests/stress/pom.xml | 2 +-
362 files changed, 363 insertions(+), 363 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index 7b08a5d797e..b47b480e685 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-example-java8-webapp
diff --git a/archetypes/jersey-heroku-webapp/pom.xml b/archetypes/jersey-heroku-webapp/pom.xml
index d2465cf200c..a413d64fa01 100644
--- a/archetypes/jersey-heroku-webapp/pom.xml
+++ b/archetypes/jersey-heroku-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.6
+ 3.0.99-SNAPSHOT
maven-archetype
diff --git a/archetypes/jersey-quickstart-grizzly2/pom.xml b/archetypes/jersey-quickstart-grizzly2/pom.xml
index a01b5573809..24b37a46dae 100644
--- a/archetypes/jersey-quickstart-grizzly2/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-quickstart-grizzly2
maven-archetype
diff --git a/archetypes/jersey-quickstart-webapp/pom.xml b/archetypes/jersey-quickstart-webapp/pom.xml
index 0835b356089..8b11c4ebc98 100644
--- a/archetypes/jersey-quickstart-webapp/pom.xml
+++ b/archetypes/jersey-quickstart-webapp/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
maven-archetype
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index 0dc7eb8a366..e8a31139d10 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.archetypes
diff --git a/bom/pom.xml b/bom/pom.xml
index b7c6c237466..1083d28a38b 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,7 +30,7 @@
org.glassfish.jersey
jersey-bom
- 3.0.6
+ 3.0.99-SNAPSHOT
pom
jersey-bom
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index 48ee3729777..083b14b1398 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.0.6
+ 3.0.99-SNAPSHOT
apidocs
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index 115fbb8e6f1..e171811f24f 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.bundles
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-examples
diff --git a/bundles/jaxrs-ri/pom.xml b/bundles/jaxrs-ri/pom.xml
index afbfea2d356..31d28b2523f 100644
--- a/bundles/jaxrs-ri/pom.xml
+++ b/bundles/jaxrs-ri/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jaxrs-ri
diff --git a/bundles/pom.xml b/bundles/pom.xml
index 0e741448048..5739d5eac11 100644
--- a/bundles/pom.xml
+++ b/bundles/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.bundles
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index 00037a9e5e6..269b753774a 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-apache-connector
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
index 33acac525d4..899e2911e5e 100644
--- a/connectors/apache5-connector/pom.xml
+++ b/connectors/apache5-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-apache5-connector
diff --git a/connectors/grizzly-connector/pom.xml b/connectors/grizzly-connector/pom.xml
index 4b831424d18..8d997a4ae4a 100644
--- a/connectors/grizzly-connector/pom.xml
+++ b/connectors/grizzly-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-grizzly-connector
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index 6d3bd707933..0e06810598d 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.connectors
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/connectors/jdk-connector/pom.xml b/connectors/jdk-connector/pom.xml
index af84b3c324a..57d04215b14 100644
--- a/connectors/jdk-connector/pom.xml
+++ b/connectors/jdk-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-jdk-connector
diff --git a/connectors/jetty-connector/pom.xml b/connectors/jetty-connector/pom.xml
index 2d8f155c895..8be410ed3f1 100644
--- a/connectors/jetty-connector/pom.xml
+++ b/connectors/jetty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-jetty-connector
diff --git a/connectors/netty-connector/pom.xml b/connectors/netty-connector/pom.xml
index bc1c2fc52ed..18054902133 100644
--- a/connectors/netty-connector/pom.xml
+++ b/connectors/netty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-netty-connector
diff --git a/connectors/pom.xml b/connectors/pom.xml
index c28a03a40e9..472101738f9 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.connectors
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index 37a48bba216..c9573115adb 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers.glassfish
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-gf-ejb
diff --git a/containers/glassfish/pom.xml b/containers/glassfish/pom.xml
index 93330ce6f50..97b7748050b 100644
--- a/containers/glassfish/pom.xml
+++ b/containers/glassfish/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.containers.glassfish
diff --git a/containers/grizzly2-http/pom.xml b/containers/grizzly2-http/pom.xml
index 5124f5f6bca..92ca31d2324 100644
--- a/containers/grizzly2-http/pom.xml
+++ b/containers/grizzly2-http/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.containers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-container-grizzly2-http
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index 61aeca2beb5..727344d3c55 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-container-grizzly2-servlet
diff --git a/containers/jdk-http/pom.xml b/containers/jdk-http/pom.xml
index 42c50538576..c9d95593f90 100644
--- a/containers/jdk-http/pom.xml
+++ b/containers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-container-jdk-http
diff --git a/containers/jersey-servlet-core/pom.xml b/containers/jersey-servlet-core/pom.xml
index 1b34dfdef8f..edd2e9ba58e 100644
--- a/containers/jersey-servlet-core/pom.xml
+++ b/containers/jersey-servlet-core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-container-servlet-core
diff --git a/containers/jersey-servlet/pom.xml b/containers/jersey-servlet/pom.xml
index 5625be021ec..e066f5d541c 100644
--- a/containers/jersey-servlet/pom.xml
+++ b/containers/jersey-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-container-servlet
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index 23b83db84b5..8ffde3c771a 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.containers
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-container-jetty-http
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 59047abf6fe..373d0044662 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-container-jetty-servlet
diff --git a/containers/netty-http/pom.xml b/containers/netty-http/pom.xml
index 42fce178ec0..8bdca8e03b9 100644
--- a/containers/netty-http/pom.xml
+++ b/containers/netty-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-container-netty-http
diff --git a/containers/pom.xml b/containers/pom.xml
index a72e67b6e4a..d1d9d1f9f8f 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.containers
diff --git a/containers/simple-http/pom.xml b/containers/simple-http/pom.xml
index 48c6a2ee117..442093fc474 100644
--- a/containers/simple-http/pom.xml
+++ b/containers/simple-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-container-simple-http
diff --git a/core-client/pom.xml b/core-client/pom.xml
index de848a9478f..e9a51246873 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.core
diff --git a/core-common/pom.xml b/core-common/pom.xml
index 8aa59a90301..b6282d38161 100644
--- a/core-common/pom.xml
+++ b/core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.core
diff --git a/core-server/pom.xml b/core-server/pom.xml
index fc9e5679327..5eaea68a6a7 100644
--- a/core-server/pom.xml
+++ b/core-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.core
diff --git a/docs/pom.xml b/docs/pom.xml
index 7c6e3db227c..509d6f2c691 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-documentation
pom
diff --git a/examples/assemblies/pom.xml b/examples/assemblies/pom.xml
index 72e7cdee38f..3a9082c2c70 100644
--- a/examples/assemblies/pom.xml
+++ b/examples/assemblies/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
assemblies
diff --git a/examples/bookmark-em/pom.xml b/examples/bookmark-em/pom.xml
index 314a5266083..43c1eb4d89b 100644
--- a/examples/bookmark-em/pom.xml
+++ b/examples/bookmark-em/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
bookmark-em
diff --git a/examples/bookmark/pom.xml b/examples/bookmark/pom.xml
index ac896b768bc..51b37c22f7d 100644
--- a/examples/bookmark/pom.xml
+++ b/examples/bookmark/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
bookmark
diff --git a/examples/bookstore-webapp/pom.xml b/examples/bookstore-webapp/pom.xml
index 9bc27de7c40..cfe9e6d253d 100644
--- a/examples/bookstore-webapp/pom.xml
+++ b/examples/bookstore-webapp/pom.xml
@@ -35,7 +35,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
bookstore-webapp
diff --git a/examples/cdi-webapp/pom.xml b/examples/cdi-webapp/pom.xml
index 803704fc4f2..803c399f4fd 100644
--- a/examples/cdi-webapp/pom.xml
+++ b/examples/cdi-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-webapp
diff --git a/examples/clipboard-programmatic/pom.xml b/examples/clipboard-programmatic/pom.xml
index 757a61d8cbb..6fab951dac4 100644
--- a/examples/clipboard-programmatic/pom.xml
+++ b/examples/clipboard-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
clipboard-programmatic
diff --git a/examples/clipboard/pom.xml b/examples/clipboard/pom.xml
index 1911d95e216..5caf76ce426 100644
--- a/examples/clipboard/pom.xml
+++ b/examples/clipboard/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
clipboard
diff --git a/examples/declarative-linking/pom.xml b/examples/declarative-linking/pom.xml
index 333fc4ec413..910c6d5fadf 100644
--- a/examples/declarative-linking/pom.xml
+++ b/examples/declarative-linking/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
declarative-linking
diff --git a/examples/entity-filtering-security/pom.xml b/examples/entity-filtering-security/pom.xml
index fa194f8a52e..a92d294e77e 100644
--- a/examples/entity-filtering-security/pom.xml
+++ b/examples/entity-filtering-security/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
entity-filtering-security
diff --git a/examples/entity-filtering-selectable/pom.xml b/examples/entity-filtering-selectable/pom.xml
index 9ad95dbe259..986200ae1c2 100644
--- a/examples/entity-filtering-selectable/pom.xml
+++ b/examples/entity-filtering-selectable/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
entity-filtering-selectable
diff --git a/examples/entity-filtering/pom.xml b/examples/entity-filtering/pom.xml
index b2ee846faf3..b6d5870b180 100644
--- a/examples/entity-filtering/pom.xml
+++ b/examples/entity-filtering/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
entity-filtering
diff --git a/examples/exception-mapping/pom.xml b/examples/exception-mapping/pom.xml
index 36f1f9e145b..5986740b376 100644
--- a/examples/exception-mapping/pom.xml
+++ b/examples/exception-mapping/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
exception-mapping
diff --git a/examples/extended-wadl-webapp/pom.xml b/examples/extended-wadl-webapp/pom.xml
index 4f33f7e4d33..2373bd4e9e4 100644
--- a/examples/extended-wadl-webapp/pom.xml
+++ b/examples/extended-wadl-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
extended-wadl-webapp
diff --git a/examples/freemarker-webapp/pom.xml b/examples/freemarker-webapp/pom.xml
index 5a3e5b9becf..9af7112d7d1 100644
--- a/examples/freemarker-webapp/pom.xml
+++ b/examples/freemarker-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
freemarker-webapp
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index bccd416fb9e..2ac5de0aedc 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
groovy
jar
diff --git a/examples/helloworld-benchmark/pom.xml b/examples/helloworld-benchmark/pom.xml
index fe01e02dfa3..888880182b2 100644
--- a/examples/helloworld-benchmark/pom.xml
+++ b/examples/helloworld-benchmark/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
helloworld-benchmark
diff --git a/examples/helloworld-cdi2-se/pom.xml b/examples/helloworld-cdi2-se/pom.xml
index c59bf441892..11aba91aad0 100644
--- a/examples/helloworld-cdi2-se/pom.xml
+++ b/examples/helloworld-cdi2-se/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
helloworld-cdi2-se
diff --git a/examples/helloworld-netty/pom.xml b/examples/helloworld-netty/pom.xml
index 0dff5f45536..db6fe09c0cb 100644
--- a/examples/helloworld-netty/pom.xml
+++ b/examples/helloworld-netty/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
helloworld-netty
diff --git a/examples/helloworld-programmatic/pom.xml b/examples/helloworld-programmatic/pom.xml
index 48e53af9623..eb267ee7527 100644
--- a/examples/helloworld-programmatic/pom.xml
+++ b/examples/helloworld-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
helloworld-programmatic
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index d847e01235e..9a6627ecbe7 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
helloworld-pure-jax-rs
diff --git a/examples/helloworld-webapp/pom.xml b/examples/helloworld-webapp/pom.xml
index 77be8411390..68a24198610 100644
--- a/examples/helloworld-webapp/pom.xml
+++ b/examples/helloworld-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
helloworld-webapp
diff --git a/examples/helloworld-weld/pom.xml b/examples/helloworld-weld/pom.xml
index 5163a97f414..e8e482c5ccb 100644
--- a/examples/helloworld-weld/pom.xml
+++ b/examples/helloworld-weld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
helloworld-weld
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index e12ab7919f0..f66764823fa 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
helloworld
diff --git a/examples/http-patch/pom.xml b/examples/http-patch/pom.xml
index 8168ae67d82..47b7302cf78 100644
--- a/examples/http-patch/pom.xml
+++ b/examples/http-patch/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
http-patch
diff --git a/examples/http-trace/pom.xml b/examples/http-trace/pom.xml
index 5e697ee70ad..79f8f197dd5 100644
--- a/examples/http-trace/pom.xml
+++ b/examples/http-trace/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
http-trace
diff --git a/examples/https-clientserver-grizzly/pom.xml b/examples/https-clientserver-grizzly/pom.xml
index c9d6992bb67..d6274d192e2 100644
--- a/examples/https-clientserver-grizzly/pom.xml
+++ b/examples/https-clientserver-grizzly/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
https-clientserver-grizzly
diff --git a/examples/https-server-glassfish/pom.xml b/examples/https-server-glassfish/pom.xml
index 6c5f90fd0f9..d034d5ffb33 100644
--- a/examples/https-server-glassfish/pom.xml
+++ b/examples/https-server-glassfish/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
https-server-glassfish
diff --git a/examples/java8-webapp/pom.xml b/examples/java8-webapp/pom.xml
index 96e1a5f389d..da4693a55f6 100644
--- a/examples/java8-webapp/pom.xml
+++ b/examples/java8-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
java8-webapp
diff --git a/examples/jaxb/pom.xml b/examples/jaxb/pom.xml
index 28191b12042..e24b2e6b0e7 100644
--- a/examples/jaxb/pom.xml
+++ b/examples/jaxb/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jaxb
diff --git a/examples/jaxrs-types-injection/pom.xml b/examples/jaxrs-types-injection/pom.xml
index 71d4c6d1bed..e32726e5643 100644
--- a/examples/jaxrs-types-injection/pom.xml
+++ b/examples/jaxrs-types-injection/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jaxrs-types-injection
diff --git a/examples/jersey-ejb/pom.xml b/examples/jersey-ejb/pom.xml
index 3e5107eb2b8..4702463cc61 100644
--- a/examples/jersey-ejb/pom.xml
+++ b/examples/jersey-ejb/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-ejb
diff --git a/examples/json-binding-webapp/pom.xml b/examples/json-binding-webapp/pom.xml
index fd0966ef17e..979236e59f9 100644
--- a/examples/json-binding-webapp/pom.xml
+++ b/examples/json-binding-webapp/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
json-binding-webapp
diff --git a/examples/json-jackson/pom.xml b/examples/json-jackson/pom.xml
index d82a49ed613..4cdfb639399 100644
--- a/examples/json-jackson/pom.xml
+++ b/examples/json-jackson/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
json-jackson
diff --git a/examples/json-jettison/pom.xml b/examples/json-jettison/pom.xml
index 978098cc4e1..15a4e25e379 100644
--- a/examples/json-jettison/pom.xml
+++ b/examples/json-jettison/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
json-jettison
diff --git a/examples/json-moxy/pom.xml b/examples/json-moxy/pom.xml
index b26f151cc0b..2ae80e1f8c3 100644
--- a/examples/json-moxy/pom.xml
+++ b/examples/json-moxy/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
json-moxy
diff --git a/examples/json-processing-webapp/pom.xml b/examples/json-processing-webapp/pom.xml
index 4499f18a8e9..10993fc8997 100644
--- a/examples/json-processing-webapp/pom.xml
+++ b/examples/json-processing-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
json-processing-webapp
diff --git a/examples/json-with-padding/pom.xml b/examples/json-with-padding/pom.xml
index d335527ef8a..64dac76588f 100644
--- a/examples/json-with-padding/pom.xml
+++ b/examples/json-with-padding/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
json-with-padding
diff --git a/examples/managed-beans-webapp/pom.xml b/examples/managed-beans-webapp/pom.xml
index 61932cd912c..e66fb183731 100644
--- a/examples/managed-beans-webapp/pom.xml
+++ b/examples/managed-beans-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
managed-beans-webapp
diff --git a/examples/managed-client-simple-webapp/pom.xml b/examples/managed-client-simple-webapp/pom.xml
index dfe98d02375..53ab47eaff0 100644
--- a/examples/managed-client-simple-webapp/pom.xml
+++ b/examples/managed-client-simple-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
managed-client-simple-webapp
diff --git a/examples/managed-client-webapp/pom.xml b/examples/managed-client-webapp/pom.xml
index e820ae0daeb..0583e891c94 100644
--- a/examples/managed-client-webapp/pom.xml
+++ b/examples/managed-client-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
managed-client-webapp
diff --git a/examples/managed-client/pom.xml b/examples/managed-client/pom.xml
index 920f8c01bef..ac3e5f9ff0f 100644
--- a/examples/managed-client/pom.xml
+++ b/examples/managed-client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
managed-client
diff --git a/examples/multipart-webapp/pom.xml b/examples/multipart-webapp/pom.xml
index 3e30e894355..9cb43ffd94b 100644
--- a/examples/multipart-webapp/pom.xml
+++ b/examples/multipart-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
multipart-webapp
diff --git a/examples/oauth-client-twitter/pom.xml b/examples/oauth-client-twitter/pom.xml
index 50c7cefca8a..3b4e9dfb186 100644
--- a/examples/oauth-client-twitter/pom.xml
+++ b/examples/oauth-client-twitter/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index faa3ba48eea..76a9ffa1c4d 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
open-tracing
diff --git a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
index 6ff75fdfd2b..51563792217 100644
--- a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
index b46186be03e..f9f6a070392 100644
--- a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index 84deadb65b8..bdce8538d72 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
index d9b98257710..b92f2e1614f 100644
--- a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/pom.xml b/examples/osgi-helloworld-webapp/pom.xml
index e912af5d492..172dc08de0a 100644
--- a/examples/osgi-helloworld-webapp/pom.xml
+++ b/examples/osgi-helloworld-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/war-bundle/pom.xml b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
index 2ae89996323..24f518f1158 100644
--- a/examples/osgi-helloworld-webapp/war-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/pom.xml b/examples/pom.xml
index 600df699544..70cf1629ce4 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
diff --git a/examples/reload/pom.xml b/examples/reload/pom.xml
index f3baa4fb164..27427604cf8 100644
--- a/examples/reload/pom.xml
+++ b/examples/reload/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
reload
diff --git a/examples/rx-client-webapp/pom.xml b/examples/rx-client-webapp/pom.xml
index 6e990ebbbd3..f009bf06fcc 100644
--- a/examples/rx-client-webapp/pom.xml
+++ b/examples/rx-client-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
rx-client-webapp
diff --git a/examples/server-async-managed/pom.xml b/examples/server-async-managed/pom.xml
index f0f39e2af2e..a32dbf4aefb 100644
--- a/examples/server-async-managed/pom.xml
+++ b/examples/server-async-managed/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
server-async-managed
diff --git a/examples/server-async-standalone/client/pom.xml b/examples/server-async-standalone/client/pom.xml
index e3021d554e1..19447beabda 100644
--- a/examples/server-async-standalone/client/pom.xml
+++ b/examples/server-async-standalone/client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.0.6
+ 3.0.99-SNAPSHOT
server-async-standalone-client
diff --git a/examples/server-async-standalone/pom.xml b/examples/server-async-standalone/pom.xml
index 28b14a491ae..8b857fcc79f 100644
--- a/examples/server-async-standalone/pom.xml
+++ b/examples/server-async-standalone/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
server-async-standalone
diff --git a/examples/server-async-standalone/webapp/pom.xml b/examples/server-async-standalone/webapp/pom.xml
index 3d8c7da30fa..251316e440c 100644
--- a/examples/server-async-standalone/webapp/pom.xml
+++ b/examples/server-async-standalone/webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.0.6
+ 3.0.99-SNAPSHOT
server-async-standalone-webapp
diff --git a/examples/server-async/pom.xml b/examples/server-async/pom.xml
index df0fd76716b..cdabf47a283 100644
--- a/examples/server-async/pom.xml
+++ b/examples/server-async/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
server-async
diff --git a/examples/server-sent-events-jaxrs/pom.xml b/examples/server-sent-events-jaxrs/pom.xml
index c2b0c40a2df..45f264ad4a8 100644
--- a/examples/server-sent-events-jaxrs/pom.xml
+++ b/examples/server-sent-events-jaxrs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
server-sent-events-jaxrs
diff --git a/examples/server-sent-events-jersey/pom.xml b/examples/server-sent-events-jersey/pom.xml
index 584a37ab70c..af941b73b10 100644
--- a/examples/server-sent-events-jersey/pom.xml
+++ b/examples/server-sent-events-jersey/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
server-sent-events-jersey
diff --git a/examples/servlet3-webapp/pom.xml b/examples/servlet3-webapp/pom.xml
index 421e9f47c0d..3c74fe0351e 100644
--- a/examples/servlet3-webapp/pom.xml
+++ b/examples/servlet3-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet3-webapp
diff --git a/examples/simple-console/pom.xml b/examples/simple-console/pom.xml
index f7e6ecca924..ce9ef1d032e 100644
--- a/examples/simple-console/pom.xml
+++ b/examples/simple-console/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
simple-console
diff --git a/examples/sse-item-store-jaxrs-webapp/pom.xml b/examples/sse-item-store-jaxrs-webapp/pom.xml
index 2369335e803..e65c1f505c5 100644
--- a/examples/sse-item-store-jaxrs-webapp/pom.xml
+++ b/examples/sse-item-store-jaxrs-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
sse-item-store-jaxrs-webapp
diff --git a/examples/sse-item-store-jersey-webapp/pom.xml b/examples/sse-item-store-jersey-webapp/pom.xml
index 5e9d858f08b..a57656dcdcf 100644
--- a/examples/sse-item-store-jersey-webapp/pom.xml
+++ b/examples/sse-item-store-jersey-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.6
+ 3.0.99-SNAPSHOT
sse-item-store-jersey-webapp
diff --git a/examples/sse-twitter-aggregator/pom.xml b/examples/sse-twitter-aggregator/pom.xml
index 0060872dafd..6adf1a8b45a 100644
--- a/examples/sse-twitter-aggregator/pom.xml
+++ b/examples/sse-twitter-aggregator/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
sse-twitter-aggregator
diff --git a/examples/system-properties-example/pom.xml b/examples/system-properties-example/pom.xml
index 972e8ffdcb3..4f351e4a5e9 100644
--- a/examples/system-properties-example/pom.xml
+++ b/examples/system-properties-example/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
system-properties-example
diff --git a/examples/webapp-example-parent/pom.xml b/examples/webapp-example-parent/pom.xml
index b657407cf7c..536e978b3aa 100644
--- a/examples/webapp-example-parent/pom.xml
+++ b/examples/webapp-example-parent/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
webapp-example-parent
diff --git a/examples/xml-moxy/pom.xml b/examples/xml-moxy/pom.xml
index 3b45773148f..814bbd71a43 100644
--- a/examples/xml-moxy/pom.xml
+++ b/examples/xml-moxy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.6
+ 3.0.99-SNAPSHOT
xml-moxy
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index d8e47b58764..980467e6c39 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-bean-validation
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index 4320934b849..24c6d471c34 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext.cdi
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
index 5bc8ef4ecb3..ff5a5ce893e 100644
--- a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
+++ b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-cdi1x-ban-custom-hk2-binding
diff --git a/ext/cdi/jersey-cdi1x-servlet/pom.xml b/ext/cdi/jersey-cdi1x-servlet/pom.xml
index bdc37f7b37a..2342ea19e77 100644
--- a/ext/cdi/jersey-cdi1x-servlet/pom.xml
+++ b/ext/cdi/jersey-cdi1x-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-cdi1x-servlet
diff --git a/ext/cdi/jersey-cdi1x-transaction/pom.xml b/ext/cdi/jersey-cdi1x-transaction/pom.xml
index 93ce305aa7e..b882baaf4be 100644
--- a/ext/cdi/jersey-cdi1x-transaction/pom.xml
+++ b/ext/cdi/jersey-cdi1x-transaction/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-cdi1x-transaction
diff --git a/ext/cdi/jersey-cdi1x-validation/pom.xml b/ext/cdi/jersey-cdi1x-validation/pom.xml
index e9f65d92610..7aba90ec63a 100644
--- a/ext/cdi/jersey-cdi1x-validation/pom.xml
+++ b/ext/cdi/jersey-cdi1x-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-cdi1x-validation
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index 01f385a61dc..f51b1b19ad2 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-cdi1x
diff --git a/ext/cdi/jersey-weld2-se/pom.xml b/ext/cdi/jersey-weld2-se/pom.xml
index 42b911ca942..f8609bfa128 100644
--- a/ext/cdi/jersey-weld2-se/pom.xml
+++ b/ext/cdi/jersey-weld2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-weld2-se
diff --git a/ext/cdi/pom.xml b/ext/cdi/pom.xml
index 0343429b456..8653e97ef37 100644
--- a/ext/cdi/pom.xml
+++ b/ext/cdi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.ext.cdi
diff --git a/ext/entity-filtering/pom.xml b/ext/entity-filtering/pom.xml
index 75d4ead2876..1f2613523bd 100644
--- a/ext/entity-filtering/pom.xml
+++ b/ext/entity-filtering/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-entity-filtering
diff --git a/ext/metainf-services/pom.xml b/ext/metainf-services/pom.xml
index 1de90cf6903..7b43b47227f 100644
--- a/ext/metainf-services/pom.xml
+++ b/ext/metainf-services/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-metainf-services
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index 6e8aab5acfc..7a49dfc0556 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index c71aadd1e6d..025f127bf73 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/ext/microprofile/pom.xml b/ext/microprofile/pom.xml
index 86f1eee89c0..215ca3879af 100644
--- a/ext/microprofile/pom.xml
+++ b/ext/microprofile/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/ext/mvc-bean-validation/pom.xml b/ext/mvc-bean-validation/pom.xml
index dfa4f0ee548..c874d2fc713 100644
--- a/ext/mvc-bean-validation/pom.xml
+++ b/ext/mvc-bean-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-mvc-bean-validation
diff --git a/ext/mvc-freemarker/pom.xml b/ext/mvc-freemarker/pom.xml
index 7b87cdd46f9..f2355c8498a 100644
--- a/ext/mvc-freemarker/pom.xml
+++ b/ext/mvc-freemarker/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-mvc-freemarker
diff --git a/ext/mvc-jsp/pom.xml b/ext/mvc-jsp/pom.xml
index 8c43a639aff..1744cdf534b 100644
--- a/ext/mvc-jsp/pom.xml
+++ b/ext/mvc-jsp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-mvc-jsp
diff --git a/ext/mvc-mustache/pom.xml b/ext/mvc-mustache/pom.xml
index 86ba7e77634..3a63b8c7314 100644
--- a/ext/mvc-mustache/pom.xml
+++ b/ext/mvc-mustache/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-mvc-mustache
diff --git a/ext/mvc/pom.xml b/ext/mvc/pom.xml
index 870dec88e63..58d93f51235 100644
--- a/ext/mvc/pom.xml
+++ b/ext/mvc/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-mvc
diff --git a/ext/pom.xml b/ext/pom.xml
index 0b3835f1723..93e409d4782 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.ext
diff --git a/ext/proxy-client/pom.xml b/ext/proxy-client/pom.xml
index bc59fb50dba..4bf1460f805 100644
--- a/ext/proxy-client/pom.xml
+++ b/ext/proxy-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-proxy-client
diff --git a/ext/rx/pom.xml b/ext/rx/pom.xml
index fe7275cdb21..1a4de9a61da 100644
--- a/ext/rx/pom.xml
+++ b/ext/rx/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.ext.rx
diff --git a/ext/rx/rx-client-guava/pom.xml b/ext/rx/rx-client-guava/pom.xml
index f5eeab641d5..b3f1087ff09 100644
--- a/ext/rx/rx-client-guava/pom.xml
+++ b/ext/rx/rx-client-guava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-rx-client-guava
diff --git a/ext/rx/rx-client-rxjava/pom.xml b/ext/rx/rx-client-rxjava/pom.xml
index 2d024f81a3c..728bc60d75b 100644
--- a/ext/rx/rx-client-rxjava/pom.xml
+++ b/ext/rx/rx-client-rxjava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-rx-client-rxjava
diff --git a/ext/rx/rx-client-rxjava2/pom.xml b/ext/rx/rx-client-rxjava2/pom.xml
index 8aeca75a816..cf705933dda 100644
--- a/ext/rx/rx-client-rxjava2/pom.xml
+++ b/ext/rx/rx-client-rxjava2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-rx-client-rxjava2
diff --git a/ext/spring6/pom.xml b/ext/spring6/pom.xml
index 1eb77f4ee53..e6d718797d4 100644
--- a/ext/spring6/pom.xml
+++ b/ext/spring6/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-spring6
diff --git a/ext/wadl-doclet/pom.xml b/ext/wadl-doclet/pom.xml
index b3c54815420..47a11c2211f 100644
--- a/ext/wadl-doclet/pom.xml
+++ b/ext/wadl-doclet/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
jersey-wadl-doclet
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index 7119199e841..b36d1dabce6 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-cdi-inject-weld
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index 12546fd0723..97d9d54da78 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.ext
diff --git a/incubator/gae-integration/pom.xml b/incubator/gae-integration/pom.xml
index 9f043234598..28971e56816 100644
--- a/incubator/gae-integration/pom.xml
+++ b/incubator/gae-integration/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-gae-integration
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index b2c50a88330..2ad845b8e8a 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.media
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index 91ee64e45e0..3911bf84fba 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.media
diff --git a/incubator/open-tracing/pom.xml b/incubator/open-tracing/pom.xml
index 0a8032d24be..7994cab4090 100644
--- a/incubator/open-tracing/pom.xml
+++ b/incubator/open-tracing/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.incubator
diff --git a/incubator/pom.xml b/incubator/pom.xml
index 687a2a62ce1..e82e47b7eee 100644
--- a/incubator/pom.xml
+++ b/incubator/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.incubator
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index 037a284f2e4..f740a9ca265 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-cdi2-se
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index d63eca2bcdd..c3c8b94b971 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-hk2
diff --git a/inject/pom.xml b/inject/pom.xml
index 33b9e6f9668..b43c0e318dd 100644
--- a/inject/pom.xml
+++ b/inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.inject
diff --git a/media/jaxb/pom.xml b/media/jaxb/pom.xml
index 4582109b729..48560070e22 100644
--- a/media/jaxb/pom.xml
+++ b/media/jaxb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-media-jaxb
diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
index d6e67d5a221..f09590fecfb 100644
--- a/media/json-binding/pom.xml
+++ b/media/json-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-media-json-binding
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index 2b13f050ffc..e57899b9dac 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-media-json-gson
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index 0272c3e686f..a0eb3bdeb6e 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-media-json-jackson
diff --git a/media/json-jettison/pom.xml b/media/json-jettison/pom.xml
index 6c7c944c3fe..0efb1070056 100644
--- a/media/json-jettison/pom.xml
+++ b/media/json-jettison/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-media-json-jettison
diff --git a/media/json-processing/pom.xml b/media/json-processing/pom.xml
index 174c3fb28ed..9f884eedfba 100644
--- a/media/json-processing/pom.xml
+++ b/media/json-processing/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-media-json-processing
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index 4aa2e73bc8b..d1db2b3280b 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-media-moxy
diff --git a/media/multipart/pom.xml b/media/multipart/pom.xml
index 29479c857aa..945e5d87620 100644
--- a/media/multipart/pom.xml
+++ b/media/multipart/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-media-multipart
diff --git a/media/pom.xml b/media/pom.xml
index 67723285225..72a5ef66418 100644
--- a/media/pom.xml
+++ b/media/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.media
diff --git a/media/sse/pom.xml b/media/sse/pom.xml
index 8dae2df2593..812e7a6370d 100644
--- a/media/sse/pom.xml
+++ b/media/sse/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-media-sse
diff --git a/pom.xml b/pom.xml
index f4efce55761..cbfaafe2cb6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
org.glassfish.jersey
project
pom
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey
Eclipse Jersey is the open source (under dual EPL+GPL license) Jakarta RESTful WebServices 3.0
diff --git a/security/oauth1-client/pom.xml b/security/oauth1-client/pom.xml
index 2a81509d70b..bf765dc1ca2 100644
--- a/security/oauth1-client/pom.xml
+++ b/security/oauth1-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.security
project
- 3.0.6
+ 3.0.99-SNAPSHOT
oauth1-client
diff --git a/security/oauth1-server/pom.xml b/security/oauth1-server/pom.xml
index 52eb6ecafcc..86b14091918 100644
--- a/security/oauth1-server/pom.xml
+++ b/security/oauth1-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.security
project
- 3.0.6
+ 3.0.99-SNAPSHOT
oauth1-server
diff --git a/security/oauth1-signature/pom.xml b/security/oauth1-signature/pom.xml
index a9ff11f3349..b1daa8b93f7 100644
--- a/security/oauth1-signature/pom.xml
+++ b/security/oauth1-signature/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/security/oauth2-client/pom.xml b/security/oauth2-client/pom.xml
index d481f04af4a..920e17f2088 100644
--- a/security/oauth2-client/pom.xml
+++ b/security/oauth2-client/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/security/pom.xml b/security/pom.xml
index 9276b6f979e..a798df20da5 100644
--- a/security/pom.xml
+++ b/security/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.security
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index 7402c88c699..36b26335fd0 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-test-framework-core
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index 4eb586d1561..32d86a40eb5 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.0.6
+ 3.0.99-SNAPSHOT
container-runner-maven-plugin
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index 1100ab9c89a..c690eef5731 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.0.6
+ 3.0.99-SNAPSHOT
custom-enforcer-rules
diff --git a/test-framework/maven/pom.xml b/test-framework/maven/pom.xml
index 57db6807c52..84d353b880a 100644
--- a/test-framework/maven/pom.xml
+++ b/test-framework/maven/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.test-framework.maven
diff --git a/test-framework/memleak-test-common/pom.xml b/test-framework/memleak-test-common/pom.xml
index 3a96db645a1..a9b8f3d74b4 100644
--- a/test-framework/memleak-test-common/pom.xml
+++ b/test-framework/memleak-test-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.6
+ 3.0.99-SNAPSHOT
memleak-test-common
diff --git a/test-framework/pom.xml b/test-framework/pom.xml
index 551c451f12a..eadee509eca 100644
--- a/test-framework/pom.xml
+++ b/test-framework/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.test-framework
diff --git a/test-framework/providers/bundle/pom.xml b/test-framework/providers/bundle/pom.xml
index a3d96071f4f..adc29afeea3 100644
--- a/test-framework/providers/bundle/pom.xml
+++ b/test-framework/providers/bundle/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-bundle
diff --git a/test-framework/providers/external/pom.xml b/test-framework/providers/external/pom.xml
index 954e6796748..11cddbc864b 100644
--- a/test-framework/providers/external/pom.xml
+++ b/test-framework/providers/external/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-external
diff --git a/test-framework/providers/grizzly2/pom.xml b/test-framework/providers/grizzly2/pom.xml
index d72d9f3175e..8b27f3a7d44 100644
--- a/test-framework/providers/grizzly2/pom.xml
+++ b/test-framework/providers/grizzly2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-grizzly2
diff --git a/test-framework/providers/inmemory/pom.xml b/test-framework/providers/inmemory/pom.xml
index 8d88fb355fc..a7fb228a465 100644
--- a/test-framework/providers/inmemory/pom.xml
+++ b/test-framework/providers/inmemory/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-inmemory
diff --git a/test-framework/providers/jdk-http/pom.xml b/test-framework/providers/jdk-http/pom.xml
index 424d164d796..3876be43783 100644
--- a/test-framework/providers/jdk-http/pom.xml
+++ b/test-framework/providers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-jdk-http
diff --git a/test-framework/providers/jetty/pom.xml b/test-framework/providers/jetty/pom.xml
index 4393fdaffc8..7b20b609012 100644
--- a/test-framework/providers/jetty/pom.xml
+++ b/test-framework/providers/jetty/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/test-framework/providers/netty/pom.xml b/test-framework/providers/netty/pom.xml
index fdfece4c58f..38e56c787ab 100644
--- a/test-framework/providers/netty/pom.xml
+++ b/test-framework/providers/netty/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-netty
diff --git a/test-framework/providers/pom.xml b/test-framework/providers/pom.xml
index 8aefbabc56e..0da4a34cbc3 100644
--- a/test-framework/providers/pom.xml
+++ b/test-framework/providers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.test-framework.providers
diff --git a/test-framework/providers/simple/pom.xml b/test-framework/providers/simple/pom.xml
index 73d54a7e3d6..649b652dc91 100644
--- a/test-framework/providers/simple/pom.xml
+++ b/test-framework/providers/simple/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/test-framework/util/pom.xml b/test-framework/util/pom.xml
index 0613fb17e43..569ab3e5c48 100644
--- a/test-framework/util/pom.xml
+++ b/test-framework/util/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-test-framework-util
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index 7f3d09a3b7d..10c79d4f6ea 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.6
+ 3.0.99-SNAPSHOT
e2e-client
diff --git a/tests/e2e-core-common/pom.xml b/tests/e2e-core-common/pom.xml
index 05ec55a9d1a..0c97c1f4860 100644
--- a/tests/e2e-core-common/pom.xml
+++ b/tests/e2e-core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.6
+ 3.0.99-SNAPSHOT
e2e-core-common
diff --git a/tests/e2e-entity/pom.xml b/tests/e2e-entity/pom.xml
index 8d344898459..3c654b538af 100644
--- a/tests/e2e-entity/pom.xml
+++ b/tests/e2e-entity/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.6
+ 3.0.99-SNAPSHOT
e2e-entity
diff --git a/tests/e2e-inject/cdi-inject-weld/pom.xml b/tests/e2e-inject/cdi-inject-weld/pom.xml
index e79430b0ff7..37f6c7665e9 100644
--- a/tests/e2e-inject/cdi-inject-weld/pom.xml
+++ b/tests/e2e-inject/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.0.6
+ 3.0.99-SNAPSHOT
e2e-inject-cdi-inject-weld
diff --git a/tests/e2e-inject/cdi2-se/pom.xml b/tests/e2e-inject/cdi2-se/pom.xml
index 8ec2f4a7052..578e6e9b236 100644
--- a/tests/e2e-inject/cdi2-se/pom.xml
+++ b/tests/e2e-inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.0.6
+ 3.0.99-SNAPSHOT
e2e-inject-cdi2-se
diff --git a/tests/e2e-inject/hk2/pom.xml b/tests/e2e-inject/hk2/pom.xml
index e11b87af71b..cf8d651a844 100644
--- a/tests/e2e-inject/hk2/pom.xml
+++ b/tests/e2e-inject/hk2/pom.xml
@@ -23,7 +23,7 @@
e2e-inject
org.glassfish.jersey.tests
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/e2e-inject/pom.xml b/tests/e2e-inject/pom.xml
index 874e2a5b439..a6dcfeb1dff 100644
--- a/tests/e2e-inject/pom.xml
+++ b/tests/e2e-inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.6
+ 3.0.99-SNAPSHOT
e2e-inject
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index 0c1a829897f..b82ce78e42d 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.6
+ 3.0.99-SNAPSHOT
e2e-server
diff --git a/tests/e2e-testng/pom.xml b/tests/e2e-testng/pom.xml
index dec70523c82..8e137eecb59 100644
--- a/tests/e2e-testng/pom.xml
+++ b/tests/e2e-testng/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.0.6
+ 3.0.99-SNAPSHOT
e2e-testng
diff --git a/tests/e2e/pom.xml b/tests/e2e/pom.xml
index 04d6fc764f2..da8b8d8a2ce 100644
--- a/tests/e2e/pom.xml
+++ b/tests/e2e/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.6
+ 3.0.99-SNAPSHOT
e2e
diff --git a/tests/integration/asm/pom.xml b/tests/integration/asm/pom.xml
index beac81c6b53..31000df913a 100644
--- a/tests/integration/asm/pom.xml
+++ b/tests/integration/asm/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/async-jersey-filter/pom.xml b/tests/integration/async-jersey-filter/pom.xml
index 175d08ee7ee..b258b0ab0ef 100644
--- a/tests/integration/async-jersey-filter/pom.xml
+++ b/tests/integration/async-jersey-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
async-jersey-filter
diff --git a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
index 37cd9f280bb..dcbcb126a7c 100644
--- a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-beanvalidation-webapp
diff --git a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
index 9daebabb82c..fbcc5e486c8 100644
--- a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-client-on-server
diff --git a/tests/integration/cdi-integration/cdi-client/pom.xml b/tests/integration/cdi-integration/cdi-client/pom.xml
index b2fa018d0fa..06b90f8c034 100644
--- a/tests/integration/cdi-integration/cdi-client/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-client
diff --git a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
index eec6743ab64..1281b55d74d 100644
--- a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-ejb-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
index 00e0a3a7f96..0e5399985b1 100644
--- a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-iface-with-non-jaxrs-impl-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-log-check/pom.xml b/tests/integration/cdi-integration/cdi-log-check/pom.xml
index da36e341ac2..e67c62e364e 100644
--- a/tests/integration/cdi-integration/cdi-log-check/pom.xml
+++ b/tests/integration/cdi-integration/cdi-log-check/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-log-check
diff --git a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
index 763c66f0a75..3dee33d65f0 100644
--- a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
+++ b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
index cdb58aa6173..676d3c5a3f5 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
index 2288c27c922..2cb280fefde 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
index 94f820ce310..a2432f470ce 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-multimodule
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
index 184004e602c..18ec2873880 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
index 7cf789247c4..421a999f06d 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
index 5d3e8170b91..39156de90b3 100644
--- a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-multipart-webapp
diff --git a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
index 9171cd4730c..dd515d77fd0 100644
--- a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
+++ b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-singleton/pom.xml b/tests/integration/cdi-integration/cdi-singleton/pom.xml
index e7574567568..ad33e450d7f 100644
--- a/tests/integration/cdi-integration/cdi-singleton/pom.xml
+++ b/tests/integration/cdi-integration/cdi-singleton/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
index 54dd407bc7c..03ca8b022ae 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
index dceca9e4f41..722e892c7a2 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-with-jersey-injection-custom-cfg-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
index 17df6e5bf14..acf68dab964 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-with-jersey-injection-custom-hk2-banned-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
index f25589e3c7a..83084c2d2c0 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
cdi-with-jersey-injection-webapp
diff --git a/tests/integration/cdi-integration/context-inject-on-server/pom.xml b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
index 327bef2e1de..8391b2c5362 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/pom.xml
+++ b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.6
+ 3.0.99-SNAPSHOT
context-inject-on-server
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index 149e4c86875..dc9172c49dd 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/client-connector-provider/pom.xml b/tests/integration/client-connector-provider/pom.xml
index 38970982906..d2d838fee79 100644
--- a/tests/integration/client-connector-provider/pom.xml
+++ b/tests/integration/client-connector-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
client-connector-provider
diff --git a/tests/integration/ejb-multimodule-reload/ear/pom.xml b/tests/integration/ejb-multimodule-reload/ear/pom.xml
index 6d3cc9df09e..fe527f5e5f8 100644
--- a/tests/integration/ejb-multimodule-reload/ear/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/lib/pom.xml b/tests/integration/ejb-multimodule-reload/lib/pom.xml
index e5db5da0ea3..3bef14eb4c8 100644
--- a/tests/integration/ejb-multimodule-reload/lib/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/pom.xml b/tests/integration/ejb-multimodule-reload/pom.xml
index fb6f88ea0be..c041b5a5450 100644
--- a/tests/integration/ejb-multimodule-reload/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
ejb-multimodule-reload
diff --git a/tests/integration/ejb-multimodule-reload/war1/pom.xml b/tests/integration/ejb-multimodule-reload/war1/pom.xml
index 24d6c5ef4e8..5fda3a23e04 100644
--- a/tests/integration/ejb-multimodule-reload/war1/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/war2/pom.xml b/tests/integration/ejb-multimodule-reload/war2/pom.xml
index 31aebf9b98c..f3f7de908b7 100644
--- a/tests/integration/ejb-multimodule-reload/war2/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/ear/pom.xml b/tests/integration/ejb-multimodule/ear/pom.xml
index cc0238c8158..9d60c5d2fc7 100644
--- a/tests/integration/ejb-multimodule/ear/pom.xml
+++ b/tests/integration/ejb-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/lib/pom.xml b/tests/integration/ejb-multimodule/lib/pom.xml
index 19f9b34fc06..9b583c2d5e4 100644
--- a/tests/integration/ejb-multimodule/lib/pom.xml
+++ b/tests/integration/ejb-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/pom.xml b/tests/integration/ejb-multimodule/pom.xml
index 623970a4291..d1527cd4530 100644
--- a/tests/integration/ejb-multimodule/pom.xml
+++ b/tests/integration/ejb-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
ejb-multimodule
diff --git a/tests/integration/ejb-multimodule/war/pom.xml b/tests/integration/ejb-multimodule/war/pom.xml
index 9a4cf833c0c..0fb17710ad5 100644
--- a/tests/integration/ejb-multimodule/war/pom.xml
+++ b/tests/integration/ejb-multimodule/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-test-webapp/pom.xml b/tests/integration/ejb-test-webapp/pom.xml
index edb04905cd1..0791de9bd8b 100644
--- a/tests/integration/ejb-test-webapp/pom.xml
+++ b/tests/integration/ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
ejb-test-webapp
diff --git a/tests/integration/externalproperties/pom.xml b/tests/integration/externalproperties/pom.xml
index e27d329cf8f..91ff812f485 100644
--- a/tests/integration/externalproperties/pom.xml
+++ b/tests/integration/externalproperties/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
externalproperties
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index a5724ee413c..bdc4ce0065e 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
j-376
diff --git a/tests/integration/j-441/ear/pom.xml b/tests/integration/j-441/ear/pom.xml
index d86acc35700..37d2588c5a7 100644
--- a/tests/integration/j-441/ear/pom.xml
+++ b/tests/integration/j-441/ear/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
j-441-ear
diff --git a/tests/integration/j-441/pom.xml b/tests/integration/j-441/pom.xml
index c0ef064b4a1..34bce1499dc 100644
--- a/tests/integration/j-441/pom.xml
+++ b/tests/integration/j-441/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
j-441
diff --git a/tests/integration/j-441/war1/pom.xml b/tests/integration/j-441/war1/pom.xml
index f72f1f921b3..e35999a4cf6 100644
--- a/tests/integration/j-441/war1/pom.xml
+++ b/tests/integration/j-441/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-441/war2/pom.xml b/tests/integration/j-441/war2/pom.xml
index 4972560c5cb..a5a887eb45b 100644
--- a/tests/integration/j-441/war2/pom.xml
+++ b/tests/integration/j-441/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/ear/pom.xml b/tests/integration/j-59/ear/pom.xml
index 1fa21c23a3c..8eeeaa442a8 100644
--- a/tests/integration/j-59/ear/pom.xml
+++ b/tests/integration/j-59/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/lib/pom.xml b/tests/integration/j-59/lib/pom.xml
index 38572a9c0e0..3f74aa4a5b5 100644
--- a/tests/integration/j-59/lib/pom.xml
+++ b/tests/integration/j-59/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/pom.xml b/tests/integration/j-59/pom.xml
index f45867d97ca..dc2dd9be86a 100644
--- a/tests/integration/j-59/pom.xml
+++ b/tests/integration/j-59/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
j-59
diff --git a/tests/integration/j-59/war/pom.xml b/tests/integration/j-59/war/pom.xml
index 626dadb4d6b..145ab55c00e 100644
--- a/tests/integration/j-59/war/pom.xml
+++ b/tests/integration/j-59/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/jaxrs-component-inject/pom.xml b/tests/integration/jaxrs-component-inject/pom.xml
index f84d52c76f6..5ad88a24815 100644
--- a/tests/integration/jaxrs-component-inject/pom.xml
+++ b/tests/integration/jaxrs-component-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jaxrs-component-inject
diff --git a/tests/integration/jersey-1107/pom.xml b/tests/integration/jersey-1107/pom.xml
index 34e3ddad2f3..0454541101e 100644
--- a/tests/integration/jersey-1107/pom.xml
+++ b/tests/integration/jersey-1107/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-1107
diff --git a/tests/integration/jersey-1223/pom.xml b/tests/integration/jersey-1223/pom.xml
index 30eae1b1965..77c48ae2a9a 100644
--- a/tests/integration/jersey-1223/pom.xml
+++ b/tests/integration/jersey-1223/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
jersey-1223
diff --git a/tests/integration/jersey-1604/pom.xml b/tests/integration/jersey-1604/pom.xml
index 39e474d160c..c35da56feec 100644
--- a/tests/integration/jersey-1604/pom.xml
+++ b/tests/integration/jersey-1604/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
jersey-1604
diff --git a/tests/integration/jersey-1667/pom.xml b/tests/integration/jersey-1667/pom.xml
index 43c1af659f2..917e178bd1f 100644
--- a/tests/integration/jersey-1667/pom.xml
+++ b/tests/integration/jersey-1667/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-1667
diff --git a/tests/integration/jersey-1883/pom.xml b/tests/integration/jersey-1883/pom.xml
index b02af02093b..4e483050991 100644
--- a/tests/integration/jersey-1883/pom.xml
+++ b/tests/integration/jersey-1883/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-1883
diff --git a/tests/integration/jersey-1928/pom.xml b/tests/integration/jersey-1928/pom.xml
index 64740c8b160..d532fc19935 100644
--- a/tests/integration/jersey-1928/pom.xml
+++ b/tests/integration/jersey-1928/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
jersey-1928
diff --git a/tests/integration/jersey-1960/pom.xml b/tests/integration/jersey-1960/pom.xml
index 8b113e298c5..0b73e155804 100644
--- a/tests/integration/jersey-1960/pom.xml
+++ b/tests/integration/jersey-1960/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-1960
diff --git a/tests/integration/jersey-1964/pom.xml b/tests/integration/jersey-1964/pom.xml
index f54802e2710..d62a7dfa750 100644
--- a/tests/integration/jersey-1964/pom.xml
+++ b/tests/integration/jersey-1964/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-1964
diff --git a/tests/integration/jersey-2031/pom.xml b/tests/integration/jersey-2031/pom.xml
index 16a71aa822c..61fb008e544 100644
--- a/tests/integration/jersey-2031/pom.xml
+++ b/tests/integration/jersey-2031/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2031
diff --git a/tests/integration/jersey-2136/pom.xml b/tests/integration/jersey-2136/pom.xml
index 2ee19c3316c..5c81daa8d40 100644
--- a/tests/integration/jersey-2136/pom.xml
+++ b/tests/integration/jersey-2136/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2136
diff --git a/tests/integration/jersey-2137/pom.xml b/tests/integration/jersey-2137/pom.xml
index c463348267a..0522ff4f670 100644
--- a/tests/integration/jersey-2137/pom.xml
+++ b/tests/integration/jersey-2137/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2137
diff --git a/tests/integration/jersey-2154/pom.xml b/tests/integration/jersey-2154/pom.xml
index 9cc75fa5f16..6453678cb32 100644
--- a/tests/integration/jersey-2154/pom.xml
+++ b/tests/integration/jersey-2154/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2154
diff --git a/tests/integration/jersey-2160/pom.xml b/tests/integration/jersey-2160/pom.xml
index d2e9357847c..bd327294468 100644
--- a/tests/integration/jersey-2160/pom.xml
+++ b/tests/integration/jersey-2160/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2160
diff --git a/tests/integration/jersey-2164/pom.xml b/tests/integration/jersey-2164/pom.xml
index 4bb12c9579a..e333ee33b00 100644
--- a/tests/integration/jersey-2164/pom.xml
+++ b/tests/integration/jersey-2164/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2164
diff --git a/tests/integration/jersey-2167/pom.xml b/tests/integration/jersey-2167/pom.xml
index fd0cded3db8..4bef57f7467 100644
--- a/tests/integration/jersey-2167/pom.xml
+++ b/tests/integration/jersey-2167/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2167
diff --git a/tests/integration/jersey-2176/pom.xml b/tests/integration/jersey-2176/pom.xml
index abfb270ab09..e69b33dc154 100644
--- a/tests/integration/jersey-2176/pom.xml
+++ b/tests/integration/jersey-2176/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2176
diff --git a/tests/integration/jersey-2184/pom.xml b/tests/integration/jersey-2184/pom.xml
index d516e16fe0d..67394390a58 100644
--- a/tests/integration/jersey-2184/pom.xml
+++ b/tests/integration/jersey-2184/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2184
diff --git a/tests/integration/jersey-2255/pom.xml b/tests/integration/jersey-2255/pom.xml
index af44bf253fd..864bbda5782 100644
--- a/tests/integration/jersey-2255/pom.xml
+++ b/tests/integration/jersey-2255/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2255
diff --git a/tests/integration/jersey-2322/pom.xml b/tests/integration/jersey-2322/pom.xml
index 4ed0431213c..5acef07879d 100644
--- a/tests/integration/jersey-2322/pom.xml
+++ b/tests/integration/jersey-2322/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2322
diff --git a/tests/integration/jersey-2335/pom.xml b/tests/integration/jersey-2335/pom.xml
index b7b3fb64a85..ae251628aaa 100644
--- a/tests/integration/jersey-2335/pom.xml
+++ b/tests/integration/jersey-2335/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2335
diff --git a/tests/integration/jersey-2421/pom.xml b/tests/integration/jersey-2421/pom.xml
index 309b8a24d03..57272ef5469 100644
--- a/tests/integration/jersey-2421/pom.xml
+++ b/tests/integration/jersey-2421/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2421
diff --git a/tests/integration/jersey-2551/pom.xml b/tests/integration/jersey-2551/pom.xml
index c026c0203f9..4b3ed85e792 100644
--- a/tests/integration/jersey-2551/pom.xml
+++ b/tests/integration/jersey-2551/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2551
diff --git a/tests/integration/jersey-2612/pom.xml b/tests/integration/jersey-2612/pom.xml
index 37cbacea1aa..cc4ba0cb4ce 100644
--- a/tests/integration/jersey-2612/pom.xml
+++ b/tests/integration/jersey-2612/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2612
diff --git a/tests/integration/jersey-2637/pom.xml b/tests/integration/jersey-2637/pom.xml
index 3fbb0dc4dbf..7b89b885415 100644
--- a/tests/integration/jersey-2637/pom.xml
+++ b/tests/integration/jersey-2637/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2637
diff --git a/tests/integration/jersey-2654/pom.xml b/tests/integration/jersey-2654/pom.xml
index a8cee6ff855..5a8ce536f94 100644
--- a/tests/integration/jersey-2654/pom.xml
+++ b/tests/integration/jersey-2654/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2654
diff --git a/tests/integration/jersey-2673/pom.xml b/tests/integration/jersey-2673/pom.xml
index 46be248d442..a09059f698f 100644
--- a/tests/integration/jersey-2673/pom.xml
+++ b/tests/integration/jersey-2673/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2673
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index c0586448a0c..5a73166f846 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2689
diff --git a/tests/integration/jersey-2704/pom.xml b/tests/integration/jersey-2704/pom.xml
index 8e2c0ef3049..3356c790a61 100644
--- a/tests/integration/jersey-2704/pom.xml
+++ b/tests/integration/jersey-2704/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2704
diff --git a/tests/integration/jersey-2776/pom.xml b/tests/integration/jersey-2776/pom.xml
index 99e04e32694..3a8f6045da8 100644
--- a/tests/integration/jersey-2776/pom.xml
+++ b/tests/integration/jersey-2776/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2776
diff --git a/tests/integration/jersey-2794/pom.xml b/tests/integration/jersey-2794/pom.xml
index 7b10ff9b11d..f5e47fda936 100644
--- a/tests/integration/jersey-2794/pom.xml
+++ b/tests/integration/jersey-2794/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2794
diff --git a/tests/integration/jersey-2846/pom.xml b/tests/integration/jersey-2846/pom.xml
index 0053bad3567..4f4bb9e1766 100644
--- a/tests/integration/jersey-2846/pom.xml
+++ b/tests/integration/jersey-2846/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2846
diff --git a/tests/integration/jersey-2878/pom.xml b/tests/integration/jersey-2878/pom.xml
index 7bebaddee6d..1fba3f01eb5 100644
--- a/tests/integration/jersey-2878/pom.xml
+++ b/tests/integration/jersey-2878/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2878
diff --git a/tests/integration/jersey-2892/pom.xml b/tests/integration/jersey-2892/pom.xml
index af6fbb6e861..a2c420f62ac 100644
--- a/tests/integration/jersey-2892/pom.xml
+++ b/tests/integration/jersey-2892/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-2892
diff --git a/tests/integration/jersey-3662/pom.xml b/tests/integration/jersey-3662/pom.xml
index 0dcedae471a..ed7425b8f12 100644
--- a/tests/integration/jersey-3662/pom.xml
+++ b/tests/integration/jersey-3662/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-3670/pom.xml b/tests/integration/jersey-3670/pom.xml
index 12882bfb6e8..2e23e7bd8e7 100644
--- a/tests/integration/jersey-3670/pom.xml
+++ b/tests/integration/jersey-3670/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-3670
diff --git a/tests/integration/jersey-3796/pom.xml b/tests/integration/jersey-3796/pom.xml
index da93965ac66..c555460dfbc 100644
--- a/tests/integration/jersey-3796/pom.xml
+++ b/tests/integration/jersey-3796/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-3796
diff --git a/tests/integration/jersey-3992/pom.xml b/tests/integration/jersey-3992/pom.xml
index a30a7dbf226..3a91fa66675 100644
--- a/tests/integration/jersey-3992/pom.xml
+++ b/tests/integration/jersey-3992/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-3992
diff --git a/tests/integration/jersey-4003/pom.xml b/tests/integration/jersey-4003/pom.xml
index 1523b2ec961..9c2c8be8cc6 100644
--- a/tests/integration/jersey-4003/pom.xml
+++ b/tests/integration/jersey-4003/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4099/pom.xml b/tests/integration/jersey-4099/pom.xml
index 1816bfc5105..8a11821c4b0 100644
--- a/tests/integration/jersey-4099/pom.xml
+++ b/tests/integration/jersey-4099/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-4099
diff --git a/tests/integration/jersey-4321/pom.xml b/tests/integration/jersey-4321/pom.xml
index 09ed63fd9f3..108d29d8cec 100644
--- a/tests/integration/jersey-4321/pom.xml
+++ b/tests/integration/jersey-4321/pom.xml
@@ -24,7 +24,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4507/pom.xml b/tests/integration/jersey-4507/pom.xml
index d78948d8417..7bd6c4267ba 100644
--- a/tests/integration/jersey-4507/pom.xml
+++ b/tests/integration/jersey-4507/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4542/pom.xml b/tests/integration/jersey-4542/pom.xml
index 802cf7186f2..9a57421cee7 100644
--- a/tests/integration/jersey-4542/pom.xml
+++ b/tests/integration/jersey-4542/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4697/pom.xml b/tests/integration/jersey-4697/pom.xml
index 1b29d9a6e3c..699cad95c6e 100644
--- a/tests/integration/jersey-4697/pom.xml
+++ b/tests/integration/jersey-4697/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4722/pom.xml b/tests/integration/jersey-4722/pom.xml
index 312bc32134b..9899424ec8e 100644
--- a/tests/integration/jersey-4722/pom.xml
+++ b/tests/integration/jersey-4722/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4949/pom.xml b/tests/integration/jersey-4949/pom.xml
index 36497ca63df..df426ac5bb9 100644
--- a/tests/integration/jersey-4949/pom.xml
+++ b/tests/integration/jersey-4949/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-4949
diff --git a/tests/integration/jersey-5087/pom.xml b/tests/integration/jersey-5087/pom.xml
index 2d726fdfa7e..7f97ce81595 100644
--- a/tests/integration/jersey-5087/pom.xml
+++ b/tests/integration/jersey-5087/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-780/pom.xml b/tests/integration/jersey-780/pom.xml
index 415177e88c0..4fd6edba78f 100644
--- a/tests/integration/jersey-780/pom.xml
+++ b/tests/integration/jersey-780/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-780
diff --git a/tests/integration/microprofile/config/helidon/pom.xml b/tests/integration/microprofile/config/helidon/pom.xml
index f7e75d5a5d9..47bca4af4b4 100644
--- a/tests/integration/microprofile/config/helidon/pom.xml
+++ b/tests/integration/microprofile/config/helidon/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/config/pom.xml b/tests/integration/microprofile/config/pom.xml
index b7095cdfac1..3428dcce3f9 100644
--- a/tests/integration/microprofile/config/pom.xml
+++ b/tests/integration/microprofile/config/pom.xml
@@ -22,7 +22,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/microprofile/config/webapp/pom.xml b/tests/integration/microprofile/config/webapp/pom.xml
index 4814e3155a8..ef82e1e77e1 100644
--- a/tests/integration/microprofile/config/webapp/pom.xml
+++ b/tests/integration/microprofile/config/webapp/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/pom.xml b/tests/integration/microprofile/pom.xml
index 5bb89f1aba3..19e06d62bbb 100644
--- a/tests/integration/microprofile/pom.xml
+++ b/tests/integration/microprofile/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/microprofile/rest-client-tck/pom.xml b/tests/integration/microprofile/rest-client-tck/pom.xml
index d9ba331f758..9e477b8bd89 100644
--- a/tests/integration/microprofile/rest-client-tck/pom.xml
+++ b/tests/integration/microprofile/rest-client-tck/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/rest-client/pom.xml b/tests/integration/microprofile/rest-client/pom.xml
index c063e5e931d..20e608714f3 100644
--- a/tests/integration/microprofile/rest-client/pom.xml
+++ b/tests/integration/microprofile/rest-client/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index 49b222d95b7..7313f12ce46 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.integration
diff --git a/tests/integration/property-check/pom.xml b/tests/integration/property-check/pom.xml
index 59ab9e8d25d..f98c25cee90 100644
--- a/tests/integration/property-check/pom.xml
+++ b/tests/integration/property-check/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
property-check
diff --git a/tests/integration/reactive-streams/pom.xml b/tests/integration/reactive-streams/pom.xml
index 431b3afd550..cef7e0e93c6 100644
--- a/tests/integration/reactive-streams/pom.xml
+++ b/tests/integration/reactive-streams/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/reactive-streams/sse/pom.xml b/tests/integration/reactive-streams/sse/pom.xml
index 2176e229049..b6031de788e 100644
--- a/tests/integration/reactive-streams/sse/pom.xml
+++ b/tests/integration/reactive-streams/sse/pom.xml
@@ -22,7 +22,7 @@
reactive-streams-integration-project
org.glassfish.jersey.tests.integration.reactive
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/security-digest/pom.xml b/tests/integration/security-digest/pom.xml
index 72bce4f03a6..1c3d9390d63 100644
--- a/tests/integration/security-digest/pom.xml
+++ b/tests/integration/security-digest/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
security-digest
diff --git a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
index f64104fa0b3..170ebdc6057 100644
--- a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-autodiscovery-1
diff --git a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
index 2f290a2f6cb..75d0d9d1692 100644
--- a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-autodiscovery-2
diff --git a/tests/integration/servlet-2.5-filter/pom.xml b/tests/integration/servlet-2.5-filter/pom.xml
index 9275f7606ae..f5bde77bdd3 100644
--- a/tests/integration/servlet-2.5-filter/pom.xml
+++ b/tests/integration/servlet-2.5-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-filter
diff --git a/tests/integration/servlet-2.5-inflector-1/pom.xml b/tests/integration/servlet-2.5-inflector-1/pom.xml
index 091e5d880ce..8881a1aa86b 100644
--- a/tests/integration/servlet-2.5-inflector-1/pom.xml
+++ b/tests/integration/servlet-2.5-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-inflector-1
diff --git a/tests/integration/servlet-2.5-init-1/pom.xml b/tests/integration/servlet-2.5-init-1/pom.xml
index ed36ac5fef3..7f73fa2db7a 100644
--- a/tests/integration/servlet-2.5-init-1/pom.xml
+++ b/tests/integration/servlet-2.5-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-init-1
diff --git a/tests/integration/servlet-2.5-init-2/pom.xml b/tests/integration/servlet-2.5-init-2/pom.xml
index 4cf4bd04518..a38fb5ab30a 100644
--- a/tests/integration/servlet-2.5-init-2/pom.xml
+++ b/tests/integration/servlet-2.5-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-init-2
diff --git a/tests/integration/servlet-2.5-init-3/pom.xml b/tests/integration/servlet-2.5-init-3/pom.xml
index b2b471bb168..54ae9820807 100644
--- a/tests/integration/servlet-2.5-init-3/pom.xml
+++ b/tests/integration/servlet-2.5-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-init-3
diff --git a/tests/integration/servlet-2.5-init-4/pom.xml b/tests/integration/servlet-2.5-init-4/pom.xml
index 5b91fbf9cba..f46d5bc8f9c 100644
--- a/tests/integration/servlet-2.5-init-4/pom.xml
+++ b/tests/integration/servlet-2.5-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-init-4
diff --git a/tests/integration/servlet-2.5-init-5/pom.xml b/tests/integration/servlet-2.5-init-5/pom.xml
index fa51ad12742..a2d1ae3058c 100644
--- a/tests/integration/servlet-2.5-init-5/pom.xml
+++ b/tests/integration/servlet-2.5-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-init-5
diff --git a/tests/integration/servlet-2.5-init-6/pom.xml b/tests/integration/servlet-2.5-init-6/pom.xml
index 27e48e64796..437f9499271 100644
--- a/tests/integration/servlet-2.5-init-6/pom.xml
+++ b/tests/integration/servlet-2.5-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-init-6
diff --git a/tests/integration/servlet-2.5-init-7/pom.xml b/tests/integration/servlet-2.5-init-7/pom.xml
index a7ff29a5c74..43dc4e1441c 100644
--- a/tests/integration/servlet-2.5-init-7/pom.xml
+++ b/tests/integration/servlet-2.5-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-init-7
diff --git a/tests/integration/servlet-2.5-init-8/pom.xml b/tests/integration/servlet-2.5-init-8/pom.xml
index 34e0d07e0ba..5c3c50febae 100644
--- a/tests/integration/servlet-2.5-init-8/pom.xml
+++ b/tests/integration/servlet-2.5-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-init-8
diff --git a/tests/integration/servlet-2.5-mvc-1/pom.xml b/tests/integration/servlet-2.5-mvc-1/pom.xml
index f817c9129a0..9e080fb8a05 100644
--- a/tests/integration/servlet-2.5-mvc-1/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-mvc-1
diff --git a/tests/integration/servlet-2.5-mvc-2/pom.xml b/tests/integration/servlet-2.5-mvc-2/pom.xml
index 4055b1c1230..6b99036dc71 100644
--- a/tests/integration/servlet-2.5-mvc-2/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-mvc-2
diff --git a/tests/integration/servlet-2.5-mvc-3/pom.xml b/tests/integration/servlet-2.5-mvc-3/pom.xml
index 7f445eb8aa1..b9e12c58a3f 100644
--- a/tests/integration/servlet-2.5-mvc-3/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-mvc-3
diff --git a/tests/integration/servlet-2.5-reload/pom.xml b/tests/integration/servlet-2.5-reload/pom.xml
index e6add08b22c..300e1eed8c3 100644
--- a/tests/integration/servlet-2.5-reload/pom.xml
+++ b/tests/integration/servlet-2.5-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-2.5-reload
diff --git a/tests/integration/servlet-3-async/pom.xml b/tests/integration/servlet-3-async/pom.xml
index 4d67973100c..d305a505f17 100644
--- a/tests/integration/servlet-3-async/pom.xml
+++ b/tests/integration/servlet-3-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-async
diff --git a/tests/integration/servlet-3-chunked-io/pom.xml b/tests/integration/servlet-3-chunked-io/pom.xml
index 0dafcee84a3..4ea9c0416a0 100644
--- a/tests/integration/servlet-3-chunked-io/pom.xml
+++ b/tests/integration/servlet-3-chunked-io/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-chunked-io
diff --git a/tests/integration/servlet-3-filter/pom.xml b/tests/integration/servlet-3-filter/pom.xml
index 0ebac0140de..99405a2a0e3 100644
--- a/tests/integration/servlet-3-filter/pom.xml
+++ b/tests/integration/servlet-3-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-filter
diff --git a/tests/integration/servlet-3-gf-async/pom.xml b/tests/integration/servlet-3-gf-async/pom.xml
index 7c2d31a9297..448e9063629 100644
--- a/tests/integration/servlet-3-gf-async/pom.xml
+++ b/tests/integration/servlet-3-gf-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-gf-async
diff --git a/tests/integration/servlet-3-inflector-1/pom.xml b/tests/integration/servlet-3-inflector-1/pom.xml
index cc6658ec044..b49c04d6443 100644
--- a/tests/integration/servlet-3-inflector-1/pom.xml
+++ b/tests/integration/servlet-3-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-inflector-1
diff --git a/tests/integration/servlet-3-init-1/pom.xml b/tests/integration/servlet-3-init-1/pom.xml
index b127e1ec6c9..3862f57778f 100644
--- a/tests/integration/servlet-3-init-1/pom.xml
+++ b/tests/integration/servlet-3-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-init-1
diff --git a/tests/integration/servlet-3-init-2/pom.xml b/tests/integration/servlet-3-init-2/pom.xml
index d8c421ea670..66bbfaad717 100644
--- a/tests/integration/servlet-3-init-2/pom.xml
+++ b/tests/integration/servlet-3-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-init-2
diff --git a/tests/integration/servlet-3-init-3/pom.xml b/tests/integration/servlet-3-init-3/pom.xml
index e1c39985b76..d81772b1c59 100644
--- a/tests/integration/servlet-3-init-3/pom.xml
+++ b/tests/integration/servlet-3-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-init-3
diff --git a/tests/integration/servlet-3-init-4/pom.xml b/tests/integration/servlet-3-init-4/pom.xml
index 65ebc71f9cc..e2a8478d875 100644
--- a/tests/integration/servlet-3-init-4/pom.xml
+++ b/tests/integration/servlet-3-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-init-4
diff --git a/tests/integration/servlet-3-init-5/pom.xml b/tests/integration/servlet-3-init-5/pom.xml
index b77080c3c79..88ec528e7ef 100644
--- a/tests/integration/servlet-3-init-5/pom.xml
+++ b/tests/integration/servlet-3-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-init-5
diff --git a/tests/integration/servlet-3-init-6/pom.xml b/tests/integration/servlet-3-init-6/pom.xml
index c52e1929b40..b0591746687 100644
--- a/tests/integration/servlet-3-init-6/pom.xml
+++ b/tests/integration/servlet-3-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-init-6
diff --git a/tests/integration/servlet-3-init-7/pom.xml b/tests/integration/servlet-3-init-7/pom.xml
index d92378b73ac..39661f9bd26 100644
--- a/tests/integration/servlet-3-init-7/pom.xml
+++ b/tests/integration/servlet-3-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-init-7
diff --git a/tests/integration/servlet-3-init-8/pom.xml b/tests/integration/servlet-3-init-8/pom.xml
index 6f31ce7c12f..9ab80e1f098 100644
--- a/tests/integration/servlet-3-init-8/pom.xml
+++ b/tests/integration/servlet-3-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-init-8
diff --git a/tests/integration/servlet-3-init-9/pom.xml b/tests/integration/servlet-3-init-9/pom.xml
index 6e60f707a37..ed0a34a54fb 100644
--- a/tests/integration/servlet-3-init-9/pom.xml
+++ b/tests/integration/servlet-3-init-9/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-init-9
diff --git a/tests/integration/servlet-3-init-provider/pom.xml b/tests/integration/servlet-3-init-provider/pom.xml
index b0887741f9d..8c909b441a0 100644
--- a/tests/integration/servlet-3-init-provider/pom.xml
+++ b/tests/integration/servlet-3-init-provider/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-init-provider
diff --git a/tests/integration/servlet-3-params/pom.xml b/tests/integration/servlet-3-params/pom.xml
index aecdc1b7968..9eca1fc6c90 100644
--- a/tests/integration/servlet-3-params/pom.xml
+++ b/tests/integration/servlet-3-params/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-params
diff --git a/tests/integration/servlet-3-sse-1/pom.xml b/tests/integration/servlet-3-sse-1/pom.xml
index 42f10c11ac5..ca82c6a288d 100644
--- a/tests/integration/servlet-3-sse-1/pom.xml
+++ b/tests/integration/servlet-3-sse-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-3-sse-1
diff --git a/tests/integration/servlet-4.0-mvc-1/pom.xml b/tests/integration/servlet-4.0-mvc-1/pom.xml
index 3a2eb655ad8..7a93a3f1b54 100644
--- a/tests/integration/servlet-4.0-mvc-1/pom.xml
+++ b/tests/integration/servlet-4.0-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-4.0-mvc-1
diff --git a/tests/integration/servlet-request-wrapper-binding-2/pom.xml b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
index 2c9f44e5179..063f1bf9778 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-request-wrappper-binding-2
diff --git a/tests/integration/servlet-request-wrapper-binding/pom.xml b/tests/integration/servlet-request-wrapper-binding/pom.xml
index 3c4b9c0a002..2a6a9808591 100644
--- a/tests/integration/servlet-request-wrapper-binding/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-request-wrappper-binding
diff --git a/tests/integration/servlet-tests/pom.xml b/tests/integration/servlet-tests/pom.xml
index 6d8dfcc11c3..d20aa3fd26d 100644
--- a/tests/integration/servlet-tests/pom.xml
+++ b/tests/integration/servlet-tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
servlet-tests
diff --git a/tests/integration/sonar-test/pom.xml b/tests/integration/sonar-test/pom.xml
index b80ded83d6d..6e5ad790cb1 100644
--- a/tests/integration/sonar-test/pom.xml
+++ b/tests/integration/sonar-test/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
sonar-test
diff --git a/tests/integration/spring6/pom.xml b/tests/integration/spring6/pom.xml
index 779b1c95df3..63625f40c13 100644
--- a/tests/integration/spring6/pom.xml
+++ b/tests/integration/spring6/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
spring6
diff --git a/tests/integration/tracing-support/pom.xml b/tests/integration/tracing-support/pom.xml
index 3d3e6b83838..1618cae39bb 100644
--- a/tests/integration/tracing-support/pom.xml
+++ b/tests/integration/tracing-support/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.6
+ 3.0.99-SNAPSHOT
tracing-support
diff --git a/tests/jmockit/pom.xml b/tests/jmockit/pom.xml
index 617d98a04c6..b23e24ee528 100644
--- a/tests/jmockit/pom.xml
+++ b/tests/jmockit/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests
- 3.0.6
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/mem-leaks/pom.xml b/tests/mem-leaks/pom.xml
index 9c020ad8a5b..6f88b8c504a 100644
--- a/tests/mem-leaks/pom.xml
+++ b/tests/mem-leaks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.memleaks
diff --git a/tests/mem-leaks/redeployment/pom.xml b/tests/mem-leaks/redeployment/pom.xml
index c5df19940e9..d05070e2c88 100644
--- a/tests/mem-leaks/redeployment/pom.xml
+++ b/tests/mem-leaks/redeployment/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.memleaks.redeployment
diff --git a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
index 3b7ec5fd8f3..5fe32d43680 100644
--- a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.6
+ 3.0.99-SNAPSHOT
redeployment-hello-world-app-ref
@@ -132,7 +132,7 @@
org.glassfish.jersey.examples
helloworld-webapp
war
- 3.0.6
+ 3.0.99-SNAPSHOT
diff --git a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
index 127d60bae1c..465a1b116f0 100644
--- a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.6
+ 3.0.99-SNAPSHOT
redeployment-leaking-test-app
diff --git a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
index 0a818dc05a2..59a52b9e50c 100644
--- a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.6
+ 3.0.99-SNAPSHOT
redeployment-no-jersey-app
diff --git a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
index 100d335fb4d..0e0ebd4d6ce 100644
--- a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.6
+ 3.0.99-SNAPSHOT
redeployment-threadlocals-app
diff --git a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
index fa70a058865..f6e335b7bd7 100644
--- a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
bean-param-leak
diff --git a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
index 21b7b2bf421..929337bd8c7 100644
--- a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
+++ b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
leaking-test-app
diff --git a/tests/mem-leaks/test-cases/pom.xml b/tests/mem-leaks/test-cases/pom.xml
index 58196340203..4428ff7f3d6 100644
--- a/tests/mem-leaks/test-cases/pom.xml
+++ b/tests/mem-leaks/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.memleaks.testcases
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
index fd40a6f99c2..40e375294ee 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
shutdown-hook-leak-client
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
index 6e4f5cd94c2..3335fd2b424 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
shutdown-hook-leak
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index 45a6c041005..1b996666be8 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.osgi
project
- 3.0.6
+ 3.0.99-SNAPSHOT
jersey-tests-osgi-functional
diff --git a/tests/osgi/pom.xml b/tests/osgi/pom.xml
index 92753f4dafc..0f6a61894cc 100644
--- a/tests/osgi/pom.xml
+++ b/tests/osgi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.osgi
diff --git a/tests/performance/benchmarks/pom.xml b/tests/performance/benchmarks/pom.xml
index 1452d5988f1..de3d43d789f 100644
--- a/tests/performance/benchmarks/pom.xml
+++ b/tests/performance/benchmarks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.6
+ 3.0.99-SNAPSHOT
performance-test-benchmarks
diff --git a/tests/performance/pom.xml b/tests/performance/pom.xml
index 58e7410a0d6..684deafa4a3 100644
--- a/tests/performance/pom.xml
+++ b/tests/performance/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.performance
diff --git a/tests/performance/runners/jersey-grizzly-runner/pom.xml b/tests/performance/runners/jersey-grizzly-runner/pom.xml
index fee46b061fe..1c55d8a29b8 100644
--- a/tests/performance/runners/jersey-grizzly-runner/pom.xml
+++ b/tests/performance/runners/jersey-grizzly-runner/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.runners
project
- 3.0.6
+ 3.0.99-SNAPSHOT
diff --git a/tests/performance/runners/pom.xml b/tests/performance/runners/pom.xml
index c271f497eb1..96707a881f3 100644
--- a/tests/performance/runners/pom.xml
+++ b/tests/performance/runners/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.performance.runners
diff --git a/tests/performance/test-cases/assemblies/pom.xml b/tests/performance/test-cases/assemblies/pom.xml
index 09668e90922..0e174ef1738 100644
--- a/tests/performance/test-cases/assemblies/pom.xml
+++ b/tests/performance/test-cases/assemblies/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
assemblies
diff --git a/tests/performance/test-cases/filter-dynamic/pom.xml b/tests/performance/test-cases/filter-dynamic/pom.xml
index 448f2d60208..08679af1fec 100644
--- a/tests/performance/test-cases/filter-dynamic/pom.xml
+++ b/tests/performance/test-cases/filter-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
filter-dynamic
diff --git a/tests/performance/test-cases/filter-global/pom.xml b/tests/performance/test-cases/filter-global/pom.xml
index 91fea1b02d7..5fdc703dab5 100644
--- a/tests/performance/test-cases/filter-global/pom.xml
+++ b/tests/performance/test-cases/filter-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
filter-global
diff --git a/tests/performance/test-cases/filter-name/pom.xml b/tests/performance/test-cases/filter-name/pom.xml
index a13437a63bd..c6457f06c02 100644
--- a/tests/performance/test-cases/filter-name/pom.xml
+++ b/tests/performance/test-cases/filter-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
filter-name
diff --git a/tests/performance/test-cases/interceptor-dynamic/pom.xml b/tests/performance/test-cases/interceptor-dynamic/pom.xml
index f6a84bebab7..3869ea29373 100644
--- a/tests/performance/test-cases/interceptor-dynamic/pom.xml
+++ b/tests/performance/test-cases/interceptor-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
interceptor-dynamic
diff --git a/tests/performance/test-cases/interceptor-global/pom.xml b/tests/performance/test-cases/interceptor-global/pom.xml
index 64e767535de..8cad5e337bd 100644
--- a/tests/performance/test-cases/interceptor-global/pom.xml
+++ b/tests/performance/test-cases/interceptor-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
interceptor-global
diff --git a/tests/performance/test-cases/interceptor-name/pom.xml b/tests/performance/test-cases/interceptor-name/pom.xml
index 36faf1c9aab..2a179d3c6c2 100644
--- a/tests/performance/test-cases/interceptor-name/pom.xml
+++ b/tests/performance/test-cases/interceptor-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
interceptor-name
diff --git a/tests/performance/test-cases/mbw-custom-provider/pom.xml b/tests/performance/test-cases/mbw-custom-provider/pom.xml
index 7812840754f..05def3afe70 100644
--- a/tests/performance/test-cases/mbw-custom-provider/pom.xml
+++ b/tests/performance/test-cases/mbw-custom-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
custom-provider
diff --git a/tests/performance/test-cases/mbw-json-jackson/pom.xml b/tests/performance/test-cases/mbw-json-jackson/pom.xml
index e568999d7ca..99b7e0a4e3e 100644
--- a/tests/performance/test-cases/mbw-json-jackson/pom.xml
+++ b/tests/performance/test-cases/mbw-json-jackson/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
json-jackson
diff --git a/tests/performance/test-cases/mbw-json-moxy/pom.xml b/tests/performance/test-cases/mbw-json-moxy/pom.xml
index cd68476e0db..110a87fe45d 100644
--- a/tests/performance/test-cases/mbw-json-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-json-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
json-moxy
diff --git a/tests/performance/test-cases/mbw-kryo/pom.xml b/tests/performance/test-cases/mbw-kryo/pom.xml
index ab8b10e9e87..e6286ce24be 100644
--- a/tests/performance/test-cases/mbw-kryo/pom.xml
+++ b/tests/performance/test-cases/mbw-kryo/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
mbw-kryo
diff --git a/tests/performance/test-cases/mbw-text-plain/pom.xml b/tests/performance/test-cases/mbw-text-plain/pom.xml
index 44454933de3..44b96b2ea34 100644
--- a/tests/performance/test-cases/mbw-text-plain/pom.xml
+++ b/tests/performance/test-cases/mbw-text-plain/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
text-plain
diff --git a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
index dfa6086b6ec..e759a1d9fde 100644
--- a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
xml-jaxb
diff --git a/tests/performance/test-cases/mbw-xml-moxy/pom.xml b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
index a3270faa601..ad3fc0d25c5 100644
--- a/tests/performance/test-cases/mbw-xml-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
xml-moxy
diff --git a/tests/performance/test-cases/param-srl/pom.xml b/tests/performance/test-cases/param-srl/pom.xml
index 981c6ef7688..95a00326615 100644
--- a/tests/performance/test-cases/param-srl/pom.xml
+++ b/tests/performance/test-cases/param-srl/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
param-srl
diff --git a/tests/performance/test-cases/pom.xml b/tests/performance/test-cases/pom.xml
index b888e89f8c3..60c2b732796 100644
--- a/tests/performance/test-cases/pom.xml
+++ b/tests/performance/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.performance.testcases
diff --git a/tests/performance/test-cases/proxy-injection/pom.xml b/tests/performance/test-cases/proxy-injection/pom.xml
index aee1eb2af71..ab5a7456041 100644
--- a/tests/performance/test-cases/proxy-injection/pom.xml
+++ b/tests/performance/test-cases/proxy-injection/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.6
+ 3.0.99-SNAPSHOT
proxy-injection
diff --git a/tests/performance/tools/pom.xml b/tests/performance/tools/pom.xml
index fb4e2749d1c..16ec2b20b48 100644
--- a/tests/performance/tools/pom.xml
+++ b/tests/performance/tools/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.performance.tools
performance-test-tools
diff --git a/tests/pom.xml b/tests/pom.xml
index 39955811fad..946aa00deba 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.6
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests
diff --git a/tests/stress/pom.xml b/tests/stress/pom.xml
index fa2434f6b4a..f0e7ee23717 100644
--- a/tests/stress/pom.xml
+++ b/tests/stress/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.6
+ 3.0.99-SNAPSHOT
stress
From 39856aa4dd5f3f3a1f8135c4d9734206ee989b89 Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Fri, 12 Aug 2022 14:01:41 +0200
Subject: [PATCH 077/305] Eclipse Dash license check profile
Signed-off-by: Maxim Nesen
---
pom.xml | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/pom.xml b/pom.xml
index 4047aa127c6..dbc23b898a8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1361,6 +1361,40 @@
true
+
+ license_check
+
+
+ dash-licenses-snapshots
+ https://repo.eclipse.org/content/repositories/dash-licenses-snapshots/
+
+ true
+
+
+
+
+
+
+ org.eclipse.dash
+ license-tool-plugin
+ 0.0.1-SNAPSHOT
+
+
+ license-check
+
+ license-check
+
+
+ DEPENDENCIES
+ true
+ REVIEW_SUMMARY
+
+
+
+
+
+
+
From e722b4a3cbedd7700f80af4b56762ca365db4b21 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Tue, 16 Aug 2022 11:17:37 +0200
Subject: [PATCH 078/305] Fix unwrap CompletionStage
Signed-off-by: jansupol
---
.../glassfish/jersey/server/model/ResourceMethodInvoker.java | 2 +-
.../jersey/tests/e2e/server/CompletionStageTest.java | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/model/ResourceMethodInvoker.java b/core-server/src/main/java/org/glassfish/jersey/server/model/ResourceMethodInvoker.java
index 8780e3298aa..7cf46eeacc3 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/model/ResourceMethodInvoker.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/model/ResourceMethodInvoker.java
@@ -489,7 +489,7 @@ private Response invoke(final RequestProcessingContext context, final Object res
private Type unwrapInvocableResponseType(ContainerRequest request, Type entityType) {
if (isCompletionStageResponseType
- && request.resolveProperty(ServerProperties.UNWRAP_COMPLETION_STAGE_IN_WRITER_ENABLE, Boolean.FALSE)) {
+ && request.resolveProperty(ServerProperties.UNWRAP_COMPLETION_STAGE_IN_WRITER_ENABLE, Boolean.TRUE)) {
return isCompletionStageResponseResponseType ? entityType : completionStageResponseType;
}
return invocableResponseType;
diff --git a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/CompletionStageTest.java b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/CompletionStageTest.java
index 5e536e6ee16..50573cb956d 100644
--- a/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/CompletionStageTest.java
+++ b/tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/CompletionStageTest.java
@@ -65,8 +65,7 @@ public class CompletionStageTest extends JerseyTest {
@Override
protected Application configure() {
- return new ResourceConfig(CompletionStageResource.class, DataBeanWriter.class)
- .property(ServerProperties.UNWRAP_COMPLETION_STAGE_IN_WRITER_ENABLE, Boolean.TRUE);
+ return new ResourceConfig(CompletionStageResource.class, DataBeanWriter.class);
}
@Test
@@ -272,7 +271,6 @@ public CompletionStage getCustomCompletionStage() {
@GET
@Path("/databeanlist")
public CompletionStage> getDataBeanList(@Context ContainerRequestContext requestContext) {
- requestContext.setProperty(ServerProperties.UNWRAP_COMPLETION_STAGE_IN_WRITER_ENABLE, Boolean.TRUE);
return CompletableFuture.completedFuture(Collections.singletonList(new DataBean(ENTITY)));
}
From c74c8143f925dc4ce98258ae4526fde97e8c916f Mon Sep 17 00:00:00 2001
From: Gaurav Gupta
Date: Mon, 1 Aug 2022 15:25:28 +0530
Subject: [PATCH 079/305] FISH-5723 Fixes WebappClassloader memory-leak issue
by removing JAXRSResources classes from cache on shutdown event (#5102)
* FISH-5723 Fixes WebappClassloader memory-leak issue by removing JAXRS Resources classes from cache on shutdown event
Signed-off-by: Gaurav Gupta
---
.../jersey/internal/util/collection/Cache.java | 13 ++++++++++++-
.../ext/cdi1x/internal/CdiComponentProvider.java | 11 ++++++++++-
...diComponentProviderClientRuntimeSpecifics.java | 9 ++++++++-
.../CdiComponentProviderRuntimeSpecifics.java | 5 ++++-
...diComponentProviderServerRuntimeSpecifics.java | 15 ++++++++++++++-
5 files changed, 48 insertions(+), 5 deletions(-)
diff --git a/core-common/src/main/java/org/glassfish/jersey/internal/util/collection/Cache.java b/core-common/src/main/java/org/glassfish/jersey/internal/util/collection/Cache.java
index 923552cbb4f..40d94abe266 100644
--- a/core-common/src/main/java/org/glassfish/jersey/internal/util/collection/Cache.java
+++ b/core-common/src/main/java/org/glassfish/jersey/internal/util/collection/Cache.java
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2022 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,6 +17,7 @@
package org.glassfish.jersey.internal.util.collection;
+import java.util.Enumeration;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutionException;
@@ -107,6 +109,15 @@ public void clear() {
cache.clear();
}
+ /**
+ * Get the cache keys
+ *
+ * @return
+ */
+ public Enumeration keys() {
+ return cache.keys();
+ }
+
/**
* Returns true if the key has already been cached.
*
diff --git a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
index 7488e5152d8..6ff37b4c94e 100644
--- a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
+++ b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
- * Copyright (c) 2018 Payara Foundation and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2022 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -59,12 +59,16 @@
import javax.enterprise.inject.spi.AnnotatedParameter;
import javax.enterprise.inject.spi.AnnotatedType;
import javax.enterprise.inject.spi.Bean;
+import javax.enterprise.inject.spi.BeanManager;
+import javax.enterprise.inject.spi.BeforeBeanDiscovery;
+import javax.enterprise.inject.spi.BeforeShutdown;
import javax.enterprise.inject.spi.Extension;
import javax.enterprise.inject.spi.InjectionPoint;
import javax.enterprise.inject.spi.InjectionTarget;
import javax.enterprise.inject.spi.ProcessAnnotatedType;
import javax.enterprise.inject.spi.ProcessInjectionTarget;
import javax.enterprise.util.AnnotationLiteral;
+import javax.inject.Qualifier;
import org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerInjectedTarget;
import org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore;
@@ -857,6 +861,11 @@ private void beforeBeanDiscovery(@Observes final BeforeBeanDiscovery beforeBeanD
);
}
+ @SuppressWarnings("unused")
+ private void beforeShutDown(@Observes final BeforeShutdown beforeShutdown, final BeanManager beanManager) {
+ runtimeSpecifics.clearJaxRsResource(Thread.currentThread().getContextClassLoader());
+ }
+
/**
* Add a predicate to test HK2 dependency to create a CDI bridge bean to HK2 for it.
* @param predicate to test whether given class is a HK2 dependency.
diff --git a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderClientRuntimeSpecifics.java b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderClientRuntimeSpecifics.java
index 7aa34a8b822..00d7ae57a2e 100644
--- a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderClientRuntimeSpecifics.java
+++ b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderClientRuntimeSpecifics.java
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2022 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,6 +21,7 @@
import javax.enterprise.inject.spi.AnnotatedType;
import javax.ws.rs.core.Context;
import java.lang.annotation.Annotation;
+import java.util.Enumeration;
import java.util.HashSet;
import java.util.Set;
@@ -59,4 +61,9 @@ public boolean isAcceptableResource(Class> resource) {
public boolean isJaxRsResource(Class> resource) {
return false;
}
+
+ @Override
+ public void clearJaxRsResource(ClassLoader loader) {
+ }
+
}
diff --git a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderRuntimeSpecifics.java b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderRuntimeSpecifics.java
index 35ab06f6925..d8681f2fff5 100644
--- a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderRuntimeSpecifics.java
+++ b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderRuntimeSpecifics.java
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2022 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,4 +35,6 @@ interface CdiComponentProviderRuntimeSpecifics {
boolean isAcceptableResource(Class> resource);
boolean isJaxRsResource(Class> resource);
+
+ void clearJaxRsResource(ClassLoader loader);
}
diff --git a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderServerRuntimeSpecifics.java b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderServerRuntimeSpecifics.java
index bfa53a36f9c..ee9ca27f809 100644
--- a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderServerRuntimeSpecifics.java
+++ b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderServerRuntimeSpecifics.java
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2022 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -48,6 +49,7 @@
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
+import java.util.Enumeration;
/**
* Server side runtime CDI ComponentProvider specific implementation.
@@ -225,6 +227,17 @@ public boolean isJaxRsResource(Class> resource) {
return jaxRsResourceCache.apply(resource);
}
+ @Override
+ public void clearJaxRsResource(ClassLoader loader) {
+ Enumeration> keys = jaxRsResourceCache.keys();
+ while (keys.hasMoreElements()) {
+ Class> key = keys.nextElement();
+ if (key.getClassLoader() == loader) {
+ jaxRsResourceCache.remove(key);
+ }
+ }
+ }
+
@Override
public boolean containsJaxRsParameterizedCtor(final AnnotatedType annotatedType) {
return CdiComponentProvider
From b3419d185586b1bcbed513d6f8f9d1bca322f711 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Thu, 18 Aug 2022 10:10:39 +0200
Subject: [PATCH 080/305] Mark jaxrs-ri bundle as multi-release
Signed-off-by: jansupol
---
bundles/jaxrs-ri/pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/bundles/jaxrs-ri/pom.xml b/bundles/jaxrs-ri/pom.xml
index 3e5bf6c3fbc..c3d1801abc5 100644
--- a/bundles/jaxrs-ri/pom.xml
+++ b/bundles/jaxrs-ri/pom.xml
@@ -306,6 +306,7 @@
com.sun.research.ws.wadl
+ true
true
*;scope=compile
From 3e195a2654f32a39b1cac2eb793125728f819656 Mon Sep 17 00:00:00 2001
From: Jorge Bescos Gascon
Date: Thu, 18 Aug 2022 09:23:11 +0200
Subject: [PATCH 081/305] Prevent error with JDK19 related to Thread.Builder
Signed-off-by: Jorge Bescos Gascon
---
.../httpserver/test/tools/JerseyHttpClientThread.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/containers/grizzly2-http/src/test/java/org/glassfish/jersey/grizzly2/httpserver/test/tools/JerseyHttpClientThread.java b/containers/grizzly2-http/src/test/java/org/glassfish/jersey/grizzly2/httpserver/test/tools/JerseyHttpClientThread.java
index dcf359f42aa..0edb6b85547 100644
--- a/containers/grizzly2-http/src/test/java/org/glassfish/jersey/grizzly2/httpserver/test/tools/JerseyHttpClientThread.java
+++ b/containers/grizzly2-http/src/test/java/org/glassfish/jersey/grizzly2/httpserver/test/tools/JerseyHttpClientThread.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -23,7 +24,7 @@
import jakarta.ws.rs.client.Client;
import jakarta.ws.rs.client.ClientBuilder;
-import jakarta.ws.rs.client.Invocation.Builder;
+import jakarta.ws.rs.client.Invocation;
import jakarta.ws.rs.client.WebTarget;
import jakarta.ws.rs.core.Response;
@@ -50,7 +51,7 @@ public JerseyHttpClientThread(final ClientThreadSettings settings,
@Override
public void doGetAndCheckResponse() throws Throwable {
final WebTarget path = client.target(getSettings().targetUri.toString());
- final Builder builder = path.request();
+ final Invocation.Builder builder = path.request();
final Response response = builder.get();
final String responseMsg = response.readEntity(String.class);
assertEquals(200, response.getStatus());
From c81fc8fb23202ab8fc08d92630ea9e06bcf188d6 Mon Sep 17 00:00:00 2001
From: jbescos
Date: Fri, 19 Aug 2022 13:17:02 +0200
Subject: [PATCH 082/305] Support JDK19
Signed-off-by: Jorge Bescos Gascon
---
etc/jenkins/Jenkinsfile_ci_build | 4 ++--
examples/groovy/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 24 ++++++++++++++++++++++++
3 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/etc/jenkins/Jenkinsfile_ci_build b/etc/jenkins/Jenkinsfile_ci_build
index 7c3f9ff093b..a42997b475a 100644
--- a/etc/jenkins/Jenkinsfile_ci_build
+++ b/etc/jenkins/Jenkinsfile_ci_build
@@ -32,12 +32,12 @@ pipeline {
'''
}
}
- stage('JDK 16 ') {
+ stage('JDK 19 ') {
agent {
label 'centos-7'
}
tools {
- jdk 'openjdk-jdk16-latest'
+ jdk 'openjdk-jdk19-latest'
maven 'apache-maven-latest'
}
steps {
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index 568f867b3e2..e6b1ca883c7 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -28,7 +28,7 @@
org.apache.groovy
groovy-all
pom
- 4.0.0-alpha-3
+ 4.0.4
org.glassfish.jersey.test-framework.providers
diff --git a/tests/integration/property-check/pom.xml b/tests/integration/property-check/pom.xml
index abe4c82cc06..ec5920e491b 100644
--- a/tests/integration/property-check/pom.xml
+++ b/tests/integration/property-check/pom.xml
@@ -109,4 +109,28 @@
+
+
+
+ jdk19+
+
+ [19,)
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+
+ **/SystemPropertiesConfigurationModelTest.java
+
+
+
+
+
+
+
+
From 64cb354484e684d50ee44133238b3400bddfb482 Mon Sep 17 00:00:00 2001
From: jersey-bot
Date: Fri, 19 Aug 2022 12:45:05 +0000
Subject: [PATCH 083/305] 3.0.7
---
archetypes/jersey-example-java8-webapp/pom.xml | 2 +-
archetypes/jersey-heroku-webapp/pom.xml | 2 +-
archetypes/jersey-quickstart-grizzly2/pom.xml | 2 +-
archetypes/jersey-quickstart-webapp/pom.xml | 2 +-
archetypes/pom.xml | 2 +-
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 2 +-
bundles/jaxrs-ri/pom.xml | 2 +-
bundles/pom.xml | 2 +-
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 2 +-
connectors/helidon-connector/pom.xml | 2 +-
connectors/jdk-connector/pom.xml | 2 +-
connectors/jetty-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 2 +-
containers/glassfish/pom.xml | 2 +-
containers/grizzly2-http/pom.xml | 2 +-
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-http/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
containers/netty-http/pom.xml | 2 +-
containers/pom.xml | 2 +-
containers/simple-http/pom.xml | 2 +-
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 2 +-
examples/assemblies/pom.xml | 2 +-
examples/bookmark-em/pom.xml | 2 +-
examples/bookmark/pom.xml | 2 +-
examples/bookstore-webapp/pom.xml | 2 +-
examples/cdi-webapp/pom.xml | 2 +-
examples/clipboard-programmatic/pom.xml | 2 +-
examples/clipboard/pom.xml | 2 +-
examples/declarative-linking/pom.xml | 2 +-
examples/entity-filtering-security/pom.xml | 2 +-
examples/entity-filtering-selectable/pom.xml | 2 +-
examples/entity-filtering/pom.xml | 2 +-
examples/exception-mapping/pom.xml | 2 +-
examples/extended-wadl-webapp/pom.xml | 2 +-
examples/freemarker-webapp/pom.xml | 2 +-
examples/groovy/pom.xml | 2 +-
examples/helloworld-benchmark/pom.xml | 2 +-
examples/helloworld-cdi2-se/pom.xml | 2 +-
examples/helloworld-netty/pom.xml | 2 +-
examples/helloworld-programmatic/pom.xml | 2 +-
examples/helloworld-pure-jax-rs/pom.xml | 2 +-
examples/helloworld-webapp/pom.xml | 2 +-
examples/helloworld-weld/pom.xml | 2 +-
examples/helloworld/pom.xml | 2 +-
examples/http-patch/pom.xml | 2 +-
examples/http-trace/pom.xml | 2 +-
examples/https-clientserver-grizzly/pom.xml | 2 +-
examples/https-server-glassfish/pom.xml | 2 +-
examples/java8-webapp/pom.xml | 2 +-
examples/jaxb/pom.xml | 2 +-
examples/jaxrs-types-injection/pom.xml | 2 +-
examples/jersey-ejb/pom.xml | 2 +-
examples/json-binding-webapp/pom.xml | 2 +-
examples/json-jackson/pom.xml | 2 +-
examples/json-jettison/pom.xml | 2 +-
examples/json-moxy/pom.xml | 2 +-
examples/json-processing-webapp/pom.xml | 2 +-
examples/json-with-padding/pom.xml | 2 +-
examples/managed-beans-webapp/pom.xml | 2 +-
examples/managed-client-simple-webapp/pom.xml | 2 +-
examples/managed-client-webapp/pom.xml | 2 +-
examples/managed-client/pom.xml | 2 +-
examples/multipart-webapp/pom.xml | 2 +-
examples/oauth-client-twitter/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 2 +-
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/functional-test/pom.xml | 2 +-
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/pom.xml | 2 +-
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 2 +-
examples/pom.xml | 2 +-
examples/reload/pom.xml | 2 +-
examples/rx-client-webapp/pom.xml | 2 +-
examples/server-async-managed/pom.xml | 2 +-
examples/server-async-standalone/client/pom.xml | 2 +-
examples/server-async-standalone/pom.xml | 2 +-
examples/server-async-standalone/webapp/pom.xml | 2 +-
examples/server-async/pom.xml | 2 +-
examples/server-sent-events-jaxrs/pom.xml | 2 +-
examples/server-sent-events-jersey/pom.xml | 2 +-
examples/servlet3-webapp/pom.xml | 2 +-
examples/simple-console/pom.xml | 2 +-
examples/sse-item-store-jaxrs-webapp/pom.xml | 2 +-
examples/sse-item-store-jersey-webapp/pom.xml | 2 +-
examples/sse-twitter-aggregator/pom.xml | 2 +-
examples/system-properties-example/pom.xml | 2 +-
examples/webapp-example-parent/pom.xml | 2 +-
examples/xml-moxy/pom.xml | 2 +-
ext/bean-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-transaction/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi1x/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 2 +-
ext/cdi/pom.xml | 2 +-
ext/entity-filtering/pom.xml | 2 +-
ext/metainf-services/pom.xml | 2 +-
ext/microprofile/mp-config/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/microprofile/pom.xml | 2 +-
ext/mvc-bean-validation/pom.xml | 2 +-
ext/mvc-freemarker/pom.xml | 2 +-
ext/mvc-jsp/pom.xml | 2 +-
ext/mvc-mustache/pom.xml | 2 +-
ext/mvc/pom.xml | 2 +-
ext/pom.xml | 2 +-
ext/proxy-client/pom.xml | 2 +-
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 2 +-
ext/rx/rx-client-rxjava2/pom.xml | 2 +-
ext/spring6/pom.xml | 2 +-
ext/wadl-doclet/pom.xml | 2 +-
incubator/cdi-inject-weld/pom.xml | 2 +-
incubator/declarative-linking/pom.xml | 2 +-
incubator/gae-integration/pom.xml | 2 +-
incubator/html-json/pom.xml | 2 +-
incubator/kryo/pom.xml | 2 +-
incubator/open-tracing/pom.xml | 2 +-
incubator/pom.xml | 2 +-
inject/cdi2-se/pom.xml | 2 +-
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 2 +-
media/jaxb/pom.xml | 2 +-
media/json-binding/pom.xml | 2 +-
media/json-gson/pom.xml | 2 +-
media/json-jackson/pom.xml | 2 +-
media/json-jettison/pom.xml | 2 +-
media/json-processing/pom.xml | 2 +-
media/moxy/pom.xml | 2 +-
media/multipart/pom.xml | 2 +-
media/pom.xml | 2 +-
media/sse/pom.xml | 2 +-
pom.xml | 2 +-
security/oauth1-client/pom.xml | 2 +-
security/oauth1-server/pom.xml | 2 +-
security/oauth1-signature/pom.xml | 2 +-
security/oauth2-client/pom.xml | 2 +-
security/pom.xml | 2 +-
test-framework/core/pom.xml | 2 +-
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 2 +-
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 2 +-
test-framework/providers/bundle/pom.xml | 2 +-
test-framework/providers/external/pom.xml | 2 +-
test-framework/providers/grizzly2/pom.xml | 2 +-
test-framework/providers/inmemory/pom.xml | 2 +-
test-framework/providers/jdk-http/pom.xml | 2 +-
test-framework/providers/jetty/pom.xml | 2 +-
test-framework/providers/netty/pom.xml | 2 +-
test-framework/providers/pom.xml | 2 +-
test-framework/providers/simple/pom.xml | 2 +-
test-framework/util/pom.xml | 2 +-
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 2 +-
tests/e2e-inject/pom.xml | 2 +-
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 2 +-
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 2 +-
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 2 +-
.../integration/cdi-integration/cdi-client-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-client/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 2 +-
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-log-check/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-manually-bound/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multipart-webapp/pom.xml | 2 +-
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-singleton/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 2 +-
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 2 +-
.../pom.xml | 2 +-
.../cdi-integration/cdi-with-jersey-injection-webapp/pom.xml | 2 +-
.../cdi-integration/context-inject-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/pom.xml | 2 +-
tests/integration/client-connector-provider/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule/pom.xml | 2 +-
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 2 +-
tests/integration/j-376/pom.xml | 2 +-
tests/integration/j-441/ear/pom.xml | 2 +-
tests/integration/j-441/pom.xml | 2 +-
tests/integration/j-441/war1/pom.xml | 2 +-
tests/integration/j-441/war2/pom.xml | 2 +-
tests/integration/j-59/ear/pom.xml | 2 +-
tests/integration/j-59/lib/pom.xml | 2 +-
tests/integration/j-59/pom.xml | 2 +-
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 2 +-
tests/integration/jersey-1107/pom.xml | 2 +-
tests/integration/jersey-1223/pom.xml | 2 +-
tests/integration/jersey-1604/pom.xml | 2 +-
tests/integration/jersey-1667/pom.xml | 2 +-
tests/integration/jersey-1883/pom.xml | 2 +-
tests/integration/jersey-1928/pom.xml | 2 +-
tests/integration/jersey-1960/pom.xml | 2 +-
tests/integration/jersey-1964/pom.xml | 2 +-
tests/integration/jersey-2031/pom.xml | 2 +-
tests/integration/jersey-2136/pom.xml | 2 +-
tests/integration/jersey-2137/pom.xml | 2 +-
tests/integration/jersey-2154/pom.xml | 2 +-
tests/integration/jersey-2160/pom.xml | 2 +-
tests/integration/jersey-2164/pom.xml | 2 +-
tests/integration/jersey-2167/pom.xml | 2 +-
tests/integration/jersey-2176/pom.xml | 2 +-
tests/integration/jersey-2184/pom.xml | 2 +-
tests/integration/jersey-2255/pom.xml | 2 +-
tests/integration/jersey-2322/pom.xml | 2 +-
tests/integration/jersey-2335/pom.xml | 2 +-
tests/integration/jersey-2421/pom.xml | 2 +-
tests/integration/jersey-2551/pom.xml | 2 +-
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 2 +-
tests/integration/jersey-2654/pom.xml | 2 +-
tests/integration/jersey-2673/pom.xml | 2 +-
tests/integration/jersey-2689/pom.xml | 2 +-
tests/integration/jersey-2704/pom.xml | 2 +-
tests/integration/jersey-2776/pom.xml | 2 +-
tests/integration/jersey-2794/pom.xml | 2 +-
tests/integration/jersey-2846/pom.xml | 2 +-
tests/integration/jersey-2878/pom.xml | 2 +-
tests/integration/jersey-2892/pom.xml | 2 +-
tests/integration/jersey-3662/pom.xml | 2 +-
tests/integration/jersey-3670/pom.xml | 2 +-
tests/integration/jersey-3796/pom.xml | 2 +-
tests/integration/jersey-3992/pom.xml | 2 +-
tests/integration/jersey-4003/pom.xml | 2 +-
tests/integration/jersey-4099/pom.xml | 2 +-
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 2 +-
tests/integration/jersey-4542/pom.xml | 2 +-
tests/integration/jersey-4697/pom.xml | 2 +-
tests/integration/jersey-4722/pom.xml | 2 +-
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-5087/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 2 +-
tests/integration/microprofile/config/helidon/pom.xml | 2 +-
tests/integration/microprofile/config/pom.xml | 2 +-
tests/integration/microprofile/config/webapp/pom.xml | 2 +-
tests/integration/microprofile/pom.xml | 2 +-
tests/integration/microprofile/rest-client-tck/pom.xml | 2 +-
tests/integration/microprofile/rest-client/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 2 +-
tests/integration/reactive-streams/sse/pom.xml | 2 +-
tests/integration/security-digest/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 2 +-
tests/integration/servlet-2.5-filter/pom.xml | 2 +-
tests/integration/servlet-2.5-inflector-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-2/pom.xml | 2 +-
tests/integration/servlet-2.5-init-3/pom.xml | 2 +-
tests/integration/servlet-2.5-init-4/pom.xml | 2 +-
tests/integration/servlet-2.5-init-5/pom.xml | 2 +-
tests/integration/servlet-2.5-init-6/pom.xml | 2 +-
tests/integration/servlet-2.5-init-7/pom.xml | 2 +-
tests/integration/servlet-2.5-init-8/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-1/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-2/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-3/pom.xml | 2 +-
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 2 +-
tests/integration/servlet-3-chunked-io/pom.xml | 2 +-
tests/integration/servlet-3-filter/pom.xml | 2 +-
tests/integration/servlet-3-gf-async/pom.xml | 2 +-
tests/integration/servlet-3-inflector-1/pom.xml | 2 +-
tests/integration/servlet-3-init-1/pom.xml | 2 +-
tests/integration/servlet-3-init-2/pom.xml | 2 +-
tests/integration/servlet-3-init-3/pom.xml | 2 +-
tests/integration/servlet-3-init-4/pom.xml | 2 +-
tests/integration/servlet-3-init-5/pom.xml | 2 +-
tests/integration/servlet-3-init-6/pom.xml | 2 +-
tests/integration/servlet-3-init-7/pom.xml | 2 +-
tests/integration/servlet-3-init-8/pom.xml | 2 +-
tests/integration/servlet-3-init-9/pom.xml | 2 +-
tests/integration/servlet-3-init-provider/pom.xml | 2 +-
tests/integration/servlet-3-params/pom.xml | 2 +-
tests/integration/servlet-3-sse-1/pom.xml | 2 +-
tests/integration/servlet-4.0-mvc-1/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 2 +-
tests/integration/sonar-test/pom.xml | 2 +-
tests/integration/spring6/pom.xml | 2 +-
tests/integration/tracing-support/pom.xml | 2 +-
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 2 +-
tests/mem-leaks/redeployment/pom.xml | 2 +-
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 4 ++--
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment/redeployment-threadlocals-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 2 +-
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 2 +-
tests/osgi/functional/pom.xml | 2 +-
tests/osgi/pom.xml | 2 +-
tests/performance/benchmarks/pom.xml | 2 +-
tests/performance/pom.xml | 2 +-
tests/performance/runners/jersey-grizzly-runner/pom.xml | 2 +-
tests/performance/runners/pom.xml | 2 +-
tests/performance/test-cases/assemblies/pom.xml | 2 +-
tests/performance/test-cases/filter-dynamic/pom.xml | 2 +-
tests/performance/test-cases/filter-global/pom.xml | 2 +-
tests/performance/test-cases/filter-name/pom.xml | 2 +-
tests/performance/test-cases/interceptor-dynamic/pom.xml | 2 +-
tests/performance/test-cases/interceptor-global/pom.xml | 2 +-
tests/performance/test-cases/interceptor-name/pom.xml | 2 +-
tests/performance/test-cases/mbw-custom-provider/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-jackson/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-moxy/pom.xml | 2 +-
tests/performance/test-cases/mbw-kryo/pom.xml | 2 +-
tests/performance/test-cases/mbw-text-plain/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 2 +-
tests/performance/test-cases/param-srl/pom.xml | 2 +-
tests/performance/test-cases/pom.xml | 2 +-
tests/performance/test-cases/proxy-injection/pom.xml | 2 +-
tests/performance/tools/pom.xml | 2 +-
tests/pom.xml | 2 +-
tests/stress/pom.xml | 2 +-
362 files changed, 363 insertions(+), 363 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index b47b480e685..c0147752a92 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-example-java8-webapp
diff --git a/archetypes/jersey-heroku-webapp/pom.xml b/archetypes/jersey-heroku-webapp/pom.xml
index a413d64fa01..506622a4eb8 100644
--- a/archetypes/jersey-heroku-webapp/pom.xml
+++ b/archetypes/jersey-heroku-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.99-SNAPSHOT
+ 3.0.7
maven-archetype
diff --git a/archetypes/jersey-quickstart-grizzly2/pom.xml b/archetypes/jersey-quickstart-grizzly2/pom.xml
index 24b37a46dae..0083bd4b2e6 100644
--- a/archetypes/jersey-quickstart-grizzly2/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-quickstart-grizzly2
maven-archetype
diff --git a/archetypes/jersey-quickstart-webapp/pom.xml b/archetypes/jersey-quickstart-webapp/pom.xml
index 8b11c4ebc98..bb977e9ea8f 100644
--- a/archetypes/jersey-quickstart-webapp/pom.xml
+++ b/archetypes/jersey-quickstart-webapp/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
maven-archetype
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index e8a31139d10..1fbed6f1d5d 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.archetypes
diff --git a/bom/pom.xml b/bom/pom.xml
index 1083d28a38b..1d064423352 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,7 +30,7 @@
org.glassfish.jersey
jersey-bom
- 3.0.99-SNAPSHOT
+ 3.0.7
pom
jersey-bom
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index 083b14b1398..b1be342a371 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.0.99-SNAPSHOT
+ 3.0.7
apidocs
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index e171811f24f..7136c58766f 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.bundles
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-examples
diff --git a/bundles/jaxrs-ri/pom.xml b/bundles/jaxrs-ri/pom.xml
index a254d5316a3..a1de755c286 100644
--- a/bundles/jaxrs-ri/pom.xml
+++ b/bundles/jaxrs-ri/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jaxrs-ri
diff --git a/bundles/pom.xml b/bundles/pom.xml
index 5739d5eac11..36132b17fe3 100644
--- a/bundles/pom.xml
+++ b/bundles/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.bundles
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index 269b753774a..bcb37d0538a 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-apache-connector
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
index 899e2911e5e..81343d09642 100644
--- a/connectors/apache5-connector/pom.xml
+++ b/connectors/apache5-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-apache5-connector
diff --git a/connectors/grizzly-connector/pom.xml b/connectors/grizzly-connector/pom.xml
index 8d997a4ae4a..a268ef48952 100644
--- a/connectors/grizzly-connector/pom.xml
+++ b/connectors/grizzly-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-grizzly-connector
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index 0e06810598d..e70203785f8 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.connectors
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/connectors/jdk-connector/pom.xml b/connectors/jdk-connector/pom.xml
index 57d04215b14..4d7e00447dc 100644
--- a/connectors/jdk-connector/pom.xml
+++ b/connectors/jdk-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-jdk-connector
diff --git a/connectors/jetty-connector/pom.xml b/connectors/jetty-connector/pom.xml
index 8be410ed3f1..7453e56dab1 100644
--- a/connectors/jetty-connector/pom.xml
+++ b/connectors/jetty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-jetty-connector
diff --git a/connectors/netty-connector/pom.xml b/connectors/netty-connector/pom.xml
index 18054902133..4171721719d 100644
--- a/connectors/netty-connector/pom.xml
+++ b/connectors/netty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-netty-connector
diff --git a/connectors/pom.xml b/connectors/pom.xml
index 472101738f9..e437616d613 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.connectors
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index c9573115adb..f5fce167c94 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers.glassfish
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-gf-ejb
diff --git a/containers/glassfish/pom.xml b/containers/glassfish/pom.xml
index 97b7748050b..bfe1c286717 100644
--- a/containers/glassfish/pom.xml
+++ b/containers/glassfish/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.containers.glassfish
diff --git a/containers/grizzly2-http/pom.xml b/containers/grizzly2-http/pom.xml
index 92ca31d2324..96d5bf580c4 100644
--- a/containers/grizzly2-http/pom.xml
+++ b/containers/grizzly2-http/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-container-grizzly2-http
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index 727344d3c55..89ba2e5b07b 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-container-grizzly2-servlet
diff --git a/containers/jdk-http/pom.xml b/containers/jdk-http/pom.xml
index c9d95593f90..75a68a27ec7 100644
--- a/containers/jdk-http/pom.xml
+++ b/containers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-container-jdk-http
diff --git a/containers/jersey-servlet-core/pom.xml b/containers/jersey-servlet-core/pom.xml
index edd2e9ba58e..a1bdbc1eb6c 100644
--- a/containers/jersey-servlet-core/pom.xml
+++ b/containers/jersey-servlet-core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-container-servlet-core
diff --git a/containers/jersey-servlet/pom.xml b/containers/jersey-servlet/pom.xml
index e066f5d541c..50e41199fe3 100644
--- a/containers/jersey-servlet/pom.xml
+++ b/containers/jersey-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-container-servlet
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index 8ffde3c771a..c187c63ed2e 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.containers
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-container-jetty-http
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 373d0044662..2567916eccd 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-container-jetty-servlet
diff --git a/containers/netty-http/pom.xml b/containers/netty-http/pom.xml
index 8bdca8e03b9..472153cd905 100644
--- a/containers/netty-http/pom.xml
+++ b/containers/netty-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-container-netty-http
diff --git a/containers/pom.xml b/containers/pom.xml
index d1d9d1f9f8f..6edc1e0b468 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.containers
diff --git a/containers/simple-http/pom.xml b/containers/simple-http/pom.xml
index 442093fc474..b672299d8cc 100644
--- a/containers/simple-http/pom.xml
+++ b/containers/simple-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-container-simple-http
diff --git a/core-client/pom.xml b/core-client/pom.xml
index e9a51246873..f23a27e250f 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.core
diff --git a/core-common/pom.xml b/core-common/pom.xml
index b6282d38161..a1e7c7e286f 100644
--- a/core-common/pom.xml
+++ b/core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.core
diff --git a/core-server/pom.xml b/core-server/pom.xml
index 5eaea68a6a7..b7d0c496252 100644
--- a/core-server/pom.xml
+++ b/core-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.core
diff --git a/docs/pom.xml b/docs/pom.xml
index 509d6f2c691..6b7a792ffea 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-documentation
pom
diff --git a/examples/assemblies/pom.xml b/examples/assemblies/pom.xml
index 3a9082c2c70..62005eb9326 100644
--- a/examples/assemblies/pom.xml
+++ b/examples/assemblies/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
assemblies
diff --git a/examples/bookmark-em/pom.xml b/examples/bookmark-em/pom.xml
index 43c1eb4d89b..7433e7666fb 100644
--- a/examples/bookmark-em/pom.xml
+++ b/examples/bookmark-em/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
bookmark-em
diff --git a/examples/bookmark/pom.xml b/examples/bookmark/pom.xml
index 51b37c22f7d..97190a63f51 100644
--- a/examples/bookmark/pom.xml
+++ b/examples/bookmark/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
bookmark
diff --git a/examples/bookstore-webapp/pom.xml b/examples/bookstore-webapp/pom.xml
index cfe9e6d253d..23a17c8f7f6 100644
--- a/examples/bookstore-webapp/pom.xml
+++ b/examples/bookstore-webapp/pom.xml
@@ -35,7 +35,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
bookstore-webapp
diff --git a/examples/cdi-webapp/pom.xml b/examples/cdi-webapp/pom.xml
index 803c399f4fd..5e6f0f73b45 100644
--- a/examples/cdi-webapp/pom.xml
+++ b/examples/cdi-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-webapp
diff --git a/examples/clipboard-programmatic/pom.xml b/examples/clipboard-programmatic/pom.xml
index 6fab951dac4..1de032439ac 100644
--- a/examples/clipboard-programmatic/pom.xml
+++ b/examples/clipboard-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
clipboard-programmatic
diff --git a/examples/clipboard/pom.xml b/examples/clipboard/pom.xml
index 5caf76ce426..6c81c7fe596 100644
--- a/examples/clipboard/pom.xml
+++ b/examples/clipboard/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
clipboard
diff --git a/examples/declarative-linking/pom.xml b/examples/declarative-linking/pom.xml
index 910c6d5fadf..e3ab367279d 100644
--- a/examples/declarative-linking/pom.xml
+++ b/examples/declarative-linking/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
declarative-linking
diff --git a/examples/entity-filtering-security/pom.xml b/examples/entity-filtering-security/pom.xml
index a92d294e77e..f2b0d117b84 100644
--- a/examples/entity-filtering-security/pom.xml
+++ b/examples/entity-filtering-security/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
entity-filtering-security
diff --git a/examples/entity-filtering-selectable/pom.xml b/examples/entity-filtering-selectable/pom.xml
index 986200ae1c2..12969e52b1f 100644
--- a/examples/entity-filtering-selectable/pom.xml
+++ b/examples/entity-filtering-selectable/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
entity-filtering-selectable
diff --git a/examples/entity-filtering/pom.xml b/examples/entity-filtering/pom.xml
index b6d5870b180..31707e39954 100644
--- a/examples/entity-filtering/pom.xml
+++ b/examples/entity-filtering/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
entity-filtering
diff --git a/examples/exception-mapping/pom.xml b/examples/exception-mapping/pom.xml
index 5986740b376..3d11f0f84e6 100644
--- a/examples/exception-mapping/pom.xml
+++ b/examples/exception-mapping/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
exception-mapping
diff --git a/examples/extended-wadl-webapp/pom.xml b/examples/extended-wadl-webapp/pom.xml
index 2373bd4e9e4..765977d830b 100644
--- a/examples/extended-wadl-webapp/pom.xml
+++ b/examples/extended-wadl-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
extended-wadl-webapp
diff --git a/examples/freemarker-webapp/pom.xml b/examples/freemarker-webapp/pom.xml
index 9af7112d7d1..b870b696bb6 100644
--- a/examples/freemarker-webapp/pom.xml
+++ b/examples/freemarker-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
freemarker-webapp
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index 2ac5de0aedc..b23cde5971e 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
groovy
jar
diff --git a/examples/helloworld-benchmark/pom.xml b/examples/helloworld-benchmark/pom.xml
index 888880182b2..26ddb3d3a7a 100644
--- a/examples/helloworld-benchmark/pom.xml
+++ b/examples/helloworld-benchmark/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
helloworld-benchmark
diff --git a/examples/helloworld-cdi2-se/pom.xml b/examples/helloworld-cdi2-se/pom.xml
index 11aba91aad0..15f7449ac19 100644
--- a/examples/helloworld-cdi2-se/pom.xml
+++ b/examples/helloworld-cdi2-se/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
helloworld-cdi2-se
diff --git a/examples/helloworld-netty/pom.xml b/examples/helloworld-netty/pom.xml
index db6fe09c0cb..e51b1bdaea6 100644
--- a/examples/helloworld-netty/pom.xml
+++ b/examples/helloworld-netty/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
helloworld-netty
diff --git a/examples/helloworld-programmatic/pom.xml b/examples/helloworld-programmatic/pom.xml
index eb267ee7527..e831e8136ae 100644
--- a/examples/helloworld-programmatic/pom.xml
+++ b/examples/helloworld-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
helloworld-programmatic
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index 9a6627ecbe7..67a3923d19e 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
helloworld-pure-jax-rs
diff --git a/examples/helloworld-webapp/pom.xml b/examples/helloworld-webapp/pom.xml
index 68a24198610..d8b92d76359 100644
--- a/examples/helloworld-webapp/pom.xml
+++ b/examples/helloworld-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
helloworld-webapp
diff --git a/examples/helloworld-weld/pom.xml b/examples/helloworld-weld/pom.xml
index e8e482c5ccb..2338bf3014a 100644
--- a/examples/helloworld-weld/pom.xml
+++ b/examples/helloworld-weld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
helloworld-weld
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index f66764823fa..082cd67c51b 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
helloworld
diff --git a/examples/http-patch/pom.xml b/examples/http-patch/pom.xml
index 47b7302cf78..1a2631cb4ef 100644
--- a/examples/http-patch/pom.xml
+++ b/examples/http-patch/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
http-patch
diff --git a/examples/http-trace/pom.xml b/examples/http-trace/pom.xml
index 79f8f197dd5..9de9d3136a8 100644
--- a/examples/http-trace/pom.xml
+++ b/examples/http-trace/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
http-trace
diff --git a/examples/https-clientserver-grizzly/pom.xml b/examples/https-clientserver-grizzly/pom.xml
index d6274d192e2..b3271806d83 100644
--- a/examples/https-clientserver-grizzly/pom.xml
+++ b/examples/https-clientserver-grizzly/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
https-clientserver-grizzly
diff --git a/examples/https-server-glassfish/pom.xml b/examples/https-server-glassfish/pom.xml
index d034d5ffb33..674002dca4d 100644
--- a/examples/https-server-glassfish/pom.xml
+++ b/examples/https-server-glassfish/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
https-server-glassfish
diff --git a/examples/java8-webapp/pom.xml b/examples/java8-webapp/pom.xml
index da4693a55f6..c5836afc5e6 100644
--- a/examples/java8-webapp/pom.xml
+++ b/examples/java8-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
java8-webapp
diff --git a/examples/jaxb/pom.xml b/examples/jaxb/pom.xml
index e24b2e6b0e7..4ca790bfe8b 100644
--- a/examples/jaxb/pom.xml
+++ b/examples/jaxb/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jaxb
diff --git a/examples/jaxrs-types-injection/pom.xml b/examples/jaxrs-types-injection/pom.xml
index e32726e5643..d35f2a0c053 100644
--- a/examples/jaxrs-types-injection/pom.xml
+++ b/examples/jaxrs-types-injection/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jaxrs-types-injection
diff --git a/examples/jersey-ejb/pom.xml b/examples/jersey-ejb/pom.xml
index 4702463cc61..d2c9460a253 100644
--- a/examples/jersey-ejb/pom.xml
+++ b/examples/jersey-ejb/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-ejb
diff --git a/examples/json-binding-webapp/pom.xml b/examples/json-binding-webapp/pom.xml
index 979236e59f9..56c8bda1168 100644
--- a/examples/json-binding-webapp/pom.xml
+++ b/examples/json-binding-webapp/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
json-binding-webapp
diff --git a/examples/json-jackson/pom.xml b/examples/json-jackson/pom.xml
index 4cdfb639399..6a93cd2f1d2 100644
--- a/examples/json-jackson/pom.xml
+++ b/examples/json-jackson/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
json-jackson
diff --git a/examples/json-jettison/pom.xml b/examples/json-jettison/pom.xml
index 15a4e25e379..5ae839ad2be 100644
--- a/examples/json-jettison/pom.xml
+++ b/examples/json-jettison/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
json-jettison
diff --git a/examples/json-moxy/pom.xml b/examples/json-moxy/pom.xml
index 2ae80e1f8c3..79793b766c0 100644
--- a/examples/json-moxy/pom.xml
+++ b/examples/json-moxy/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
json-moxy
diff --git a/examples/json-processing-webapp/pom.xml b/examples/json-processing-webapp/pom.xml
index 10993fc8997..dc107770b24 100644
--- a/examples/json-processing-webapp/pom.xml
+++ b/examples/json-processing-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
json-processing-webapp
diff --git a/examples/json-with-padding/pom.xml b/examples/json-with-padding/pom.xml
index 64dac76588f..2c6282c949e 100644
--- a/examples/json-with-padding/pom.xml
+++ b/examples/json-with-padding/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
json-with-padding
diff --git a/examples/managed-beans-webapp/pom.xml b/examples/managed-beans-webapp/pom.xml
index e66fb183731..25f7625002d 100644
--- a/examples/managed-beans-webapp/pom.xml
+++ b/examples/managed-beans-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
managed-beans-webapp
diff --git a/examples/managed-client-simple-webapp/pom.xml b/examples/managed-client-simple-webapp/pom.xml
index 53ab47eaff0..03b4bde0c9b 100644
--- a/examples/managed-client-simple-webapp/pom.xml
+++ b/examples/managed-client-simple-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
managed-client-simple-webapp
diff --git a/examples/managed-client-webapp/pom.xml b/examples/managed-client-webapp/pom.xml
index 0583e891c94..cd056b9cab2 100644
--- a/examples/managed-client-webapp/pom.xml
+++ b/examples/managed-client-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
managed-client-webapp
diff --git a/examples/managed-client/pom.xml b/examples/managed-client/pom.xml
index ac3e5f9ff0f..6d4c7656393 100644
--- a/examples/managed-client/pom.xml
+++ b/examples/managed-client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
managed-client
diff --git a/examples/multipart-webapp/pom.xml b/examples/multipart-webapp/pom.xml
index 9cb43ffd94b..8cc8ebc93c8 100644
--- a/examples/multipart-webapp/pom.xml
+++ b/examples/multipart-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
multipart-webapp
diff --git a/examples/oauth-client-twitter/pom.xml b/examples/oauth-client-twitter/pom.xml
index 3b4e9dfb186..cf8d3aa4095 100644
--- a/examples/oauth-client-twitter/pom.xml
+++ b/examples/oauth-client-twitter/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index 76a9ffa1c4d..5e5bc733751 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
open-tracing
diff --git a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
index 51563792217..299a8fe6e97 100644
--- a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
index f9f6a070392..1e21b170741 100644
--- a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index bdce8538d72..637f4c63f13 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
index b92f2e1614f..b21856779e2 100644
--- a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/pom.xml b/examples/osgi-helloworld-webapp/pom.xml
index 172dc08de0a..f0d2491580f 100644
--- a/examples/osgi-helloworld-webapp/pom.xml
+++ b/examples/osgi-helloworld-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/war-bundle/pom.xml b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
index 24f518f1158..e0f3805fca6 100644
--- a/examples/osgi-helloworld-webapp/war-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/pom.xml b/examples/pom.xml
index 70cf1629ce4..2135a4c7b9e 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
diff --git a/examples/reload/pom.xml b/examples/reload/pom.xml
index 27427604cf8..9bfd60c669f 100644
--- a/examples/reload/pom.xml
+++ b/examples/reload/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
reload
diff --git a/examples/rx-client-webapp/pom.xml b/examples/rx-client-webapp/pom.xml
index f009bf06fcc..d27412381d5 100644
--- a/examples/rx-client-webapp/pom.xml
+++ b/examples/rx-client-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
rx-client-webapp
diff --git a/examples/server-async-managed/pom.xml b/examples/server-async-managed/pom.xml
index a32dbf4aefb..059d85ab2c5 100644
--- a/examples/server-async-managed/pom.xml
+++ b/examples/server-async-managed/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
server-async-managed
diff --git a/examples/server-async-standalone/client/pom.xml b/examples/server-async-standalone/client/pom.xml
index 19447beabda..7c3b067f320 100644
--- a/examples/server-async-standalone/client/pom.xml
+++ b/examples/server-async-standalone/client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.0.99-SNAPSHOT
+ 3.0.7
server-async-standalone-client
diff --git a/examples/server-async-standalone/pom.xml b/examples/server-async-standalone/pom.xml
index 8b857fcc79f..6a1939529cd 100644
--- a/examples/server-async-standalone/pom.xml
+++ b/examples/server-async-standalone/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
server-async-standalone
diff --git a/examples/server-async-standalone/webapp/pom.xml b/examples/server-async-standalone/webapp/pom.xml
index 251316e440c..b64da0c13e6 100644
--- a/examples/server-async-standalone/webapp/pom.xml
+++ b/examples/server-async-standalone/webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.0.99-SNAPSHOT
+ 3.0.7
server-async-standalone-webapp
diff --git a/examples/server-async/pom.xml b/examples/server-async/pom.xml
index cdabf47a283..370215308d7 100644
--- a/examples/server-async/pom.xml
+++ b/examples/server-async/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
server-async
diff --git a/examples/server-sent-events-jaxrs/pom.xml b/examples/server-sent-events-jaxrs/pom.xml
index 45f264ad4a8..8c9d9106509 100644
--- a/examples/server-sent-events-jaxrs/pom.xml
+++ b/examples/server-sent-events-jaxrs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
server-sent-events-jaxrs
diff --git a/examples/server-sent-events-jersey/pom.xml b/examples/server-sent-events-jersey/pom.xml
index af941b73b10..5dfbbd8a356 100644
--- a/examples/server-sent-events-jersey/pom.xml
+++ b/examples/server-sent-events-jersey/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
server-sent-events-jersey
diff --git a/examples/servlet3-webapp/pom.xml b/examples/servlet3-webapp/pom.xml
index 3c74fe0351e..32f73bef22b 100644
--- a/examples/servlet3-webapp/pom.xml
+++ b/examples/servlet3-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet3-webapp
diff --git a/examples/simple-console/pom.xml b/examples/simple-console/pom.xml
index ce9ef1d032e..362fa248377 100644
--- a/examples/simple-console/pom.xml
+++ b/examples/simple-console/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
simple-console
diff --git a/examples/sse-item-store-jaxrs-webapp/pom.xml b/examples/sse-item-store-jaxrs-webapp/pom.xml
index e65c1f505c5..475f2fd5b38 100644
--- a/examples/sse-item-store-jaxrs-webapp/pom.xml
+++ b/examples/sse-item-store-jaxrs-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
sse-item-store-jaxrs-webapp
diff --git a/examples/sse-item-store-jersey-webapp/pom.xml b/examples/sse-item-store-jersey-webapp/pom.xml
index a57656dcdcf..2467304f8e7 100644
--- a/examples/sse-item-store-jersey-webapp/pom.xml
+++ b/examples/sse-item-store-jersey-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.7
sse-item-store-jersey-webapp
diff --git a/examples/sse-twitter-aggregator/pom.xml b/examples/sse-twitter-aggregator/pom.xml
index 6adf1a8b45a..f1221dc88cc 100644
--- a/examples/sse-twitter-aggregator/pom.xml
+++ b/examples/sse-twitter-aggregator/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
sse-twitter-aggregator
diff --git a/examples/system-properties-example/pom.xml b/examples/system-properties-example/pom.xml
index 4f351e4a5e9..0e9fef5a47f 100644
--- a/examples/system-properties-example/pom.xml
+++ b/examples/system-properties-example/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
system-properties-example
diff --git a/examples/webapp-example-parent/pom.xml b/examples/webapp-example-parent/pom.xml
index 536e978b3aa..7bcd9289f4b 100644
--- a/examples/webapp-example-parent/pom.xml
+++ b/examples/webapp-example-parent/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
webapp-example-parent
diff --git a/examples/xml-moxy/pom.xml b/examples/xml-moxy/pom.xml
index 814bbd71a43..496ccadf64e 100644
--- a/examples/xml-moxy/pom.xml
+++ b/examples/xml-moxy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.7
xml-moxy
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index 980467e6c39..312a3ff1625 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-bean-validation
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index 24c6d471c34..575af58e617 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext.cdi
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
index ff5a5ce893e..3bdc06ee412 100644
--- a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
+++ b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-cdi1x-ban-custom-hk2-binding
diff --git a/ext/cdi/jersey-cdi1x-servlet/pom.xml b/ext/cdi/jersey-cdi1x-servlet/pom.xml
index 2342ea19e77..c481615c380 100644
--- a/ext/cdi/jersey-cdi1x-servlet/pom.xml
+++ b/ext/cdi/jersey-cdi1x-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-cdi1x-servlet
diff --git a/ext/cdi/jersey-cdi1x-transaction/pom.xml b/ext/cdi/jersey-cdi1x-transaction/pom.xml
index b882baaf4be..0f76d024730 100644
--- a/ext/cdi/jersey-cdi1x-transaction/pom.xml
+++ b/ext/cdi/jersey-cdi1x-transaction/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-cdi1x-transaction
diff --git a/ext/cdi/jersey-cdi1x-validation/pom.xml b/ext/cdi/jersey-cdi1x-validation/pom.xml
index 7aba90ec63a..2ee06decab7 100644
--- a/ext/cdi/jersey-cdi1x-validation/pom.xml
+++ b/ext/cdi/jersey-cdi1x-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-cdi1x-validation
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index f51b1b19ad2..790ce096476 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-cdi1x
diff --git a/ext/cdi/jersey-weld2-se/pom.xml b/ext/cdi/jersey-weld2-se/pom.xml
index f8609bfa128..624099ce773 100644
--- a/ext/cdi/jersey-weld2-se/pom.xml
+++ b/ext/cdi/jersey-weld2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-weld2-se
diff --git a/ext/cdi/pom.xml b/ext/cdi/pom.xml
index 8653e97ef37..4444a724cf1 100644
--- a/ext/cdi/pom.xml
+++ b/ext/cdi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.ext.cdi
diff --git a/ext/entity-filtering/pom.xml b/ext/entity-filtering/pom.xml
index 1f2613523bd..7a297d9f5ba 100644
--- a/ext/entity-filtering/pom.xml
+++ b/ext/entity-filtering/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-entity-filtering
diff --git a/ext/metainf-services/pom.xml b/ext/metainf-services/pom.xml
index 7b43b47227f..273721c3b1f 100644
--- a/ext/metainf-services/pom.xml
+++ b/ext/metainf-services/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-metainf-services
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index 7a49dfc0556..8af5f4673c0 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index 025f127bf73..fc5df2daf83 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/ext/microprofile/pom.xml b/ext/microprofile/pom.xml
index 215ca3879af..ebac4edfb16 100644
--- a/ext/microprofile/pom.xml
+++ b/ext/microprofile/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/ext/mvc-bean-validation/pom.xml b/ext/mvc-bean-validation/pom.xml
index c874d2fc713..8f32add1613 100644
--- a/ext/mvc-bean-validation/pom.xml
+++ b/ext/mvc-bean-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-mvc-bean-validation
diff --git a/ext/mvc-freemarker/pom.xml b/ext/mvc-freemarker/pom.xml
index f2355c8498a..93b3600f5e7 100644
--- a/ext/mvc-freemarker/pom.xml
+++ b/ext/mvc-freemarker/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-mvc-freemarker
diff --git a/ext/mvc-jsp/pom.xml b/ext/mvc-jsp/pom.xml
index 1744cdf534b..c3151d1ab8e 100644
--- a/ext/mvc-jsp/pom.xml
+++ b/ext/mvc-jsp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-mvc-jsp
diff --git a/ext/mvc-mustache/pom.xml b/ext/mvc-mustache/pom.xml
index 3a63b8c7314..5d3acd86777 100644
--- a/ext/mvc-mustache/pom.xml
+++ b/ext/mvc-mustache/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-mvc-mustache
diff --git a/ext/mvc/pom.xml b/ext/mvc/pom.xml
index 58d93f51235..7db19c4dbb2 100644
--- a/ext/mvc/pom.xml
+++ b/ext/mvc/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-mvc
diff --git a/ext/pom.xml b/ext/pom.xml
index 93e409d4782..32186dd0c32 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.ext
diff --git a/ext/proxy-client/pom.xml b/ext/proxy-client/pom.xml
index 4bf1460f805..8edf6da7478 100644
--- a/ext/proxy-client/pom.xml
+++ b/ext/proxy-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-proxy-client
diff --git a/ext/rx/pom.xml b/ext/rx/pom.xml
index 1a4de9a61da..0c1a6241c9c 100644
--- a/ext/rx/pom.xml
+++ b/ext/rx/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.ext.rx
diff --git a/ext/rx/rx-client-guava/pom.xml b/ext/rx/rx-client-guava/pom.xml
index b3f1087ff09..b6e22edfdaf 100644
--- a/ext/rx/rx-client-guava/pom.xml
+++ b/ext/rx/rx-client-guava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-rx-client-guava
diff --git a/ext/rx/rx-client-rxjava/pom.xml b/ext/rx/rx-client-rxjava/pom.xml
index 728bc60d75b..0cb457d9a5d 100644
--- a/ext/rx/rx-client-rxjava/pom.xml
+++ b/ext/rx/rx-client-rxjava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-rx-client-rxjava
diff --git a/ext/rx/rx-client-rxjava2/pom.xml b/ext/rx/rx-client-rxjava2/pom.xml
index cf705933dda..954b796f1b0 100644
--- a/ext/rx/rx-client-rxjava2/pom.xml
+++ b/ext/rx/rx-client-rxjava2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-rx-client-rxjava2
diff --git a/ext/spring6/pom.xml b/ext/spring6/pom.xml
index e6d718797d4..4fe1bc2d145 100644
--- a/ext/spring6/pom.xml
+++ b/ext/spring6/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-spring6
diff --git a/ext/wadl-doclet/pom.xml b/ext/wadl-doclet/pom.xml
index 47a11c2211f..c190fdfe36e 100644
--- a/ext/wadl-doclet/pom.xml
+++ b/ext/wadl-doclet/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
jersey-wadl-doclet
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index b36d1dabce6..b32fb743ab7 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-cdi-inject-weld
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index 97d9d54da78..1dbd105597e 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.ext
diff --git a/incubator/gae-integration/pom.xml b/incubator/gae-integration/pom.xml
index 28971e56816..3e72d979598 100644
--- a/incubator/gae-integration/pom.xml
+++ b/incubator/gae-integration/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-gae-integration
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index 2ad845b8e8a..940603f0c48 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.media
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index 3911bf84fba..f20faabf6b3 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.media
diff --git a/incubator/open-tracing/pom.xml b/incubator/open-tracing/pom.xml
index 7994cab4090..44b0ed7c356 100644
--- a/incubator/open-tracing/pom.xml
+++ b/incubator/open-tracing/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.incubator
diff --git a/incubator/pom.xml b/incubator/pom.xml
index e82e47b7eee..1a1309fefaa 100644
--- a/incubator/pom.xml
+++ b/incubator/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.incubator
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index f740a9ca265..878566b549a 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-cdi2-se
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index c3c8b94b971..5b353b6f98e 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-hk2
diff --git a/inject/pom.xml b/inject/pom.xml
index b43c0e318dd..5f9300526a3 100644
--- a/inject/pom.xml
+++ b/inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.inject
diff --git a/media/jaxb/pom.xml b/media/jaxb/pom.xml
index 48560070e22..522fbc0afbf 100644
--- a/media/jaxb/pom.xml
+++ b/media/jaxb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-media-jaxb
diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
index f09590fecfb..cc81d575910 100644
--- a/media/json-binding/pom.xml
+++ b/media/json-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-media-json-binding
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index e57899b9dac..e3c0577cc65 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-media-json-gson
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index a0eb3bdeb6e..7f85d02dbca 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-media-json-jackson
diff --git a/media/json-jettison/pom.xml b/media/json-jettison/pom.xml
index 0efb1070056..89900bf7aea 100644
--- a/media/json-jettison/pom.xml
+++ b/media/json-jettison/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-media-json-jettison
diff --git a/media/json-processing/pom.xml b/media/json-processing/pom.xml
index 9f884eedfba..a4cbc137666 100644
--- a/media/json-processing/pom.xml
+++ b/media/json-processing/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-media-json-processing
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index d1db2b3280b..2f9242d85a8 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-media-moxy
diff --git a/media/multipart/pom.xml b/media/multipart/pom.xml
index 945e5d87620..dd457eea290 100644
--- a/media/multipart/pom.xml
+++ b/media/multipart/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-media-multipart
diff --git a/media/pom.xml b/media/pom.xml
index 72a5ef66418..ded533b160e 100644
--- a/media/pom.xml
+++ b/media/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.media
diff --git a/media/sse/pom.xml b/media/sse/pom.xml
index 812e7a6370d..415d35357fb 100644
--- a/media/sse/pom.xml
+++ b/media/sse/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-media-sse
diff --git a/pom.xml b/pom.xml
index 4a589483137..8bb3928a911 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
org.glassfish.jersey
project
pom
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey
Eclipse Jersey is the open source (under dual EPL+GPL license) Jakarta RESTful WebServices 3.0
diff --git a/security/oauth1-client/pom.xml b/security/oauth1-client/pom.xml
index bf765dc1ca2..5168719a466 100644
--- a/security/oauth1-client/pom.xml
+++ b/security/oauth1-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.security
project
- 3.0.99-SNAPSHOT
+ 3.0.7
oauth1-client
diff --git a/security/oauth1-server/pom.xml b/security/oauth1-server/pom.xml
index 86b14091918..1c4637e9193 100644
--- a/security/oauth1-server/pom.xml
+++ b/security/oauth1-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.security
project
- 3.0.99-SNAPSHOT
+ 3.0.7
oauth1-server
diff --git a/security/oauth1-signature/pom.xml b/security/oauth1-signature/pom.xml
index b1daa8b93f7..272c09228b9 100644
--- a/security/oauth1-signature/pom.xml
+++ b/security/oauth1-signature/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/security/oauth2-client/pom.xml b/security/oauth2-client/pom.xml
index 920e17f2088..ffb2bdbd14b 100644
--- a/security/oauth2-client/pom.xml
+++ b/security/oauth2-client/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/security/pom.xml b/security/pom.xml
index a798df20da5..8f1613ed31b 100644
--- a/security/pom.xml
+++ b/security/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.security
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index 36b26335fd0..a2dc7ecbc5f 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-test-framework-core
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index 32d86a40eb5..e25581aa99f 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.0.99-SNAPSHOT
+ 3.0.7
container-runner-maven-plugin
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index c690eef5731..df214566728 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.0.99-SNAPSHOT
+ 3.0.7
custom-enforcer-rules
diff --git a/test-framework/maven/pom.xml b/test-framework/maven/pom.xml
index 84d353b880a..98c02fecae6 100644
--- a/test-framework/maven/pom.xml
+++ b/test-framework/maven/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.test-framework.maven
diff --git a/test-framework/memleak-test-common/pom.xml b/test-framework/memleak-test-common/pom.xml
index a9b8f3d74b4..a6600e90fc6 100644
--- a/test-framework/memleak-test-common/pom.xml
+++ b/test-framework/memleak-test-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.0.7
memleak-test-common
diff --git a/test-framework/pom.xml b/test-framework/pom.xml
index eadee509eca..68ababfb21c 100644
--- a/test-framework/pom.xml
+++ b/test-framework/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.test-framework
diff --git a/test-framework/providers/bundle/pom.xml b/test-framework/providers/bundle/pom.xml
index adc29afeea3..81ebffe17a6 100644
--- a/test-framework/providers/bundle/pom.xml
+++ b/test-framework/providers/bundle/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-test-framework-provider-bundle
diff --git a/test-framework/providers/external/pom.xml b/test-framework/providers/external/pom.xml
index 11cddbc864b..0c0c8a3303c 100644
--- a/test-framework/providers/external/pom.xml
+++ b/test-framework/providers/external/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-test-framework-provider-external
diff --git a/test-framework/providers/grizzly2/pom.xml b/test-framework/providers/grizzly2/pom.xml
index 8b27f3a7d44..ed7bbef7ec9 100644
--- a/test-framework/providers/grizzly2/pom.xml
+++ b/test-framework/providers/grizzly2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-test-framework-provider-grizzly2
diff --git a/test-framework/providers/inmemory/pom.xml b/test-framework/providers/inmemory/pom.xml
index a7fb228a465..f552ffe2bb2 100644
--- a/test-framework/providers/inmemory/pom.xml
+++ b/test-framework/providers/inmemory/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-test-framework-provider-inmemory
diff --git a/test-framework/providers/jdk-http/pom.xml b/test-framework/providers/jdk-http/pom.xml
index 3876be43783..f6f1c696977 100644
--- a/test-framework/providers/jdk-http/pom.xml
+++ b/test-framework/providers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-test-framework-provider-jdk-http
diff --git a/test-framework/providers/jetty/pom.xml b/test-framework/providers/jetty/pom.xml
index 7b20b609012..eefdda81df3 100644
--- a/test-framework/providers/jetty/pom.xml
+++ b/test-framework/providers/jetty/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/test-framework/providers/netty/pom.xml b/test-framework/providers/netty/pom.xml
index 38e56c787ab..e4ea8e1a0ab 100644
--- a/test-framework/providers/netty/pom.xml
+++ b/test-framework/providers/netty/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-test-framework-provider-netty
diff --git a/test-framework/providers/pom.xml b/test-framework/providers/pom.xml
index 0da4a34cbc3..db2002aa7f4 100644
--- a/test-framework/providers/pom.xml
+++ b/test-framework/providers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.test-framework.providers
diff --git a/test-framework/providers/simple/pom.xml b/test-framework/providers/simple/pom.xml
index 649b652dc91..cfa2a7f5d48 100644
--- a/test-framework/providers/simple/pom.xml
+++ b/test-framework/providers/simple/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/test-framework/util/pom.xml b/test-framework/util/pom.xml
index 569ab3e5c48..64f6c09b91e 100644
--- a/test-framework/util/pom.xml
+++ b/test-framework/util/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-test-framework-util
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index 10c79d4f6ea..f0bfb565451 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.7
e2e-client
diff --git a/tests/e2e-core-common/pom.xml b/tests/e2e-core-common/pom.xml
index 0c97c1f4860..84904f3f344 100644
--- a/tests/e2e-core-common/pom.xml
+++ b/tests/e2e-core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.7
e2e-core-common
diff --git a/tests/e2e-entity/pom.xml b/tests/e2e-entity/pom.xml
index 3c654b538af..e9b0a4e49eb 100644
--- a/tests/e2e-entity/pom.xml
+++ b/tests/e2e-entity/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.7
e2e-entity
diff --git a/tests/e2e-inject/cdi-inject-weld/pom.xml b/tests/e2e-inject/cdi-inject-weld/pom.xml
index 37f6c7665e9..6b469a5a84e 100644
--- a/tests/e2e-inject/cdi-inject-weld/pom.xml
+++ b/tests/e2e-inject/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.0.99-SNAPSHOT
+ 3.0.7
e2e-inject-cdi-inject-weld
diff --git a/tests/e2e-inject/cdi2-se/pom.xml b/tests/e2e-inject/cdi2-se/pom.xml
index 578e6e9b236..f2c24364004 100644
--- a/tests/e2e-inject/cdi2-se/pom.xml
+++ b/tests/e2e-inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.0.99-SNAPSHOT
+ 3.0.7
e2e-inject-cdi2-se
diff --git a/tests/e2e-inject/hk2/pom.xml b/tests/e2e-inject/hk2/pom.xml
index cf8d651a844..5a3f9c1efe0 100644
--- a/tests/e2e-inject/hk2/pom.xml
+++ b/tests/e2e-inject/hk2/pom.xml
@@ -23,7 +23,7 @@
e2e-inject
org.glassfish.jersey.tests
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/e2e-inject/pom.xml b/tests/e2e-inject/pom.xml
index a6dcfeb1dff..c31a0935889 100644
--- a/tests/e2e-inject/pom.xml
+++ b/tests/e2e-inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.7
e2e-inject
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index b82ce78e42d..9e5a081e85b 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.7
e2e-server
diff --git a/tests/e2e-testng/pom.xml b/tests/e2e-testng/pom.xml
index 8e137eecb59..bcc8aef6e62 100644
--- a/tests/e2e-testng/pom.xml
+++ b/tests/e2e-testng/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.7
e2e-testng
diff --git a/tests/e2e/pom.xml b/tests/e2e/pom.xml
index da8b8d8a2ce..8f11cf6c943 100644
--- a/tests/e2e/pom.xml
+++ b/tests/e2e/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.7
e2e
diff --git a/tests/integration/asm/pom.xml b/tests/integration/asm/pom.xml
index 31000df913a..3573d14996f 100644
--- a/tests/integration/asm/pom.xml
+++ b/tests/integration/asm/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/async-jersey-filter/pom.xml b/tests/integration/async-jersey-filter/pom.xml
index b258b0ab0ef..95955129f4a 100644
--- a/tests/integration/async-jersey-filter/pom.xml
+++ b/tests/integration/async-jersey-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
async-jersey-filter
diff --git a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
index dcbcb126a7c..cd2bf6898a7 100644
--- a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-beanvalidation-webapp
diff --git a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
index fbcc5e486c8..2e0698c3ebc 100644
--- a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-client-on-server
diff --git a/tests/integration/cdi-integration/cdi-client/pom.xml b/tests/integration/cdi-integration/cdi-client/pom.xml
index 06b90f8c034..8283cb742fc 100644
--- a/tests/integration/cdi-integration/cdi-client/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-client
diff --git a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
index 1281b55d74d..2a75f8e471d 100644
--- a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-ejb-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
index 0e5399985b1..0a6546cc830 100644
--- a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-iface-with-non-jaxrs-impl-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-log-check/pom.xml b/tests/integration/cdi-integration/cdi-log-check/pom.xml
index e67c62e364e..12f50d87bd2 100644
--- a/tests/integration/cdi-integration/cdi-log-check/pom.xml
+++ b/tests/integration/cdi-integration/cdi-log-check/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-log-check
diff --git a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
index 3dee33d65f0..51562708bd6 100644
--- a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
+++ b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
index 676d3c5a3f5..74adf795bf4 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
index 2cb280fefde..a67513951eb 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
index a2432f470ce..a3e1c208f06 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-multimodule
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
index 18ec2873880..c9ae8986795 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
index 421a999f06d..13a9ccc1dc0 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
index 39156de90b3..4a7569da4f2 100644
--- a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-multipart-webapp
diff --git a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
index dd515d77fd0..1bae6617558 100644
--- a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
+++ b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-singleton/pom.xml b/tests/integration/cdi-integration/cdi-singleton/pom.xml
index ad33e450d7f..69ee8d0dda0 100644
--- a/tests/integration/cdi-integration/cdi-singleton/pom.xml
+++ b/tests/integration/cdi-integration/cdi-singleton/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
index 03ca8b022ae..f6f36f14756 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
index 722e892c7a2..6ddefffab6f 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-with-jersey-injection-custom-cfg-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
index acf68dab964..451e2254d4a 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-with-jersey-injection-custom-hk2-banned-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
index 83084c2d2c0..ef9d6316584 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
cdi-with-jersey-injection-webapp
diff --git a/tests/integration/cdi-integration/context-inject-on-server/pom.xml b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
index 8391b2c5362..250e74bac30 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/pom.xml
+++ b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.7
context-inject-on-server
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index dc9172c49dd..0aa340016b5 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
pom
diff --git a/tests/integration/client-connector-provider/pom.xml b/tests/integration/client-connector-provider/pom.xml
index d2d838fee79..01c5cab25b4 100644
--- a/tests/integration/client-connector-provider/pom.xml
+++ b/tests/integration/client-connector-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
client-connector-provider
diff --git a/tests/integration/ejb-multimodule-reload/ear/pom.xml b/tests/integration/ejb-multimodule-reload/ear/pom.xml
index fe527f5e5f8..582d3866f27 100644
--- a/tests/integration/ejb-multimodule-reload/ear/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/lib/pom.xml b/tests/integration/ejb-multimodule-reload/lib/pom.xml
index 3bef14eb4c8..2f01d808331 100644
--- a/tests/integration/ejb-multimodule-reload/lib/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/pom.xml b/tests/integration/ejb-multimodule-reload/pom.xml
index c041b5a5450..dd27ebc5b87 100644
--- a/tests/integration/ejb-multimodule-reload/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
ejb-multimodule-reload
diff --git a/tests/integration/ejb-multimodule-reload/war1/pom.xml b/tests/integration/ejb-multimodule-reload/war1/pom.xml
index 5fda3a23e04..12991188dda 100644
--- a/tests/integration/ejb-multimodule-reload/war1/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/war2/pom.xml b/tests/integration/ejb-multimodule-reload/war2/pom.xml
index f3f7de908b7..6849102b912 100644
--- a/tests/integration/ejb-multimodule-reload/war2/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/ear/pom.xml b/tests/integration/ejb-multimodule/ear/pom.xml
index 9d60c5d2fc7..f5adf8b27b4 100644
--- a/tests/integration/ejb-multimodule/ear/pom.xml
+++ b/tests/integration/ejb-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/lib/pom.xml b/tests/integration/ejb-multimodule/lib/pom.xml
index 9b583c2d5e4..1ef85ca2aef 100644
--- a/tests/integration/ejb-multimodule/lib/pom.xml
+++ b/tests/integration/ejb-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/pom.xml b/tests/integration/ejb-multimodule/pom.xml
index d1527cd4530..c0359c2151f 100644
--- a/tests/integration/ejb-multimodule/pom.xml
+++ b/tests/integration/ejb-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
ejb-multimodule
diff --git a/tests/integration/ejb-multimodule/war/pom.xml b/tests/integration/ejb-multimodule/war/pom.xml
index 0fb17710ad5..9d65622705f 100644
--- a/tests/integration/ejb-multimodule/war/pom.xml
+++ b/tests/integration/ejb-multimodule/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/ejb-test-webapp/pom.xml b/tests/integration/ejb-test-webapp/pom.xml
index 0791de9bd8b..c3d0e84adef 100644
--- a/tests/integration/ejb-test-webapp/pom.xml
+++ b/tests/integration/ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
ejb-test-webapp
diff --git a/tests/integration/externalproperties/pom.xml b/tests/integration/externalproperties/pom.xml
index 91ff812f485..6d6e8280ebb 100644
--- a/tests/integration/externalproperties/pom.xml
+++ b/tests/integration/externalproperties/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
externalproperties
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index bdc4ce0065e..267ba935dbf 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
j-376
diff --git a/tests/integration/j-441/ear/pom.xml b/tests/integration/j-441/ear/pom.xml
index 37d2588c5a7..783af64500f 100644
--- a/tests/integration/j-441/ear/pom.xml
+++ b/tests/integration/j-441/ear/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
j-441-ear
diff --git a/tests/integration/j-441/pom.xml b/tests/integration/j-441/pom.xml
index 34bce1499dc..3268679dd72 100644
--- a/tests/integration/j-441/pom.xml
+++ b/tests/integration/j-441/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
j-441
diff --git a/tests/integration/j-441/war1/pom.xml b/tests/integration/j-441/war1/pom.xml
index e35999a4cf6..ba47d81afce 100644
--- a/tests/integration/j-441/war1/pom.xml
+++ b/tests/integration/j-441/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/j-441/war2/pom.xml b/tests/integration/j-441/war2/pom.xml
index a5a887eb45b..614e3d06227 100644
--- a/tests/integration/j-441/war2/pom.xml
+++ b/tests/integration/j-441/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/j-59/ear/pom.xml b/tests/integration/j-59/ear/pom.xml
index 8eeeaa442a8..503303af24e 100644
--- a/tests/integration/j-59/ear/pom.xml
+++ b/tests/integration/j-59/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/j-59/lib/pom.xml b/tests/integration/j-59/lib/pom.xml
index 3f74aa4a5b5..4e00c8f88db 100644
--- a/tests/integration/j-59/lib/pom.xml
+++ b/tests/integration/j-59/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/j-59/pom.xml b/tests/integration/j-59/pom.xml
index dc2dd9be86a..2809ae2c973 100644
--- a/tests/integration/j-59/pom.xml
+++ b/tests/integration/j-59/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
j-59
diff --git a/tests/integration/j-59/war/pom.xml b/tests/integration/j-59/war/pom.xml
index 145ab55c00e..6eebdbafab1 100644
--- a/tests/integration/j-59/war/pom.xml
+++ b/tests/integration/j-59/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
../../pom.xml
diff --git a/tests/integration/jaxrs-component-inject/pom.xml b/tests/integration/jaxrs-component-inject/pom.xml
index 5ad88a24815..4ab6d185b74 100644
--- a/tests/integration/jaxrs-component-inject/pom.xml
+++ b/tests/integration/jaxrs-component-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jaxrs-component-inject
diff --git a/tests/integration/jersey-1107/pom.xml b/tests/integration/jersey-1107/pom.xml
index 0454541101e..fcbd4668145 100644
--- a/tests/integration/jersey-1107/pom.xml
+++ b/tests/integration/jersey-1107/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-1107
diff --git a/tests/integration/jersey-1223/pom.xml b/tests/integration/jersey-1223/pom.xml
index 77c48ae2a9a..93ff617befb 100644
--- a/tests/integration/jersey-1223/pom.xml
+++ b/tests/integration/jersey-1223/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
jersey-1223
diff --git a/tests/integration/jersey-1604/pom.xml b/tests/integration/jersey-1604/pom.xml
index c35da56feec..9f0a5f75df1 100644
--- a/tests/integration/jersey-1604/pom.xml
+++ b/tests/integration/jersey-1604/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
jersey-1604
diff --git a/tests/integration/jersey-1667/pom.xml b/tests/integration/jersey-1667/pom.xml
index 917e178bd1f..edb58115507 100644
--- a/tests/integration/jersey-1667/pom.xml
+++ b/tests/integration/jersey-1667/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-1667
diff --git a/tests/integration/jersey-1883/pom.xml b/tests/integration/jersey-1883/pom.xml
index 4e483050991..de7f34e1392 100644
--- a/tests/integration/jersey-1883/pom.xml
+++ b/tests/integration/jersey-1883/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-1883
diff --git a/tests/integration/jersey-1928/pom.xml b/tests/integration/jersey-1928/pom.xml
index d532fc19935..e7ff553aebe 100644
--- a/tests/integration/jersey-1928/pom.xml
+++ b/tests/integration/jersey-1928/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
jersey-1928
diff --git a/tests/integration/jersey-1960/pom.xml b/tests/integration/jersey-1960/pom.xml
index 0b73e155804..054dfc869cd 100644
--- a/tests/integration/jersey-1960/pom.xml
+++ b/tests/integration/jersey-1960/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-1960
diff --git a/tests/integration/jersey-1964/pom.xml b/tests/integration/jersey-1964/pom.xml
index d62a7dfa750..e43a9e9fcf3 100644
--- a/tests/integration/jersey-1964/pom.xml
+++ b/tests/integration/jersey-1964/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-1964
diff --git a/tests/integration/jersey-2031/pom.xml b/tests/integration/jersey-2031/pom.xml
index 61fb008e544..6f75e824477 100644
--- a/tests/integration/jersey-2031/pom.xml
+++ b/tests/integration/jersey-2031/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2031
diff --git a/tests/integration/jersey-2136/pom.xml b/tests/integration/jersey-2136/pom.xml
index 5c81daa8d40..16dcf84db43 100644
--- a/tests/integration/jersey-2136/pom.xml
+++ b/tests/integration/jersey-2136/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2136
diff --git a/tests/integration/jersey-2137/pom.xml b/tests/integration/jersey-2137/pom.xml
index 0522ff4f670..ff1d1c3bd22 100644
--- a/tests/integration/jersey-2137/pom.xml
+++ b/tests/integration/jersey-2137/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2137
diff --git a/tests/integration/jersey-2154/pom.xml b/tests/integration/jersey-2154/pom.xml
index 6453678cb32..9af20bdb324 100644
--- a/tests/integration/jersey-2154/pom.xml
+++ b/tests/integration/jersey-2154/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2154
diff --git a/tests/integration/jersey-2160/pom.xml b/tests/integration/jersey-2160/pom.xml
index bd327294468..8165a9dec5a 100644
--- a/tests/integration/jersey-2160/pom.xml
+++ b/tests/integration/jersey-2160/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2160
diff --git a/tests/integration/jersey-2164/pom.xml b/tests/integration/jersey-2164/pom.xml
index e333ee33b00..0429a21944d 100644
--- a/tests/integration/jersey-2164/pom.xml
+++ b/tests/integration/jersey-2164/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2164
diff --git a/tests/integration/jersey-2167/pom.xml b/tests/integration/jersey-2167/pom.xml
index 4bef57f7467..9ddd250a12e 100644
--- a/tests/integration/jersey-2167/pom.xml
+++ b/tests/integration/jersey-2167/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2167
diff --git a/tests/integration/jersey-2176/pom.xml b/tests/integration/jersey-2176/pom.xml
index e69b33dc154..79d80a4915f 100644
--- a/tests/integration/jersey-2176/pom.xml
+++ b/tests/integration/jersey-2176/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2176
diff --git a/tests/integration/jersey-2184/pom.xml b/tests/integration/jersey-2184/pom.xml
index 67394390a58..9c2b690e9cb 100644
--- a/tests/integration/jersey-2184/pom.xml
+++ b/tests/integration/jersey-2184/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2184
diff --git a/tests/integration/jersey-2255/pom.xml b/tests/integration/jersey-2255/pom.xml
index 864bbda5782..a640b118835 100644
--- a/tests/integration/jersey-2255/pom.xml
+++ b/tests/integration/jersey-2255/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2255
diff --git a/tests/integration/jersey-2322/pom.xml b/tests/integration/jersey-2322/pom.xml
index 5acef07879d..c6ed03012e3 100644
--- a/tests/integration/jersey-2322/pom.xml
+++ b/tests/integration/jersey-2322/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2322
diff --git a/tests/integration/jersey-2335/pom.xml b/tests/integration/jersey-2335/pom.xml
index ae251628aaa..ee56121d86c 100644
--- a/tests/integration/jersey-2335/pom.xml
+++ b/tests/integration/jersey-2335/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2335
diff --git a/tests/integration/jersey-2421/pom.xml b/tests/integration/jersey-2421/pom.xml
index 57272ef5469..feaa3e0837e 100644
--- a/tests/integration/jersey-2421/pom.xml
+++ b/tests/integration/jersey-2421/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2421
diff --git a/tests/integration/jersey-2551/pom.xml b/tests/integration/jersey-2551/pom.xml
index 4b3ed85e792..ac12142335c 100644
--- a/tests/integration/jersey-2551/pom.xml
+++ b/tests/integration/jersey-2551/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2551
diff --git a/tests/integration/jersey-2612/pom.xml b/tests/integration/jersey-2612/pom.xml
index cc4ba0cb4ce..88fc3d326c7 100644
--- a/tests/integration/jersey-2612/pom.xml
+++ b/tests/integration/jersey-2612/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2612
diff --git a/tests/integration/jersey-2637/pom.xml b/tests/integration/jersey-2637/pom.xml
index 7b89b885415..ce6a71710df 100644
--- a/tests/integration/jersey-2637/pom.xml
+++ b/tests/integration/jersey-2637/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2637
diff --git a/tests/integration/jersey-2654/pom.xml b/tests/integration/jersey-2654/pom.xml
index 5a8ce536f94..e848c38b05f 100644
--- a/tests/integration/jersey-2654/pom.xml
+++ b/tests/integration/jersey-2654/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2654
diff --git a/tests/integration/jersey-2673/pom.xml b/tests/integration/jersey-2673/pom.xml
index a09059f698f..a6908e582ee 100644
--- a/tests/integration/jersey-2673/pom.xml
+++ b/tests/integration/jersey-2673/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2673
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index 5a73166f846..9799118c558 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2689
diff --git a/tests/integration/jersey-2704/pom.xml b/tests/integration/jersey-2704/pom.xml
index 3356c790a61..84c53426192 100644
--- a/tests/integration/jersey-2704/pom.xml
+++ b/tests/integration/jersey-2704/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2704
diff --git a/tests/integration/jersey-2776/pom.xml b/tests/integration/jersey-2776/pom.xml
index 3a8f6045da8..0cc412c2836 100644
--- a/tests/integration/jersey-2776/pom.xml
+++ b/tests/integration/jersey-2776/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2776
diff --git a/tests/integration/jersey-2794/pom.xml b/tests/integration/jersey-2794/pom.xml
index f5e47fda936..d7a9f15874e 100644
--- a/tests/integration/jersey-2794/pom.xml
+++ b/tests/integration/jersey-2794/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2794
diff --git a/tests/integration/jersey-2846/pom.xml b/tests/integration/jersey-2846/pom.xml
index 4f4bb9e1766..a483614fde7 100644
--- a/tests/integration/jersey-2846/pom.xml
+++ b/tests/integration/jersey-2846/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2846
diff --git a/tests/integration/jersey-2878/pom.xml b/tests/integration/jersey-2878/pom.xml
index 1fba3f01eb5..ab9d7c580f3 100644
--- a/tests/integration/jersey-2878/pom.xml
+++ b/tests/integration/jersey-2878/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2878
diff --git a/tests/integration/jersey-2892/pom.xml b/tests/integration/jersey-2892/pom.xml
index a2c420f62ac..a91e07da830 100644
--- a/tests/integration/jersey-2892/pom.xml
+++ b/tests/integration/jersey-2892/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-2892
diff --git a/tests/integration/jersey-3662/pom.xml b/tests/integration/jersey-3662/pom.xml
index ed7425b8f12..c2d21d04b1e 100644
--- a/tests/integration/jersey-3662/pom.xml
+++ b/tests/integration/jersey-3662/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/jersey-3670/pom.xml b/tests/integration/jersey-3670/pom.xml
index 2e23e7bd8e7..9fb7da7fa92 100644
--- a/tests/integration/jersey-3670/pom.xml
+++ b/tests/integration/jersey-3670/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-3670
diff --git a/tests/integration/jersey-3796/pom.xml b/tests/integration/jersey-3796/pom.xml
index c555460dfbc..6050b34e12f 100644
--- a/tests/integration/jersey-3796/pom.xml
+++ b/tests/integration/jersey-3796/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-3796
diff --git a/tests/integration/jersey-3992/pom.xml b/tests/integration/jersey-3992/pom.xml
index 3a91fa66675..e19d3c19386 100644
--- a/tests/integration/jersey-3992/pom.xml
+++ b/tests/integration/jersey-3992/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-3992
diff --git a/tests/integration/jersey-4003/pom.xml b/tests/integration/jersey-4003/pom.xml
index 9c2c8be8cc6..1ea2ae76539 100644
--- a/tests/integration/jersey-4003/pom.xml
+++ b/tests/integration/jersey-4003/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/jersey-4099/pom.xml b/tests/integration/jersey-4099/pom.xml
index 8a11821c4b0..e154435289d 100644
--- a/tests/integration/jersey-4099/pom.xml
+++ b/tests/integration/jersey-4099/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-4099
diff --git a/tests/integration/jersey-4321/pom.xml b/tests/integration/jersey-4321/pom.xml
index 108d29d8cec..41054ee65d7 100644
--- a/tests/integration/jersey-4321/pom.xml
+++ b/tests/integration/jersey-4321/pom.xml
@@ -24,7 +24,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/jersey-4507/pom.xml b/tests/integration/jersey-4507/pom.xml
index 7bd6c4267ba..f6f0b370224 100644
--- a/tests/integration/jersey-4507/pom.xml
+++ b/tests/integration/jersey-4507/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/jersey-4542/pom.xml b/tests/integration/jersey-4542/pom.xml
index 9a57421cee7..b1b014a5a4e 100644
--- a/tests/integration/jersey-4542/pom.xml
+++ b/tests/integration/jersey-4542/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/jersey-4697/pom.xml b/tests/integration/jersey-4697/pom.xml
index 699cad95c6e..c026496c63a 100644
--- a/tests/integration/jersey-4697/pom.xml
+++ b/tests/integration/jersey-4697/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/jersey-4722/pom.xml b/tests/integration/jersey-4722/pom.xml
index 9899424ec8e..1fa5ea33ff7 100644
--- a/tests/integration/jersey-4722/pom.xml
+++ b/tests/integration/jersey-4722/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/jersey-4949/pom.xml b/tests/integration/jersey-4949/pom.xml
index df426ac5bb9..0918ab40276 100644
--- a/tests/integration/jersey-4949/pom.xml
+++ b/tests/integration/jersey-4949/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-4949
diff --git a/tests/integration/jersey-5087/pom.xml b/tests/integration/jersey-5087/pom.xml
index 7f97ce81595..f6e5d3c9eff 100644
--- a/tests/integration/jersey-5087/pom.xml
+++ b/tests/integration/jersey-5087/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/jersey-780/pom.xml b/tests/integration/jersey-780/pom.xml
index 4fd6edba78f..64b7feb6431 100644
--- a/tests/integration/jersey-780/pom.xml
+++ b/tests/integration/jersey-780/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-780
diff --git a/tests/integration/microprofile/config/helidon/pom.xml b/tests/integration/microprofile/config/helidon/pom.xml
index 47bca4af4b4..1ba5058b968 100644
--- a/tests/integration/microprofile/config/helidon/pom.xml
+++ b/tests/integration/microprofile/config/helidon/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/microprofile/config/pom.xml b/tests/integration/microprofile/config/pom.xml
index 3428dcce3f9..63ef79329b1 100644
--- a/tests/integration/microprofile/config/pom.xml
+++ b/tests/integration/microprofile/config/pom.xml
@@ -22,7 +22,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
pom
diff --git a/tests/integration/microprofile/config/webapp/pom.xml b/tests/integration/microprofile/config/webapp/pom.xml
index ef82e1e77e1..12c9f6a7cdf 100644
--- a/tests/integration/microprofile/config/webapp/pom.xml
+++ b/tests/integration/microprofile/config/webapp/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/microprofile/pom.xml b/tests/integration/microprofile/pom.xml
index 19e06d62bbb..00b3a0785e7 100644
--- a/tests/integration/microprofile/pom.xml
+++ b/tests/integration/microprofile/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
pom
diff --git a/tests/integration/microprofile/rest-client-tck/pom.xml b/tests/integration/microprofile/rest-client-tck/pom.xml
index 9e477b8bd89..6791e4ad575 100644
--- a/tests/integration/microprofile/rest-client-tck/pom.xml
+++ b/tests/integration/microprofile/rest-client-tck/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/microprofile/rest-client/pom.xml b/tests/integration/microprofile/rest-client/pom.xml
index 20e608714f3..bcf61d1ca0c 100644
--- a/tests/integration/microprofile/rest-client/pom.xml
+++ b/tests/integration/microprofile/rest-client/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index 7313f12ce46..21dc7038d2b 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.tests.integration
diff --git a/tests/integration/property-check/pom.xml b/tests/integration/property-check/pom.xml
index f98c25cee90..d613003ed1f 100644
--- a/tests/integration/property-check/pom.xml
+++ b/tests/integration/property-check/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
property-check
diff --git a/tests/integration/reactive-streams/pom.xml b/tests/integration/reactive-streams/pom.xml
index cef7e0e93c6..08160790ce6 100644
--- a/tests/integration/reactive-streams/pom.xml
+++ b/tests/integration/reactive-streams/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
pom
diff --git a/tests/integration/reactive-streams/sse/pom.xml b/tests/integration/reactive-streams/sse/pom.xml
index b6031de788e..ba57c3afb44 100644
--- a/tests/integration/reactive-streams/sse/pom.xml
+++ b/tests/integration/reactive-streams/sse/pom.xml
@@ -22,7 +22,7 @@
reactive-streams-integration-project
org.glassfish.jersey.tests.integration.reactive
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/integration/security-digest/pom.xml b/tests/integration/security-digest/pom.xml
index 1c3d9390d63..50d29d09827 100644
--- a/tests/integration/security-digest/pom.xml
+++ b/tests/integration/security-digest/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
security-digest
diff --git a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
index 170ebdc6057..bf5bbfefff6 100644
--- a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-autodiscovery-1
diff --git a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
index 75d0d9d1692..3880acab2bc 100644
--- a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-autodiscovery-2
diff --git a/tests/integration/servlet-2.5-filter/pom.xml b/tests/integration/servlet-2.5-filter/pom.xml
index f5bde77bdd3..bfaf83db09b 100644
--- a/tests/integration/servlet-2.5-filter/pom.xml
+++ b/tests/integration/servlet-2.5-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-filter
diff --git a/tests/integration/servlet-2.5-inflector-1/pom.xml b/tests/integration/servlet-2.5-inflector-1/pom.xml
index 8881a1aa86b..858711eee47 100644
--- a/tests/integration/servlet-2.5-inflector-1/pom.xml
+++ b/tests/integration/servlet-2.5-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-inflector-1
diff --git a/tests/integration/servlet-2.5-init-1/pom.xml b/tests/integration/servlet-2.5-init-1/pom.xml
index 7f73fa2db7a..85ad4b36160 100644
--- a/tests/integration/servlet-2.5-init-1/pom.xml
+++ b/tests/integration/servlet-2.5-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-init-1
diff --git a/tests/integration/servlet-2.5-init-2/pom.xml b/tests/integration/servlet-2.5-init-2/pom.xml
index a38fb5ab30a..e2d5fe9d2fe 100644
--- a/tests/integration/servlet-2.5-init-2/pom.xml
+++ b/tests/integration/servlet-2.5-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-init-2
diff --git a/tests/integration/servlet-2.5-init-3/pom.xml b/tests/integration/servlet-2.5-init-3/pom.xml
index 54ae9820807..60d9d6193aa 100644
--- a/tests/integration/servlet-2.5-init-3/pom.xml
+++ b/tests/integration/servlet-2.5-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-init-3
diff --git a/tests/integration/servlet-2.5-init-4/pom.xml b/tests/integration/servlet-2.5-init-4/pom.xml
index f46d5bc8f9c..7cf8d550bdf 100644
--- a/tests/integration/servlet-2.5-init-4/pom.xml
+++ b/tests/integration/servlet-2.5-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-init-4
diff --git a/tests/integration/servlet-2.5-init-5/pom.xml b/tests/integration/servlet-2.5-init-5/pom.xml
index a2d1ae3058c..1020aa911e9 100644
--- a/tests/integration/servlet-2.5-init-5/pom.xml
+++ b/tests/integration/servlet-2.5-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-init-5
diff --git a/tests/integration/servlet-2.5-init-6/pom.xml b/tests/integration/servlet-2.5-init-6/pom.xml
index 437f9499271..46b99dcdcb9 100644
--- a/tests/integration/servlet-2.5-init-6/pom.xml
+++ b/tests/integration/servlet-2.5-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-init-6
diff --git a/tests/integration/servlet-2.5-init-7/pom.xml b/tests/integration/servlet-2.5-init-7/pom.xml
index 43dc4e1441c..885a2090fd4 100644
--- a/tests/integration/servlet-2.5-init-7/pom.xml
+++ b/tests/integration/servlet-2.5-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-init-7
diff --git a/tests/integration/servlet-2.5-init-8/pom.xml b/tests/integration/servlet-2.5-init-8/pom.xml
index 5c3c50febae..5c1761fe4d5 100644
--- a/tests/integration/servlet-2.5-init-8/pom.xml
+++ b/tests/integration/servlet-2.5-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-init-8
diff --git a/tests/integration/servlet-2.5-mvc-1/pom.xml b/tests/integration/servlet-2.5-mvc-1/pom.xml
index 9e080fb8a05..cb511155c7d 100644
--- a/tests/integration/servlet-2.5-mvc-1/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-mvc-1
diff --git a/tests/integration/servlet-2.5-mvc-2/pom.xml b/tests/integration/servlet-2.5-mvc-2/pom.xml
index 6b99036dc71..2ddf66e54e8 100644
--- a/tests/integration/servlet-2.5-mvc-2/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-mvc-2
diff --git a/tests/integration/servlet-2.5-mvc-3/pom.xml b/tests/integration/servlet-2.5-mvc-3/pom.xml
index b9e12c58a3f..25e51923feb 100644
--- a/tests/integration/servlet-2.5-mvc-3/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-mvc-3
diff --git a/tests/integration/servlet-2.5-reload/pom.xml b/tests/integration/servlet-2.5-reload/pom.xml
index 300e1eed8c3..ba560ffae0e 100644
--- a/tests/integration/servlet-2.5-reload/pom.xml
+++ b/tests/integration/servlet-2.5-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-2.5-reload
diff --git a/tests/integration/servlet-3-async/pom.xml b/tests/integration/servlet-3-async/pom.xml
index d305a505f17..28d96586220 100644
--- a/tests/integration/servlet-3-async/pom.xml
+++ b/tests/integration/servlet-3-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-async
diff --git a/tests/integration/servlet-3-chunked-io/pom.xml b/tests/integration/servlet-3-chunked-io/pom.xml
index 4ea9c0416a0..6300846408c 100644
--- a/tests/integration/servlet-3-chunked-io/pom.xml
+++ b/tests/integration/servlet-3-chunked-io/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-chunked-io
diff --git a/tests/integration/servlet-3-filter/pom.xml b/tests/integration/servlet-3-filter/pom.xml
index 99405a2a0e3..e52dd0c2105 100644
--- a/tests/integration/servlet-3-filter/pom.xml
+++ b/tests/integration/servlet-3-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-filter
diff --git a/tests/integration/servlet-3-gf-async/pom.xml b/tests/integration/servlet-3-gf-async/pom.xml
index 448e9063629..e72da4fd97a 100644
--- a/tests/integration/servlet-3-gf-async/pom.xml
+++ b/tests/integration/servlet-3-gf-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-gf-async
diff --git a/tests/integration/servlet-3-inflector-1/pom.xml b/tests/integration/servlet-3-inflector-1/pom.xml
index b49c04d6443..6831ca126b1 100644
--- a/tests/integration/servlet-3-inflector-1/pom.xml
+++ b/tests/integration/servlet-3-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-inflector-1
diff --git a/tests/integration/servlet-3-init-1/pom.xml b/tests/integration/servlet-3-init-1/pom.xml
index 3862f57778f..a283de0e12e 100644
--- a/tests/integration/servlet-3-init-1/pom.xml
+++ b/tests/integration/servlet-3-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-init-1
diff --git a/tests/integration/servlet-3-init-2/pom.xml b/tests/integration/servlet-3-init-2/pom.xml
index 66bbfaad717..2fcd05c0f12 100644
--- a/tests/integration/servlet-3-init-2/pom.xml
+++ b/tests/integration/servlet-3-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-init-2
diff --git a/tests/integration/servlet-3-init-3/pom.xml b/tests/integration/servlet-3-init-3/pom.xml
index d81772b1c59..2a4a4572990 100644
--- a/tests/integration/servlet-3-init-3/pom.xml
+++ b/tests/integration/servlet-3-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-init-3
diff --git a/tests/integration/servlet-3-init-4/pom.xml b/tests/integration/servlet-3-init-4/pom.xml
index e2a8478d875..0f4903c85e7 100644
--- a/tests/integration/servlet-3-init-4/pom.xml
+++ b/tests/integration/servlet-3-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-init-4
diff --git a/tests/integration/servlet-3-init-5/pom.xml b/tests/integration/servlet-3-init-5/pom.xml
index 88ec528e7ef..f6be0abcdbf 100644
--- a/tests/integration/servlet-3-init-5/pom.xml
+++ b/tests/integration/servlet-3-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-init-5
diff --git a/tests/integration/servlet-3-init-6/pom.xml b/tests/integration/servlet-3-init-6/pom.xml
index b0591746687..04cc9044606 100644
--- a/tests/integration/servlet-3-init-6/pom.xml
+++ b/tests/integration/servlet-3-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-init-6
diff --git a/tests/integration/servlet-3-init-7/pom.xml b/tests/integration/servlet-3-init-7/pom.xml
index 39661f9bd26..ae39d30b6c7 100644
--- a/tests/integration/servlet-3-init-7/pom.xml
+++ b/tests/integration/servlet-3-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-init-7
diff --git a/tests/integration/servlet-3-init-8/pom.xml b/tests/integration/servlet-3-init-8/pom.xml
index 9ab80e1f098..e053957aa2e 100644
--- a/tests/integration/servlet-3-init-8/pom.xml
+++ b/tests/integration/servlet-3-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-init-8
diff --git a/tests/integration/servlet-3-init-9/pom.xml b/tests/integration/servlet-3-init-9/pom.xml
index ed0a34a54fb..41e20b3e29c 100644
--- a/tests/integration/servlet-3-init-9/pom.xml
+++ b/tests/integration/servlet-3-init-9/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-init-9
diff --git a/tests/integration/servlet-3-init-provider/pom.xml b/tests/integration/servlet-3-init-provider/pom.xml
index 8c909b441a0..c969795c95e 100644
--- a/tests/integration/servlet-3-init-provider/pom.xml
+++ b/tests/integration/servlet-3-init-provider/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-init-provider
diff --git a/tests/integration/servlet-3-params/pom.xml b/tests/integration/servlet-3-params/pom.xml
index 9eca1fc6c90..a14660da4b8 100644
--- a/tests/integration/servlet-3-params/pom.xml
+++ b/tests/integration/servlet-3-params/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-params
diff --git a/tests/integration/servlet-3-sse-1/pom.xml b/tests/integration/servlet-3-sse-1/pom.xml
index ca82c6a288d..7f33adb2a97 100644
--- a/tests/integration/servlet-3-sse-1/pom.xml
+++ b/tests/integration/servlet-3-sse-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-3-sse-1
diff --git a/tests/integration/servlet-4.0-mvc-1/pom.xml b/tests/integration/servlet-4.0-mvc-1/pom.xml
index 7a93a3f1b54..c6931615e62 100644
--- a/tests/integration/servlet-4.0-mvc-1/pom.xml
+++ b/tests/integration/servlet-4.0-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-4.0-mvc-1
diff --git a/tests/integration/servlet-request-wrapper-binding-2/pom.xml b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
index 063f1bf9778..afdc913f5b6 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-request-wrappper-binding-2
diff --git a/tests/integration/servlet-request-wrapper-binding/pom.xml b/tests/integration/servlet-request-wrapper-binding/pom.xml
index 2a6a9808591..b466c54d958 100644
--- a/tests/integration/servlet-request-wrapper-binding/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-request-wrappper-binding
diff --git a/tests/integration/servlet-tests/pom.xml b/tests/integration/servlet-tests/pom.xml
index d20aa3fd26d..d1e4b71042f 100644
--- a/tests/integration/servlet-tests/pom.xml
+++ b/tests/integration/servlet-tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
servlet-tests
diff --git a/tests/integration/sonar-test/pom.xml b/tests/integration/sonar-test/pom.xml
index 6e5ad790cb1..15598180483 100644
--- a/tests/integration/sonar-test/pom.xml
+++ b/tests/integration/sonar-test/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
sonar-test
diff --git a/tests/integration/spring6/pom.xml b/tests/integration/spring6/pom.xml
index 63625f40c13..1186c4b7dc8 100644
--- a/tests/integration/spring6/pom.xml
+++ b/tests/integration/spring6/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
spring6
diff --git a/tests/integration/tracing-support/pom.xml b/tests/integration/tracing-support/pom.xml
index 1618cae39bb..35ae665efda 100644
--- a/tests/integration/tracing-support/pom.xml
+++ b/tests/integration/tracing-support/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.7
tracing-support
diff --git a/tests/jmockit/pom.xml b/tests/jmockit/pom.xml
index b23e24ee528..9b57c258afb 100644
--- a/tests/jmockit/pom.xml
+++ b/tests/jmockit/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests
- 3.0.99-SNAPSHOT
+ 3.0.7
4.0.0
diff --git a/tests/mem-leaks/pom.xml b/tests/mem-leaks/pom.xml
index 6f88b8c504a..5b94cacf392 100644
--- a/tests/mem-leaks/pom.xml
+++ b/tests/mem-leaks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.tests.memleaks
diff --git a/tests/mem-leaks/redeployment/pom.xml b/tests/mem-leaks/redeployment/pom.xml
index d05070e2c88..b2ecf9aeba5 100644
--- a/tests/mem-leaks/redeployment/pom.xml
+++ b/tests/mem-leaks/redeployment/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.tests.memleaks.redeployment
diff --git a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
index 5fe32d43680..2bad08c4f97 100644
--- a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.99-SNAPSHOT
+ 3.0.7
redeployment-hello-world-app-ref
@@ -132,7 +132,7 @@
org.glassfish.jersey.examples
helloworld-webapp
war
- 3.0.99-SNAPSHOT
+ 3.0.7
diff --git a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
index 465a1b116f0..ddc79f53f73 100644
--- a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.99-SNAPSHOT
+ 3.0.7
redeployment-leaking-test-app
diff --git a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
index 59a52b9e50c..92a83c6ff4d 100644
--- a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.99-SNAPSHOT
+ 3.0.7
redeployment-no-jersey-app
diff --git a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
index 0e0ebd4d6ce..d9f677671fd 100644
--- a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.99-SNAPSHOT
+ 3.0.7
redeployment-threadlocals-app
diff --git a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
index f6e335b7bd7..bafd8fb2fbd 100644
--- a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
bean-param-leak
diff --git a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
index 929337bd8c7..e667307ec7d 100644
--- a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
+++ b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
leaking-test-app
diff --git a/tests/mem-leaks/test-cases/pom.xml b/tests/mem-leaks/test-cases/pom.xml
index 4428ff7f3d6..9e0ac398566 100644
--- a/tests/mem-leaks/test-cases/pom.xml
+++ b/tests/mem-leaks/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.tests.memleaks.testcases
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
index 40e375294ee..8d5b36d0ecf 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
shutdown-hook-leak-client
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
index 3335fd2b424..969f1f8653d 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
shutdown-hook-leak
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index 1b996666be8..c519611918a 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.osgi
project
- 3.0.99-SNAPSHOT
+ 3.0.7
jersey-tests-osgi-functional
diff --git a/tests/osgi/pom.xml b/tests/osgi/pom.xml
index 0f6a61894cc..512dabd4d87 100644
--- a/tests/osgi/pom.xml
+++ b/tests/osgi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.tests.osgi
diff --git a/tests/performance/benchmarks/pom.xml b/tests/performance/benchmarks/pom.xml
index de3d43d789f..fd41347aca9 100644
--- a/tests/performance/benchmarks/pom.xml
+++ b/tests/performance/benchmarks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.99-SNAPSHOT
+ 3.0.7
performance-test-benchmarks
diff --git a/tests/performance/pom.xml b/tests/performance/pom.xml
index 684deafa4a3..d4e53fee3c0 100644
--- a/tests/performance/pom.xml
+++ b/tests/performance/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.tests.performance
diff --git a/tests/performance/runners/jersey-grizzly-runner/pom.xml b/tests/performance/runners/jersey-grizzly-runner/pom.xml
index 1c55d8a29b8..b753703e943 100644
--- a/tests/performance/runners/jersey-grizzly-runner/pom.xml
+++ b/tests/performance/runners/jersey-grizzly-runner/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.runners
project
- 3.0.99-SNAPSHOT
+ 3.0.7
diff --git a/tests/performance/runners/pom.xml b/tests/performance/runners/pom.xml
index 96707a881f3..f11ecb9fcae 100644
--- a/tests/performance/runners/pom.xml
+++ b/tests/performance/runners/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.tests.performance.runners
diff --git a/tests/performance/test-cases/assemblies/pom.xml b/tests/performance/test-cases/assemblies/pom.xml
index 0e174ef1738..6305398e5bf 100644
--- a/tests/performance/test-cases/assemblies/pom.xml
+++ b/tests/performance/test-cases/assemblies/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
assemblies
diff --git a/tests/performance/test-cases/filter-dynamic/pom.xml b/tests/performance/test-cases/filter-dynamic/pom.xml
index 08679af1fec..b3932052582 100644
--- a/tests/performance/test-cases/filter-dynamic/pom.xml
+++ b/tests/performance/test-cases/filter-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
filter-dynamic
diff --git a/tests/performance/test-cases/filter-global/pom.xml b/tests/performance/test-cases/filter-global/pom.xml
index 5fdc703dab5..2cab6b4cdef 100644
--- a/tests/performance/test-cases/filter-global/pom.xml
+++ b/tests/performance/test-cases/filter-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
filter-global
diff --git a/tests/performance/test-cases/filter-name/pom.xml b/tests/performance/test-cases/filter-name/pom.xml
index c6457f06c02..38726d55af9 100644
--- a/tests/performance/test-cases/filter-name/pom.xml
+++ b/tests/performance/test-cases/filter-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
filter-name
diff --git a/tests/performance/test-cases/interceptor-dynamic/pom.xml b/tests/performance/test-cases/interceptor-dynamic/pom.xml
index 3869ea29373..9865acc91c0 100644
--- a/tests/performance/test-cases/interceptor-dynamic/pom.xml
+++ b/tests/performance/test-cases/interceptor-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
interceptor-dynamic
diff --git a/tests/performance/test-cases/interceptor-global/pom.xml b/tests/performance/test-cases/interceptor-global/pom.xml
index 8cad5e337bd..57650d2646b 100644
--- a/tests/performance/test-cases/interceptor-global/pom.xml
+++ b/tests/performance/test-cases/interceptor-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
interceptor-global
diff --git a/tests/performance/test-cases/interceptor-name/pom.xml b/tests/performance/test-cases/interceptor-name/pom.xml
index 2a179d3c6c2..e8b4468ef3f 100644
--- a/tests/performance/test-cases/interceptor-name/pom.xml
+++ b/tests/performance/test-cases/interceptor-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
interceptor-name
diff --git a/tests/performance/test-cases/mbw-custom-provider/pom.xml b/tests/performance/test-cases/mbw-custom-provider/pom.xml
index 05def3afe70..e99531a1930 100644
--- a/tests/performance/test-cases/mbw-custom-provider/pom.xml
+++ b/tests/performance/test-cases/mbw-custom-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
custom-provider
diff --git a/tests/performance/test-cases/mbw-json-jackson/pom.xml b/tests/performance/test-cases/mbw-json-jackson/pom.xml
index 99b7e0a4e3e..49376dc5faa 100644
--- a/tests/performance/test-cases/mbw-json-jackson/pom.xml
+++ b/tests/performance/test-cases/mbw-json-jackson/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
json-jackson
diff --git a/tests/performance/test-cases/mbw-json-moxy/pom.xml b/tests/performance/test-cases/mbw-json-moxy/pom.xml
index 110a87fe45d..e82623a1f1e 100644
--- a/tests/performance/test-cases/mbw-json-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-json-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
json-moxy
diff --git a/tests/performance/test-cases/mbw-kryo/pom.xml b/tests/performance/test-cases/mbw-kryo/pom.xml
index e6286ce24be..f272a426471 100644
--- a/tests/performance/test-cases/mbw-kryo/pom.xml
+++ b/tests/performance/test-cases/mbw-kryo/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
mbw-kryo
diff --git a/tests/performance/test-cases/mbw-text-plain/pom.xml b/tests/performance/test-cases/mbw-text-plain/pom.xml
index 44b96b2ea34..8ff3c1070be 100644
--- a/tests/performance/test-cases/mbw-text-plain/pom.xml
+++ b/tests/performance/test-cases/mbw-text-plain/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
text-plain
diff --git a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
index e759a1d9fde..63d42b88e46 100644
--- a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
xml-jaxb
diff --git a/tests/performance/test-cases/mbw-xml-moxy/pom.xml b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
index ad3fc0d25c5..c0e6535abac 100644
--- a/tests/performance/test-cases/mbw-xml-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
xml-moxy
diff --git a/tests/performance/test-cases/param-srl/pom.xml b/tests/performance/test-cases/param-srl/pom.xml
index 95a00326615..b64c3b27e67 100644
--- a/tests/performance/test-cases/param-srl/pom.xml
+++ b/tests/performance/test-cases/param-srl/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
param-srl
diff --git a/tests/performance/test-cases/pom.xml b/tests/performance/test-cases/pom.xml
index 60c2b732796..39cc3645ef7 100644
--- a/tests/performance/test-cases/pom.xml
+++ b/tests/performance/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.tests.performance.testcases
diff --git a/tests/performance/test-cases/proxy-injection/pom.xml b/tests/performance/test-cases/proxy-injection/pom.xml
index ab5a7456041..6c38eea9320 100644
--- a/tests/performance/test-cases/proxy-injection/pom.xml
+++ b/tests/performance/test-cases/proxy-injection/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.7
proxy-injection
diff --git a/tests/performance/tools/pom.xml b/tests/performance/tools/pom.xml
index 16ec2b20b48..35f97c0218a 100644
--- a/tests/performance/tools/pom.xml
+++ b/tests/performance/tools/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.tests.performance.tools
performance-test-tools
diff --git a/tests/pom.xml b/tests/pom.xml
index 946aa00deba..224d22cca1f 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.7
org.glassfish.jersey.tests
diff --git a/tests/stress/pom.xml b/tests/stress/pom.xml
index f0e7ee23717..534c3ecdc55 100644
--- a/tests/stress/pom.xml
+++ b/tests/stress/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.7
stress
From ca1d6938fec729925303f55554d8095bbb5cbcae Mon Sep 17 00:00:00 2001
From: jersey-bot
Date: Fri, 19 Aug 2022 12:45:42 +0000
Subject: [PATCH 084/305] 3.0.99-SNAPSHOT
---
archetypes/jersey-example-java8-webapp/pom.xml | 2 +-
archetypes/jersey-heroku-webapp/pom.xml | 2 +-
archetypes/jersey-quickstart-grizzly2/pom.xml | 2 +-
archetypes/jersey-quickstart-webapp/pom.xml | 2 +-
archetypes/pom.xml | 2 +-
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 2 +-
bundles/jaxrs-ri/pom.xml | 2 +-
bundles/pom.xml | 2 +-
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 2 +-
connectors/helidon-connector/pom.xml | 2 +-
connectors/jdk-connector/pom.xml | 2 +-
connectors/jetty-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 2 +-
containers/glassfish/pom.xml | 2 +-
containers/grizzly2-http/pom.xml | 2 +-
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-http/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
containers/netty-http/pom.xml | 2 +-
containers/pom.xml | 2 +-
containers/simple-http/pom.xml | 2 +-
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 2 +-
examples/assemblies/pom.xml | 2 +-
examples/bookmark-em/pom.xml | 2 +-
examples/bookmark/pom.xml | 2 +-
examples/bookstore-webapp/pom.xml | 2 +-
examples/cdi-webapp/pom.xml | 2 +-
examples/clipboard-programmatic/pom.xml | 2 +-
examples/clipboard/pom.xml | 2 +-
examples/declarative-linking/pom.xml | 2 +-
examples/entity-filtering-security/pom.xml | 2 +-
examples/entity-filtering-selectable/pom.xml | 2 +-
examples/entity-filtering/pom.xml | 2 +-
examples/exception-mapping/pom.xml | 2 +-
examples/extended-wadl-webapp/pom.xml | 2 +-
examples/freemarker-webapp/pom.xml | 2 +-
examples/groovy/pom.xml | 2 +-
examples/helloworld-benchmark/pom.xml | 2 +-
examples/helloworld-cdi2-se/pom.xml | 2 +-
examples/helloworld-netty/pom.xml | 2 +-
examples/helloworld-programmatic/pom.xml | 2 +-
examples/helloworld-pure-jax-rs/pom.xml | 2 +-
examples/helloworld-webapp/pom.xml | 2 +-
examples/helloworld-weld/pom.xml | 2 +-
examples/helloworld/pom.xml | 2 +-
examples/http-patch/pom.xml | 2 +-
examples/http-trace/pom.xml | 2 +-
examples/https-clientserver-grizzly/pom.xml | 2 +-
examples/https-server-glassfish/pom.xml | 2 +-
examples/java8-webapp/pom.xml | 2 +-
examples/jaxb/pom.xml | 2 +-
examples/jaxrs-types-injection/pom.xml | 2 +-
examples/jersey-ejb/pom.xml | 2 +-
examples/json-binding-webapp/pom.xml | 2 +-
examples/json-jackson/pom.xml | 2 +-
examples/json-jettison/pom.xml | 2 +-
examples/json-moxy/pom.xml | 2 +-
examples/json-processing-webapp/pom.xml | 2 +-
examples/json-with-padding/pom.xml | 2 +-
examples/managed-beans-webapp/pom.xml | 2 +-
examples/managed-client-simple-webapp/pom.xml | 2 +-
examples/managed-client-webapp/pom.xml | 2 +-
examples/managed-client/pom.xml | 2 +-
examples/multipart-webapp/pom.xml | 2 +-
examples/oauth-client-twitter/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 2 +-
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/functional-test/pom.xml | 2 +-
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/pom.xml | 2 +-
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 2 +-
examples/pom.xml | 2 +-
examples/reload/pom.xml | 2 +-
examples/rx-client-webapp/pom.xml | 2 +-
examples/server-async-managed/pom.xml | 2 +-
examples/server-async-standalone/client/pom.xml | 2 +-
examples/server-async-standalone/pom.xml | 2 +-
examples/server-async-standalone/webapp/pom.xml | 2 +-
examples/server-async/pom.xml | 2 +-
examples/server-sent-events-jaxrs/pom.xml | 2 +-
examples/server-sent-events-jersey/pom.xml | 2 +-
examples/servlet3-webapp/pom.xml | 2 +-
examples/simple-console/pom.xml | 2 +-
examples/sse-item-store-jaxrs-webapp/pom.xml | 2 +-
examples/sse-item-store-jersey-webapp/pom.xml | 2 +-
examples/sse-twitter-aggregator/pom.xml | 2 +-
examples/system-properties-example/pom.xml | 2 +-
examples/webapp-example-parent/pom.xml | 2 +-
examples/xml-moxy/pom.xml | 2 +-
ext/bean-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-transaction/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi1x/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 2 +-
ext/cdi/pom.xml | 2 +-
ext/entity-filtering/pom.xml | 2 +-
ext/metainf-services/pom.xml | 2 +-
ext/microprofile/mp-config/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/microprofile/pom.xml | 2 +-
ext/mvc-bean-validation/pom.xml | 2 +-
ext/mvc-freemarker/pom.xml | 2 +-
ext/mvc-jsp/pom.xml | 2 +-
ext/mvc-mustache/pom.xml | 2 +-
ext/mvc/pom.xml | 2 +-
ext/pom.xml | 2 +-
ext/proxy-client/pom.xml | 2 +-
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 2 +-
ext/rx/rx-client-rxjava2/pom.xml | 2 +-
ext/spring6/pom.xml | 2 +-
ext/wadl-doclet/pom.xml | 2 +-
incubator/cdi-inject-weld/pom.xml | 2 +-
incubator/declarative-linking/pom.xml | 2 +-
incubator/gae-integration/pom.xml | 2 +-
incubator/html-json/pom.xml | 2 +-
incubator/kryo/pom.xml | 2 +-
incubator/open-tracing/pom.xml | 2 +-
incubator/pom.xml | 2 +-
inject/cdi2-se/pom.xml | 2 +-
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 2 +-
media/jaxb/pom.xml | 2 +-
media/json-binding/pom.xml | 2 +-
media/json-gson/pom.xml | 2 +-
media/json-jackson/pom.xml | 2 +-
media/json-jettison/pom.xml | 2 +-
media/json-processing/pom.xml | 2 +-
media/moxy/pom.xml | 2 +-
media/multipart/pom.xml | 2 +-
media/pom.xml | 2 +-
media/sse/pom.xml | 2 +-
pom.xml | 2 +-
security/oauth1-client/pom.xml | 2 +-
security/oauth1-server/pom.xml | 2 +-
security/oauth1-signature/pom.xml | 2 +-
security/oauth2-client/pom.xml | 2 +-
security/pom.xml | 2 +-
test-framework/core/pom.xml | 2 +-
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 2 +-
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 2 +-
test-framework/providers/bundle/pom.xml | 2 +-
test-framework/providers/external/pom.xml | 2 +-
test-framework/providers/grizzly2/pom.xml | 2 +-
test-framework/providers/inmemory/pom.xml | 2 +-
test-framework/providers/jdk-http/pom.xml | 2 +-
test-framework/providers/jetty/pom.xml | 2 +-
test-framework/providers/netty/pom.xml | 2 +-
test-framework/providers/pom.xml | 2 +-
test-framework/providers/simple/pom.xml | 2 +-
test-framework/util/pom.xml | 2 +-
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 2 +-
tests/e2e-inject/pom.xml | 2 +-
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 2 +-
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 2 +-
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 2 +-
.../integration/cdi-integration/cdi-client-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-client/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 2 +-
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-log-check/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-manually-bound/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multipart-webapp/pom.xml | 2 +-
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-singleton/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 2 +-
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 2 +-
.../pom.xml | 2 +-
.../cdi-integration/cdi-with-jersey-injection-webapp/pom.xml | 2 +-
.../cdi-integration/context-inject-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/pom.xml | 2 +-
tests/integration/client-connector-provider/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule/pom.xml | 2 +-
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 2 +-
tests/integration/j-376/pom.xml | 2 +-
tests/integration/j-441/ear/pom.xml | 2 +-
tests/integration/j-441/pom.xml | 2 +-
tests/integration/j-441/war1/pom.xml | 2 +-
tests/integration/j-441/war2/pom.xml | 2 +-
tests/integration/j-59/ear/pom.xml | 2 +-
tests/integration/j-59/lib/pom.xml | 2 +-
tests/integration/j-59/pom.xml | 2 +-
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 2 +-
tests/integration/jersey-1107/pom.xml | 2 +-
tests/integration/jersey-1223/pom.xml | 2 +-
tests/integration/jersey-1604/pom.xml | 2 +-
tests/integration/jersey-1667/pom.xml | 2 +-
tests/integration/jersey-1883/pom.xml | 2 +-
tests/integration/jersey-1928/pom.xml | 2 +-
tests/integration/jersey-1960/pom.xml | 2 +-
tests/integration/jersey-1964/pom.xml | 2 +-
tests/integration/jersey-2031/pom.xml | 2 +-
tests/integration/jersey-2136/pom.xml | 2 +-
tests/integration/jersey-2137/pom.xml | 2 +-
tests/integration/jersey-2154/pom.xml | 2 +-
tests/integration/jersey-2160/pom.xml | 2 +-
tests/integration/jersey-2164/pom.xml | 2 +-
tests/integration/jersey-2167/pom.xml | 2 +-
tests/integration/jersey-2176/pom.xml | 2 +-
tests/integration/jersey-2184/pom.xml | 2 +-
tests/integration/jersey-2255/pom.xml | 2 +-
tests/integration/jersey-2322/pom.xml | 2 +-
tests/integration/jersey-2335/pom.xml | 2 +-
tests/integration/jersey-2421/pom.xml | 2 +-
tests/integration/jersey-2551/pom.xml | 2 +-
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 2 +-
tests/integration/jersey-2654/pom.xml | 2 +-
tests/integration/jersey-2673/pom.xml | 2 +-
tests/integration/jersey-2689/pom.xml | 2 +-
tests/integration/jersey-2704/pom.xml | 2 +-
tests/integration/jersey-2776/pom.xml | 2 +-
tests/integration/jersey-2794/pom.xml | 2 +-
tests/integration/jersey-2846/pom.xml | 2 +-
tests/integration/jersey-2878/pom.xml | 2 +-
tests/integration/jersey-2892/pom.xml | 2 +-
tests/integration/jersey-3662/pom.xml | 2 +-
tests/integration/jersey-3670/pom.xml | 2 +-
tests/integration/jersey-3796/pom.xml | 2 +-
tests/integration/jersey-3992/pom.xml | 2 +-
tests/integration/jersey-4003/pom.xml | 2 +-
tests/integration/jersey-4099/pom.xml | 2 +-
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 2 +-
tests/integration/jersey-4542/pom.xml | 2 +-
tests/integration/jersey-4697/pom.xml | 2 +-
tests/integration/jersey-4722/pom.xml | 2 +-
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-5087/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 2 +-
tests/integration/microprofile/config/helidon/pom.xml | 2 +-
tests/integration/microprofile/config/pom.xml | 2 +-
tests/integration/microprofile/config/webapp/pom.xml | 2 +-
tests/integration/microprofile/pom.xml | 2 +-
tests/integration/microprofile/rest-client-tck/pom.xml | 2 +-
tests/integration/microprofile/rest-client/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 2 +-
tests/integration/reactive-streams/sse/pom.xml | 2 +-
tests/integration/security-digest/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 2 +-
tests/integration/servlet-2.5-filter/pom.xml | 2 +-
tests/integration/servlet-2.5-inflector-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-2/pom.xml | 2 +-
tests/integration/servlet-2.5-init-3/pom.xml | 2 +-
tests/integration/servlet-2.5-init-4/pom.xml | 2 +-
tests/integration/servlet-2.5-init-5/pom.xml | 2 +-
tests/integration/servlet-2.5-init-6/pom.xml | 2 +-
tests/integration/servlet-2.5-init-7/pom.xml | 2 +-
tests/integration/servlet-2.5-init-8/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-1/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-2/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-3/pom.xml | 2 +-
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 2 +-
tests/integration/servlet-3-chunked-io/pom.xml | 2 +-
tests/integration/servlet-3-filter/pom.xml | 2 +-
tests/integration/servlet-3-gf-async/pom.xml | 2 +-
tests/integration/servlet-3-inflector-1/pom.xml | 2 +-
tests/integration/servlet-3-init-1/pom.xml | 2 +-
tests/integration/servlet-3-init-2/pom.xml | 2 +-
tests/integration/servlet-3-init-3/pom.xml | 2 +-
tests/integration/servlet-3-init-4/pom.xml | 2 +-
tests/integration/servlet-3-init-5/pom.xml | 2 +-
tests/integration/servlet-3-init-6/pom.xml | 2 +-
tests/integration/servlet-3-init-7/pom.xml | 2 +-
tests/integration/servlet-3-init-8/pom.xml | 2 +-
tests/integration/servlet-3-init-9/pom.xml | 2 +-
tests/integration/servlet-3-init-provider/pom.xml | 2 +-
tests/integration/servlet-3-params/pom.xml | 2 +-
tests/integration/servlet-3-sse-1/pom.xml | 2 +-
tests/integration/servlet-4.0-mvc-1/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 2 +-
tests/integration/sonar-test/pom.xml | 2 +-
tests/integration/spring6/pom.xml | 2 +-
tests/integration/tracing-support/pom.xml | 2 +-
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 2 +-
tests/mem-leaks/redeployment/pom.xml | 2 +-
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 4 ++--
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment/redeployment-threadlocals-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 2 +-
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 2 +-
tests/osgi/functional/pom.xml | 2 +-
tests/osgi/pom.xml | 2 +-
tests/performance/benchmarks/pom.xml | 2 +-
tests/performance/pom.xml | 2 +-
tests/performance/runners/jersey-grizzly-runner/pom.xml | 2 +-
tests/performance/runners/pom.xml | 2 +-
tests/performance/test-cases/assemblies/pom.xml | 2 +-
tests/performance/test-cases/filter-dynamic/pom.xml | 2 +-
tests/performance/test-cases/filter-global/pom.xml | 2 +-
tests/performance/test-cases/filter-name/pom.xml | 2 +-
tests/performance/test-cases/interceptor-dynamic/pom.xml | 2 +-
tests/performance/test-cases/interceptor-global/pom.xml | 2 +-
tests/performance/test-cases/interceptor-name/pom.xml | 2 +-
tests/performance/test-cases/mbw-custom-provider/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-jackson/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-moxy/pom.xml | 2 +-
tests/performance/test-cases/mbw-kryo/pom.xml | 2 +-
tests/performance/test-cases/mbw-text-plain/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 2 +-
tests/performance/test-cases/param-srl/pom.xml | 2 +-
tests/performance/test-cases/pom.xml | 2 +-
tests/performance/test-cases/proxy-injection/pom.xml | 2 +-
tests/performance/tools/pom.xml | 2 +-
tests/pom.xml | 2 +-
tests/stress/pom.xml | 2 +-
362 files changed, 363 insertions(+), 363 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index c0147752a92..b47b480e685 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-example-java8-webapp
diff --git a/archetypes/jersey-heroku-webapp/pom.xml b/archetypes/jersey-heroku-webapp/pom.xml
index 506622a4eb8..a413d64fa01 100644
--- a/archetypes/jersey-heroku-webapp/pom.xml
+++ b/archetypes/jersey-heroku-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.7
+ 3.0.99-SNAPSHOT
maven-archetype
diff --git a/archetypes/jersey-quickstart-grizzly2/pom.xml b/archetypes/jersey-quickstart-grizzly2/pom.xml
index 0083bd4b2e6..24b37a46dae 100644
--- a/archetypes/jersey-quickstart-grizzly2/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-quickstart-grizzly2
maven-archetype
diff --git a/archetypes/jersey-quickstart-webapp/pom.xml b/archetypes/jersey-quickstart-webapp/pom.xml
index bb977e9ea8f..8b11c4ebc98 100644
--- a/archetypes/jersey-quickstart-webapp/pom.xml
+++ b/archetypes/jersey-quickstart-webapp/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
maven-archetype
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index 1fbed6f1d5d..e8a31139d10 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.archetypes
diff --git a/bom/pom.xml b/bom/pom.xml
index 1d064423352..1083d28a38b 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,7 +30,7 @@
org.glassfish.jersey
jersey-bom
- 3.0.7
+ 3.0.99-SNAPSHOT
pom
jersey-bom
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index b1be342a371..083b14b1398 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.0.7
+ 3.0.99-SNAPSHOT
apidocs
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index 7136c58766f..e171811f24f 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.bundles
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-examples
diff --git a/bundles/jaxrs-ri/pom.xml b/bundles/jaxrs-ri/pom.xml
index a1de755c286..a254d5316a3 100644
--- a/bundles/jaxrs-ri/pom.xml
+++ b/bundles/jaxrs-ri/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jaxrs-ri
diff --git a/bundles/pom.xml b/bundles/pom.xml
index 36132b17fe3..5739d5eac11 100644
--- a/bundles/pom.xml
+++ b/bundles/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.bundles
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index bcb37d0538a..269b753774a 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-apache-connector
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
index 81343d09642..899e2911e5e 100644
--- a/connectors/apache5-connector/pom.xml
+++ b/connectors/apache5-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-apache5-connector
diff --git a/connectors/grizzly-connector/pom.xml b/connectors/grizzly-connector/pom.xml
index a268ef48952..8d997a4ae4a 100644
--- a/connectors/grizzly-connector/pom.xml
+++ b/connectors/grizzly-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-grizzly-connector
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index e70203785f8..0e06810598d 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.connectors
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/connectors/jdk-connector/pom.xml b/connectors/jdk-connector/pom.xml
index 4d7e00447dc..57d04215b14 100644
--- a/connectors/jdk-connector/pom.xml
+++ b/connectors/jdk-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-jdk-connector
diff --git a/connectors/jetty-connector/pom.xml b/connectors/jetty-connector/pom.xml
index 7453e56dab1..8be410ed3f1 100644
--- a/connectors/jetty-connector/pom.xml
+++ b/connectors/jetty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-jetty-connector
diff --git a/connectors/netty-connector/pom.xml b/connectors/netty-connector/pom.xml
index 4171721719d..18054902133 100644
--- a/connectors/netty-connector/pom.xml
+++ b/connectors/netty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-netty-connector
diff --git a/connectors/pom.xml b/connectors/pom.xml
index e437616d613..472101738f9 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.connectors
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index f5fce167c94..c9573115adb 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers.glassfish
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-gf-ejb
diff --git a/containers/glassfish/pom.xml b/containers/glassfish/pom.xml
index bfe1c286717..97b7748050b 100644
--- a/containers/glassfish/pom.xml
+++ b/containers/glassfish/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.containers.glassfish
diff --git a/containers/grizzly2-http/pom.xml b/containers/grizzly2-http/pom.xml
index 96d5bf580c4..92ca31d2324 100644
--- a/containers/grizzly2-http/pom.xml
+++ b/containers/grizzly2-http/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.containers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-container-grizzly2-http
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index 89ba2e5b07b..727344d3c55 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-container-grizzly2-servlet
diff --git a/containers/jdk-http/pom.xml b/containers/jdk-http/pom.xml
index 75a68a27ec7..c9d95593f90 100644
--- a/containers/jdk-http/pom.xml
+++ b/containers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-container-jdk-http
diff --git a/containers/jersey-servlet-core/pom.xml b/containers/jersey-servlet-core/pom.xml
index a1bdbc1eb6c..edd2e9ba58e 100644
--- a/containers/jersey-servlet-core/pom.xml
+++ b/containers/jersey-servlet-core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-container-servlet-core
diff --git a/containers/jersey-servlet/pom.xml b/containers/jersey-servlet/pom.xml
index 50e41199fe3..e066f5d541c 100644
--- a/containers/jersey-servlet/pom.xml
+++ b/containers/jersey-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-container-servlet
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index c187c63ed2e..8ffde3c771a 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.containers
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-container-jetty-http
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 2567916eccd..373d0044662 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-container-jetty-servlet
diff --git a/containers/netty-http/pom.xml b/containers/netty-http/pom.xml
index 472153cd905..8bdca8e03b9 100644
--- a/containers/netty-http/pom.xml
+++ b/containers/netty-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-container-netty-http
diff --git a/containers/pom.xml b/containers/pom.xml
index 6edc1e0b468..d1d9d1f9f8f 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.containers
diff --git a/containers/simple-http/pom.xml b/containers/simple-http/pom.xml
index b672299d8cc..442093fc474 100644
--- a/containers/simple-http/pom.xml
+++ b/containers/simple-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-container-simple-http
diff --git a/core-client/pom.xml b/core-client/pom.xml
index f23a27e250f..e9a51246873 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.core
diff --git a/core-common/pom.xml b/core-common/pom.xml
index a1e7c7e286f..b6282d38161 100644
--- a/core-common/pom.xml
+++ b/core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.core
diff --git a/core-server/pom.xml b/core-server/pom.xml
index b7d0c496252..5eaea68a6a7 100644
--- a/core-server/pom.xml
+++ b/core-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.core
diff --git a/docs/pom.xml b/docs/pom.xml
index 6b7a792ffea..509d6f2c691 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-documentation
pom
diff --git a/examples/assemblies/pom.xml b/examples/assemblies/pom.xml
index 62005eb9326..3a9082c2c70 100644
--- a/examples/assemblies/pom.xml
+++ b/examples/assemblies/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
assemblies
diff --git a/examples/bookmark-em/pom.xml b/examples/bookmark-em/pom.xml
index 7433e7666fb..43c1eb4d89b 100644
--- a/examples/bookmark-em/pom.xml
+++ b/examples/bookmark-em/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
bookmark-em
diff --git a/examples/bookmark/pom.xml b/examples/bookmark/pom.xml
index 97190a63f51..51b37c22f7d 100644
--- a/examples/bookmark/pom.xml
+++ b/examples/bookmark/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
bookmark
diff --git a/examples/bookstore-webapp/pom.xml b/examples/bookstore-webapp/pom.xml
index 23a17c8f7f6..cfe9e6d253d 100644
--- a/examples/bookstore-webapp/pom.xml
+++ b/examples/bookstore-webapp/pom.xml
@@ -35,7 +35,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
bookstore-webapp
diff --git a/examples/cdi-webapp/pom.xml b/examples/cdi-webapp/pom.xml
index 5e6f0f73b45..803c399f4fd 100644
--- a/examples/cdi-webapp/pom.xml
+++ b/examples/cdi-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-webapp
diff --git a/examples/clipboard-programmatic/pom.xml b/examples/clipboard-programmatic/pom.xml
index 1de032439ac..6fab951dac4 100644
--- a/examples/clipboard-programmatic/pom.xml
+++ b/examples/clipboard-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
clipboard-programmatic
diff --git a/examples/clipboard/pom.xml b/examples/clipboard/pom.xml
index 6c81c7fe596..5caf76ce426 100644
--- a/examples/clipboard/pom.xml
+++ b/examples/clipboard/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
clipboard
diff --git a/examples/declarative-linking/pom.xml b/examples/declarative-linking/pom.xml
index e3ab367279d..910c6d5fadf 100644
--- a/examples/declarative-linking/pom.xml
+++ b/examples/declarative-linking/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
declarative-linking
diff --git a/examples/entity-filtering-security/pom.xml b/examples/entity-filtering-security/pom.xml
index f2b0d117b84..a92d294e77e 100644
--- a/examples/entity-filtering-security/pom.xml
+++ b/examples/entity-filtering-security/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
entity-filtering-security
diff --git a/examples/entity-filtering-selectable/pom.xml b/examples/entity-filtering-selectable/pom.xml
index 12969e52b1f..986200ae1c2 100644
--- a/examples/entity-filtering-selectable/pom.xml
+++ b/examples/entity-filtering-selectable/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
entity-filtering-selectable
diff --git a/examples/entity-filtering/pom.xml b/examples/entity-filtering/pom.xml
index 31707e39954..b6d5870b180 100644
--- a/examples/entity-filtering/pom.xml
+++ b/examples/entity-filtering/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
entity-filtering
diff --git a/examples/exception-mapping/pom.xml b/examples/exception-mapping/pom.xml
index 3d11f0f84e6..5986740b376 100644
--- a/examples/exception-mapping/pom.xml
+++ b/examples/exception-mapping/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
exception-mapping
diff --git a/examples/extended-wadl-webapp/pom.xml b/examples/extended-wadl-webapp/pom.xml
index 765977d830b..2373bd4e9e4 100644
--- a/examples/extended-wadl-webapp/pom.xml
+++ b/examples/extended-wadl-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
extended-wadl-webapp
diff --git a/examples/freemarker-webapp/pom.xml b/examples/freemarker-webapp/pom.xml
index b870b696bb6..9af7112d7d1 100644
--- a/examples/freemarker-webapp/pom.xml
+++ b/examples/freemarker-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
freemarker-webapp
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index b23cde5971e..2ac5de0aedc 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
groovy
jar
diff --git a/examples/helloworld-benchmark/pom.xml b/examples/helloworld-benchmark/pom.xml
index 26ddb3d3a7a..888880182b2 100644
--- a/examples/helloworld-benchmark/pom.xml
+++ b/examples/helloworld-benchmark/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
helloworld-benchmark
diff --git a/examples/helloworld-cdi2-se/pom.xml b/examples/helloworld-cdi2-se/pom.xml
index 15f7449ac19..11aba91aad0 100644
--- a/examples/helloworld-cdi2-se/pom.xml
+++ b/examples/helloworld-cdi2-se/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
helloworld-cdi2-se
diff --git a/examples/helloworld-netty/pom.xml b/examples/helloworld-netty/pom.xml
index e51b1bdaea6..db6fe09c0cb 100644
--- a/examples/helloworld-netty/pom.xml
+++ b/examples/helloworld-netty/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
helloworld-netty
diff --git a/examples/helloworld-programmatic/pom.xml b/examples/helloworld-programmatic/pom.xml
index e831e8136ae..eb267ee7527 100644
--- a/examples/helloworld-programmatic/pom.xml
+++ b/examples/helloworld-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
helloworld-programmatic
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index 67a3923d19e..9a6627ecbe7 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
helloworld-pure-jax-rs
diff --git a/examples/helloworld-webapp/pom.xml b/examples/helloworld-webapp/pom.xml
index d8b92d76359..68a24198610 100644
--- a/examples/helloworld-webapp/pom.xml
+++ b/examples/helloworld-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
helloworld-webapp
diff --git a/examples/helloworld-weld/pom.xml b/examples/helloworld-weld/pom.xml
index 2338bf3014a..e8e482c5ccb 100644
--- a/examples/helloworld-weld/pom.xml
+++ b/examples/helloworld-weld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
helloworld-weld
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index 082cd67c51b..f66764823fa 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
helloworld
diff --git a/examples/http-patch/pom.xml b/examples/http-patch/pom.xml
index 1a2631cb4ef..47b7302cf78 100644
--- a/examples/http-patch/pom.xml
+++ b/examples/http-patch/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
http-patch
diff --git a/examples/http-trace/pom.xml b/examples/http-trace/pom.xml
index 9de9d3136a8..79f8f197dd5 100644
--- a/examples/http-trace/pom.xml
+++ b/examples/http-trace/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
http-trace
diff --git a/examples/https-clientserver-grizzly/pom.xml b/examples/https-clientserver-grizzly/pom.xml
index b3271806d83..d6274d192e2 100644
--- a/examples/https-clientserver-grizzly/pom.xml
+++ b/examples/https-clientserver-grizzly/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
https-clientserver-grizzly
diff --git a/examples/https-server-glassfish/pom.xml b/examples/https-server-glassfish/pom.xml
index 674002dca4d..d034d5ffb33 100644
--- a/examples/https-server-glassfish/pom.xml
+++ b/examples/https-server-glassfish/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
https-server-glassfish
diff --git a/examples/java8-webapp/pom.xml b/examples/java8-webapp/pom.xml
index c5836afc5e6..da4693a55f6 100644
--- a/examples/java8-webapp/pom.xml
+++ b/examples/java8-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
java8-webapp
diff --git a/examples/jaxb/pom.xml b/examples/jaxb/pom.xml
index 4ca790bfe8b..e24b2e6b0e7 100644
--- a/examples/jaxb/pom.xml
+++ b/examples/jaxb/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jaxb
diff --git a/examples/jaxrs-types-injection/pom.xml b/examples/jaxrs-types-injection/pom.xml
index d35f2a0c053..e32726e5643 100644
--- a/examples/jaxrs-types-injection/pom.xml
+++ b/examples/jaxrs-types-injection/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jaxrs-types-injection
diff --git a/examples/jersey-ejb/pom.xml b/examples/jersey-ejb/pom.xml
index d2c9460a253..4702463cc61 100644
--- a/examples/jersey-ejb/pom.xml
+++ b/examples/jersey-ejb/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-ejb
diff --git a/examples/json-binding-webapp/pom.xml b/examples/json-binding-webapp/pom.xml
index 56c8bda1168..979236e59f9 100644
--- a/examples/json-binding-webapp/pom.xml
+++ b/examples/json-binding-webapp/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
json-binding-webapp
diff --git a/examples/json-jackson/pom.xml b/examples/json-jackson/pom.xml
index 6a93cd2f1d2..4cdfb639399 100644
--- a/examples/json-jackson/pom.xml
+++ b/examples/json-jackson/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
json-jackson
diff --git a/examples/json-jettison/pom.xml b/examples/json-jettison/pom.xml
index 5ae839ad2be..15a4e25e379 100644
--- a/examples/json-jettison/pom.xml
+++ b/examples/json-jettison/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
json-jettison
diff --git a/examples/json-moxy/pom.xml b/examples/json-moxy/pom.xml
index 79793b766c0..2ae80e1f8c3 100644
--- a/examples/json-moxy/pom.xml
+++ b/examples/json-moxy/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
json-moxy
diff --git a/examples/json-processing-webapp/pom.xml b/examples/json-processing-webapp/pom.xml
index dc107770b24..10993fc8997 100644
--- a/examples/json-processing-webapp/pom.xml
+++ b/examples/json-processing-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
json-processing-webapp
diff --git a/examples/json-with-padding/pom.xml b/examples/json-with-padding/pom.xml
index 2c6282c949e..64dac76588f 100644
--- a/examples/json-with-padding/pom.xml
+++ b/examples/json-with-padding/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
json-with-padding
diff --git a/examples/managed-beans-webapp/pom.xml b/examples/managed-beans-webapp/pom.xml
index 25f7625002d..e66fb183731 100644
--- a/examples/managed-beans-webapp/pom.xml
+++ b/examples/managed-beans-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
managed-beans-webapp
diff --git a/examples/managed-client-simple-webapp/pom.xml b/examples/managed-client-simple-webapp/pom.xml
index 03b4bde0c9b..53ab47eaff0 100644
--- a/examples/managed-client-simple-webapp/pom.xml
+++ b/examples/managed-client-simple-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
managed-client-simple-webapp
diff --git a/examples/managed-client-webapp/pom.xml b/examples/managed-client-webapp/pom.xml
index cd056b9cab2..0583e891c94 100644
--- a/examples/managed-client-webapp/pom.xml
+++ b/examples/managed-client-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
managed-client-webapp
diff --git a/examples/managed-client/pom.xml b/examples/managed-client/pom.xml
index 6d4c7656393..ac3e5f9ff0f 100644
--- a/examples/managed-client/pom.xml
+++ b/examples/managed-client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
managed-client
diff --git a/examples/multipart-webapp/pom.xml b/examples/multipart-webapp/pom.xml
index 8cc8ebc93c8..9cb43ffd94b 100644
--- a/examples/multipart-webapp/pom.xml
+++ b/examples/multipart-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
multipart-webapp
diff --git a/examples/oauth-client-twitter/pom.xml b/examples/oauth-client-twitter/pom.xml
index cf8d3aa4095..3b4e9dfb186 100644
--- a/examples/oauth-client-twitter/pom.xml
+++ b/examples/oauth-client-twitter/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index 5e5bc733751..76a9ffa1c4d 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
open-tracing
diff --git a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
index 299a8fe6e97..51563792217 100644
--- a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
index 1e21b170741..f9f6a070392 100644
--- a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index 637f4c63f13..bdce8538d72 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
index b21856779e2..b92f2e1614f 100644
--- a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/pom.xml b/examples/osgi-helloworld-webapp/pom.xml
index f0d2491580f..172dc08de0a 100644
--- a/examples/osgi-helloworld-webapp/pom.xml
+++ b/examples/osgi-helloworld-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/war-bundle/pom.xml b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
index e0f3805fca6..24f518f1158 100644
--- a/examples/osgi-helloworld-webapp/war-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/pom.xml b/examples/pom.xml
index 2135a4c7b9e..70cf1629ce4 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
diff --git a/examples/reload/pom.xml b/examples/reload/pom.xml
index 9bfd60c669f..27427604cf8 100644
--- a/examples/reload/pom.xml
+++ b/examples/reload/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
reload
diff --git a/examples/rx-client-webapp/pom.xml b/examples/rx-client-webapp/pom.xml
index d27412381d5..f009bf06fcc 100644
--- a/examples/rx-client-webapp/pom.xml
+++ b/examples/rx-client-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
rx-client-webapp
diff --git a/examples/server-async-managed/pom.xml b/examples/server-async-managed/pom.xml
index 059d85ab2c5..a32dbf4aefb 100644
--- a/examples/server-async-managed/pom.xml
+++ b/examples/server-async-managed/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
server-async-managed
diff --git a/examples/server-async-standalone/client/pom.xml b/examples/server-async-standalone/client/pom.xml
index 7c3b067f320..19447beabda 100644
--- a/examples/server-async-standalone/client/pom.xml
+++ b/examples/server-async-standalone/client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.0.7
+ 3.0.99-SNAPSHOT
server-async-standalone-client
diff --git a/examples/server-async-standalone/pom.xml b/examples/server-async-standalone/pom.xml
index 6a1939529cd..8b857fcc79f 100644
--- a/examples/server-async-standalone/pom.xml
+++ b/examples/server-async-standalone/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
server-async-standalone
diff --git a/examples/server-async-standalone/webapp/pom.xml b/examples/server-async-standalone/webapp/pom.xml
index b64da0c13e6..251316e440c 100644
--- a/examples/server-async-standalone/webapp/pom.xml
+++ b/examples/server-async-standalone/webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.0.7
+ 3.0.99-SNAPSHOT
server-async-standalone-webapp
diff --git a/examples/server-async/pom.xml b/examples/server-async/pom.xml
index 370215308d7..cdabf47a283 100644
--- a/examples/server-async/pom.xml
+++ b/examples/server-async/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
server-async
diff --git a/examples/server-sent-events-jaxrs/pom.xml b/examples/server-sent-events-jaxrs/pom.xml
index 8c9d9106509..45f264ad4a8 100644
--- a/examples/server-sent-events-jaxrs/pom.xml
+++ b/examples/server-sent-events-jaxrs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
server-sent-events-jaxrs
diff --git a/examples/server-sent-events-jersey/pom.xml b/examples/server-sent-events-jersey/pom.xml
index 5dfbbd8a356..af941b73b10 100644
--- a/examples/server-sent-events-jersey/pom.xml
+++ b/examples/server-sent-events-jersey/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
server-sent-events-jersey
diff --git a/examples/servlet3-webapp/pom.xml b/examples/servlet3-webapp/pom.xml
index 32f73bef22b..3c74fe0351e 100644
--- a/examples/servlet3-webapp/pom.xml
+++ b/examples/servlet3-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet3-webapp
diff --git a/examples/simple-console/pom.xml b/examples/simple-console/pom.xml
index 362fa248377..ce9ef1d032e 100644
--- a/examples/simple-console/pom.xml
+++ b/examples/simple-console/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
simple-console
diff --git a/examples/sse-item-store-jaxrs-webapp/pom.xml b/examples/sse-item-store-jaxrs-webapp/pom.xml
index 475f2fd5b38..e65c1f505c5 100644
--- a/examples/sse-item-store-jaxrs-webapp/pom.xml
+++ b/examples/sse-item-store-jaxrs-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
sse-item-store-jaxrs-webapp
diff --git a/examples/sse-item-store-jersey-webapp/pom.xml b/examples/sse-item-store-jersey-webapp/pom.xml
index 2467304f8e7..a57656dcdcf 100644
--- a/examples/sse-item-store-jersey-webapp/pom.xml
+++ b/examples/sse-item-store-jersey-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.7
+ 3.0.99-SNAPSHOT
sse-item-store-jersey-webapp
diff --git a/examples/sse-twitter-aggregator/pom.xml b/examples/sse-twitter-aggregator/pom.xml
index f1221dc88cc..6adf1a8b45a 100644
--- a/examples/sse-twitter-aggregator/pom.xml
+++ b/examples/sse-twitter-aggregator/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
sse-twitter-aggregator
diff --git a/examples/system-properties-example/pom.xml b/examples/system-properties-example/pom.xml
index 0e9fef5a47f..4f351e4a5e9 100644
--- a/examples/system-properties-example/pom.xml
+++ b/examples/system-properties-example/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
system-properties-example
diff --git a/examples/webapp-example-parent/pom.xml b/examples/webapp-example-parent/pom.xml
index 7bcd9289f4b..536e978b3aa 100644
--- a/examples/webapp-example-parent/pom.xml
+++ b/examples/webapp-example-parent/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
webapp-example-parent
diff --git a/examples/xml-moxy/pom.xml b/examples/xml-moxy/pom.xml
index 496ccadf64e..814bbd71a43 100644
--- a/examples/xml-moxy/pom.xml
+++ b/examples/xml-moxy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.7
+ 3.0.99-SNAPSHOT
xml-moxy
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index 312a3ff1625..980467e6c39 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-bean-validation
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index 575af58e617..24c6d471c34 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext.cdi
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
index 3bdc06ee412..ff5a5ce893e 100644
--- a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
+++ b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-cdi1x-ban-custom-hk2-binding
diff --git a/ext/cdi/jersey-cdi1x-servlet/pom.xml b/ext/cdi/jersey-cdi1x-servlet/pom.xml
index c481615c380..2342ea19e77 100644
--- a/ext/cdi/jersey-cdi1x-servlet/pom.xml
+++ b/ext/cdi/jersey-cdi1x-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-cdi1x-servlet
diff --git a/ext/cdi/jersey-cdi1x-transaction/pom.xml b/ext/cdi/jersey-cdi1x-transaction/pom.xml
index 0f76d024730..b882baaf4be 100644
--- a/ext/cdi/jersey-cdi1x-transaction/pom.xml
+++ b/ext/cdi/jersey-cdi1x-transaction/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-cdi1x-transaction
diff --git a/ext/cdi/jersey-cdi1x-validation/pom.xml b/ext/cdi/jersey-cdi1x-validation/pom.xml
index 2ee06decab7..7aba90ec63a 100644
--- a/ext/cdi/jersey-cdi1x-validation/pom.xml
+++ b/ext/cdi/jersey-cdi1x-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-cdi1x-validation
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index 790ce096476..f51b1b19ad2 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-cdi1x
diff --git a/ext/cdi/jersey-weld2-se/pom.xml b/ext/cdi/jersey-weld2-se/pom.xml
index 624099ce773..f8609bfa128 100644
--- a/ext/cdi/jersey-weld2-se/pom.xml
+++ b/ext/cdi/jersey-weld2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-weld2-se
diff --git a/ext/cdi/pom.xml b/ext/cdi/pom.xml
index 4444a724cf1..8653e97ef37 100644
--- a/ext/cdi/pom.xml
+++ b/ext/cdi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.ext.cdi
diff --git a/ext/entity-filtering/pom.xml b/ext/entity-filtering/pom.xml
index 7a297d9f5ba..1f2613523bd 100644
--- a/ext/entity-filtering/pom.xml
+++ b/ext/entity-filtering/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-entity-filtering
diff --git a/ext/metainf-services/pom.xml b/ext/metainf-services/pom.xml
index 273721c3b1f..7b43b47227f 100644
--- a/ext/metainf-services/pom.xml
+++ b/ext/metainf-services/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-metainf-services
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index 8af5f4673c0..7a49dfc0556 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index fc5df2daf83..025f127bf73 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/ext/microprofile/pom.xml b/ext/microprofile/pom.xml
index ebac4edfb16..215ca3879af 100644
--- a/ext/microprofile/pom.xml
+++ b/ext/microprofile/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/ext/mvc-bean-validation/pom.xml b/ext/mvc-bean-validation/pom.xml
index 8f32add1613..c874d2fc713 100644
--- a/ext/mvc-bean-validation/pom.xml
+++ b/ext/mvc-bean-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-mvc-bean-validation
diff --git a/ext/mvc-freemarker/pom.xml b/ext/mvc-freemarker/pom.xml
index 93b3600f5e7..f2355c8498a 100644
--- a/ext/mvc-freemarker/pom.xml
+++ b/ext/mvc-freemarker/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-mvc-freemarker
diff --git a/ext/mvc-jsp/pom.xml b/ext/mvc-jsp/pom.xml
index c3151d1ab8e..1744cdf534b 100644
--- a/ext/mvc-jsp/pom.xml
+++ b/ext/mvc-jsp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-mvc-jsp
diff --git a/ext/mvc-mustache/pom.xml b/ext/mvc-mustache/pom.xml
index 5d3acd86777..3a63b8c7314 100644
--- a/ext/mvc-mustache/pom.xml
+++ b/ext/mvc-mustache/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-mvc-mustache
diff --git a/ext/mvc/pom.xml b/ext/mvc/pom.xml
index 7db19c4dbb2..58d93f51235 100644
--- a/ext/mvc/pom.xml
+++ b/ext/mvc/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-mvc
diff --git a/ext/pom.xml b/ext/pom.xml
index 32186dd0c32..93e409d4782 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.ext
diff --git a/ext/proxy-client/pom.xml b/ext/proxy-client/pom.xml
index 8edf6da7478..4bf1460f805 100644
--- a/ext/proxy-client/pom.xml
+++ b/ext/proxy-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-proxy-client
diff --git a/ext/rx/pom.xml b/ext/rx/pom.xml
index 0c1a6241c9c..1a4de9a61da 100644
--- a/ext/rx/pom.xml
+++ b/ext/rx/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.ext.rx
diff --git a/ext/rx/rx-client-guava/pom.xml b/ext/rx/rx-client-guava/pom.xml
index b6e22edfdaf..b3f1087ff09 100644
--- a/ext/rx/rx-client-guava/pom.xml
+++ b/ext/rx/rx-client-guava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-rx-client-guava
diff --git a/ext/rx/rx-client-rxjava/pom.xml b/ext/rx/rx-client-rxjava/pom.xml
index 0cb457d9a5d..728bc60d75b 100644
--- a/ext/rx/rx-client-rxjava/pom.xml
+++ b/ext/rx/rx-client-rxjava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-rx-client-rxjava
diff --git a/ext/rx/rx-client-rxjava2/pom.xml b/ext/rx/rx-client-rxjava2/pom.xml
index 954b796f1b0..cf705933dda 100644
--- a/ext/rx/rx-client-rxjava2/pom.xml
+++ b/ext/rx/rx-client-rxjava2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-rx-client-rxjava2
diff --git a/ext/spring6/pom.xml b/ext/spring6/pom.xml
index 4fe1bc2d145..e6d718797d4 100644
--- a/ext/spring6/pom.xml
+++ b/ext/spring6/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-spring6
diff --git a/ext/wadl-doclet/pom.xml b/ext/wadl-doclet/pom.xml
index c190fdfe36e..47a11c2211f 100644
--- a/ext/wadl-doclet/pom.xml
+++ b/ext/wadl-doclet/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
jersey-wadl-doclet
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index b32fb743ab7..b36d1dabce6 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-cdi-inject-weld
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index 1dbd105597e..97d9d54da78 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.ext
diff --git a/incubator/gae-integration/pom.xml b/incubator/gae-integration/pom.xml
index 3e72d979598..28971e56816 100644
--- a/incubator/gae-integration/pom.xml
+++ b/incubator/gae-integration/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-gae-integration
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index 940603f0c48..2ad845b8e8a 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.media
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index f20faabf6b3..3911bf84fba 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.media
diff --git a/incubator/open-tracing/pom.xml b/incubator/open-tracing/pom.xml
index 44b0ed7c356..7994cab4090 100644
--- a/incubator/open-tracing/pom.xml
+++ b/incubator/open-tracing/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.incubator
diff --git a/incubator/pom.xml b/incubator/pom.xml
index 1a1309fefaa..e82e47b7eee 100644
--- a/incubator/pom.xml
+++ b/incubator/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.incubator
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index 878566b549a..f740a9ca265 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-cdi2-se
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index 5b353b6f98e..c3c8b94b971 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-hk2
diff --git a/inject/pom.xml b/inject/pom.xml
index 5f9300526a3..b43c0e318dd 100644
--- a/inject/pom.xml
+++ b/inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.inject
diff --git a/media/jaxb/pom.xml b/media/jaxb/pom.xml
index 522fbc0afbf..48560070e22 100644
--- a/media/jaxb/pom.xml
+++ b/media/jaxb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-media-jaxb
diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
index cc81d575910..f09590fecfb 100644
--- a/media/json-binding/pom.xml
+++ b/media/json-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-media-json-binding
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index e3c0577cc65..e57899b9dac 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-media-json-gson
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index 7f85d02dbca..a0eb3bdeb6e 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-media-json-jackson
diff --git a/media/json-jettison/pom.xml b/media/json-jettison/pom.xml
index 89900bf7aea..0efb1070056 100644
--- a/media/json-jettison/pom.xml
+++ b/media/json-jettison/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-media-json-jettison
diff --git a/media/json-processing/pom.xml b/media/json-processing/pom.xml
index a4cbc137666..9f884eedfba 100644
--- a/media/json-processing/pom.xml
+++ b/media/json-processing/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-media-json-processing
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index 2f9242d85a8..d1db2b3280b 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-media-moxy
diff --git a/media/multipart/pom.xml b/media/multipart/pom.xml
index dd457eea290..945e5d87620 100644
--- a/media/multipart/pom.xml
+++ b/media/multipart/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-media-multipart
diff --git a/media/pom.xml b/media/pom.xml
index ded533b160e..72a5ef66418 100644
--- a/media/pom.xml
+++ b/media/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.media
diff --git a/media/sse/pom.xml b/media/sse/pom.xml
index 415d35357fb..812e7a6370d 100644
--- a/media/sse/pom.xml
+++ b/media/sse/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-media-sse
diff --git a/pom.xml b/pom.xml
index 8bb3928a911..4a589483137 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
org.glassfish.jersey
project
pom
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey
Eclipse Jersey is the open source (under dual EPL+GPL license) Jakarta RESTful WebServices 3.0
diff --git a/security/oauth1-client/pom.xml b/security/oauth1-client/pom.xml
index 5168719a466..bf765dc1ca2 100644
--- a/security/oauth1-client/pom.xml
+++ b/security/oauth1-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.security
project
- 3.0.7
+ 3.0.99-SNAPSHOT
oauth1-client
diff --git a/security/oauth1-server/pom.xml b/security/oauth1-server/pom.xml
index 1c4637e9193..86b14091918 100644
--- a/security/oauth1-server/pom.xml
+++ b/security/oauth1-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.security
project
- 3.0.7
+ 3.0.99-SNAPSHOT
oauth1-server
diff --git a/security/oauth1-signature/pom.xml b/security/oauth1-signature/pom.xml
index 272c09228b9..b1daa8b93f7 100644
--- a/security/oauth1-signature/pom.xml
+++ b/security/oauth1-signature/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/security/oauth2-client/pom.xml b/security/oauth2-client/pom.xml
index ffb2bdbd14b..920e17f2088 100644
--- a/security/oauth2-client/pom.xml
+++ b/security/oauth2-client/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/security/pom.xml b/security/pom.xml
index 8f1613ed31b..a798df20da5 100644
--- a/security/pom.xml
+++ b/security/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.security
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index a2dc7ecbc5f..36b26335fd0 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-test-framework-core
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index e25581aa99f..32d86a40eb5 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.0.7
+ 3.0.99-SNAPSHOT
container-runner-maven-plugin
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index df214566728..c690eef5731 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.0.7
+ 3.0.99-SNAPSHOT
custom-enforcer-rules
diff --git a/test-framework/maven/pom.xml b/test-framework/maven/pom.xml
index 98c02fecae6..84d353b880a 100644
--- a/test-framework/maven/pom.xml
+++ b/test-framework/maven/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.test-framework.maven
diff --git a/test-framework/memleak-test-common/pom.xml b/test-framework/memleak-test-common/pom.xml
index a6600e90fc6..a9b8f3d74b4 100644
--- a/test-framework/memleak-test-common/pom.xml
+++ b/test-framework/memleak-test-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.7
+ 3.0.99-SNAPSHOT
memleak-test-common
diff --git a/test-framework/pom.xml b/test-framework/pom.xml
index 68ababfb21c..eadee509eca 100644
--- a/test-framework/pom.xml
+++ b/test-framework/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.test-framework
diff --git a/test-framework/providers/bundle/pom.xml b/test-framework/providers/bundle/pom.xml
index 81ebffe17a6..adc29afeea3 100644
--- a/test-framework/providers/bundle/pom.xml
+++ b/test-framework/providers/bundle/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-bundle
diff --git a/test-framework/providers/external/pom.xml b/test-framework/providers/external/pom.xml
index 0c0c8a3303c..11cddbc864b 100644
--- a/test-framework/providers/external/pom.xml
+++ b/test-framework/providers/external/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-external
diff --git a/test-framework/providers/grizzly2/pom.xml b/test-framework/providers/grizzly2/pom.xml
index ed7bbef7ec9..8b27f3a7d44 100644
--- a/test-framework/providers/grizzly2/pom.xml
+++ b/test-framework/providers/grizzly2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-grizzly2
diff --git a/test-framework/providers/inmemory/pom.xml b/test-framework/providers/inmemory/pom.xml
index f552ffe2bb2..a7fb228a465 100644
--- a/test-framework/providers/inmemory/pom.xml
+++ b/test-framework/providers/inmemory/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-inmemory
diff --git a/test-framework/providers/jdk-http/pom.xml b/test-framework/providers/jdk-http/pom.xml
index f6f1c696977..3876be43783 100644
--- a/test-framework/providers/jdk-http/pom.xml
+++ b/test-framework/providers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-jdk-http
diff --git a/test-framework/providers/jetty/pom.xml b/test-framework/providers/jetty/pom.xml
index eefdda81df3..7b20b609012 100644
--- a/test-framework/providers/jetty/pom.xml
+++ b/test-framework/providers/jetty/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/test-framework/providers/netty/pom.xml b/test-framework/providers/netty/pom.xml
index e4ea8e1a0ab..38e56c787ab 100644
--- a/test-framework/providers/netty/pom.xml
+++ b/test-framework/providers/netty/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-netty
diff --git a/test-framework/providers/pom.xml b/test-framework/providers/pom.xml
index db2002aa7f4..0da4a34cbc3 100644
--- a/test-framework/providers/pom.xml
+++ b/test-framework/providers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.test-framework.providers
diff --git a/test-framework/providers/simple/pom.xml b/test-framework/providers/simple/pom.xml
index cfa2a7f5d48..649b652dc91 100644
--- a/test-framework/providers/simple/pom.xml
+++ b/test-framework/providers/simple/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/test-framework/util/pom.xml b/test-framework/util/pom.xml
index 64f6c09b91e..569ab3e5c48 100644
--- a/test-framework/util/pom.xml
+++ b/test-framework/util/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-test-framework-util
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index f0bfb565451..10c79d4f6ea 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.7
+ 3.0.99-SNAPSHOT
e2e-client
diff --git a/tests/e2e-core-common/pom.xml b/tests/e2e-core-common/pom.xml
index 84904f3f344..0c97c1f4860 100644
--- a/tests/e2e-core-common/pom.xml
+++ b/tests/e2e-core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.7
+ 3.0.99-SNAPSHOT
e2e-core-common
diff --git a/tests/e2e-entity/pom.xml b/tests/e2e-entity/pom.xml
index e9b0a4e49eb..3c654b538af 100644
--- a/tests/e2e-entity/pom.xml
+++ b/tests/e2e-entity/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.7
+ 3.0.99-SNAPSHOT
e2e-entity
diff --git a/tests/e2e-inject/cdi-inject-weld/pom.xml b/tests/e2e-inject/cdi-inject-weld/pom.xml
index 6b469a5a84e..37f6c7665e9 100644
--- a/tests/e2e-inject/cdi-inject-weld/pom.xml
+++ b/tests/e2e-inject/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.0.7
+ 3.0.99-SNAPSHOT
e2e-inject-cdi-inject-weld
diff --git a/tests/e2e-inject/cdi2-se/pom.xml b/tests/e2e-inject/cdi2-se/pom.xml
index f2c24364004..578e6e9b236 100644
--- a/tests/e2e-inject/cdi2-se/pom.xml
+++ b/tests/e2e-inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.0.7
+ 3.0.99-SNAPSHOT
e2e-inject-cdi2-se
diff --git a/tests/e2e-inject/hk2/pom.xml b/tests/e2e-inject/hk2/pom.xml
index 5a3f9c1efe0..cf8d651a844 100644
--- a/tests/e2e-inject/hk2/pom.xml
+++ b/tests/e2e-inject/hk2/pom.xml
@@ -23,7 +23,7 @@
e2e-inject
org.glassfish.jersey.tests
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/e2e-inject/pom.xml b/tests/e2e-inject/pom.xml
index c31a0935889..a6dcfeb1dff 100644
--- a/tests/e2e-inject/pom.xml
+++ b/tests/e2e-inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.7
+ 3.0.99-SNAPSHOT
e2e-inject
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index 9e5a081e85b..b82ce78e42d 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.7
+ 3.0.99-SNAPSHOT
e2e-server
diff --git a/tests/e2e-testng/pom.xml b/tests/e2e-testng/pom.xml
index bcc8aef6e62..8e137eecb59 100644
--- a/tests/e2e-testng/pom.xml
+++ b/tests/e2e-testng/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.0.7
+ 3.0.99-SNAPSHOT
e2e-testng
diff --git a/tests/e2e/pom.xml b/tests/e2e/pom.xml
index 8f11cf6c943..da8b8d8a2ce 100644
--- a/tests/e2e/pom.xml
+++ b/tests/e2e/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.7
+ 3.0.99-SNAPSHOT
e2e
diff --git a/tests/integration/asm/pom.xml b/tests/integration/asm/pom.xml
index 3573d14996f..31000df913a 100644
--- a/tests/integration/asm/pom.xml
+++ b/tests/integration/asm/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/async-jersey-filter/pom.xml b/tests/integration/async-jersey-filter/pom.xml
index 95955129f4a..b258b0ab0ef 100644
--- a/tests/integration/async-jersey-filter/pom.xml
+++ b/tests/integration/async-jersey-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
async-jersey-filter
diff --git a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
index cd2bf6898a7..dcbcb126a7c 100644
--- a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-beanvalidation-webapp
diff --git a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
index 2e0698c3ebc..fbcc5e486c8 100644
--- a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-client-on-server
diff --git a/tests/integration/cdi-integration/cdi-client/pom.xml b/tests/integration/cdi-integration/cdi-client/pom.xml
index 8283cb742fc..06b90f8c034 100644
--- a/tests/integration/cdi-integration/cdi-client/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-client
diff --git a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
index 2a75f8e471d..1281b55d74d 100644
--- a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-ejb-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
index 0a6546cc830..0e5399985b1 100644
--- a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-iface-with-non-jaxrs-impl-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-log-check/pom.xml b/tests/integration/cdi-integration/cdi-log-check/pom.xml
index 12f50d87bd2..e67c62e364e 100644
--- a/tests/integration/cdi-integration/cdi-log-check/pom.xml
+++ b/tests/integration/cdi-integration/cdi-log-check/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-log-check
diff --git a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
index 51562708bd6..3dee33d65f0 100644
--- a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
+++ b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
index 74adf795bf4..676d3c5a3f5 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
index a67513951eb..2cb280fefde 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
index a3e1c208f06..a2432f470ce 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-multimodule
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
index c9ae8986795..18ec2873880 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
index 13a9ccc1dc0..421a999f06d 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
index 4a7569da4f2..39156de90b3 100644
--- a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-multipart-webapp
diff --git a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
index 1bae6617558..dd515d77fd0 100644
--- a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
+++ b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-singleton/pom.xml b/tests/integration/cdi-integration/cdi-singleton/pom.xml
index 69ee8d0dda0..ad33e450d7f 100644
--- a/tests/integration/cdi-integration/cdi-singleton/pom.xml
+++ b/tests/integration/cdi-integration/cdi-singleton/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
index f6f36f14756..03ca8b022ae 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
index 6ddefffab6f..722e892c7a2 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-with-jersey-injection-custom-cfg-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
index 451e2254d4a..acf68dab964 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-with-jersey-injection-custom-hk2-banned-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
index ef9d6316584..83084c2d2c0 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
cdi-with-jersey-injection-webapp
diff --git a/tests/integration/cdi-integration/context-inject-on-server/pom.xml b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
index 250e74bac30..8391b2c5362 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/pom.xml
+++ b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.7
+ 3.0.99-SNAPSHOT
context-inject-on-server
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index 0aa340016b5..dc9172c49dd 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/client-connector-provider/pom.xml b/tests/integration/client-connector-provider/pom.xml
index 01c5cab25b4..d2d838fee79 100644
--- a/tests/integration/client-connector-provider/pom.xml
+++ b/tests/integration/client-connector-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
client-connector-provider
diff --git a/tests/integration/ejb-multimodule-reload/ear/pom.xml b/tests/integration/ejb-multimodule-reload/ear/pom.xml
index 582d3866f27..fe527f5e5f8 100644
--- a/tests/integration/ejb-multimodule-reload/ear/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/lib/pom.xml b/tests/integration/ejb-multimodule-reload/lib/pom.xml
index 2f01d808331..3bef14eb4c8 100644
--- a/tests/integration/ejb-multimodule-reload/lib/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/pom.xml b/tests/integration/ejb-multimodule-reload/pom.xml
index dd27ebc5b87..c041b5a5450 100644
--- a/tests/integration/ejb-multimodule-reload/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
ejb-multimodule-reload
diff --git a/tests/integration/ejb-multimodule-reload/war1/pom.xml b/tests/integration/ejb-multimodule-reload/war1/pom.xml
index 12991188dda..5fda3a23e04 100644
--- a/tests/integration/ejb-multimodule-reload/war1/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/war2/pom.xml b/tests/integration/ejb-multimodule-reload/war2/pom.xml
index 6849102b912..f3f7de908b7 100644
--- a/tests/integration/ejb-multimodule-reload/war2/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/ear/pom.xml b/tests/integration/ejb-multimodule/ear/pom.xml
index f5adf8b27b4..9d60c5d2fc7 100644
--- a/tests/integration/ejb-multimodule/ear/pom.xml
+++ b/tests/integration/ejb-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/lib/pom.xml b/tests/integration/ejb-multimodule/lib/pom.xml
index 1ef85ca2aef..9b583c2d5e4 100644
--- a/tests/integration/ejb-multimodule/lib/pom.xml
+++ b/tests/integration/ejb-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/pom.xml b/tests/integration/ejb-multimodule/pom.xml
index c0359c2151f..d1527cd4530 100644
--- a/tests/integration/ejb-multimodule/pom.xml
+++ b/tests/integration/ejb-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
ejb-multimodule
diff --git a/tests/integration/ejb-multimodule/war/pom.xml b/tests/integration/ejb-multimodule/war/pom.xml
index 9d65622705f..0fb17710ad5 100644
--- a/tests/integration/ejb-multimodule/war/pom.xml
+++ b/tests/integration/ejb-multimodule/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-test-webapp/pom.xml b/tests/integration/ejb-test-webapp/pom.xml
index c3d0e84adef..0791de9bd8b 100644
--- a/tests/integration/ejb-test-webapp/pom.xml
+++ b/tests/integration/ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
ejb-test-webapp
diff --git a/tests/integration/externalproperties/pom.xml b/tests/integration/externalproperties/pom.xml
index 6d6e8280ebb..91ff812f485 100644
--- a/tests/integration/externalproperties/pom.xml
+++ b/tests/integration/externalproperties/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
externalproperties
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index 267ba935dbf..bdc4ce0065e 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
j-376
diff --git a/tests/integration/j-441/ear/pom.xml b/tests/integration/j-441/ear/pom.xml
index 783af64500f..37d2588c5a7 100644
--- a/tests/integration/j-441/ear/pom.xml
+++ b/tests/integration/j-441/ear/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
j-441-ear
diff --git a/tests/integration/j-441/pom.xml b/tests/integration/j-441/pom.xml
index 3268679dd72..34bce1499dc 100644
--- a/tests/integration/j-441/pom.xml
+++ b/tests/integration/j-441/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
j-441
diff --git a/tests/integration/j-441/war1/pom.xml b/tests/integration/j-441/war1/pom.xml
index ba47d81afce..e35999a4cf6 100644
--- a/tests/integration/j-441/war1/pom.xml
+++ b/tests/integration/j-441/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-441/war2/pom.xml b/tests/integration/j-441/war2/pom.xml
index 614e3d06227..a5a887eb45b 100644
--- a/tests/integration/j-441/war2/pom.xml
+++ b/tests/integration/j-441/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/ear/pom.xml b/tests/integration/j-59/ear/pom.xml
index 503303af24e..8eeeaa442a8 100644
--- a/tests/integration/j-59/ear/pom.xml
+++ b/tests/integration/j-59/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/lib/pom.xml b/tests/integration/j-59/lib/pom.xml
index 4e00c8f88db..3f74aa4a5b5 100644
--- a/tests/integration/j-59/lib/pom.xml
+++ b/tests/integration/j-59/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/pom.xml b/tests/integration/j-59/pom.xml
index 2809ae2c973..dc2dd9be86a 100644
--- a/tests/integration/j-59/pom.xml
+++ b/tests/integration/j-59/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
j-59
diff --git a/tests/integration/j-59/war/pom.xml b/tests/integration/j-59/war/pom.xml
index 6eebdbafab1..145ab55c00e 100644
--- a/tests/integration/j-59/war/pom.xml
+++ b/tests/integration/j-59/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/jaxrs-component-inject/pom.xml b/tests/integration/jaxrs-component-inject/pom.xml
index 4ab6d185b74..5ad88a24815 100644
--- a/tests/integration/jaxrs-component-inject/pom.xml
+++ b/tests/integration/jaxrs-component-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jaxrs-component-inject
diff --git a/tests/integration/jersey-1107/pom.xml b/tests/integration/jersey-1107/pom.xml
index fcbd4668145..0454541101e 100644
--- a/tests/integration/jersey-1107/pom.xml
+++ b/tests/integration/jersey-1107/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-1107
diff --git a/tests/integration/jersey-1223/pom.xml b/tests/integration/jersey-1223/pom.xml
index 93ff617befb..77c48ae2a9a 100644
--- a/tests/integration/jersey-1223/pom.xml
+++ b/tests/integration/jersey-1223/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
jersey-1223
diff --git a/tests/integration/jersey-1604/pom.xml b/tests/integration/jersey-1604/pom.xml
index 9f0a5f75df1..c35da56feec 100644
--- a/tests/integration/jersey-1604/pom.xml
+++ b/tests/integration/jersey-1604/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
jersey-1604
diff --git a/tests/integration/jersey-1667/pom.xml b/tests/integration/jersey-1667/pom.xml
index edb58115507..917e178bd1f 100644
--- a/tests/integration/jersey-1667/pom.xml
+++ b/tests/integration/jersey-1667/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-1667
diff --git a/tests/integration/jersey-1883/pom.xml b/tests/integration/jersey-1883/pom.xml
index de7f34e1392..4e483050991 100644
--- a/tests/integration/jersey-1883/pom.xml
+++ b/tests/integration/jersey-1883/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-1883
diff --git a/tests/integration/jersey-1928/pom.xml b/tests/integration/jersey-1928/pom.xml
index e7ff553aebe..d532fc19935 100644
--- a/tests/integration/jersey-1928/pom.xml
+++ b/tests/integration/jersey-1928/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
jersey-1928
diff --git a/tests/integration/jersey-1960/pom.xml b/tests/integration/jersey-1960/pom.xml
index 054dfc869cd..0b73e155804 100644
--- a/tests/integration/jersey-1960/pom.xml
+++ b/tests/integration/jersey-1960/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-1960
diff --git a/tests/integration/jersey-1964/pom.xml b/tests/integration/jersey-1964/pom.xml
index e43a9e9fcf3..d62a7dfa750 100644
--- a/tests/integration/jersey-1964/pom.xml
+++ b/tests/integration/jersey-1964/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-1964
diff --git a/tests/integration/jersey-2031/pom.xml b/tests/integration/jersey-2031/pom.xml
index 6f75e824477..61fb008e544 100644
--- a/tests/integration/jersey-2031/pom.xml
+++ b/tests/integration/jersey-2031/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2031
diff --git a/tests/integration/jersey-2136/pom.xml b/tests/integration/jersey-2136/pom.xml
index 16dcf84db43..5c81daa8d40 100644
--- a/tests/integration/jersey-2136/pom.xml
+++ b/tests/integration/jersey-2136/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2136
diff --git a/tests/integration/jersey-2137/pom.xml b/tests/integration/jersey-2137/pom.xml
index ff1d1c3bd22..0522ff4f670 100644
--- a/tests/integration/jersey-2137/pom.xml
+++ b/tests/integration/jersey-2137/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2137
diff --git a/tests/integration/jersey-2154/pom.xml b/tests/integration/jersey-2154/pom.xml
index 9af20bdb324..6453678cb32 100644
--- a/tests/integration/jersey-2154/pom.xml
+++ b/tests/integration/jersey-2154/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2154
diff --git a/tests/integration/jersey-2160/pom.xml b/tests/integration/jersey-2160/pom.xml
index 8165a9dec5a..bd327294468 100644
--- a/tests/integration/jersey-2160/pom.xml
+++ b/tests/integration/jersey-2160/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2160
diff --git a/tests/integration/jersey-2164/pom.xml b/tests/integration/jersey-2164/pom.xml
index 0429a21944d..e333ee33b00 100644
--- a/tests/integration/jersey-2164/pom.xml
+++ b/tests/integration/jersey-2164/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2164
diff --git a/tests/integration/jersey-2167/pom.xml b/tests/integration/jersey-2167/pom.xml
index 9ddd250a12e..4bef57f7467 100644
--- a/tests/integration/jersey-2167/pom.xml
+++ b/tests/integration/jersey-2167/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2167
diff --git a/tests/integration/jersey-2176/pom.xml b/tests/integration/jersey-2176/pom.xml
index 79d80a4915f..e69b33dc154 100644
--- a/tests/integration/jersey-2176/pom.xml
+++ b/tests/integration/jersey-2176/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2176
diff --git a/tests/integration/jersey-2184/pom.xml b/tests/integration/jersey-2184/pom.xml
index 9c2b690e9cb..67394390a58 100644
--- a/tests/integration/jersey-2184/pom.xml
+++ b/tests/integration/jersey-2184/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2184
diff --git a/tests/integration/jersey-2255/pom.xml b/tests/integration/jersey-2255/pom.xml
index a640b118835..864bbda5782 100644
--- a/tests/integration/jersey-2255/pom.xml
+++ b/tests/integration/jersey-2255/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2255
diff --git a/tests/integration/jersey-2322/pom.xml b/tests/integration/jersey-2322/pom.xml
index c6ed03012e3..5acef07879d 100644
--- a/tests/integration/jersey-2322/pom.xml
+++ b/tests/integration/jersey-2322/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2322
diff --git a/tests/integration/jersey-2335/pom.xml b/tests/integration/jersey-2335/pom.xml
index ee56121d86c..ae251628aaa 100644
--- a/tests/integration/jersey-2335/pom.xml
+++ b/tests/integration/jersey-2335/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2335
diff --git a/tests/integration/jersey-2421/pom.xml b/tests/integration/jersey-2421/pom.xml
index feaa3e0837e..57272ef5469 100644
--- a/tests/integration/jersey-2421/pom.xml
+++ b/tests/integration/jersey-2421/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2421
diff --git a/tests/integration/jersey-2551/pom.xml b/tests/integration/jersey-2551/pom.xml
index ac12142335c..4b3ed85e792 100644
--- a/tests/integration/jersey-2551/pom.xml
+++ b/tests/integration/jersey-2551/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2551
diff --git a/tests/integration/jersey-2612/pom.xml b/tests/integration/jersey-2612/pom.xml
index 88fc3d326c7..cc4ba0cb4ce 100644
--- a/tests/integration/jersey-2612/pom.xml
+++ b/tests/integration/jersey-2612/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2612
diff --git a/tests/integration/jersey-2637/pom.xml b/tests/integration/jersey-2637/pom.xml
index ce6a71710df..7b89b885415 100644
--- a/tests/integration/jersey-2637/pom.xml
+++ b/tests/integration/jersey-2637/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2637
diff --git a/tests/integration/jersey-2654/pom.xml b/tests/integration/jersey-2654/pom.xml
index e848c38b05f..5a8ce536f94 100644
--- a/tests/integration/jersey-2654/pom.xml
+++ b/tests/integration/jersey-2654/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2654
diff --git a/tests/integration/jersey-2673/pom.xml b/tests/integration/jersey-2673/pom.xml
index a6908e582ee..a09059f698f 100644
--- a/tests/integration/jersey-2673/pom.xml
+++ b/tests/integration/jersey-2673/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2673
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index 9799118c558..5a73166f846 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2689
diff --git a/tests/integration/jersey-2704/pom.xml b/tests/integration/jersey-2704/pom.xml
index 84c53426192..3356c790a61 100644
--- a/tests/integration/jersey-2704/pom.xml
+++ b/tests/integration/jersey-2704/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2704
diff --git a/tests/integration/jersey-2776/pom.xml b/tests/integration/jersey-2776/pom.xml
index 0cc412c2836..3a8f6045da8 100644
--- a/tests/integration/jersey-2776/pom.xml
+++ b/tests/integration/jersey-2776/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2776
diff --git a/tests/integration/jersey-2794/pom.xml b/tests/integration/jersey-2794/pom.xml
index d7a9f15874e..f5e47fda936 100644
--- a/tests/integration/jersey-2794/pom.xml
+++ b/tests/integration/jersey-2794/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2794
diff --git a/tests/integration/jersey-2846/pom.xml b/tests/integration/jersey-2846/pom.xml
index a483614fde7..4f4bb9e1766 100644
--- a/tests/integration/jersey-2846/pom.xml
+++ b/tests/integration/jersey-2846/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2846
diff --git a/tests/integration/jersey-2878/pom.xml b/tests/integration/jersey-2878/pom.xml
index ab9d7c580f3..1fba3f01eb5 100644
--- a/tests/integration/jersey-2878/pom.xml
+++ b/tests/integration/jersey-2878/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2878
diff --git a/tests/integration/jersey-2892/pom.xml b/tests/integration/jersey-2892/pom.xml
index a91e07da830..a2c420f62ac 100644
--- a/tests/integration/jersey-2892/pom.xml
+++ b/tests/integration/jersey-2892/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-2892
diff --git a/tests/integration/jersey-3662/pom.xml b/tests/integration/jersey-3662/pom.xml
index c2d21d04b1e..ed7425b8f12 100644
--- a/tests/integration/jersey-3662/pom.xml
+++ b/tests/integration/jersey-3662/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-3670/pom.xml b/tests/integration/jersey-3670/pom.xml
index 9fb7da7fa92..2e23e7bd8e7 100644
--- a/tests/integration/jersey-3670/pom.xml
+++ b/tests/integration/jersey-3670/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-3670
diff --git a/tests/integration/jersey-3796/pom.xml b/tests/integration/jersey-3796/pom.xml
index 6050b34e12f..c555460dfbc 100644
--- a/tests/integration/jersey-3796/pom.xml
+++ b/tests/integration/jersey-3796/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-3796
diff --git a/tests/integration/jersey-3992/pom.xml b/tests/integration/jersey-3992/pom.xml
index e19d3c19386..3a91fa66675 100644
--- a/tests/integration/jersey-3992/pom.xml
+++ b/tests/integration/jersey-3992/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-3992
diff --git a/tests/integration/jersey-4003/pom.xml b/tests/integration/jersey-4003/pom.xml
index 1ea2ae76539..9c2c8be8cc6 100644
--- a/tests/integration/jersey-4003/pom.xml
+++ b/tests/integration/jersey-4003/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4099/pom.xml b/tests/integration/jersey-4099/pom.xml
index e154435289d..8a11821c4b0 100644
--- a/tests/integration/jersey-4099/pom.xml
+++ b/tests/integration/jersey-4099/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-4099
diff --git a/tests/integration/jersey-4321/pom.xml b/tests/integration/jersey-4321/pom.xml
index 41054ee65d7..108d29d8cec 100644
--- a/tests/integration/jersey-4321/pom.xml
+++ b/tests/integration/jersey-4321/pom.xml
@@ -24,7 +24,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4507/pom.xml b/tests/integration/jersey-4507/pom.xml
index f6f0b370224..7bd6c4267ba 100644
--- a/tests/integration/jersey-4507/pom.xml
+++ b/tests/integration/jersey-4507/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4542/pom.xml b/tests/integration/jersey-4542/pom.xml
index b1b014a5a4e..9a57421cee7 100644
--- a/tests/integration/jersey-4542/pom.xml
+++ b/tests/integration/jersey-4542/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4697/pom.xml b/tests/integration/jersey-4697/pom.xml
index c026496c63a..699cad95c6e 100644
--- a/tests/integration/jersey-4697/pom.xml
+++ b/tests/integration/jersey-4697/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4722/pom.xml b/tests/integration/jersey-4722/pom.xml
index 1fa5ea33ff7..9899424ec8e 100644
--- a/tests/integration/jersey-4722/pom.xml
+++ b/tests/integration/jersey-4722/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4949/pom.xml b/tests/integration/jersey-4949/pom.xml
index 0918ab40276..df426ac5bb9 100644
--- a/tests/integration/jersey-4949/pom.xml
+++ b/tests/integration/jersey-4949/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-4949
diff --git a/tests/integration/jersey-5087/pom.xml b/tests/integration/jersey-5087/pom.xml
index f6e5d3c9eff..7f97ce81595 100644
--- a/tests/integration/jersey-5087/pom.xml
+++ b/tests/integration/jersey-5087/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-780/pom.xml b/tests/integration/jersey-780/pom.xml
index 64b7feb6431..4fd6edba78f 100644
--- a/tests/integration/jersey-780/pom.xml
+++ b/tests/integration/jersey-780/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-780
diff --git a/tests/integration/microprofile/config/helidon/pom.xml b/tests/integration/microprofile/config/helidon/pom.xml
index 1ba5058b968..47bca4af4b4 100644
--- a/tests/integration/microprofile/config/helidon/pom.xml
+++ b/tests/integration/microprofile/config/helidon/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/config/pom.xml b/tests/integration/microprofile/config/pom.xml
index 63ef79329b1..3428dcce3f9 100644
--- a/tests/integration/microprofile/config/pom.xml
+++ b/tests/integration/microprofile/config/pom.xml
@@ -22,7 +22,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/microprofile/config/webapp/pom.xml b/tests/integration/microprofile/config/webapp/pom.xml
index 12c9f6a7cdf..ef82e1e77e1 100644
--- a/tests/integration/microprofile/config/webapp/pom.xml
+++ b/tests/integration/microprofile/config/webapp/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/pom.xml b/tests/integration/microprofile/pom.xml
index 00b3a0785e7..19e06d62bbb 100644
--- a/tests/integration/microprofile/pom.xml
+++ b/tests/integration/microprofile/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/microprofile/rest-client-tck/pom.xml b/tests/integration/microprofile/rest-client-tck/pom.xml
index 6791e4ad575..9e477b8bd89 100644
--- a/tests/integration/microprofile/rest-client-tck/pom.xml
+++ b/tests/integration/microprofile/rest-client-tck/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/rest-client/pom.xml b/tests/integration/microprofile/rest-client/pom.xml
index bcf61d1ca0c..20e608714f3 100644
--- a/tests/integration/microprofile/rest-client/pom.xml
+++ b/tests/integration/microprofile/rest-client/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index 21dc7038d2b..7313f12ce46 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.integration
diff --git a/tests/integration/property-check/pom.xml b/tests/integration/property-check/pom.xml
index d613003ed1f..f98c25cee90 100644
--- a/tests/integration/property-check/pom.xml
+++ b/tests/integration/property-check/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
property-check
diff --git a/tests/integration/reactive-streams/pom.xml b/tests/integration/reactive-streams/pom.xml
index 08160790ce6..cef7e0e93c6 100644
--- a/tests/integration/reactive-streams/pom.xml
+++ b/tests/integration/reactive-streams/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/reactive-streams/sse/pom.xml b/tests/integration/reactive-streams/sse/pom.xml
index ba57c3afb44..b6031de788e 100644
--- a/tests/integration/reactive-streams/sse/pom.xml
+++ b/tests/integration/reactive-streams/sse/pom.xml
@@ -22,7 +22,7 @@
reactive-streams-integration-project
org.glassfish.jersey.tests.integration.reactive
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/security-digest/pom.xml b/tests/integration/security-digest/pom.xml
index 50d29d09827..1c3d9390d63 100644
--- a/tests/integration/security-digest/pom.xml
+++ b/tests/integration/security-digest/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
security-digest
diff --git a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
index bf5bbfefff6..170ebdc6057 100644
--- a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-autodiscovery-1
diff --git a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
index 3880acab2bc..75d0d9d1692 100644
--- a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-autodiscovery-2
diff --git a/tests/integration/servlet-2.5-filter/pom.xml b/tests/integration/servlet-2.5-filter/pom.xml
index bfaf83db09b..f5bde77bdd3 100644
--- a/tests/integration/servlet-2.5-filter/pom.xml
+++ b/tests/integration/servlet-2.5-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-filter
diff --git a/tests/integration/servlet-2.5-inflector-1/pom.xml b/tests/integration/servlet-2.5-inflector-1/pom.xml
index 858711eee47..8881a1aa86b 100644
--- a/tests/integration/servlet-2.5-inflector-1/pom.xml
+++ b/tests/integration/servlet-2.5-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-inflector-1
diff --git a/tests/integration/servlet-2.5-init-1/pom.xml b/tests/integration/servlet-2.5-init-1/pom.xml
index 85ad4b36160..7f73fa2db7a 100644
--- a/tests/integration/servlet-2.5-init-1/pom.xml
+++ b/tests/integration/servlet-2.5-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-init-1
diff --git a/tests/integration/servlet-2.5-init-2/pom.xml b/tests/integration/servlet-2.5-init-2/pom.xml
index e2d5fe9d2fe..a38fb5ab30a 100644
--- a/tests/integration/servlet-2.5-init-2/pom.xml
+++ b/tests/integration/servlet-2.5-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-init-2
diff --git a/tests/integration/servlet-2.5-init-3/pom.xml b/tests/integration/servlet-2.5-init-3/pom.xml
index 60d9d6193aa..54ae9820807 100644
--- a/tests/integration/servlet-2.5-init-3/pom.xml
+++ b/tests/integration/servlet-2.5-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-init-3
diff --git a/tests/integration/servlet-2.5-init-4/pom.xml b/tests/integration/servlet-2.5-init-4/pom.xml
index 7cf8d550bdf..f46d5bc8f9c 100644
--- a/tests/integration/servlet-2.5-init-4/pom.xml
+++ b/tests/integration/servlet-2.5-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-init-4
diff --git a/tests/integration/servlet-2.5-init-5/pom.xml b/tests/integration/servlet-2.5-init-5/pom.xml
index 1020aa911e9..a2d1ae3058c 100644
--- a/tests/integration/servlet-2.5-init-5/pom.xml
+++ b/tests/integration/servlet-2.5-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-init-5
diff --git a/tests/integration/servlet-2.5-init-6/pom.xml b/tests/integration/servlet-2.5-init-6/pom.xml
index 46b99dcdcb9..437f9499271 100644
--- a/tests/integration/servlet-2.5-init-6/pom.xml
+++ b/tests/integration/servlet-2.5-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-init-6
diff --git a/tests/integration/servlet-2.5-init-7/pom.xml b/tests/integration/servlet-2.5-init-7/pom.xml
index 885a2090fd4..43dc4e1441c 100644
--- a/tests/integration/servlet-2.5-init-7/pom.xml
+++ b/tests/integration/servlet-2.5-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-init-7
diff --git a/tests/integration/servlet-2.5-init-8/pom.xml b/tests/integration/servlet-2.5-init-8/pom.xml
index 5c1761fe4d5..5c3c50febae 100644
--- a/tests/integration/servlet-2.5-init-8/pom.xml
+++ b/tests/integration/servlet-2.5-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-init-8
diff --git a/tests/integration/servlet-2.5-mvc-1/pom.xml b/tests/integration/servlet-2.5-mvc-1/pom.xml
index cb511155c7d..9e080fb8a05 100644
--- a/tests/integration/servlet-2.5-mvc-1/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-mvc-1
diff --git a/tests/integration/servlet-2.5-mvc-2/pom.xml b/tests/integration/servlet-2.5-mvc-2/pom.xml
index 2ddf66e54e8..6b99036dc71 100644
--- a/tests/integration/servlet-2.5-mvc-2/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-mvc-2
diff --git a/tests/integration/servlet-2.5-mvc-3/pom.xml b/tests/integration/servlet-2.5-mvc-3/pom.xml
index 25e51923feb..b9e12c58a3f 100644
--- a/tests/integration/servlet-2.5-mvc-3/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-mvc-3
diff --git a/tests/integration/servlet-2.5-reload/pom.xml b/tests/integration/servlet-2.5-reload/pom.xml
index ba560ffae0e..300e1eed8c3 100644
--- a/tests/integration/servlet-2.5-reload/pom.xml
+++ b/tests/integration/servlet-2.5-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-2.5-reload
diff --git a/tests/integration/servlet-3-async/pom.xml b/tests/integration/servlet-3-async/pom.xml
index 28d96586220..d305a505f17 100644
--- a/tests/integration/servlet-3-async/pom.xml
+++ b/tests/integration/servlet-3-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-async
diff --git a/tests/integration/servlet-3-chunked-io/pom.xml b/tests/integration/servlet-3-chunked-io/pom.xml
index 6300846408c..4ea9c0416a0 100644
--- a/tests/integration/servlet-3-chunked-io/pom.xml
+++ b/tests/integration/servlet-3-chunked-io/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-chunked-io
diff --git a/tests/integration/servlet-3-filter/pom.xml b/tests/integration/servlet-3-filter/pom.xml
index e52dd0c2105..99405a2a0e3 100644
--- a/tests/integration/servlet-3-filter/pom.xml
+++ b/tests/integration/servlet-3-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-filter
diff --git a/tests/integration/servlet-3-gf-async/pom.xml b/tests/integration/servlet-3-gf-async/pom.xml
index e72da4fd97a..448e9063629 100644
--- a/tests/integration/servlet-3-gf-async/pom.xml
+++ b/tests/integration/servlet-3-gf-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-gf-async
diff --git a/tests/integration/servlet-3-inflector-1/pom.xml b/tests/integration/servlet-3-inflector-1/pom.xml
index 6831ca126b1..b49c04d6443 100644
--- a/tests/integration/servlet-3-inflector-1/pom.xml
+++ b/tests/integration/servlet-3-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-inflector-1
diff --git a/tests/integration/servlet-3-init-1/pom.xml b/tests/integration/servlet-3-init-1/pom.xml
index a283de0e12e..3862f57778f 100644
--- a/tests/integration/servlet-3-init-1/pom.xml
+++ b/tests/integration/servlet-3-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-init-1
diff --git a/tests/integration/servlet-3-init-2/pom.xml b/tests/integration/servlet-3-init-2/pom.xml
index 2fcd05c0f12..66bbfaad717 100644
--- a/tests/integration/servlet-3-init-2/pom.xml
+++ b/tests/integration/servlet-3-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-init-2
diff --git a/tests/integration/servlet-3-init-3/pom.xml b/tests/integration/servlet-3-init-3/pom.xml
index 2a4a4572990..d81772b1c59 100644
--- a/tests/integration/servlet-3-init-3/pom.xml
+++ b/tests/integration/servlet-3-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-init-3
diff --git a/tests/integration/servlet-3-init-4/pom.xml b/tests/integration/servlet-3-init-4/pom.xml
index 0f4903c85e7..e2a8478d875 100644
--- a/tests/integration/servlet-3-init-4/pom.xml
+++ b/tests/integration/servlet-3-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-init-4
diff --git a/tests/integration/servlet-3-init-5/pom.xml b/tests/integration/servlet-3-init-5/pom.xml
index f6be0abcdbf..88ec528e7ef 100644
--- a/tests/integration/servlet-3-init-5/pom.xml
+++ b/tests/integration/servlet-3-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-init-5
diff --git a/tests/integration/servlet-3-init-6/pom.xml b/tests/integration/servlet-3-init-6/pom.xml
index 04cc9044606..b0591746687 100644
--- a/tests/integration/servlet-3-init-6/pom.xml
+++ b/tests/integration/servlet-3-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-init-6
diff --git a/tests/integration/servlet-3-init-7/pom.xml b/tests/integration/servlet-3-init-7/pom.xml
index ae39d30b6c7..39661f9bd26 100644
--- a/tests/integration/servlet-3-init-7/pom.xml
+++ b/tests/integration/servlet-3-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-init-7
diff --git a/tests/integration/servlet-3-init-8/pom.xml b/tests/integration/servlet-3-init-8/pom.xml
index e053957aa2e..9ab80e1f098 100644
--- a/tests/integration/servlet-3-init-8/pom.xml
+++ b/tests/integration/servlet-3-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-init-8
diff --git a/tests/integration/servlet-3-init-9/pom.xml b/tests/integration/servlet-3-init-9/pom.xml
index 41e20b3e29c..ed0a34a54fb 100644
--- a/tests/integration/servlet-3-init-9/pom.xml
+++ b/tests/integration/servlet-3-init-9/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-init-9
diff --git a/tests/integration/servlet-3-init-provider/pom.xml b/tests/integration/servlet-3-init-provider/pom.xml
index c969795c95e..8c909b441a0 100644
--- a/tests/integration/servlet-3-init-provider/pom.xml
+++ b/tests/integration/servlet-3-init-provider/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-init-provider
diff --git a/tests/integration/servlet-3-params/pom.xml b/tests/integration/servlet-3-params/pom.xml
index a14660da4b8..9eca1fc6c90 100644
--- a/tests/integration/servlet-3-params/pom.xml
+++ b/tests/integration/servlet-3-params/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-params
diff --git a/tests/integration/servlet-3-sse-1/pom.xml b/tests/integration/servlet-3-sse-1/pom.xml
index 7f33adb2a97..ca82c6a288d 100644
--- a/tests/integration/servlet-3-sse-1/pom.xml
+++ b/tests/integration/servlet-3-sse-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-3-sse-1
diff --git a/tests/integration/servlet-4.0-mvc-1/pom.xml b/tests/integration/servlet-4.0-mvc-1/pom.xml
index c6931615e62..7a93a3f1b54 100644
--- a/tests/integration/servlet-4.0-mvc-1/pom.xml
+++ b/tests/integration/servlet-4.0-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-4.0-mvc-1
diff --git a/tests/integration/servlet-request-wrapper-binding-2/pom.xml b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
index afdc913f5b6..063f1bf9778 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-request-wrappper-binding-2
diff --git a/tests/integration/servlet-request-wrapper-binding/pom.xml b/tests/integration/servlet-request-wrapper-binding/pom.xml
index b466c54d958..2a6a9808591 100644
--- a/tests/integration/servlet-request-wrapper-binding/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-request-wrappper-binding
diff --git a/tests/integration/servlet-tests/pom.xml b/tests/integration/servlet-tests/pom.xml
index d1e4b71042f..d20aa3fd26d 100644
--- a/tests/integration/servlet-tests/pom.xml
+++ b/tests/integration/servlet-tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
servlet-tests
diff --git a/tests/integration/sonar-test/pom.xml b/tests/integration/sonar-test/pom.xml
index 15598180483..6e5ad790cb1 100644
--- a/tests/integration/sonar-test/pom.xml
+++ b/tests/integration/sonar-test/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
sonar-test
diff --git a/tests/integration/spring6/pom.xml b/tests/integration/spring6/pom.xml
index 1186c4b7dc8..63625f40c13 100644
--- a/tests/integration/spring6/pom.xml
+++ b/tests/integration/spring6/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
spring6
diff --git a/tests/integration/tracing-support/pom.xml b/tests/integration/tracing-support/pom.xml
index 35ae665efda..1618cae39bb 100644
--- a/tests/integration/tracing-support/pom.xml
+++ b/tests/integration/tracing-support/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.7
+ 3.0.99-SNAPSHOT
tracing-support
diff --git a/tests/jmockit/pom.xml b/tests/jmockit/pom.xml
index 9b57c258afb..b23e24ee528 100644
--- a/tests/jmockit/pom.xml
+++ b/tests/jmockit/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests
- 3.0.7
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/mem-leaks/pom.xml b/tests/mem-leaks/pom.xml
index 5b94cacf392..6f88b8c504a 100644
--- a/tests/mem-leaks/pom.xml
+++ b/tests/mem-leaks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.memleaks
diff --git a/tests/mem-leaks/redeployment/pom.xml b/tests/mem-leaks/redeployment/pom.xml
index b2ecf9aeba5..d05070e2c88 100644
--- a/tests/mem-leaks/redeployment/pom.xml
+++ b/tests/mem-leaks/redeployment/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.memleaks.redeployment
diff --git a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
index 2bad08c4f97..5fe32d43680 100644
--- a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.7
+ 3.0.99-SNAPSHOT
redeployment-hello-world-app-ref
@@ -132,7 +132,7 @@
org.glassfish.jersey.examples
helloworld-webapp
war
- 3.0.7
+ 3.0.99-SNAPSHOT
diff --git a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
index ddc79f53f73..465a1b116f0 100644
--- a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.7
+ 3.0.99-SNAPSHOT
redeployment-leaking-test-app
diff --git a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
index 92a83c6ff4d..59a52b9e50c 100644
--- a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.7
+ 3.0.99-SNAPSHOT
redeployment-no-jersey-app
diff --git a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
index d9f677671fd..0e0ebd4d6ce 100644
--- a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.7
+ 3.0.99-SNAPSHOT
redeployment-threadlocals-app
diff --git a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
index bafd8fb2fbd..f6e335b7bd7 100644
--- a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
bean-param-leak
diff --git a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
index e667307ec7d..929337bd8c7 100644
--- a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
+++ b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
leaking-test-app
diff --git a/tests/mem-leaks/test-cases/pom.xml b/tests/mem-leaks/test-cases/pom.xml
index 9e0ac398566..4428ff7f3d6 100644
--- a/tests/mem-leaks/test-cases/pom.xml
+++ b/tests/mem-leaks/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.memleaks.testcases
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
index 8d5b36d0ecf..40e375294ee 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
shutdown-hook-leak-client
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
index 969f1f8653d..3335fd2b424 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
shutdown-hook-leak
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index c519611918a..1b996666be8 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.osgi
project
- 3.0.7
+ 3.0.99-SNAPSHOT
jersey-tests-osgi-functional
diff --git a/tests/osgi/pom.xml b/tests/osgi/pom.xml
index 512dabd4d87..0f6a61894cc 100644
--- a/tests/osgi/pom.xml
+++ b/tests/osgi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.osgi
diff --git a/tests/performance/benchmarks/pom.xml b/tests/performance/benchmarks/pom.xml
index fd41347aca9..de3d43d789f 100644
--- a/tests/performance/benchmarks/pom.xml
+++ b/tests/performance/benchmarks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.7
+ 3.0.99-SNAPSHOT
performance-test-benchmarks
diff --git a/tests/performance/pom.xml b/tests/performance/pom.xml
index d4e53fee3c0..684deafa4a3 100644
--- a/tests/performance/pom.xml
+++ b/tests/performance/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.performance
diff --git a/tests/performance/runners/jersey-grizzly-runner/pom.xml b/tests/performance/runners/jersey-grizzly-runner/pom.xml
index b753703e943..1c55d8a29b8 100644
--- a/tests/performance/runners/jersey-grizzly-runner/pom.xml
+++ b/tests/performance/runners/jersey-grizzly-runner/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.runners
project
- 3.0.7
+ 3.0.99-SNAPSHOT
diff --git a/tests/performance/runners/pom.xml b/tests/performance/runners/pom.xml
index f11ecb9fcae..96707a881f3 100644
--- a/tests/performance/runners/pom.xml
+++ b/tests/performance/runners/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.performance.runners
diff --git a/tests/performance/test-cases/assemblies/pom.xml b/tests/performance/test-cases/assemblies/pom.xml
index 6305398e5bf..0e174ef1738 100644
--- a/tests/performance/test-cases/assemblies/pom.xml
+++ b/tests/performance/test-cases/assemblies/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
assemblies
diff --git a/tests/performance/test-cases/filter-dynamic/pom.xml b/tests/performance/test-cases/filter-dynamic/pom.xml
index b3932052582..08679af1fec 100644
--- a/tests/performance/test-cases/filter-dynamic/pom.xml
+++ b/tests/performance/test-cases/filter-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
filter-dynamic
diff --git a/tests/performance/test-cases/filter-global/pom.xml b/tests/performance/test-cases/filter-global/pom.xml
index 2cab6b4cdef..5fdc703dab5 100644
--- a/tests/performance/test-cases/filter-global/pom.xml
+++ b/tests/performance/test-cases/filter-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
filter-global
diff --git a/tests/performance/test-cases/filter-name/pom.xml b/tests/performance/test-cases/filter-name/pom.xml
index 38726d55af9..c6457f06c02 100644
--- a/tests/performance/test-cases/filter-name/pom.xml
+++ b/tests/performance/test-cases/filter-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
filter-name
diff --git a/tests/performance/test-cases/interceptor-dynamic/pom.xml b/tests/performance/test-cases/interceptor-dynamic/pom.xml
index 9865acc91c0..3869ea29373 100644
--- a/tests/performance/test-cases/interceptor-dynamic/pom.xml
+++ b/tests/performance/test-cases/interceptor-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
interceptor-dynamic
diff --git a/tests/performance/test-cases/interceptor-global/pom.xml b/tests/performance/test-cases/interceptor-global/pom.xml
index 57650d2646b..8cad5e337bd 100644
--- a/tests/performance/test-cases/interceptor-global/pom.xml
+++ b/tests/performance/test-cases/interceptor-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
interceptor-global
diff --git a/tests/performance/test-cases/interceptor-name/pom.xml b/tests/performance/test-cases/interceptor-name/pom.xml
index e8b4468ef3f..2a179d3c6c2 100644
--- a/tests/performance/test-cases/interceptor-name/pom.xml
+++ b/tests/performance/test-cases/interceptor-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
interceptor-name
diff --git a/tests/performance/test-cases/mbw-custom-provider/pom.xml b/tests/performance/test-cases/mbw-custom-provider/pom.xml
index e99531a1930..05def3afe70 100644
--- a/tests/performance/test-cases/mbw-custom-provider/pom.xml
+++ b/tests/performance/test-cases/mbw-custom-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
custom-provider
diff --git a/tests/performance/test-cases/mbw-json-jackson/pom.xml b/tests/performance/test-cases/mbw-json-jackson/pom.xml
index 49376dc5faa..99b7e0a4e3e 100644
--- a/tests/performance/test-cases/mbw-json-jackson/pom.xml
+++ b/tests/performance/test-cases/mbw-json-jackson/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
json-jackson
diff --git a/tests/performance/test-cases/mbw-json-moxy/pom.xml b/tests/performance/test-cases/mbw-json-moxy/pom.xml
index e82623a1f1e..110a87fe45d 100644
--- a/tests/performance/test-cases/mbw-json-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-json-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
json-moxy
diff --git a/tests/performance/test-cases/mbw-kryo/pom.xml b/tests/performance/test-cases/mbw-kryo/pom.xml
index f272a426471..e6286ce24be 100644
--- a/tests/performance/test-cases/mbw-kryo/pom.xml
+++ b/tests/performance/test-cases/mbw-kryo/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
mbw-kryo
diff --git a/tests/performance/test-cases/mbw-text-plain/pom.xml b/tests/performance/test-cases/mbw-text-plain/pom.xml
index 8ff3c1070be..44b96b2ea34 100644
--- a/tests/performance/test-cases/mbw-text-plain/pom.xml
+++ b/tests/performance/test-cases/mbw-text-plain/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
text-plain
diff --git a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
index 63d42b88e46..e759a1d9fde 100644
--- a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
xml-jaxb
diff --git a/tests/performance/test-cases/mbw-xml-moxy/pom.xml b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
index c0e6535abac..ad3fc0d25c5 100644
--- a/tests/performance/test-cases/mbw-xml-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
xml-moxy
diff --git a/tests/performance/test-cases/param-srl/pom.xml b/tests/performance/test-cases/param-srl/pom.xml
index b64c3b27e67..95a00326615 100644
--- a/tests/performance/test-cases/param-srl/pom.xml
+++ b/tests/performance/test-cases/param-srl/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
param-srl
diff --git a/tests/performance/test-cases/pom.xml b/tests/performance/test-cases/pom.xml
index 39cc3645ef7..60c2b732796 100644
--- a/tests/performance/test-cases/pom.xml
+++ b/tests/performance/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.performance.testcases
diff --git a/tests/performance/test-cases/proxy-injection/pom.xml b/tests/performance/test-cases/proxy-injection/pom.xml
index 6c38eea9320..ab5a7456041 100644
--- a/tests/performance/test-cases/proxy-injection/pom.xml
+++ b/tests/performance/test-cases/proxy-injection/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.7
+ 3.0.99-SNAPSHOT
proxy-injection
diff --git a/tests/performance/tools/pom.xml b/tests/performance/tools/pom.xml
index 35f97c0218a..16ec2b20b48 100644
--- a/tests/performance/tools/pom.xml
+++ b/tests/performance/tools/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.performance.tools
performance-test-tools
diff --git a/tests/pom.xml b/tests/pom.xml
index 224d22cca1f..946aa00deba 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.7
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests
diff --git a/tests/stress/pom.xml b/tests/stress/pom.xml
index 534c3ecdc55..f0e7ee23717 100644
--- a/tests/stress/pom.xml
+++ b/tests/stress/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.7
+ 3.0.99-SNAPSHOT
stress
From f0754eb2888ab85901f14c0b8b17c4eaa4e553ac Mon Sep 17 00:00:00 2001
From: jansupol <15908245+jansupol@users.noreply.github.com>
Date: Fri, 26 Aug 2022 15:34:00 +0200
Subject: [PATCH 085/305] Fix OSGi headers for CDI & MP Jersey modules to be
compatible with EE8 (#5122)
Signed-off-by: jansupol
---
ext/bean-validation/pom.xml | 1 +
ext/cdi/jersey-cdi-rs-inject/pom.xml | 14 +
ext/cdi/jersey-cdi1x-servlet/pom.xml | 4 +
ext/cdi/jersey-cdi1x-transaction/pom.xml | 6 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 6 +-
ext/cdi/jersey-cdi1x/pom.xml | 1 +
ext/microprofile/mp-rest-client/pom.xml | 2 +
incubator/cdi-inject-weld/pom.xml | 3 +-
inject/cdi2-se/pom.xml | 1 +
pom.xml | 1 +
.../gf-cdi-inject/arquillian.xml | 30 ++
.../cdi-integration/gf-cdi-inject/pom.xml | 375 ++++++++++++++++++
.../jersey/tests/cdi/gf/GFTestApp.java | 28 ++
.../jersey/tests/cdi/gf/GFTestResource.java | 37 ++
.../glassfish/jersey/tests/cdi/gf/GFTest.java | 58 +++
tests/integration/cdi-integration/pom.xml | 11 +
16 files changed, 575 insertions(+), 3 deletions(-)
create mode 100644 tests/integration/cdi-integration/gf-cdi-inject/arquillian.xml
create mode 100644 tests/integration/cdi-integration/gf-cdi-inject/pom.xml
create mode 100644 tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestApp.java
create mode 100644 tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestResource.java
create mode 100644 tests/integration/cdi-integration/gf-cdi-inject/src/test/java/org/glassfish/jersey/tests/cdi/gf/GFTest.java
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index 00e1ab187e1..51d88bf1978 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -57,6 +57,7 @@
org.glassfish.jersey.server.validation.*;version=${project.version}
${javax.annotation.osgi.version},
+ ${cdi.osgi.version},
javax.validation.*;resolution:=optional;version="${range;[==,3);${javax.validation.api.version}}",
*
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index f9748482ecd..705c979c40e 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -56,6 +56,20 @@
package
+
+ org.apache.felix
+ maven-bundle-plugin
+ true
+ true
+
+
+
+ ${cdi.osgi.version},
+ *
+
+
+
+
diff --git a/ext/cdi/jersey-cdi1x-servlet/pom.xml b/ext/cdi/jersey-cdi1x-servlet/pom.xml
index d6ff4ccdbfa..a18ea12b54d 100644
--- a/ext/cdi/jersey-cdi1x-servlet/pom.xml
+++ b/ext/cdi/jersey-cdi1x-servlet/pom.xml
@@ -92,6 +92,10 @@
org.glassfish.jersey.ext.cdi1x.servlet.internal
+
+ ${cdi.osgi.version},
+ *
+
diff --git a/ext/cdi/jersey-cdi1x-transaction/pom.xml b/ext/cdi/jersey-cdi1x-transaction/pom.xml
index b5fa91b2c5e..7d78cc07d8d 100644
--- a/ext/cdi/jersey-cdi1x-transaction/pom.xml
+++ b/ext/cdi/jersey-cdi1x-transaction/pom.xml
@@ -91,7 +91,11 @@
org.glassfish.jersey.ext.cdi1x.transaction.internal
- ${javax.annotation.osgi.version},*
+
+ ${javax.annotation.osgi.version},
+ ${cdi.osgi.version},
+ *
+
diff --git a/ext/cdi/jersey-cdi1x-validation/pom.xml b/ext/cdi/jersey-cdi1x-validation/pom.xml
index b4feba74ded..85f6771a3db 100644
--- a/ext/cdi/jersey-cdi1x-validation/pom.xml
+++ b/ext/cdi/jersey-cdi1x-validation/pom.xml
@@ -103,7 +103,11 @@
org.glassfish.jersey.ext.cdi1x.validation.internal;version=${project.version}
- ${javax.annotation.osgi.version},*
+
+ ${javax.annotation.osgi.version},
+ ${cdi.osgi.version},
+ *
+
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index 98f00bba3ce..dfe9675d1d5 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -87,6 +87,7 @@
${javax.annotation.osgi.version},
${hk2.osgi.version},
+ ${cdi.osgi.version},
*
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index 2261e3aff2b..62001d9fbf4 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -114,6 +114,8 @@
org.glassfish.jersey.restclient.*;version=${project.version}
+ ${cdi.osgi.version},
+ org.eclipse.microprofile.rest.client.*;version="[1,3)",
*
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index 60722a5d1c3..2eb3cf78c14 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -123,7 +123,8 @@
sun.misc.*;resolution:=optional,
- ${jakarta.annotation.osgi.version},
+ ${cdi.osgi.version},
+ ${javax.annotation.osgi.version},
*
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index ce8bf780895..060d0c2534c 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -87,6 +87,7 @@
sun.misc.*;resolution:=optional,
+ ${cdi.osgi.version},
${javax.annotation.osgi.version},
*
diff --git a/pom.xml b/pom.xml
index dbc23b898a8..71b31037e5a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2207,6 +2207,7 @@
1.2
2.0.2
+ javax.enterprise.*;version="[1,3)"
3.2.6
5.1.0
1.16
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/arquillian.xml b/tests/integration/cdi-integration/gf-cdi-inject/arquillian.xml
new file mode 100644
index 00000000000..edfddfb4b58
--- /dev/null
+++ b/tests/integration/cdi-integration/gf-cdi-inject/arquillian.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+ true
+
+
+
+
\ No newline at end of file
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
new file mode 100644
index 00000000000..c9bb4289a45
--- /dev/null
+++ b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
@@ -0,0 +1,375 @@
+
+
+
+
+ 4.0.0
+
+ org.glassfish.jersey.tests.integration.cdi
+ cdi-integration-project
+ 2.37-SNAPSHOT
+
+
+ gf-cdi-inject-on-server
+ jersey-tests-glassfish-inject-on-server
+
+ Embedded GF tests @Inject
+
+
+ ${project.build.directory}/payara5
+ ${glassfish.home}/glassfish/modules
+ ${gf.impl.version}
+ 5.7.2
+
+
+
+
+ org.junit.jupiter
+ junit-jupiter
+ ${junit.jupiter.version}
+ test
+
+
+
+
+
+
+
+
+
+ org.omnifaces.arquillian
+ arquillian-glassfish-server-managed
+ 1.2
+ test
+
+
+
+ jakarta.ws.rs
+ jakarta.ws.rs-api
+
+
+
+ org.hamcrest
+ hamcrest
+ test
+
+
+
+ org.glassfish.main.common
+ simple-glassfish-api
+ ${glassfish.container.version}
+ test
+
+
+
+ org.jboss.arquillian.junit5
+ arquillian-junit5-container
+ 1.7.0.Alpha10
+ test
+
+
+
+ org.glassfish.jersey.core
+ jersey-server
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+
+
+ unpack
+ process-test-classes
+
+ unpack
+
+
+
+
+
+
+ fish.payara.distributions
+ payara
+ 5.2022.2
+ zip
+ false
+ ${project.build.directory}
+
+
+
+
+
+ copy
+ process-test-classes
+
+ copy
+
+
+
+
+ org.glassfish.jersey.ext
+ jersey-bean-validation
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-bean-validation.jar
+
+
+ org.glassfish.jersey.ext.cdi
+ jersey-cdi1x
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-cdi1x.jar
+
+
+ org.glassfish.jersey.ext.cdi
+ jersey-cdi1x-servlet
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-cdi1x-servlet.jar
+
+
+ org.glassfish.jersey.ext.cdi
+ jersey-cdi1x-transaction
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-cdi1x-transaction.jar
+
+
+ org.glassfish.jersey.ext.cdi
+ jersey-cdi-rs-inject
+ ${jersey.version}
+ jar
+ ${glassfish.home}/glassfish/modules
+ jersey-cdi-rs-inject.jar
+
+
+ org.glassfish.jersey.core
+ jersey-client
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-client.jar
+
+
+ org.glassfish.jersey.core
+ jersey-common
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-common.jar
+
+
+ org.glassfish.jersey.containers
+ jersey-container-grizzly2-http
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-container-grizzly2-http.jar
+
+
+ org.glassfish.jersey.containers
+ jersey-container-servlet
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-container-servlet.jar
+
+
+ org.glassfish.jersey.containers
+ jersey-container-servlet-core
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-container-servlet-core.jar
+
+
+ org.glassfish.jersey.ext
+ jersey-entity-filtering
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-entity-filtering.jar
+
+
+ org.glassfish.jersey.containers.glassfish
+ jersey-gf-ejb
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-gf-ejb.jar
+
+
+ org.glassfish.jersey.inject
+ jersey-hk2
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-hk2.jar
+
+
+ org.glassfish.jersey.media
+ jersey-media-jaxb
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-media-jaxb.jar
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-binding
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-media-json-binding.jar
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-jackson
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-media-json-jackson.jar
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-processing
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-media-json-processing.jar
+
+
+ org.glassfish.jersey.media
+ jersey-media-multipart
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-media-multipart.jar
+
+
+ org.glassfish.jersey.media
+ jersey-media-sse
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-media-sse.jar
+
+
+ org.glassfish.jersey.ext.microprofile
+ jersey-mp-rest-client
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-mp-rest-client.jar
+
+
+ org.glassfish.jersey.ext
+ jersey-mvc
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-mvc.jar
+
+
+ org.glassfish.jersey.ext
+ jersey-mvc-jsp
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-mvc-jsp.jar
+
+
+ org.glassfish.jersey.ext
+ jersey-proxy-client
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-proxy-client.jar
+
+
+ org.glassfish.jersey.core
+ jersey-server
+ ${jersey.version}
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jersey-server.jar
+
+
+ jakarta.ws.rs
+ jakarta.ws.rs-api
+ jar
+ true
+ ${glassfish.home}/glassfish/modules
+ jakarta.ws.rs-api.jar
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+
+ **/GFTest.java
+
+ org.glassfish.jersey.tests.integration.cdi:gf-cdi-inject-on-server
+
+ ${glassfish.home}
+ 8080
+ true
+
+
+ ${glassfish.home}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestApp.java b/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestApp.java
new file mode 100644
index 00000000000..0d77c954894
--- /dev/null
+++ b/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestApp.java
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.cdi.gf;
+
+import org.glassfish.jersey.server.ResourceConfig;
+
+import javax.ws.rs.ApplicationPath;
+
+@ApplicationPath("/test")
+public class GFTestApp extends ResourceConfig {
+ public GFTestApp() {
+ super(GFTestResource.class);
+ }
+}
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestResource.java b/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestResource.java
new file mode 100644
index 00000000000..8e39cc8aea5
--- /dev/null
+++ b/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestResource.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.cdi.gf;
+
+import javax.inject.Inject;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.UriInfo;
+
+@Path("/")
+public class GFTestResource {
+ @Inject
+ UriInfo uriInfo;
+
+ @GET
+ @Path("info")
+ @Produces(MediaType.TEXT_PLAIN)
+ public String info() {
+ return uriInfo.getBaseUri().toASCIIString();
+ }
+}
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/src/test/java/org/glassfish/jersey/tests/cdi/gf/GFTest.java b/tests/integration/cdi-integration/gf-cdi-inject/src/test/java/org/glassfish/jersey/tests/cdi/gf/GFTest.java
new file mode 100644
index 00000000000..da49a8b447e
--- /dev/null
+++ b/tests/integration/cdi-integration/gf-cdi-inject/src/test/java/org/glassfish/jersey/tests/cdi/gf/GFTest.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.cdi.gf;
+
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.junit5.ArquillianExtension;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.extension.ExtendWith;
+
+import javax.ws.rs.client.ClientBuilder;
+import javax.ws.rs.core.Response;
+import java.io.IOException;
+
+@ExtendWith(ArquillianExtension.class)
+public class GFTest {
+ @Deployment(testable = false)
+ public static WebArchive createDeployment() throws IOException {
+ return createDeployment(
+ "gf-test",
+ GFTestApp.class,
+ GFTestResource.class
+ );
+ }
+
+ private static WebArchive createDeployment(String archiveName, Class>...classes) {
+ WebArchive archive = ShrinkWrap.create(WebArchive.class, archiveName + ".war");
+ archive.addClasses(classes);
+ return archive;
+ }
+
+ @Test
+ public void testUriInfo() {
+ int port = Integer.parseInt(System.getProperty("webServerPort"));
+ try (Response response = ClientBuilder.newClient().target("http://localhost:" + port).path("gf-test/test/info").request().get()) {
+ String entity = response.readEntity(String.class);
+ System.out.println(entity);
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertTrue(entity.contains("gf-test/test"));
+ }
+ }
+}
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index b164acb1d14..36b5a6ae653 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -61,4 +61,15 @@
+
+
+ gf-inject
+
+ [11,16)
+
+
+ gf-cdi-inject
+
+
+
From 07463484c75a7e68108b5d87c12a741261db54c9 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Fri, 26 Aug 2022 22:57:11 +0200
Subject: [PATCH 086/305] Updated gf-cdi integration test for 3.x
Signed-off-by: jansupol
---
ext/bean-validation/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
.../cdi-integration/gf-cdi-inject/pom.xml | 28 +++++++------------
.../jersey/tests/cdi/gf/GFTestApp.java | 4 ++-
.../jersey/tests/cdi/gf/GFTestResource.java | 12 ++++----
.../glassfish/jersey/tests/cdi/gf/GFTest.java | 4 +--
tests/integration/cdi-integration/pom.xml | 2 +-
7 files changed, 24 insertions(+), 30 deletions(-)
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index 82a32c600a5..914251e428a 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -58,7 +58,7 @@
${jakarta.annotation.osgi.version},
${cdi.osgi.version},
- jakarta.validation.*;resolution:=optional;version="${range;[==,3);${javax.validation.api.version}}",
+ jakarta.validation.*;resolution:=optional;version="${range;[==,4);${jakarta.validation.api.version}}",
*
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index 8c01379d7bd..c85a4b0ff91 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -112,7 +112,7 @@
org.glassfish.jersey.microprofile.restclient.*;version=${project.version}
- gf-cdi-inject-on-server,
+ ${cdi.osgi.version},
jakarta.decorator.*;version="[3.0,5)",
org.eclipse.microprofile.config.*;version="!",
*
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
index c9bb4289a45..7228461549d 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
+++ b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 3.0.99-SNAPSHOT
gf-cdi-inject-on-server
@@ -31,10 +31,10 @@
Embedded GF tests @Inject
- ${project.build.directory}/payara5
+ ${project.build.directory}/glassfish6
${glassfish.home}/glassfish/modules
${gf.impl.version}
- 5.7.2
+ ${junit5.version}
@@ -45,19 +45,13 @@
test
-
-
-
-
-
-
- org.omnifaces.arquillian
- arquillian-glassfish-server-managed
- 1.2
- test
+ org.jboss.arquillian.container
+ arquillian-glassfish-managed-6
+ 1.0.0.Alpha1
+
jakarta.ws.rs
jakarta.ws.rs-api
@@ -104,11 +98,9 @@
-
-
- fish.payara.distributions
- payara
- 5.2022.2
+ org.glassfish.main.distributions
+ glassfish
+ ${gf.impl.version}
zip
false
${project.build.directory}
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestApp.java b/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestApp.java
index 0d77c954894..116e9230db9 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestApp.java
+++ b/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestApp.java
@@ -16,13 +16,15 @@
package org.glassfish.jersey.tests.cdi.gf;
+import org.glassfish.jersey.CommonProperties;
import org.glassfish.jersey.server.ResourceConfig;
-import javax.ws.rs.ApplicationPath;
+import jakarta.ws.rs.ApplicationPath;
@ApplicationPath("/test")
public class GFTestApp extends ResourceConfig {
public GFTestApp() {
super(GFTestResource.class);
+ property(CommonProperties.PROVIDER_DEFAULT_DISABLE, "ALL");
}
}
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestResource.java b/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestResource.java
index 8e39cc8aea5..26647782573 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestResource.java
+++ b/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestResource.java
@@ -16,12 +16,12 @@
package org.glassfish.jersey.tests.cdi.gf;
-import javax.inject.Inject;
-import javax.ws.rs.GET;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.UriInfo;
+import jakarta.inject.Inject;
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.Produces;
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.UriInfo;
@Path("/")
public class GFTestResource {
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/src/test/java/org/glassfish/jersey/tests/cdi/gf/GFTest.java b/tests/integration/cdi-integration/gf-cdi-inject/src/test/java/org/glassfish/jersey/tests/cdi/gf/GFTest.java
index da49a8b447e..fc3ea3a0038 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/src/test/java/org/glassfish/jersey/tests/cdi/gf/GFTest.java
+++ b/tests/integration/cdi-integration/gf-cdi-inject/src/test/java/org/glassfish/jersey/tests/cdi/gf/GFTest.java
@@ -24,8 +24,8 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
-import javax.ws.rs.client.ClientBuilder;
-import javax.ws.rs.core.Response;
+import jakarta.ws.rs.client.ClientBuilder;
+import jakarta.ws.rs.core.Response;
import java.io.IOException;
@ExtendWith(ArquillianExtension.class)
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index 8f2806ee6a5..c14ab61cf3b 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -65,7 +65,7 @@
gf-inject
- [11,16)
+ [11,)
gf-cdi-inject
From 2e23b20d4552ce6a13645fbb1002d936fc961b28 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Wed, 31 Aug 2022 11:12:41 +0200
Subject: [PATCH 087/305] Post merge version update
Signed-off-by: jansupol
---
archetypes/jersey-example-java8-webapp/pom.xml | 2 +-
archetypes/jersey-heroku-webapp/pom.xml | 2 +-
archetypes/jersey-quickstart-grizzly2/pom.xml | 2 +-
archetypes/jersey-quickstart-webapp/pom.xml | 2 +-
archetypes/pom.xml | 2 +-
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 2 +-
bundles/jaxrs-ri/pom.xml | 2 +-
bundles/pom.xml | 2 +-
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 2 +-
connectors/helidon-connector/pom.xml | 2 +-
connectors/jdk-connector/pom.xml | 2 +-
connectors/jetty-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 2 +-
containers/glassfish/pom.xml | 2 +-
containers/grizzly2-http/pom.xml | 2 +-
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-http/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
containers/netty-http/pom.xml | 2 +-
containers/pom.xml | 2 +-
containers/simple-http/pom.xml | 2 +-
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 2 +-
examples/assemblies/pom.xml | 2 +-
examples/bookmark-em/pom.xml | 2 +-
examples/bookmark/pom.xml | 2 +-
examples/bookstore-webapp/pom.xml | 2 +-
examples/cdi-webapp/pom.xml | 2 +-
examples/clipboard-programmatic/pom.xml | 2 +-
examples/clipboard/pom.xml | 2 +-
examples/declarative-linking/pom.xml | 2 +-
examples/entity-filtering-security/pom.xml | 2 +-
examples/entity-filtering-selectable/pom.xml | 2 +-
examples/entity-filtering/pom.xml | 2 +-
examples/exception-mapping/pom.xml | 2 +-
examples/extended-wadl-webapp/pom.xml | 2 +-
examples/freemarker-webapp/pom.xml | 2 +-
examples/groovy/pom.xml | 2 +-
examples/helloworld-benchmark/pom.xml | 2 +-
examples/helloworld-cdi2-se/pom.xml | 2 +-
examples/helloworld-netty/pom.xml | 2 +-
examples/helloworld-programmatic/pom.xml | 2 +-
examples/helloworld-pure-jax-rs/pom.xml | 2 +-
examples/helloworld-webapp/pom.xml | 2 +-
examples/helloworld-weld/pom.xml | 2 +-
examples/helloworld/pom.xml | 2 +-
examples/http-patch/pom.xml | 2 +-
examples/http-trace/pom.xml | 2 +-
examples/https-clientserver-grizzly/pom.xml | 2 +-
examples/https-server-glassfish/pom.xml | 2 +-
examples/java8-webapp/pom.xml | 2 +-
examples/jaxb/pom.xml | 2 +-
examples/jaxrs-types-injection/pom.xml | 2 +-
examples/jersey-ejb/pom.xml | 2 +-
examples/json-binding-webapp/pom.xml | 2 +-
examples/json-jackson/pom.xml | 2 +-
examples/json-jettison/pom.xml | 2 +-
examples/json-moxy/pom.xml | 2 +-
examples/json-processing-webapp/pom.xml | 2 +-
examples/json-with-padding/pom.xml | 2 +-
examples/managed-beans-webapp/pom.xml | 2 +-
examples/managed-client-simple-webapp/pom.xml | 2 +-
examples/managed-client-webapp/pom.xml | 2 +-
examples/managed-client/pom.xml | 2 +-
examples/multipart-webapp/pom.xml | 2 +-
examples/oauth-client-twitter/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 2 +-
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/functional-test/pom.xml | 2 +-
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/pom.xml | 2 +-
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 2 +-
examples/pom.xml | 2 +-
examples/reload/pom.xml | 2 +-
examples/rx-client-webapp/pom.xml | 2 +-
examples/server-async-managed/pom.xml | 2 +-
examples/server-async-standalone/client/pom.xml | 2 +-
examples/server-async-standalone/pom.xml | 2 +-
examples/server-async-standalone/webapp/pom.xml | 2 +-
examples/server-async/pom.xml | 2 +-
examples/server-sent-events-jaxrs/pom.xml | 2 +-
examples/server-sent-events-jersey/pom.xml | 2 +-
examples/servlet3-webapp/pom.xml | 2 +-
examples/simple-console/pom.xml | 2 +-
examples/sse-item-store-jaxrs-webapp/pom.xml | 2 +-
examples/sse-item-store-jersey-webapp/pom.xml | 2 +-
examples/sse-twitter-aggregator/pom.xml | 2 +-
examples/system-properties-example/pom.xml | 2 +-
examples/webapp-example-parent/pom.xml | 2 +-
examples/xml-moxy/pom.xml | 2 +-
ext/bean-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-transaction/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi1x/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 2 +-
ext/cdi/pom.xml | 2 +-
ext/entity-filtering/pom.xml | 2 +-
ext/metainf-services/pom.xml | 2 +-
ext/microprofile/mp-config/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/microprofile/pom.xml | 2 +-
ext/mvc-bean-validation/pom.xml | 2 +-
ext/mvc-freemarker/pom.xml | 2 +-
ext/mvc-jsp/pom.xml | 2 +-
ext/mvc-mustache/pom.xml | 2 +-
ext/mvc/pom.xml | 2 +-
ext/pom.xml | 2 +-
ext/proxy-client/pom.xml | 2 +-
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 2 +-
ext/rx/rx-client-rxjava2/pom.xml | 2 +-
ext/spring6/pom.xml | 2 +-
ext/wadl-doclet/pom.xml | 2 +-
incubator/cdi-inject-weld/pom.xml | 2 +-
incubator/declarative-linking/pom.xml | 2 +-
incubator/gae-integration/pom.xml | 2 +-
incubator/html-json/pom.xml | 2 +-
incubator/kryo/pom.xml | 2 +-
incubator/open-tracing/pom.xml | 2 +-
incubator/pom.xml | 2 +-
inject/cdi2-se/pom.xml | 2 +-
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 2 +-
media/jaxb/pom.xml | 2 +-
media/json-binding/pom.xml | 2 +-
media/json-gson/pom.xml | 2 +-
media/json-jackson/pom.xml | 2 +-
media/json-jettison/pom.xml | 2 +-
media/json-processing/pom.xml | 2 +-
media/moxy/pom.xml | 2 +-
media/multipart/pom.xml | 2 +-
media/pom.xml | 2 +-
media/sse/pom.xml | 2 +-
pom.xml | 2 +-
security/oauth1-client/pom.xml | 2 +-
security/oauth1-server/pom.xml | 2 +-
security/oauth1-signature/pom.xml | 2 +-
security/oauth2-client/pom.xml | 2 +-
security/pom.xml | 2 +-
test-framework/core/pom.xml | 2 +-
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 2 +-
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 2 +-
test-framework/providers/bundle/pom.xml | 2 +-
test-framework/providers/external/pom.xml | 2 +-
test-framework/providers/grizzly2/pom.xml | 2 +-
test-framework/providers/inmemory/pom.xml | 2 +-
test-framework/providers/jdk-http/pom.xml | 2 +-
test-framework/providers/jetty/pom.xml | 2 +-
test-framework/providers/netty/pom.xml | 2 +-
test-framework/providers/pom.xml | 2 +-
test-framework/providers/simple/pom.xml | 2 +-
test-framework/util/pom.xml | 2 +-
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 2 +-
tests/e2e-inject/pom.xml | 2 +-
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 2 +-
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 2 +-
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 2 +-
.../integration/cdi-integration/cdi-client-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-client/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 2 +-
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-log-check/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-manually-bound/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multipart-webapp/pom.xml | 2 +-
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-singleton/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 2 +-
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 2 +-
.../pom.xml | 2 +-
.../cdi-integration/cdi-with-jersey-injection-webapp/pom.xml | 2 +-
.../cdi-integration/context-inject-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/pom.xml | 2 +-
tests/integration/client-connector-provider/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule/pom.xml | 2 +-
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 2 +-
tests/integration/j-376/pom.xml | 2 +-
tests/integration/j-441/ear/pom.xml | 2 +-
tests/integration/j-441/pom.xml | 2 +-
tests/integration/j-441/war1/pom.xml | 2 +-
tests/integration/j-441/war2/pom.xml | 2 +-
tests/integration/j-59/ear/pom.xml | 2 +-
tests/integration/j-59/lib/pom.xml | 2 +-
tests/integration/j-59/pom.xml | 2 +-
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 2 +-
tests/integration/jersey-1107/pom.xml | 2 +-
tests/integration/jersey-1223/pom.xml | 2 +-
tests/integration/jersey-1604/pom.xml | 2 +-
tests/integration/jersey-1667/pom.xml | 2 +-
tests/integration/jersey-1883/pom.xml | 2 +-
tests/integration/jersey-1928/pom.xml | 2 +-
tests/integration/jersey-1960/pom.xml | 2 +-
tests/integration/jersey-1964/pom.xml | 2 +-
tests/integration/jersey-2031/pom.xml | 2 +-
tests/integration/jersey-2136/pom.xml | 2 +-
tests/integration/jersey-2137/pom.xml | 2 +-
tests/integration/jersey-2154/pom.xml | 2 +-
tests/integration/jersey-2160/pom.xml | 2 +-
tests/integration/jersey-2164/pom.xml | 2 +-
tests/integration/jersey-2167/pom.xml | 2 +-
tests/integration/jersey-2176/pom.xml | 2 +-
tests/integration/jersey-2184/pom.xml | 2 +-
tests/integration/jersey-2255/pom.xml | 2 +-
tests/integration/jersey-2322/pom.xml | 2 +-
tests/integration/jersey-2335/pom.xml | 2 +-
tests/integration/jersey-2421/pom.xml | 2 +-
tests/integration/jersey-2551/pom.xml | 2 +-
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 2 +-
tests/integration/jersey-2654/pom.xml | 2 +-
tests/integration/jersey-2673/pom.xml | 2 +-
tests/integration/jersey-2689/pom.xml | 2 +-
tests/integration/jersey-2704/pom.xml | 2 +-
tests/integration/jersey-2776/pom.xml | 2 +-
tests/integration/jersey-2794/pom.xml | 2 +-
tests/integration/jersey-2846/pom.xml | 2 +-
tests/integration/jersey-2878/pom.xml | 2 +-
tests/integration/jersey-2892/pom.xml | 2 +-
tests/integration/jersey-3662/pom.xml | 2 +-
tests/integration/jersey-3670/pom.xml | 2 +-
tests/integration/jersey-3796/pom.xml | 2 +-
tests/integration/jersey-3992/pom.xml | 2 +-
tests/integration/jersey-4003/pom.xml | 2 +-
tests/integration/jersey-4099/pom.xml | 2 +-
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 2 +-
tests/integration/jersey-4542/pom.xml | 2 +-
tests/integration/jersey-4697/pom.xml | 2 +-
tests/integration/jersey-4722/pom.xml | 2 +-
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-5087/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 2 +-
tests/integration/microprofile/config/helidon/pom.xml | 2 +-
tests/integration/microprofile/config/pom.xml | 2 +-
tests/integration/microprofile/config/webapp/pom.xml | 2 +-
tests/integration/microprofile/pom.xml | 2 +-
tests/integration/microprofile/rest-client-tck/pom.xml | 2 +-
tests/integration/microprofile/rest-client/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 2 +-
tests/integration/reactive-streams/sse/pom.xml | 2 +-
tests/integration/security-digest/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 2 +-
tests/integration/servlet-2.5-filter/pom.xml | 2 +-
tests/integration/servlet-2.5-inflector-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-2/pom.xml | 2 +-
tests/integration/servlet-2.5-init-3/pom.xml | 2 +-
tests/integration/servlet-2.5-init-4/pom.xml | 2 +-
tests/integration/servlet-2.5-init-5/pom.xml | 2 +-
tests/integration/servlet-2.5-init-6/pom.xml | 2 +-
tests/integration/servlet-2.5-init-7/pom.xml | 2 +-
tests/integration/servlet-2.5-init-8/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-1/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-2/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-3/pom.xml | 2 +-
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 2 +-
tests/integration/servlet-3-chunked-io/pom.xml | 2 +-
tests/integration/servlet-3-filter/pom.xml | 2 +-
tests/integration/servlet-3-gf-async/pom.xml | 2 +-
tests/integration/servlet-3-inflector-1/pom.xml | 2 +-
tests/integration/servlet-3-init-1/pom.xml | 2 +-
tests/integration/servlet-3-init-2/pom.xml | 2 +-
tests/integration/servlet-3-init-3/pom.xml | 2 +-
tests/integration/servlet-3-init-4/pom.xml | 2 +-
tests/integration/servlet-3-init-5/pom.xml | 2 +-
tests/integration/servlet-3-init-6/pom.xml | 2 +-
tests/integration/servlet-3-init-7/pom.xml | 2 +-
tests/integration/servlet-3-init-8/pom.xml | 2 +-
tests/integration/servlet-3-init-9/pom.xml | 2 +-
tests/integration/servlet-3-init-provider/pom.xml | 2 +-
tests/integration/servlet-3-params/pom.xml | 2 +-
tests/integration/servlet-3-sse-1/pom.xml | 2 +-
tests/integration/servlet-4.0-mvc-1/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 2 +-
tests/integration/sonar-test/pom.xml | 2 +-
tests/integration/spring6/pom.xml | 2 +-
tests/integration/tracing-support/pom.xml | 2 +-
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 2 +-
tests/mem-leaks/redeployment/pom.xml | 2 +-
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 4 ++--
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment/redeployment-threadlocals-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 2 +-
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 2 +-
tests/osgi/functional/pom.xml | 2 +-
tests/osgi/pom.xml | 2 +-
tests/performance/benchmarks/pom.xml | 2 +-
tests/performance/pom.xml | 2 +-
tests/performance/runners/jersey-grizzly-runner/pom.xml | 2 +-
tests/performance/runners/pom.xml | 2 +-
tests/performance/test-cases/assemblies/pom.xml | 2 +-
tests/performance/test-cases/filter-dynamic/pom.xml | 2 +-
tests/performance/test-cases/filter-global/pom.xml | 2 +-
tests/performance/test-cases/filter-name/pom.xml | 2 +-
tests/performance/test-cases/interceptor-dynamic/pom.xml | 2 +-
tests/performance/test-cases/interceptor-global/pom.xml | 2 +-
tests/performance/test-cases/interceptor-name/pom.xml | 2 +-
tests/performance/test-cases/mbw-custom-provider/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-jackson/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-moxy/pom.xml | 2 +-
tests/performance/test-cases/mbw-kryo/pom.xml | 2 +-
tests/performance/test-cases/mbw-text-plain/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 2 +-
tests/performance/test-cases/param-srl/pom.xml | 2 +-
tests/performance/test-cases/pom.xml | 2 +-
tests/performance/test-cases/proxy-injection/pom.xml | 2 +-
tests/performance/tools/pom.xml | 2 +-
tests/pom.xml | 2 +-
tests/stress/pom.xml | 2 +-
362 files changed, 363 insertions(+), 363 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index b47b480e685..a31bd683b26 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-example-java8-webapp
diff --git a/archetypes/jersey-heroku-webapp/pom.xml b/archetypes/jersey-heroku-webapp/pom.xml
index a413d64fa01..e33c51f5b7f 100644
--- a/archetypes/jersey-heroku-webapp/pom.xml
+++ b/archetypes/jersey-heroku-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
maven-archetype
diff --git a/archetypes/jersey-quickstart-grizzly2/pom.xml b/archetypes/jersey-quickstart-grizzly2/pom.xml
index 24b37a46dae..32d4a9a8695 100644
--- a/archetypes/jersey-quickstart-grizzly2/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-quickstart-grizzly2
maven-archetype
diff --git a/archetypes/jersey-quickstart-webapp/pom.xml b/archetypes/jersey-quickstart-webapp/pom.xml
index 8b11c4ebc98..5b395540d44 100644
--- a/archetypes/jersey-quickstart-webapp/pom.xml
+++ b/archetypes/jersey-quickstart-webapp/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
maven-archetype
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index e8a31139d10..baba57c9962 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.archetypes
diff --git a/bom/pom.xml b/bom/pom.xml
index f0927fb0beb..c5393d2b5d0 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,7 +30,7 @@
org.glassfish.jersey
jersey-bom
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
pom
jersey-bom
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index cfebc8615cd..bd175fb442b 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
apidocs
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index e171811f24f..a6b8be3ce89 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.bundles
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-examples
diff --git a/bundles/jaxrs-ri/pom.xml b/bundles/jaxrs-ri/pom.xml
index 442e4860777..80aa6ba575a 100644
--- a/bundles/jaxrs-ri/pom.xml
+++ b/bundles/jaxrs-ri/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jaxrs-ri
diff --git a/bundles/pom.xml b/bundles/pom.xml
index 5739d5eac11..b993bc606de 100644
--- a/bundles/pom.xml
+++ b/bundles/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.bundles
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index 269b753774a..258ef18f321 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-apache-connector
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
index 899e2911e5e..9d08082d249 100644
--- a/connectors/apache5-connector/pom.xml
+++ b/connectors/apache5-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-apache5-connector
diff --git a/connectors/grizzly-connector/pom.xml b/connectors/grizzly-connector/pom.xml
index 8d997a4ae4a..ba96bfdfcf5 100644
--- a/connectors/grizzly-connector/pom.xml
+++ b/connectors/grizzly-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-grizzly-connector
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index 40918bcdbc6..c50199454c8 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.connectors
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/connectors/jdk-connector/pom.xml b/connectors/jdk-connector/pom.xml
index 7758d0ab8a7..37a68e90a70 100644
--- a/connectors/jdk-connector/pom.xml
+++ b/connectors/jdk-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-jdk-connector
diff --git a/connectors/jetty-connector/pom.xml b/connectors/jetty-connector/pom.xml
index 1a4c7b85f57..e7038d3aeaa 100644
--- a/connectors/jetty-connector/pom.xml
+++ b/connectors/jetty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-jetty-connector
diff --git a/connectors/netty-connector/pom.xml b/connectors/netty-connector/pom.xml
index 18054902133..b7d5da77914 100644
--- a/connectors/netty-connector/pom.xml
+++ b/connectors/netty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-netty-connector
diff --git a/connectors/pom.xml b/connectors/pom.xml
index 613f559941a..79ce0031d98 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.connectors
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index 759a230b04b..e75a3377415 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers.glassfish
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-gf-ejb
diff --git a/containers/glassfish/pom.xml b/containers/glassfish/pom.xml
index 97b7748050b..4bf9302e8b6 100644
--- a/containers/glassfish/pom.xml
+++ b/containers/glassfish/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.containers.glassfish
diff --git a/containers/grizzly2-http/pom.xml b/containers/grizzly2-http/pom.xml
index 9676bb6e690..bddcf006eb0 100644
--- a/containers/grizzly2-http/pom.xml
+++ b/containers/grizzly2-http/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-container-grizzly2-http
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index ca1fb2e4f8b..f44f63cd3f7 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-container-grizzly2-servlet
diff --git a/containers/jdk-http/pom.xml b/containers/jdk-http/pom.xml
index 981eef945b7..4fb6f49381f 100644
--- a/containers/jdk-http/pom.xml
+++ b/containers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-container-jdk-http
diff --git a/containers/jersey-servlet-core/pom.xml b/containers/jersey-servlet-core/pom.xml
index f92b9c8a1d8..2bcfc85a834 100644
--- a/containers/jersey-servlet-core/pom.xml
+++ b/containers/jersey-servlet-core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-container-servlet-core
diff --git a/containers/jersey-servlet/pom.xml b/containers/jersey-servlet/pom.xml
index bc4b6439b70..b5244a6ced3 100644
--- a/containers/jersey-servlet/pom.xml
+++ b/containers/jersey-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-container-servlet
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index bc61c192841..48523f240f9 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.containers
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-container-jetty-http
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 58d5b72fdc8..aad11987274 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-container-jetty-servlet
diff --git a/containers/netty-http/pom.xml b/containers/netty-http/pom.xml
index d82b255be54..894c547c730 100644
--- a/containers/netty-http/pom.xml
+++ b/containers/netty-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-container-netty-http
diff --git a/containers/pom.xml b/containers/pom.xml
index d1d9d1f9f8f..1c074501ff6 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.containers
diff --git a/containers/simple-http/pom.xml b/containers/simple-http/pom.xml
index 1bbbee083f0..f9a3206461f 100644
--- a/containers/simple-http/pom.xml
+++ b/containers/simple-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-container-simple-http
diff --git a/core-client/pom.xml b/core-client/pom.xml
index e9a51246873..2b6a03a0312 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.core
diff --git a/core-common/pom.xml b/core-common/pom.xml
index b301c480d9e..6c4716cc5dd 100644
--- a/core-common/pom.xml
+++ b/core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.core
diff --git a/core-server/pom.xml b/core-server/pom.xml
index 5eaea68a6a7..b72ee2fc737 100644
--- a/core-server/pom.xml
+++ b/core-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.core
diff --git a/docs/pom.xml b/docs/pom.xml
index 509d6f2c691..85973ee587a 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-documentation
pom
diff --git a/examples/assemblies/pom.xml b/examples/assemblies/pom.xml
index 3a9082c2c70..79586a98272 100644
--- a/examples/assemblies/pom.xml
+++ b/examples/assemblies/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
assemblies
diff --git a/examples/bookmark-em/pom.xml b/examples/bookmark-em/pom.xml
index 43c1eb4d89b..f37da947292 100644
--- a/examples/bookmark-em/pom.xml
+++ b/examples/bookmark-em/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
bookmark-em
diff --git a/examples/bookmark/pom.xml b/examples/bookmark/pom.xml
index 51b37c22f7d..1e2d0e6347e 100644
--- a/examples/bookmark/pom.xml
+++ b/examples/bookmark/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
bookmark
diff --git a/examples/bookstore-webapp/pom.xml b/examples/bookstore-webapp/pom.xml
index 0a74ec2655e..52d4199ca43 100644
--- a/examples/bookstore-webapp/pom.xml
+++ b/examples/bookstore-webapp/pom.xml
@@ -35,7 +35,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
bookstore-webapp
diff --git a/examples/cdi-webapp/pom.xml b/examples/cdi-webapp/pom.xml
index 803c399f4fd..3b60b6c3b6f 100644
--- a/examples/cdi-webapp/pom.xml
+++ b/examples/cdi-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-webapp
diff --git a/examples/clipboard-programmatic/pom.xml b/examples/clipboard-programmatic/pom.xml
index 6fab951dac4..88a81c0beaf 100644
--- a/examples/clipboard-programmatic/pom.xml
+++ b/examples/clipboard-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
clipboard-programmatic
diff --git a/examples/clipboard/pom.xml b/examples/clipboard/pom.xml
index 5caf76ce426..3e7b73f7bc0 100644
--- a/examples/clipboard/pom.xml
+++ b/examples/clipboard/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
clipboard
diff --git a/examples/declarative-linking/pom.xml b/examples/declarative-linking/pom.xml
index 910c6d5fadf..1bf96de3b54 100644
--- a/examples/declarative-linking/pom.xml
+++ b/examples/declarative-linking/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
declarative-linking
diff --git a/examples/entity-filtering-security/pom.xml b/examples/entity-filtering-security/pom.xml
index a92d294e77e..0364ed79621 100644
--- a/examples/entity-filtering-security/pom.xml
+++ b/examples/entity-filtering-security/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
entity-filtering-security
diff --git a/examples/entity-filtering-selectable/pom.xml b/examples/entity-filtering-selectable/pom.xml
index 986200ae1c2..06ab0368e4c 100644
--- a/examples/entity-filtering-selectable/pom.xml
+++ b/examples/entity-filtering-selectable/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
entity-filtering-selectable
diff --git a/examples/entity-filtering/pom.xml b/examples/entity-filtering/pom.xml
index b6d5870b180..0174dc93c37 100644
--- a/examples/entity-filtering/pom.xml
+++ b/examples/entity-filtering/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
entity-filtering
diff --git a/examples/exception-mapping/pom.xml b/examples/exception-mapping/pom.xml
index 5986740b376..a7f3486b545 100644
--- a/examples/exception-mapping/pom.xml
+++ b/examples/exception-mapping/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
exception-mapping
diff --git a/examples/extended-wadl-webapp/pom.xml b/examples/extended-wadl-webapp/pom.xml
index 2373bd4e9e4..1aefde365a7 100644
--- a/examples/extended-wadl-webapp/pom.xml
+++ b/examples/extended-wadl-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
extended-wadl-webapp
diff --git a/examples/freemarker-webapp/pom.xml b/examples/freemarker-webapp/pom.xml
index c0f48c0a4bd..cee0d386388 100644
--- a/examples/freemarker-webapp/pom.xml
+++ b/examples/freemarker-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
freemarker-webapp
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index 2ac5de0aedc..49a7051320d 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
groovy
jar
diff --git a/examples/helloworld-benchmark/pom.xml b/examples/helloworld-benchmark/pom.xml
index 888880182b2..f8a99268e1c 100644
--- a/examples/helloworld-benchmark/pom.xml
+++ b/examples/helloworld-benchmark/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
helloworld-benchmark
diff --git a/examples/helloworld-cdi2-se/pom.xml b/examples/helloworld-cdi2-se/pom.xml
index 11aba91aad0..bed881a9908 100644
--- a/examples/helloworld-cdi2-se/pom.xml
+++ b/examples/helloworld-cdi2-se/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
helloworld-cdi2-se
diff --git a/examples/helloworld-netty/pom.xml b/examples/helloworld-netty/pom.xml
index db6fe09c0cb..8c2475c8769 100644
--- a/examples/helloworld-netty/pom.xml
+++ b/examples/helloworld-netty/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
helloworld-netty
diff --git a/examples/helloworld-programmatic/pom.xml b/examples/helloworld-programmatic/pom.xml
index eb267ee7527..96ffc6fbbf4 100644
--- a/examples/helloworld-programmatic/pom.xml
+++ b/examples/helloworld-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
helloworld-programmatic
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index 9a6627ecbe7..7e4bcf87936 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
helloworld-pure-jax-rs
diff --git a/examples/helloworld-webapp/pom.xml b/examples/helloworld-webapp/pom.xml
index 707ce0c991a..aecb50d4507 100644
--- a/examples/helloworld-webapp/pom.xml
+++ b/examples/helloworld-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
helloworld-webapp
diff --git a/examples/helloworld-weld/pom.xml b/examples/helloworld-weld/pom.xml
index e8e482c5ccb..f26f9e5e686 100644
--- a/examples/helloworld-weld/pom.xml
+++ b/examples/helloworld-weld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
helloworld-weld
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index f66764823fa..1dce28b37b2 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
helloworld
diff --git a/examples/http-patch/pom.xml b/examples/http-patch/pom.xml
index 47b7302cf78..5595f4b50e2 100644
--- a/examples/http-patch/pom.xml
+++ b/examples/http-patch/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
http-patch
diff --git a/examples/http-trace/pom.xml b/examples/http-trace/pom.xml
index 79f8f197dd5..0a035c6082c 100644
--- a/examples/http-trace/pom.xml
+++ b/examples/http-trace/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
http-trace
diff --git a/examples/https-clientserver-grizzly/pom.xml b/examples/https-clientserver-grizzly/pom.xml
index f29722464bf..14582e14ae5 100644
--- a/examples/https-clientserver-grizzly/pom.xml
+++ b/examples/https-clientserver-grizzly/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
https-clientserver-grizzly
diff --git a/examples/https-server-glassfish/pom.xml b/examples/https-server-glassfish/pom.xml
index d034d5ffb33..d261beecb25 100644
--- a/examples/https-server-glassfish/pom.xml
+++ b/examples/https-server-glassfish/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
https-server-glassfish
diff --git a/examples/java8-webapp/pom.xml b/examples/java8-webapp/pom.xml
index da4693a55f6..6c45a33885c 100644
--- a/examples/java8-webapp/pom.xml
+++ b/examples/java8-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
java8-webapp
diff --git a/examples/jaxb/pom.xml b/examples/jaxb/pom.xml
index e24b2e6b0e7..067bf562d83 100644
--- a/examples/jaxb/pom.xml
+++ b/examples/jaxb/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jaxb
diff --git a/examples/jaxrs-types-injection/pom.xml b/examples/jaxrs-types-injection/pom.xml
index e32726e5643..b894ff6a5a7 100644
--- a/examples/jaxrs-types-injection/pom.xml
+++ b/examples/jaxrs-types-injection/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jaxrs-types-injection
diff --git a/examples/jersey-ejb/pom.xml b/examples/jersey-ejb/pom.xml
index 4702463cc61..d503a987e96 100644
--- a/examples/jersey-ejb/pom.xml
+++ b/examples/jersey-ejb/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-ejb
diff --git a/examples/json-binding-webapp/pom.xml b/examples/json-binding-webapp/pom.xml
index 979236e59f9..5a24b6c8280 100644
--- a/examples/json-binding-webapp/pom.xml
+++ b/examples/json-binding-webapp/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
json-binding-webapp
diff --git a/examples/json-jackson/pom.xml b/examples/json-jackson/pom.xml
index 4cdfb639399..8e497aabe26 100644
--- a/examples/json-jackson/pom.xml
+++ b/examples/json-jackson/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
json-jackson
diff --git a/examples/json-jettison/pom.xml b/examples/json-jettison/pom.xml
index 15a4e25e379..59a7ce9838a 100644
--- a/examples/json-jettison/pom.xml
+++ b/examples/json-jettison/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
json-jettison
diff --git a/examples/json-moxy/pom.xml b/examples/json-moxy/pom.xml
index 2ae80e1f8c3..d0aabc6ef59 100644
--- a/examples/json-moxy/pom.xml
+++ b/examples/json-moxy/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
json-moxy
diff --git a/examples/json-processing-webapp/pom.xml b/examples/json-processing-webapp/pom.xml
index 10993fc8997..053323f76fa 100644
--- a/examples/json-processing-webapp/pom.xml
+++ b/examples/json-processing-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
json-processing-webapp
diff --git a/examples/json-with-padding/pom.xml b/examples/json-with-padding/pom.xml
index 64dac76588f..7ed8acea4b3 100644
--- a/examples/json-with-padding/pom.xml
+++ b/examples/json-with-padding/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
json-with-padding
diff --git a/examples/managed-beans-webapp/pom.xml b/examples/managed-beans-webapp/pom.xml
index e66fb183731..622dd30521b 100644
--- a/examples/managed-beans-webapp/pom.xml
+++ b/examples/managed-beans-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
managed-beans-webapp
diff --git a/examples/managed-client-simple-webapp/pom.xml b/examples/managed-client-simple-webapp/pom.xml
index 53ab47eaff0..2382e8aa9e1 100644
--- a/examples/managed-client-simple-webapp/pom.xml
+++ b/examples/managed-client-simple-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
managed-client-simple-webapp
diff --git a/examples/managed-client-webapp/pom.xml b/examples/managed-client-webapp/pom.xml
index 0583e891c94..06fdad5aa27 100644
--- a/examples/managed-client-webapp/pom.xml
+++ b/examples/managed-client-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
managed-client-webapp
diff --git a/examples/managed-client/pom.xml b/examples/managed-client/pom.xml
index ac3e5f9ff0f..9bbbb02098b 100644
--- a/examples/managed-client/pom.xml
+++ b/examples/managed-client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
managed-client
diff --git a/examples/multipart-webapp/pom.xml b/examples/multipart-webapp/pom.xml
index 9cb43ffd94b..b507c8b63b1 100644
--- a/examples/multipart-webapp/pom.xml
+++ b/examples/multipart-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
multipart-webapp
diff --git a/examples/oauth-client-twitter/pom.xml b/examples/oauth-client-twitter/pom.xml
index 3b4e9dfb186..608be823f7d 100644
--- a/examples/oauth-client-twitter/pom.xml
+++ b/examples/oauth-client-twitter/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index 76a9ffa1c4d..cc01f9962e1 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
open-tracing
diff --git a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
index 51563792217..ec2697d452e 100644
--- a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
index f9f6a070392..c1f7a6f46ae 100644
--- a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index bdce8538d72..76e6a3f42cb 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
index b92f2e1614f..6966efcef5b 100644
--- a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/pom.xml b/examples/osgi-helloworld-webapp/pom.xml
index 172dc08de0a..75874bf0550 100644
--- a/examples/osgi-helloworld-webapp/pom.xml
+++ b/examples/osgi-helloworld-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/war-bundle/pom.xml b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
index 56f0cc4f30d..b789a5b8a69 100644
--- a/examples/osgi-helloworld-webapp/war-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/pom.xml b/examples/pom.xml
index 70cf1629ce4..118742699dd 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
diff --git a/examples/reload/pom.xml b/examples/reload/pom.xml
index 27427604cf8..2b35463e4a3 100644
--- a/examples/reload/pom.xml
+++ b/examples/reload/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
reload
diff --git a/examples/rx-client-webapp/pom.xml b/examples/rx-client-webapp/pom.xml
index f009bf06fcc..61a1db54f16 100644
--- a/examples/rx-client-webapp/pom.xml
+++ b/examples/rx-client-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
rx-client-webapp
diff --git a/examples/server-async-managed/pom.xml b/examples/server-async-managed/pom.xml
index a32dbf4aefb..229c32c68c4 100644
--- a/examples/server-async-managed/pom.xml
+++ b/examples/server-async-managed/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
server-async-managed
diff --git a/examples/server-async-standalone/client/pom.xml b/examples/server-async-standalone/client/pom.xml
index 19447beabda..e1aa9c576fa 100644
--- a/examples/server-async-standalone/client/pom.xml
+++ b/examples/server-async-standalone/client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
server-async-standalone-client
diff --git a/examples/server-async-standalone/pom.xml b/examples/server-async-standalone/pom.xml
index 8b857fcc79f..11cf0bf8eec 100644
--- a/examples/server-async-standalone/pom.xml
+++ b/examples/server-async-standalone/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
server-async-standalone
diff --git a/examples/server-async-standalone/webapp/pom.xml b/examples/server-async-standalone/webapp/pom.xml
index 251316e440c..b38ff1cf16d 100644
--- a/examples/server-async-standalone/webapp/pom.xml
+++ b/examples/server-async-standalone/webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
server-async-standalone-webapp
diff --git a/examples/server-async/pom.xml b/examples/server-async/pom.xml
index cdabf47a283..9b4ca355644 100644
--- a/examples/server-async/pom.xml
+++ b/examples/server-async/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
server-async
diff --git a/examples/server-sent-events-jaxrs/pom.xml b/examples/server-sent-events-jaxrs/pom.xml
index 45f264ad4a8..0da67c32d77 100644
--- a/examples/server-sent-events-jaxrs/pom.xml
+++ b/examples/server-sent-events-jaxrs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
server-sent-events-jaxrs
diff --git a/examples/server-sent-events-jersey/pom.xml b/examples/server-sent-events-jersey/pom.xml
index af941b73b10..e41180e254f 100644
--- a/examples/server-sent-events-jersey/pom.xml
+++ b/examples/server-sent-events-jersey/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
server-sent-events-jersey
diff --git a/examples/servlet3-webapp/pom.xml b/examples/servlet3-webapp/pom.xml
index 5d2428b3553..d44fe5a0d6d 100644
--- a/examples/servlet3-webapp/pom.xml
+++ b/examples/servlet3-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet3-webapp
diff --git a/examples/simple-console/pom.xml b/examples/simple-console/pom.xml
index ce9ef1d032e..0b2e73d0bb7 100644
--- a/examples/simple-console/pom.xml
+++ b/examples/simple-console/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
simple-console
diff --git a/examples/sse-item-store-jaxrs-webapp/pom.xml b/examples/sse-item-store-jaxrs-webapp/pom.xml
index e65c1f505c5..59682523e3b 100644
--- a/examples/sse-item-store-jaxrs-webapp/pom.xml
+++ b/examples/sse-item-store-jaxrs-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
sse-item-store-jaxrs-webapp
diff --git a/examples/sse-item-store-jersey-webapp/pom.xml b/examples/sse-item-store-jersey-webapp/pom.xml
index a57656dcdcf..d7e47e29329 100644
--- a/examples/sse-item-store-jersey-webapp/pom.xml
+++ b/examples/sse-item-store-jersey-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
sse-item-store-jersey-webapp
diff --git a/examples/sse-twitter-aggregator/pom.xml b/examples/sse-twitter-aggregator/pom.xml
index 6adf1a8b45a..e147d378161 100644
--- a/examples/sse-twitter-aggregator/pom.xml
+++ b/examples/sse-twitter-aggregator/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
sse-twitter-aggregator
diff --git a/examples/system-properties-example/pom.xml b/examples/system-properties-example/pom.xml
index 4f351e4a5e9..3eda788e879 100644
--- a/examples/system-properties-example/pom.xml
+++ b/examples/system-properties-example/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
system-properties-example
diff --git a/examples/webapp-example-parent/pom.xml b/examples/webapp-example-parent/pom.xml
index 536e978b3aa..fadf66aae07 100644
--- a/examples/webapp-example-parent/pom.xml
+++ b/examples/webapp-example-parent/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
webapp-example-parent
diff --git a/examples/xml-moxy/pom.xml b/examples/xml-moxy/pom.xml
index 814bbd71a43..7ee7130c728 100644
--- a/examples/xml-moxy/pom.xml
+++ b/examples/xml-moxy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
xml-moxy
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index 2b7fa915bd9..be3a8872098 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-bean-validation
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index 24c6d471c34..bbc627cf7bf 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext.cdi
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
index ff5a5ce893e..69c0f15d27f 100644
--- a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
+++ b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-cdi1x-ban-custom-hk2-binding
diff --git a/ext/cdi/jersey-cdi1x-servlet/pom.xml b/ext/cdi/jersey-cdi1x-servlet/pom.xml
index 0ed5684d175..057251d9c19 100644
--- a/ext/cdi/jersey-cdi1x-servlet/pom.xml
+++ b/ext/cdi/jersey-cdi1x-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-cdi1x-servlet
diff --git a/ext/cdi/jersey-cdi1x-transaction/pom.xml b/ext/cdi/jersey-cdi1x-transaction/pom.xml
index 17058f0ed57..5c7b4cd27c7 100644
--- a/ext/cdi/jersey-cdi1x-transaction/pom.xml
+++ b/ext/cdi/jersey-cdi1x-transaction/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-cdi1x-transaction
diff --git a/ext/cdi/jersey-cdi1x-validation/pom.xml b/ext/cdi/jersey-cdi1x-validation/pom.xml
index 7453c001b1e..45701d1bef1 100644
--- a/ext/cdi/jersey-cdi1x-validation/pom.xml
+++ b/ext/cdi/jersey-cdi1x-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-cdi1x-validation
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index 59e7ce33219..0c2425d9f24 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-cdi1x
diff --git a/ext/cdi/jersey-weld2-se/pom.xml b/ext/cdi/jersey-weld2-se/pom.xml
index f8609bfa128..18eddfb97ec 100644
--- a/ext/cdi/jersey-weld2-se/pom.xml
+++ b/ext/cdi/jersey-weld2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-weld2-se
diff --git a/ext/cdi/pom.xml b/ext/cdi/pom.xml
index 8653e97ef37..ef2abf451ac 100644
--- a/ext/cdi/pom.xml
+++ b/ext/cdi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.ext.cdi
diff --git a/ext/entity-filtering/pom.xml b/ext/entity-filtering/pom.xml
index 1f2613523bd..c3e322207c8 100644
--- a/ext/entity-filtering/pom.xml
+++ b/ext/entity-filtering/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-entity-filtering
diff --git a/ext/metainf-services/pom.xml b/ext/metainf-services/pom.xml
index 7b43b47227f..013934e000c 100644
--- a/ext/metainf-services/pom.xml
+++ b/ext/metainf-services/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-metainf-services
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index 7a49dfc0556..97451e71b7e 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index 025f127bf73..cc11d33f93b 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/ext/microprofile/pom.xml b/ext/microprofile/pom.xml
index 215ca3879af..f75232d67ad 100644
--- a/ext/microprofile/pom.xml
+++ b/ext/microprofile/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/ext/mvc-bean-validation/pom.xml b/ext/mvc-bean-validation/pom.xml
index c874d2fc713..8fe8ffe0fed 100644
--- a/ext/mvc-bean-validation/pom.xml
+++ b/ext/mvc-bean-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-mvc-bean-validation
diff --git a/ext/mvc-freemarker/pom.xml b/ext/mvc-freemarker/pom.xml
index 4614b48675d..94776666752 100644
--- a/ext/mvc-freemarker/pom.xml
+++ b/ext/mvc-freemarker/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-mvc-freemarker
diff --git a/ext/mvc-jsp/pom.xml b/ext/mvc-jsp/pom.xml
index 6e894ed9d71..6bf47a42c02 100644
--- a/ext/mvc-jsp/pom.xml
+++ b/ext/mvc-jsp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-mvc-jsp
diff --git a/ext/mvc-mustache/pom.xml b/ext/mvc-mustache/pom.xml
index 3a63b8c7314..c409a7c045e 100644
--- a/ext/mvc-mustache/pom.xml
+++ b/ext/mvc-mustache/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-mvc-mustache
diff --git a/ext/mvc/pom.xml b/ext/mvc/pom.xml
index 4ceadf79054..3d2f274de2f 100644
--- a/ext/mvc/pom.xml
+++ b/ext/mvc/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-mvc
diff --git a/ext/pom.xml b/ext/pom.xml
index 93e409d4782..fa7003a00b2 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.ext
diff --git a/ext/proxy-client/pom.xml b/ext/proxy-client/pom.xml
index 4bf1460f805..26526f6622b 100644
--- a/ext/proxy-client/pom.xml
+++ b/ext/proxy-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-proxy-client
diff --git a/ext/rx/pom.xml b/ext/rx/pom.xml
index 1a4de9a61da..f20bbbdc533 100644
--- a/ext/rx/pom.xml
+++ b/ext/rx/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.ext.rx
diff --git a/ext/rx/rx-client-guava/pom.xml b/ext/rx/rx-client-guava/pom.xml
index b3f1087ff09..71fe9a9239e 100644
--- a/ext/rx/rx-client-guava/pom.xml
+++ b/ext/rx/rx-client-guava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-rx-client-guava
diff --git a/ext/rx/rx-client-rxjava/pom.xml b/ext/rx/rx-client-rxjava/pom.xml
index 728bc60d75b..39043ceace0 100644
--- a/ext/rx/rx-client-rxjava/pom.xml
+++ b/ext/rx/rx-client-rxjava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-rx-client-rxjava
diff --git a/ext/rx/rx-client-rxjava2/pom.xml b/ext/rx/rx-client-rxjava2/pom.xml
index cf705933dda..f859654bd67 100644
--- a/ext/rx/rx-client-rxjava2/pom.xml
+++ b/ext/rx/rx-client-rxjava2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-rx-client-rxjava2
diff --git a/ext/spring6/pom.xml b/ext/spring6/pom.xml
index 84c9cd4b4cd..4f28e9491c9 100644
--- a/ext/spring6/pom.xml
+++ b/ext/spring6/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-spring6
diff --git a/ext/wadl-doclet/pom.xml b/ext/wadl-doclet/pom.xml
index 47a11c2211f..e4f43c38566 100644
--- a/ext/wadl-doclet/pom.xml
+++ b/ext/wadl-doclet/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
jersey-wadl-doclet
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index a79e1173291..2ed9f7d24b1 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-cdi-inject-weld
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index 1188115b0ac..2a6c8a5a7c2 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.ext
diff --git a/incubator/gae-integration/pom.xml b/incubator/gae-integration/pom.xml
index 28971e56816..b8b51b601f5 100644
--- a/incubator/gae-integration/pom.xml
+++ b/incubator/gae-integration/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-gae-integration
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index 2ad845b8e8a..3ad5b9ebb00 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.media
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index 3911bf84fba..36b1f1ba80d 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.media
diff --git a/incubator/open-tracing/pom.xml b/incubator/open-tracing/pom.xml
index 7994cab4090..f9a3775af50 100644
--- a/incubator/open-tracing/pom.xml
+++ b/incubator/open-tracing/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.incubator
diff --git a/incubator/pom.xml b/incubator/pom.xml
index e82e47b7eee..9a9d6bc57d9 100644
--- a/incubator/pom.xml
+++ b/incubator/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.incubator
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index 12fa43c2cf2..d4d2c26dca5 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-cdi2-se
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index c3c8b94b971..0f9eacbdcdf 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-hk2
diff --git a/inject/pom.xml b/inject/pom.xml
index b43c0e318dd..57a755dcc72 100644
--- a/inject/pom.xml
+++ b/inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.inject
diff --git a/media/jaxb/pom.xml b/media/jaxb/pom.xml
index 48560070e22..2eaf52df496 100644
--- a/media/jaxb/pom.xml
+++ b/media/jaxb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-media-jaxb
diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
index f09590fecfb..3ae3b876b69 100644
--- a/media/json-binding/pom.xml
+++ b/media/json-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-media-json-binding
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index e57899b9dac..8b2c2c5f090 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-media-json-gson
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index a0eb3bdeb6e..9456ee6234b 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-media-json-jackson
diff --git a/media/json-jettison/pom.xml b/media/json-jettison/pom.xml
index ae6d2656263..6ff9a2160a9 100644
--- a/media/json-jettison/pom.xml
+++ b/media/json-jettison/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-media-json-jettison
diff --git a/media/json-processing/pom.xml b/media/json-processing/pom.xml
index 9f884eedfba..373b1749528 100644
--- a/media/json-processing/pom.xml
+++ b/media/json-processing/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-media-json-processing
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index d1db2b3280b..f590550e8e3 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-media-moxy
diff --git a/media/multipart/pom.xml b/media/multipart/pom.xml
index a9c49565d7e..bb340e515dd 100644
--- a/media/multipart/pom.xml
+++ b/media/multipart/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-media-multipart
diff --git a/media/pom.xml b/media/pom.xml
index 72a5ef66418..e738eb1ac89 100644
--- a/media/pom.xml
+++ b/media/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.media
diff --git a/media/sse/pom.xml b/media/sse/pom.xml
index 812e7a6370d..df3d62fcbdd 100644
--- a/media/sse/pom.xml
+++ b/media/sse/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-media-sse
diff --git a/pom.xml b/pom.xml
index 03f87884f0b..d802b111623 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
org.glassfish.jersey
project
pom
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey
Eclipse Jersey is the open source (under dual EPL+GPL license) Jakarta RESTful WebServices 3.0
diff --git a/security/oauth1-client/pom.xml b/security/oauth1-client/pom.xml
index bf765dc1ca2..11fd168ce3b 100644
--- a/security/oauth1-client/pom.xml
+++ b/security/oauth1-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.security
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
oauth1-client
diff --git a/security/oauth1-server/pom.xml b/security/oauth1-server/pom.xml
index 86b14091918..7af4fb9e572 100644
--- a/security/oauth1-server/pom.xml
+++ b/security/oauth1-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.security
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
oauth1-server
diff --git a/security/oauth1-signature/pom.xml b/security/oauth1-signature/pom.xml
index b1daa8b93f7..22055bc726d 100644
--- a/security/oauth1-signature/pom.xml
+++ b/security/oauth1-signature/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/security/oauth2-client/pom.xml b/security/oauth2-client/pom.xml
index 920e17f2088..e55aca53ac2 100644
--- a/security/oauth2-client/pom.xml
+++ b/security/oauth2-client/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/security/pom.xml b/security/pom.xml
index a798df20da5..c457f1000c3 100644
--- a/security/pom.xml
+++ b/security/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.security
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index a997e33c1cf..cf14a948ad4 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-test-framework-core
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index 819f36a67c0..710dab3aaac 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
container-runner-maven-plugin
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index c690eef5731..454813d907e 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
custom-enforcer-rules
diff --git a/test-framework/maven/pom.xml b/test-framework/maven/pom.xml
index 84d353b880a..495bf2028bd 100644
--- a/test-framework/maven/pom.xml
+++ b/test-framework/maven/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.test-framework.maven
diff --git a/test-framework/memleak-test-common/pom.xml b/test-framework/memleak-test-common/pom.xml
index a9b8f3d74b4..08b0dacd366 100644
--- a/test-framework/memleak-test-common/pom.xml
+++ b/test-framework/memleak-test-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
memleak-test-common
diff --git a/test-framework/pom.xml b/test-framework/pom.xml
index eadee509eca..c85640a995a 100644
--- a/test-framework/pom.xml
+++ b/test-framework/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.test-framework
diff --git a/test-framework/providers/bundle/pom.xml b/test-framework/providers/bundle/pom.xml
index adc29afeea3..0ede2389128 100644
--- a/test-framework/providers/bundle/pom.xml
+++ b/test-framework/providers/bundle/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-test-framework-provider-bundle
diff --git a/test-framework/providers/external/pom.xml b/test-framework/providers/external/pom.xml
index 11cddbc864b..e3979deec37 100644
--- a/test-framework/providers/external/pom.xml
+++ b/test-framework/providers/external/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-test-framework-provider-external
diff --git a/test-framework/providers/grizzly2/pom.xml b/test-framework/providers/grizzly2/pom.xml
index eb79c33ec93..b610451ac81 100644
--- a/test-framework/providers/grizzly2/pom.xml
+++ b/test-framework/providers/grizzly2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-test-framework-provider-grizzly2
diff --git a/test-framework/providers/inmemory/pom.xml b/test-framework/providers/inmemory/pom.xml
index a7fb228a465..a7156f4ef59 100644
--- a/test-framework/providers/inmemory/pom.xml
+++ b/test-framework/providers/inmemory/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-test-framework-provider-inmemory
diff --git a/test-framework/providers/jdk-http/pom.xml b/test-framework/providers/jdk-http/pom.xml
index 3876be43783..01bc066849f 100644
--- a/test-framework/providers/jdk-http/pom.xml
+++ b/test-framework/providers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-test-framework-provider-jdk-http
diff --git a/test-framework/providers/jetty/pom.xml b/test-framework/providers/jetty/pom.xml
index 6f180821532..e2c1af2a747 100644
--- a/test-framework/providers/jetty/pom.xml
+++ b/test-framework/providers/jetty/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/test-framework/providers/netty/pom.xml b/test-framework/providers/netty/pom.xml
index 38e56c787ab..a95f15aa4f4 100644
--- a/test-framework/providers/netty/pom.xml
+++ b/test-framework/providers/netty/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-test-framework-provider-netty
diff --git a/test-framework/providers/pom.xml b/test-framework/providers/pom.xml
index 0da4a34cbc3..724c29593a1 100644
--- a/test-framework/providers/pom.xml
+++ b/test-framework/providers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.test-framework.providers
diff --git a/test-framework/providers/simple/pom.xml b/test-framework/providers/simple/pom.xml
index 649b652dc91..69ba9fd4f36 100644
--- a/test-framework/providers/simple/pom.xml
+++ b/test-framework/providers/simple/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/test-framework/util/pom.xml b/test-framework/util/pom.xml
index 569ab3e5c48..0bcd9b7b2ae 100644
--- a/test-framework/util/pom.xml
+++ b/test-framework/util/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-test-framework-util
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index 8bf775b91b1..729a43353e5 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
e2e-client
diff --git a/tests/e2e-core-common/pom.xml b/tests/e2e-core-common/pom.xml
index 0c97c1f4860..b0ff4ebf584 100644
--- a/tests/e2e-core-common/pom.xml
+++ b/tests/e2e-core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
e2e-core-common
diff --git a/tests/e2e-entity/pom.xml b/tests/e2e-entity/pom.xml
index 3c654b538af..28d27472be7 100644
--- a/tests/e2e-entity/pom.xml
+++ b/tests/e2e-entity/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
e2e-entity
diff --git a/tests/e2e-inject/cdi-inject-weld/pom.xml b/tests/e2e-inject/cdi-inject-weld/pom.xml
index 37f6c7665e9..97697b21f66 100644
--- a/tests/e2e-inject/cdi-inject-weld/pom.xml
+++ b/tests/e2e-inject/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
e2e-inject-cdi-inject-weld
diff --git a/tests/e2e-inject/cdi2-se/pom.xml b/tests/e2e-inject/cdi2-se/pom.xml
index 578e6e9b236..ea644cd7809 100644
--- a/tests/e2e-inject/cdi2-se/pom.xml
+++ b/tests/e2e-inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
e2e-inject-cdi2-se
diff --git a/tests/e2e-inject/hk2/pom.xml b/tests/e2e-inject/hk2/pom.xml
index cf8d651a844..df35d73128e 100644
--- a/tests/e2e-inject/hk2/pom.xml
+++ b/tests/e2e-inject/hk2/pom.xml
@@ -23,7 +23,7 @@
e2e-inject
org.glassfish.jersey.tests
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/e2e-inject/pom.xml b/tests/e2e-inject/pom.xml
index a6dcfeb1dff..cc393e7c050 100644
--- a/tests/e2e-inject/pom.xml
+++ b/tests/e2e-inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
e2e-inject
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index b82ce78e42d..3500e1398b7 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
e2e-server
diff --git a/tests/e2e-testng/pom.xml b/tests/e2e-testng/pom.xml
index 8e137eecb59..9a7fc56ae86 100644
--- a/tests/e2e-testng/pom.xml
+++ b/tests/e2e-testng/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
e2e-testng
diff --git a/tests/e2e/pom.xml b/tests/e2e/pom.xml
index 4ef8f9f4ae2..ec78efae8c5 100644
--- a/tests/e2e/pom.xml
+++ b/tests/e2e/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
e2e
diff --git a/tests/integration/asm/pom.xml b/tests/integration/asm/pom.xml
index 31000df913a..9ee983acef7 100644
--- a/tests/integration/asm/pom.xml
+++ b/tests/integration/asm/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/async-jersey-filter/pom.xml b/tests/integration/async-jersey-filter/pom.xml
index 62fec858bd8..4db6da5675e 100644
--- a/tests/integration/async-jersey-filter/pom.xml
+++ b/tests/integration/async-jersey-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
async-jersey-filter
diff --git a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
index dcbcb126a7c..cda9a701550 100644
--- a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-beanvalidation-webapp
diff --git a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
index fbcc5e486c8..f64e3091088 100644
--- a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-client-on-server
diff --git a/tests/integration/cdi-integration/cdi-client/pom.xml b/tests/integration/cdi-integration/cdi-client/pom.xml
index 06b90f8c034..548e446c338 100644
--- a/tests/integration/cdi-integration/cdi-client/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-client
diff --git a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
index 1281b55d74d..77ed5518807 100644
--- a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-ejb-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
index 0e5399985b1..a4e72f1ec0f 100644
--- a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-iface-with-non-jaxrs-impl-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-log-check/pom.xml b/tests/integration/cdi-integration/cdi-log-check/pom.xml
index e67c62e364e..c1aee4d8f55 100644
--- a/tests/integration/cdi-integration/cdi-log-check/pom.xml
+++ b/tests/integration/cdi-integration/cdi-log-check/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-log-check
diff --git a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
index 3dee33d65f0..c1925b89df7 100644
--- a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
+++ b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
index 676d3c5a3f5..62ad425b7f7 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
index 2cb280fefde..b89780385d6 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
index a2432f470ce..8bbd89ab7ab 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-multimodule
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
index fd7511bb895..e4769b21748 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
index 421a999f06d..fd910a32d28 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
index 39156de90b3..041a1b5adcc 100644
--- a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-multipart-webapp
diff --git a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
index 23d316e8eb0..4ebaa214c7e 100644
--- a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
+++ b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-singleton/pom.xml b/tests/integration/cdi-integration/cdi-singleton/pom.xml
index ad33e450d7f..8a5395db181 100644
--- a/tests/integration/cdi-integration/cdi-singleton/pom.xml
+++ b/tests/integration/cdi-integration/cdi-singleton/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
index 03ca8b022ae..7bd1175cff3 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
index 722e892c7a2..670b8de7704 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-with-jersey-injection-custom-cfg-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
index acf68dab964..33514e670d3 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-with-jersey-injection-custom-hk2-banned-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
index 83084c2d2c0..39966aedaa5 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
cdi-with-jersey-injection-webapp
diff --git a/tests/integration/cdi-integration/context-inject-on-server/pom.xml b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
index 44636f4cc58..5fd8561531d 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/pom.xml
+++ b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
context-inject-on-server
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index dc9172c49dd..90d94f5e041 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/client-connector-provider/pom.xml b/tests/integration/client-connector-provider/pom.xml
index d2d838fee79..3207806040f 100644
--- a/tests/integration/client-connector-provider/pom.xml
+++ b/tests/integration/client-connector-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
client-connector-provider
diff --git a/tests/integration/ejb-multimodule-reload/ear/pom.xml b/tests/integration/ejb-multimodule-reload/ear/pom.xml
index fe527f5e5f8..36e34e64839 100644
--- a/tests/integration/ejb-multimodule-reload/ear/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/lib/pom.xml b/tests/integration/ejb-multimodule-reload/lib/pom.xml
index 3bef14eb4c8..e8f92151cc5 100644
--- a/tests/integration/ejb-multimodule-reload/lib/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/pom.xml b/tests/integration/ejb-multimodule-reload/pom.xml
index c041b5a5450..40c879fb96b 100644
--- a/tests/integration/ejb-multimodule-reload/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
ejb-multimodule-reload
diff --git a/tests/integration/ejb-multimodule-reload/war1/pom.xml b/tests/integration/ejb-multimodule-reload/war1/pom.xml
index 5fda3a23e04..32ee1603d80 100644
--- a/tests/integration/ejb-multimodule-reload/war1/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/war2/pom.xml b/tests/integration/ejb-multimodule-reload/war2/pom.xml
index f3f7de908b7..8c9dd4cfb15 100644
--- a/tests/integration/ejb-multimodule-reload/war2/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/ear/pom.xml b/tests/integration/ejb-multimodule/ear/pom.xml
index 9d60c5d2fc7..22c8c1c989f 100644
--- a/tests/integration/ejb-multimodule/ear/pom.xml
+++ b/tests/integration/ejb-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/lib/pom.xml b/tests/integration/ejb-multimodule/lib/pom.xml
index 9b583c2d5e4..f08831d68e2 100644
--- a/tests/integration/ejb-multimodule/lib/pom.xml
+++ b/tests/integration/ejb-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/pom.xml b/tests/integration/ejb-multimodule/pom.xml
index d1527cd4530..491874016d4 100644
--- a/tests/integration/ejb-multimodule/pom.xml
+++ b/tests/integration/ejb-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
ejb-multimodule
diff --git a/tests/integration/ejb-multimodule/war/pom.xml b/tests/integration/ejb-multimodule/war/pom.xml
index 0fb17710ad5..0e315af07b2 100644
--- a/tests/integration/ejb-multimodule/war/pom.xml
+++ b/tests/integration/ejb-multimodule/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-test-webapp/pom.xml b/tests/integration/ejb-test-webapp/pom.xml
index 86c7e423f0f..cb1ca1c0704 100644
--- a/tests/integration/ejb-test-webapp/pom.xml
+++ b/tests/integration/ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
ejb-test-webapp
diff --git a/tests/integration/externalproperties/pom.xml b/tests/integration/externalproperties/pom.xml
index 91ff812f485..1ca814ee8aa 100644
--- a/tests/integration/externalproperties/pom.xml
+++ b/tests/integration/externalproperties/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
externalproperties
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index bdc4ce0065e..935cd8ffc1e 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
j-376
diff --git a/tests/integration/j-441/ear/pom.xml b/tests/integration/j-441/ear/pom.xml
index 37d2588c5a7..2e2d1459f9d 100644
--- a/tests/integration/j-441/ear/pom.xml
+++ b/tests/integration/j-441/ear/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
j-441-ear
diff --git a/tests/integration/j-441/pom.xml b/tests/integration/j-441/pom.xml
index 34bce1499dc..8d97ce9ab9e 100644
--- a/tests/integration/j-441/pom.xml
+++ b/tests/integration/j-441/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
j-441
diff --git a/tests/integration/j-441/war1/pom.xml b/tests/integration/j-441/war1/pom.xml
index 9c4bb2ca3f1..5a1ebb5e72e 100644
--- a/tests/integration/j-441/war1/pom.xml
+++ b/tests/integration/j-441/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-441/war2/pom.xml b/tests/integration/j-441/war2/pom.xml
index 075cf5ff2b5..fc0e19a7a6b 100644
--- a/tests/integration/j-441/war2/pom.xml
+++ b/tests/integration/j-441/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/ear/pom.xml b/tests/integration/j-59/ear/pom.xml
index 8eeeaa442a8..f211d2e1726 100644
--- a/tests/integration/j-59/ear/pom.xml
+++ b/tests/integration/j-59/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/lib/pom.xml b/tests/integration/j-59/lib/pom.xml
index 3f74aa4a5b5..46fa64368ca 100644
--- a/tests/integration/j-59/lib/pom.xml
+++ b/tests/integration/j-59/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/pom.xml b/tests/integration/j-59/pom.xml
index dc2dd9be86a..a222363e119 100644
--- a/tests/integration/j-59/pom.xml
+++ b/tests/integration/j-59/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
j-59
diff --git a/tests/integration/j-59/war/pom.xml b/tests/integration/j-59/war/pom.xml
index de2f4309274..08708517dc1 100644
--- a/tests/integration/j-59/war/pom.xml
+++ b/tests/integration/j-59/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/jaxrs-component-inject/pom.xml b/tests/integration/jaxrs-component-inject/pom.xml
index 5ad88a24815..9f31a725433 100644
--- a/tests/integration/jaxrs-component-inject/pom.xml
+++ b/tests/integration/jaxrs-component-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jaxrs-component-inject
diff --git a/tests/integration/jersey-1107/pom.xml b/tests/integration/jersey-1107/pom.xml
index 0454541101e..625feb55d14 100644
--- a/tests/integration/jersey-1107/pom.xml
+++ b/tests/integration/jersey-1107/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-1107
diff --git a/tests/integration/jersey-1223/pom.xml b/tests/integration/jersey-1223/pom.xml
index 77c48ae2a9a..c57b49704aa 100644
--- a/tests/integration/jersey-1223/pom.xml
+++ b/tests/integration/jersey-1223/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
jersey-1223
diff --git a/tests/integration/jersey-1604/pom.xml b/tests/integration/jersey-1604/pom.xml
index c35da56feec..3b15586b284 100644
--- a/tests/integration/jersey-1604/pom.xml
+++ b/tests/integration/jersey-1604/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
jersey-1604
diff --git a/tests/integration/jersey-1667/pom.xml b/tests/integration/jersey-1667/pom.xml
index 917e178bd1f..218a99f761d 100644
--- a/tests/integration/jersey-1667/pom.xml
+++ b/tests/integration/jersey-1667/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-1667
diff --git a/tests/integration/jersey-1883/pom.xml b/tests/integration/jersey-1883/pom.xml
index 4e483050991..940b08b2112 100644
--- a/tests/integration/jersey-1883/pom.xml
+++ b/tests/integration/jersey-1883/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-1883
diff --git a/tests/integration/jersey-1928/pom.xml b/tests/integration/jersey-1928/pom.xml
index d532fc19935..5463ed664bf 100644
--- a/tests/integration/jersey-1928/pom.xml
+++ b/tests/integration/jersey-1928/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
jersey-1928
diff --git a/tests/integration/jersey-1960/pom.xml b/tests/integration/jersey-1960/pom.xml
index 839ea548966..73c7cf21313 100644
--- a/tests/integration/jersey-1960/pom.xml
+++ b/tests/integration/jersey-1960/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-1960
diff --git a/tests/integration/jersey-1964/pom.xml b/tests/integration/jersey-1964/pom.xml
index 88c0f613417..d54819dc911 100644
--- a/tests/integration/jersey-1964/pom.xml
+++ b/tests/integration/jersey-1964/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-1964
diff --git a/tests/integration/jersey-2031/pom.xml b/tests/integration/jersey-2031/pom.xml
index 4a08c4f3a51..17764682004 100644
--- a/tests/integration/jersey-2031/pom.xml
+++ b/tests/integration/jersey-2031/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2031
diff --git a/tests/integration/jersey-2136/pom.xml b/tests/integration/jersey-2136/pom.xml
index 5c81daa8d40..634324dbe9f 100644
--- a/tests/integration/jersey-2136/pom.xml
+++ b/tests/integration/jersey-2136/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2136
diff --git a/tests/integration/jersey-2137/pom.xml b/tests/integration/jersey-2137/pom.xml
index 0522ff4f670..2f4eafc5b8c 100644
--- a/tests/integration/jersey-2137/pom.xml
+++ b/tests/integration/jersey-2137/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2137
diff --git a/tests/integration/jersey-2154/pom.xml b/tests/integration/jersey-2154/pom.xml
index 6453678cb32..45f25d8488e 100644
--- a/tests/integration/jersey-2154/pom.xml
+++ b/tests/integration/jersey-2154/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2154
diff --git a/tests/integration/jersey-2160/pom.xml b/tests/integration/jersey-2160/pom.xml
index 3d49b8aa8c8..5d2cc162960 100644
--- a/tests/integration/jersey-2160/pom.xml
+++ b/tests/integration/jersey-2160/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2160
diff --git a/tests/integration/jersey-2164/pom.xml b/tests/integration/jersey-2164/pom.xml
index e333ee33b00..3e23d4cf436 100644
--- a/tests/integration/jersey-2164/pom.xml
+++ b/tests/integration/jersey-2164/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2164
diff --git a/tests/integration/jersey-2167/pom.xml b/tests/integration/jersey-2167/pom.xml
index 4bef57f7467..dbbf21560da 100644
--- a/tests/integration/jersey-2167/pom.xml
+++ b/tests/integration/jersey-2167/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2167
diff --git a/tests/integration/jersey-2176/pom.xml b/tests/integration/jersey-2176/pom.xml
index b545f241a0e..ce80a2e71eb 100644
--- a/tests/integration/jersey-2176/pom.xml
+++ b/tests/integration/jersey-2176/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2176
diff --git a/tests/integration/jersey-2184/pom.xml b/tests/integration/jersey-2184/pom.xml
index b3eb6732466..0599984b6a9 100644
--- a/tests/integration/jersey-2184/pom.xml
+++ b/tests/integration/jersey-2184/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2184
diff --git a/tests/integration/jersey-2255/pom.xml b/tests/integration/jersey-2255/pom.xml
index 864bbda5782..31c51502f9b 100644
--- a/tests/integration/jersey-2255/pom.xml
+++ b/tests/integration/jersey-2255/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2255
diff --git a/tests/integration/jersey-2322/pom.xml b/tests/integration/jersey-2322/pom.xml
index 967f2214cfb..309f71fc8f7 100644
--- a/tests/integration/jersey-2322/pom.xml
+++ b/tests/integration/jersey-2322/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2322
diff --git a/tests/integration/jersey-2335/pom.xml b/tests/integration/jersey-2335/pom.xml
index ae251628aaa..81335ccc902 100644
--- a/tests/integration/jersey-2335/pom.xml
+++ b/tests/integration/jersey-2335/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2335
diff --git a/tests/integration/jersey-2421/pom.xml b/tests/integration/jersey-2421/pom.xml
index 57272ef5469..55e2bc7e6aa 100644
--- a/tests/integration/jersey-2421/pom.xml
+++ b/tests/integration/jersey-2421/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2421
diff --git a/tests/integration/jersey-2551/pom.xml b/tests/integration/jersey-2551/pom.xml
index 4b3ed85e792..ce2c269422b 100644
--- a/tests/integration/jersey-2551/pom.xml
+++ b/tests/integration/jersey-2551/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2551
diff --git a/tests/integration/jersey-2612/pom.xml b/tests/integration/jersey-2612/pom.xml
index cc4ba0cb4ce..294dc90473e 100644
--- a/tests/integration/jersey-2612/pom.xml
+++ b/tests/integration/jersey-2612/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2612
diff --git a/tests/integration/jersey-2637/pom.xml b/tests/integration/jersey-2637/pom.xml
index a9099a75ff5..5d6d2b983b4 100644
--- a/tests/integration/jersey-2637/pom.xml
+++ b/tests/integration/jersey-2637/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2637
diff --git a/tests/integration/jersey-2654/pom.xml b/tests/integration/jersey-2654/pom.xml
index 5a8ce536f94..f8277b1f5b2 100644
--- a/tests/integration/jersey-2654/pom.xml
+++ b/tests/integration/jersey-2654/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2654
diff --git a/tests/integration/jersey-2673/pom.xml b/tests/integration/jersey-2673/pom.xml
index 0c4b09d6c28..bcd11d5ab4c 100644
--- a/tests/integration/jersey-2673/pom.xml
+++ b/tests/integration/jersey-2673/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2673
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index 48d18109dfb..cf66de835d3 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2689
diff --git a/tests/integration/jersey-2704/pom.xml b/tests/integration/jersey-2704/pom.xml
index 673d322df5e..c804bee61d0 100644
--- a/tests/integration/jersey-2704/pom.xml
+++ b/tests/integration/jersey-2704/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2704
diff --git a/tests/integration/jersey-2776/pom.xml b/tests/integration/jersey-2776/pom.xml
index 3a8f6045da8..00442751dd3 100644
--- a/tests/integration/jersey-2776/pom.xml
+++ b/tests/integration/jersey-2776/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2776
diff --git a/tests/integration/jersey-2794/pom.xml b/tests/integration/jersey-2794/pom.xml
index f5e47fda936..86a684442fa 100644
--- a/tests/integration/jersey-2794/pom.xml
+++ b/tests/integration/jersey-2794/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2794
diff --git a/tests/integration/jersey-2846/pom.xml b/tests/integration/jersey-2846/pom.xml
index 4f4bb9e1766..44b6dc5f611 100644
--- a/tests/integration/jersey-2846/pom.xml
+++ b/tests/integration/jersey-2846/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2846
diff --git a/tests/integration/jersey-2878/pom.xml b/tests/integration/jersey-2878/pom.xml
index 1fba3f01eb5..61b1c9d35fd 100644
--- a/tests/integration/jersey-2878/pom.xml
+++ b/tests/integration/jersey-2878/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2878
diff --git a/tests/integration/jersey-2892/pom.xml b/tests/integration/jersey-2892/pom.xml
index a2c420f62ac..5aea57a9f62 100644
--- a/tests/integration/jersey-2892/pom.xml
+++ b/tests/integration/jersey-2892/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-2892
diff --git a/tests/integration/jersey-3662/pom.xml b/tests/integration/jersey-3662/pom.xml
index ed7425b8f12..dd23d8e83d5 100644
--- a/tests/integration/jersey-3662/pom.xml
+++ b/tests/integration/jersey-3662/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-3670/pom.xml b/tests/integration/jersey-3670/pom.xml
index 2e23e7bd8e7..63e1b4449d6 100644
--- a/tests/integration/jersey-3670/pom.xml
+++ b/tests/integration/jersey-3670/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-3670
diff --git a/tests/integration/jersey-3796/pom.xml b/tests/integration/jersey-3796/pom.xml
index 1e23c00177b..5eca63fe282 100644
--- a/tests/integration/jersey-3796/pom.xml
+++ b/tests/integration/jersey-3796/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-3796
diff --git a/tests/integration/jersey-3992/pom.xml b/tests/integration/jersey-3992/pom.xml
index 3a91fa66675..acbfbb9a93b 100644
--- a/tests/integration/jersey-3992/pom.xml
+++ b/tests/integration/jersey-3992/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-3992
diff --git a/tests/integration/jersey-4003/pom.xml b/tests/integration/jersey-4003/pom.xml
index 9c2c8be8cc6..4c84ba5fdbf 100644
--- a/tests/integration/jersey-4003/pom.xml
+++ b/tests/integration/jersey-4003/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4099/pom.xml b/tests/integration/jersey-4099/pom.xml
index 8a11821c4b0..488d9ac8979 100644
--- a/tests/integration/jersey-4099/pom.xml
+++ b/tests/integration/jersey-4099/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-4099
diff --git a/tests/integration/jersey-4321/pom.xml b/tests/integration/jersey-4321/pom.xml
index 108d29d8cec..6cea96bb681 100644
--- a/tests/integration/jersey-4321/pom.xml
+++ b/tests/integration/jersey-4321/pom.xml
@@ -24,7 +24,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4507/pom.xml b/tests/integration/jersey-4507/pom.xml
index 7bd6c4267ba..1d8671b9071 100644
--- a/tests/integration/jersey-4507/pom.xml
+++ b/tests/integration/jersey-4507/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4542/pom.xml b/tests/integration/jersey-4542/pom.xml
index 9a57421cee7..dad386b37ae 100644
--- a/tests/integration/jersey-4542/pom.xml
+++ b/tests/integration/jersey-4542/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4697/pom.xml b/tests/integration/jersey-4697/pom.xml
index 699cad95c6e..1bf92830725 100644
--- a/tests/integration/jersey-4697/pom.xml
+++ b/tests/integration/jersey-4697/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4722/pom.xml b/tests/integration/jersey-4722/pom.xml
index e2aa43820c0..43fabebd762 100644
--- a/tests/integration/jersey-4722/pom.xml
+++ b/tests/integration/jersey-4722/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4949/pom.xml b/tests/integration/jersey-4949/pom.xml
index df426ac5bb9..90b762815db 100644
--- a/tests/integration/jersey-4949/pom.xml
+++ b/tests/integration/jersey-4949/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-4949
diff --git a/tests/integration/jersey-5087/pom.xml b/tests/integration/jersey-5087/pom.xml
index 7f97ce81595..efbfe3c2e16 100644
--- a/tests/integration/jersey-5087/pom.xml
+++ b/tests/integration/jersey-5087/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-780/pom.xml b/tests/integration/jersey-780/pom.xml
index 4fd6edba78f..884540c680b 100644
--- a/tests/integration/jersey-780/pom.xml
+++ b/tests/integration/jersey-780/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-780
diff --git a/tests/integration/microprofile/config/helidon/pom.xml b/tests/integration/microprofile/config/helidon/pom.xml
index 47bca4af4b4..4252efc714b 100644
--- a/tests/integration/microprofile/config/helidon/pom.xml
+++ b/tests/integration/microprofile/config/helidon/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/config/pom.xml b/tests/integration/microprofile/config/pom.xml
index 3428dcce3f9..16f7cdfb63f 100644
--- a/tests/integration/microprofile/config/pom.xml
+++ b/tests/integration/microprofile/config/pom.xml
@@ -22,7 +22,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/microprofile/config/webapp/pom.xml b/tests/integration/microprofile/config/webapp/pom.xml
index ef82e1e77e1..ed1d5edd285 100644
--- a/tests/integration/microprofile/config/webapp/pom.xml
+++ b/tests/integration/microprofile/config/webapp/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/pom.xml b/tests/integration/microprofile/pom.xml
index 19e06d62bbb..ef81370e9db 100644
--- a/tests/integration/microprofile/pom.xml
+++ b/tests/integration/microprofile/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/microprofile/rest-client-tck/pom.xml b/tests/integration/microprofile/rest-client-tck/pom.xml
index 9e477b8bd89..14e233474af 100644
--- a/tests/integration/microprofile/rest-client-tck/pom.xml
+++ b/tests/integration/microprofile/rest-client-tck/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/rest-client/pom.xml b/tests/integration/microprofile/rest-client/pom.xml
index 20e608714f3..bce2a0da56d 100644
--- a/tests/integration/microprofile/rest-client/pom.xml
+++ b/tests/integration/microprofile/rest-client/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index cc8b9dbe70a..c0289fbf4b2 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.tests.integration
diff --git a/tests/integration/property-check/pom.xml b/tests/integration/property-check/pom.xml
index f98c25cee90..81c0dbb903c 100644
--- a/tests/integration/property-check/pom.xml
+++ b/tests/integration/property-check/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
property-check
diff --git a/tests/integration/reactive-streams/pom.xml b/tests/integration/reactive-streams/pom.xml
index cef7e0e93c6..a3bd18578a5 100644
--- a/tests/integration/reactive-streams/pom.xml
+++ b/tests/integration/reactive-streams/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/reactive-streams/sse/pom.xml b/tests/integration/reactive-streams/sse/pom.xml
index b6031de788e..92abfb29eb3 100644
--- a/tests/integration/reactive-streams/sse/pom.xml
+++ b/tests/integration/reactive-streams/sse/pom.xml
@@ -22,7 +22,7 @@
reactive-streams-integration-project
org.glassfish.jersey.tests.integration.reactive
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/integration/security-digest/pom.xml b/tests/integration/security-digest/pom.xml
index 1c3d9390d63..a6dd8348609 100644
--- a/tests/integration/security-digest/pom.xml
+++ b/tests/integration/security-digest/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
security-digest
diff --git a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
index 170ebdc6057..c2fb0bb0649 100644
--- a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-autodiscovery-1
diff --git a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
index 75d0d9d1692..1e603bd1319 100644
--- a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-autodiscovery-2
diff --git a/tests/integration/servlet-2.5-filter/pom.xml b/tests/integration/servlet-2.5-filter/pom.xml
index f5bde77bdd3..96f96610f77 100644
--- a/tests/integration/servlet-2.5-filter/pom.xml
+++ b/tests/integration/servlet-2.5-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-filter
diff --git a/tests/integration/servlet-2.5-inflector-1/pom.xml b/tests/integration/servlet-2.5-inflector-1/pom.xml
index ded36f79cb4..b8af7662a95 100644
--- a/tests/integration/servlet-2.5-inflector-1/pom.xml
+++ b/tests/integration/servlet-2.5-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-inflector-1
diff --git a/tests/integration/servlet-2.5-init-1/pom.xml b/tests/integration/servlet-2.5-init-1/pom.xml
index be302070f83..04e2cc9ef72 100644
--- a/tests/integration/servlet-2.5-init-1/pom.xml
+++ b/tests/integration/servlet-2.5-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-init-1
diff --git a/tests/integration/servlet-2.5-init-2/pom.xml b/tests/integration/servlet-2.5-init-2/pom.xml
index a38fb5ab30a..dc45781a2ad 100644
--- a/tests/integration/servlet-2.5-init-2/pom.xml
+++ b/tests/integration/servlet-2.5-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-init-2
diff --git a/tests/integration/servlet-2.5-init-3/pom.xml b/tests/integration/servlet-2.5-init-3/pom.xml
index 54ae9820807..02ba933fba3 100644
--- a/tests/integration/servlet-2.5-init-3/pom.xml
+++ b/tests/integration/servlet-2.5-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-init-3
diff --git a/tests/integration/servlet-2.5-init-4/pom.xml b/tests/integration/servlet-2.5-init-4/pom.xml
index f46d5bc8f9c..0072028cb76 100644
--- a/tests/integration/servlet-2.5-init-4/pom.xml
+++ b/tests/integration/servlet-2.5-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-init-4
diff --git a/tests/integration/servlet-2.5-init-5/pom.xml b/tests/integration/servlet-2.5-init-5/pom.xml
index a2d1ae3058c..adc7d4946e9 100644
--- a/tests/integration/servlet-2.5-init-5/pom.xml
+++ b/tests/integration/servlet-2.5-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-init-5
diff --git a/tests/integration/servlet-2.5-init-6/pom.xml b/tests/integration/servlet-2.5-init-6/pom.xml
index 437f9499271..7f3ac5b7b3c 100644
--- a/tests/integration/servlet-2.5-init-6/pom.xml
+++ b/tests/integration/servlet-2.5-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-init-6
diff --git a/tests/integration/servlet-2.5-init-7/pom.xml b/tests/integration/servlet-2.5-init-7/pom.xml
index 43dc4e1441c..50fbc74d3e5 100644
--- a/tests/integration/servlet-2.5-init-7/pom.xml
+++ b/tests/integration/servlet-2.5-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-init-7
diff --git a/tests/integration/servlet-2.5-init-8/pom.xml b/tests/integration/servlet-2.5-init-8/pom.xml
index 5c3c50febae..e3973955f57 100644
--- a/tests/integration/servlet-2.5-init-8/pom.xml
+++ b/tests/integration/servlet-2.5-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-init-8
diff --git a/tests/integration/servlet-2.5-mvc-1/pom.xml b/tests/integration/servlet-2.5-mvc-1/pom.xml
index 64230478861..63892cdb20b 100644
--- a/tests/integration/servlet-2.5-mvc-1/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-mvc-1
diff --git a/tests/integration/servlet-2.5-mvc-2/pom.xml b/tests/integration/servlet-2.5-mvc-2/pom.xml
index 598e4e70840..cf3515d7a11 100644
--- a/tests/integration/servlet-2.5-mvc-2/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-mvc-2
diff --git a/tests/integration/servlet-2.5-mvc-3/pom.xml b/tests/integration/servlet-2.5-mvc-3/pom.xml
index 65804ef1f5e..32d989dda22 100644
--- a/tests/integration/servlet-2.5-mvc-3/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-mvc-3
diff --git a/tests/integration/servlet-2.5-reload/pom.xml b/tests/integration/servlet-2.5-reload/pom.xml
index 300e1eed8c3..dbafe7fecab 100644
--- a/tests/integration/servlet-2.5-reload/pom.xml
+++ b/tests/integration/servlet-2.5-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-2.5-reload
diff --git a/tests/integration/servlet-3-async/pom.xml b/tests/integration/servlet-3-async/pom.xml
index d305a505f17..71619d6eaeb 100644
--- a/tests/integration/servlet-3-async/pom.xml
+++ b/tests/integration/servlet-3-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-async
diff --git a/tests/integration/servlet-3-chunked-io/pom.xml b/tests/integration/servlet-3-chunked-io/pom.xml
index 4ea9c0416a0..70a99953d2e 100644
--- a/tests/integration/servlet-3-chunked-io/pom.xml
+++ b/tests/integration/servlet-3-chunked-io/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-chunked-io
diff --git a/tests/integration/servlet-3-filter/pom.xml b/tests/integration/servlet-3-filter/pom.xml
index 99405a2a0e3..c5511749d4d 100644
--- a/tests/integration/servlet-3-filter/pom.xml
+++ b/tests/integration/servlet-3-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-filter
diff --git a/tests/integration/servlet-3-gf-async/pom.xml b/tests/integration/servlet-3-gf-async/pom.xml
index 448e9063629..f741e8f51d3 100644
--- a/tests/integration/servlet-3-gf-async/pom.xml
+++ b/tests/integration/servlet-3-gf-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-gf-async
diff --git a/tests/integration/servlet-3-inflector-1/pom.xml b/tests/integration/servlet-3-inflector-1/pom.xml
index 7aff2b2ce51..95bb384d1f1 100644
--- a/tests/integration/servlet-3-inflector-1/pom.xml
+++ b/tests/integration/servlet-3-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-inflector-1
diff --git a/tests/integration/servlet-3-init-1/pom.xml b/tests/integration/servlet-3-init-1/pom.xml
index 3862f57778f..7c66926099f 100644
--- a/tests/integration/servlet-3-init-1/pom.xml
+++ b/tests/integration/servlet-3-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-init-1
diff --git a/tests/integration/servlet-3-init-2/pom.xml b/tests/integration/servlet-3-init-2/pom.xml
index 66bbfaad717..ca8d028ed39 100644
--- a/tests/integration/servlet-3-init-2/pom.xml
+++ b/tests/integration/servlet-3-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-init-2
diff --git a/tests/integration/servlet-3-init-3/pom.xml b/tests/integration/servlet-3-init-3/pom.xml
index d81772b1c59..5a37057e5fd 100644
--- a/tests/integration/servlet-3-init-3/pom.xml
+++ b/tests/integration/servlet-3-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-init-3
diff --git a/tests/integration/servlet-3-init-4/pom.xml b/tests/integration/servlet-3-init-4/pom.xml
index e2a8478d875..dde891b39ed 100644
--- a/tests/integration/servlet-3-init-4/pom.xml
+++ b/tests/integration/servlet-3-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-init-4
diff --git a/tests/integration/servlet-3-init-5/pom.xml b/tests/integration/servlet-3-init-5/pom.xml
index 88ec528e7ef..8adf7f68b5d 100644
--- a/tests/integration/servlet-3-init-5/pom.xml
+++ b/tests/integration/servlet-3-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-init-5
diff --git a/tests/integration/servlet-3-init-6/pom.xml b/tests/integration/servlet-3-init-6/pom.xml
index b0591746687..59ec309e1ce 100644
--- a/tests/integration/servlet-3-init-6/pom.xml
+++ b/tests/integration/servlet-3-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-init-6
diff --git a/tests/integration/servlet-3-init-7/pom.xml b/tests/integration/servlet-3-init-7/pom.xml
index 39661f9bd26..5fdb6023bd5 100644
--- a/tests/integration/servlet-3-init-7/pom.xml
+++ b/tests/integration/servlet-3-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-init-7
diff --git a/tests/integration/servlet-3-init-8/pom.xml b/tests/integration/servlet-3-init-8/pom.xml
index 9ab80e1f098..f65d7c0390b 100644
--- a/tests/integration/servlet-3-init-8/pom.xml
+++ b/tests/integration/servlet-3-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-init-8
diff --git a/tests/integration/servlet-3-init-9/pom.xml b/tests/integration/servlet-3-init-9/pom.xml
index 3eef199439d..bddea9f108d 100644
--- a/tests/integration/servlet-3-init-9/pom.xml
+++ b/tests/integration/servlet-3-init-9/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-init-9
diff --git a/tests/integration/servlet-3-init-provider/pom.xml b/tests/integration/servlet-3-init-provider/pom.xml
index a782024a329..07459d7b757 100644
--- a/tests/integration/servlet-3-init-provider/pom.xml
+++ b/tests/integration/servlet-3-init-provider/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-init-provider
diff --git a/tests/integration/servlet-3-params/pom.xml b/tests/integration/servlet-3-params/pom.xml
index d51e0ceb814..967c2d07ac2 100644
--- a/tests/integration/servlet-3-params/pom.xml
+++ b/tests/integration/servlet-3-params/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-params
diff --git a/tests/integration/servlet-3-sse-1/pom.xml b/tests/integration/servlet-3-sse-1/pom.xml
index ca82c6a288d..d71dd3aef06 100644
--- a/tests/integration/servlet-3-sse-1/pom.xml
+++ b/tests/integration/servlet-3-sse-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-3-sse-1
diff --git a/tests/integration/servlet-4.0-mvc-1/pom.xml b/tests/integration/servlet-4.0-mvc-1/pom.xml
index 73ab9c3b908..2aa24919af2 100644
--- a/tests/integration/servlet-4.0-mvc-1/pom.xml
+++ b/tests/integration/servlet-4.0-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-4.0-mvc-1
diff --git a/tests/integration/servlet-request-wrapper-binding-2/pom.xml b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
index 61f9b517c80..52761de8e26 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-request-wrappper-binding-2
diff --git a/tests/integration/servlet-request-wrapper-binding/pom.xml b/tests/integration/servlet-request-wrapper-binding/pom.xml
index 75671150326..1d0a4838ef5 100644
--- a/tests/integration/servlet-request-wrapper-binding/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-request-wrappper-binding
diff --git a/tests/integration/servlet-tests/pom.xml b/tests/integration/servlet-tests/pom.xml
index 2370cdae33e..329b1b57263 100644
--- a/tests/integration/servlet-tests/pom.xml
+++ b/tests/integration/servlet-tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
servlet-tests
diff --git a/tests/integration/sonar-test/pom.xml b/tests/integration/sonar-test/pom.xml
index 6e5ad790cb1..9dfddc2c0ff 100644
--- a/tests/integration/sonar-test/pom.xml
+++ b/tests/integration/sonar-test/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
sonar-test
diff --git a/tests/integration/spring6/pom.xml b/tests/integration/spring6/pom.xml
index 892549801d5..6da46c52547 100644
--- a/tests/integration/spring6/pom.xml
+++ b/tests/integration/spring6/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
spring6
diff --git a/tests/integration/tracing-support/pom.xml b/tests/integration/tracing-support/pom.xml
index 1618cae39bb..384de24405c 100644
--- a/tests/integration/tracing-support/pom.xml
+++ b/tests/integration/tracing-support/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
tracing-support
diff --git a/tests/jmockit/pom.xml b/tests/jmockit/pom.xml
index b23e24ee528..74de78523e3 100644
--- a/tests/jmockit/pom.xml
+++ b/tests/jmockit/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
4.0.0
diff --git a/tests/mem-leaks/pom.xml b/tests/mem-leaks/pom.xml
index 6f88b8c504a..f18ef800814 100644
--- a/tests/mem-leaks/pom.xml
+++ b/tests/mem-leaks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.tests.memleaks
diff --git a/tests/mem-leaks/redeployment/pom.xml b/tests/mem-leaks/redeployment/pom.xml
index d05070e2c88..19c0244b2e9 100644
--- a/tests/mem-leaks/redeployment/pom.xml
+++ b/tests/mem-leaks/redeployment/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.tests.memleaks.redeployment
diff --git a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
index 5fe32d43680..e56381d8bb0 100644
--- a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
redeployment-hello-world-app-ref
@@ -132,7 +132,7 @@
org.glassfish.jersey.examples
helloworld-webapp
war
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
diff --git a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
index 465a1b116f0..294bd3cd5ac 100644
--- a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
redeployment-leaking-test-app
diff --git a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
index 7eba4132fd1..77337b8ffc9 100644
--- a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
redeployment-no-jersey-app
diff --git a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
index ae5fa4de2a9..459badbace3 100644
--- a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
redeployment-threadlocals-app
diff --git a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
index f6e335b7bd7..51ab9701d8b 100644
--- a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
bean-param-leak
diff --git a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
index 929337bd8c7..3be0eba0883 100644
--- a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
+++ b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
leaking-test-app
diff --git a/tests/mem-leaks/test-cases/pom.xml b/tests/mem-leaks/test-cases/pom.xml
index 4428ff7f3d6..29b013dfd15 100644
--- a/tests/mem-leaks/test-cases/pom.xml
+++ b/tests/mem-leaks/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.tests.memleaks.testcases
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
index 40e375294ee..faa55ad6ba5 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
shutdown-hook-leak-client
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
index 3335fd2b424..f6548b61ed4 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
shutdown-hook-leak
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index cf4799f74cd..10fc8629e10 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.osgi
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
jersey-tests-osgi-functional
diff --git a/tests/osgi/pom.xml b/tests/osgi/pom.xml
index 0f6a61894cc..989185ab4ee 100644
--- a/tests/osgi/pom.xml
+++ b/tests/osgi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.tests.osgi
diff --git a/tests/performance/benchmarks/pom.xml b/tests/performance/benchmarks/pom.xml
index de3d43d789f..07cbc44237b 100644
--- a/tests/performance/benchmarks/pom.xml
+++ b/tests/performance/benchmarks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
performance-test-benchmarks
diff --git a/tests/performance/pom.xml b/tests/performance/pom.xml
index 684deafa4a3..05a862021ca 100644
--- a/tests/performance/pom.xml
+++ b/tests/performance/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.tests.performance
diff --git a/tests/performance/runners/jersey-grizzly-runner/pom.xml b/tests/performance/runners/jersey-grizzly-runner/pom.xml
index 1c55d8a29b8..6868a036671 100644
--- a/tests/performance/runners/jersey-grizzly-runner/pom.xml
+++ b/tests/performance/runners/jersey-grizzly-runner/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.runners
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
diff --git a/tests/performance/runners/pom.xml b/tests/performance/runners/pom.xml
index 96707a881f3..02b7c6dcd11 100644
--- a/tests/performance/runners/pom.xml
+++ b/tests/performance/runners/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.tests.performance.runners
diff --git a/tests/performance/test-cases/assemblies/pom.xml b/tests/performance/test-cases/assemblies/pom.xml
index 0e174ef1738..ae8fe5f9ce2 100644
--- a/tests/performance/test-cases/assemblies/pom.xml
+++ b/tests/performance/test-cases/assemblies/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
assemblies
diff --git a/tests/performance/test-cases/filter-dynamic/pom.xml b/tests/performance/test-cases/filter-dynamic/pom.xml
index 08679af1fec..003a2ce98ed 100644
--- a/tests/performance/test-cases/filter-dynamic/pom.xml
+++ b/tests/performance/test-cases/filter-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
filter-dynamic
diff --git a/tests/performance/test-cases/filter-global/pom.xml b/tests/performance/test-cases/filter-global/pom.xml
index 5fdc703dab5..8cdc81e9f58 100644
--- a/tests/performance/test-cases/filter-global/pom.xml
+++ b/tests/performance/test-cases/filter-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
filter-global
diff --git a/tests/performance/test-cases/filter-name/pom.xml b/tests/performance/test-cases/filter-name/pom.xml
index c6457f06c02..19c273115d2 100644
--- a/tests/performance/test-cases/filter-name/pom.xml
+++ b/tests/performance/test-cases/filter-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
filter-name
diff --git a/tests/performance/test-cases/interceptor-dynamic/pom.xml b/tests/performance/test-cases/interceptor-dynamic/pom.xml
index 3869ea29373..57378ead789 100644
--- a/tests/performance/test-cases/interceptor-dynamic/pom.xml
+++ b/tests/performance/test-cases/interceptor-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
interceptor-dynamic
diff --git a/tests/performance/test-cases/interceptor-global/pom.xml b/tests/performance/test-cases/interceptor-global/pom.xml
index 8cad5e337bd..6afa505ab0a 100644
--- a/tests/performance/test-cases/interceptor-global/pom.xml
+++ b/tests/performance/test-cases/interceptor-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
interceptor-global
diff --git a/tests/performance/test-cases/interceptor-name/pom.xml b/tests/performance/test-cases/interceptor-name/pom.xml
index 2a179d3c6c2..2ec1e087ccc 100644
--- a/tests/performance/test-cases/interceptor-name/pom.xml
+++ b/tests/performance/test-cases/interceptor-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
interceptor-name
diff --git a/tests/performance/test-cases/mbw-custom-provider/pom.xml b/tests/performance/test-cases/mbw-custom-provider/pom.xml
index 05def3afe70..f340afd6a0a 100644
--- a/tests/performance/test-cases/mbw-custom-provider/pom.xml
+++ b/tests/performance/test-cases/mbw-custom-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
custom-provider
diff --git a/tests/performance/test-cases/mbw-json-jackson/pom.xml b/tests/performance/test-cases/mbw-json-jackson/pom.xml
index 99b7e0a4e3e..e8b343b45e6 100644
--- a/tests/performance/test-cases/mbw-json-jackson/pom.xml
+++ b/tests/performance/test-cases/mbw-json-jackson/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
json-jackson
diff --git a/tests/performance/test-cases/mbw-json-moxy/pom.xml b/tests/performance/test-cases/mbw-json-moxy/pom.xml
index 110a87fe45d..ea3f2a11254 100644
--- a/tests/performance/test-cases/mbw-json-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-json-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
json-moxy
diff --git a/tests/performance/test-cases/mbw-kryo/pom.xml b/tests/performance/test-cases/mbw-kryo/pom.xml
index e6286ce24be..fdada6df314 100644
--- a/tests/performance/test-cases/mbw-kryo/pom.xml
+++ b/tests/performance/test-cases/mbw-kryo/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
mbw-kryo
diff --git a/tests/performance/test-cases/mbw-text-plain/pom.xml b/tests/performance/test-cases/mbw-text-plain/pom.xml
index 44b96b2ea34..6b62603041e 100644
--- a/tests/performance/test-cases/mbw-text-plain/pom.xml
+++ b/tests/performance/test-cases/mbw-text-plain/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
text-plain
diff --git a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
index 805b2a09e74..b046d5635bc 100644
--- a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
xml-jaxb
diff --git a/tests/performance/test-cases/mbw-xml-moxy/pom.xml b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
index ad3fc0d25c5..d8ed09428bf 100644
--- a/tests/performance/test-cases/mbw-xml-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
xml-moxy
diff --git a/tests/performance/test-cases/param-srl/pom.xml b/tests/performance/test-cases/param-srl/pom.xml
index 95a00326615..77734a37f70 100644
--- a/tests/performance/test-cases/param-srl/pom.xml
+++ b/tests/performance/test-cases/param-srl/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
param-srl
diff --git a/tests/performance/test-cases/pom.xml b/tests/performance/test-cases/pom.xml
index 60c2b732796..409b6c3eedd 100644
--- a/tests/performance/test-cases/pom.xml
+++ b/tests/performance/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.tests.performance.testcases
diff --git a/tests/performance/test-cases/proxy-injection/pom.xml b/tests/performance/test-cases/proxy-injection/pom.xml
index ab5a7456041..b579a0bfc6e 100644
--- a/tests/performance/test-cases/proxy-injection/pom.xml
+++ b/tests/performance/test-cases/proxy-injection/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
proxy-injection
diff --git a/tests/performance/tools/pom.xml b/tests/performance/tools/pom.xml
index 16ec2b20b48..98c2f34c436 100644
--- a/tests/performance/tools/pom.xml
+++ b/tests/performance/tools/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.tests.performance.tools
performance-test-tools
diff --git a/tests/pom.xml b/tests/pom.xml
index e1308121f2e..700f42e00bd 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
org.glassfish.jersey.tests
diff --git a/tests/stress/pom.xml b/tests/stress/pom.xml
index f0e7ee23717..95a9b8876bf 100644
--- a/tests/stress/pom.xml
+++ b/tests/stress/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
stress
From 3084b0f0c0fe3ed4a1ecd44fb74cf09a48fa9b20 Mon Sep 17 00:00:00 2001
From: jersey-bot
Date: Thu, 1 Sep 2022 09:20:58 +0000
Subject: [PATCH 088/305] 3.0.8
---
archetypes/jersey-example-java8-webapp/pom.xml | 2 +-
archetypes/jersey-heroku-webapp/pom.xml | 2 +-
archetypes/jersey-quickstart-grizzly2/pom.xml | 2 +-
archetypes/jersey-quickstart-webapp/pom.xml | 2 +-
archetypes/pom.xml | 2 +-
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 2 +-
bundles/jaxrs-ri/pom.xml | 2 +-
bundles/pom.xml | 2 +-
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 2 +-
connectors/helidon-connector/pom.xml | 2 +-
connectors/jdk-connector/pom.xml | 2 +-
connectors/jetty-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 2 +-
containers/glassfish/pom.xml | 2 +-
containers/grizzly2-http/pom.xml | 2 +-
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-http/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
containers/netty-http/pom.xml | 2 +-
containers/pom.xml | 2 +-
containers/simple-http/pom.xml | 2 +-
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 2 +-
examples/assemblies/pom.xml | 2 +-
examples/bookmark-em/pom.xml | 2 +-
examples/bookmark/pom.xml | 2 +-
examples/bookstore-webapp/pom.xml | 2 +-
examples/cdi-webapp/pom.xml | 2 +-
examples/clipboard-programmatic/pom.xml | 2 +-
examples/clipboard/pom.xml | 2 +-
examples/declarative-linking/pom.xml | 2 +-
examples/entity-filtering-security/pom.xml | 2 +-
examples/entity-filtering-selectable/pom.xml | 2 +-
examples/entity-filtering/pom.xml | 2 +-
examples/exception-mapping/pom.xml | 2 +-
examples/extended-wadl-webapp/pom.xml | 2 +-
examples/freemarker-webapp/pom.xml | 2 +-
examples/groovy/pom.xml | 2 +-
examples/helloworld-benchmark/pom.xml | 2 +-
examples/helloworld-cdi2-se/pom.xml | 2 +-
examples/helloworld-netty/pom.xml | 2 +-
examples/helloworld-programmatic/pom.xml | 2 +-
examples/helloworld-pure-jax-rs/pom.xml | 2 +-
examples/helloworld-webapp/pom.xml | 2 +-
examples/helloworld-weld/pom.xml | 2 +-
examples/helloworld/pom.xml | 2 +-
examples/http-patch/pom.xml | 2 +-
examples/http-trace/pom.xml | 2 +-
examples/https-clientserver-grizzly/pom.xml | 2 +-
examples/https-server-glassfish/pom.xml | 2 +-
examples/java8-webapp/pom.xml | 2 +-
examples/jaxb/pom.xml | 2 +-
examples/jaxrs-types-injection/pom.xml | 2 +-
examples/jersey-ejb/pom.xml | 2 +-
examples/json-binding-webapp/pom.xml | 2 +-
examples/json-jackson/pom.xml | 2 +-
examples/json-jettison/pom.xml | 2 +-
examples/json-moxy/pom.xml | 2 +-
examples/json-processing-webapp/pom.xml | 2 +-
examples/json-with-padding/pom.xml | 2 +-
examples/managed-beans-webapp/pom.xml | 2 +-
examples/managed-client-simple-webapp/pom.xml | 2 +-
examples/managed-client-webapp/pom.xml | 2 +-
examples/managed-client/pom.xml | 2 +-
examples/multipart-webapp/pom.xml | 2 +-
examples/oauth-client-twitter/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 2 +-
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/functional-test/pom.xml | 2 +-
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/pom.xml | 2 +-
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 2 +-
examples/pom.xml | 2 +-
examples/reload/pom.xml | 2 +-
examples/rx-client-webapp/pom.xml | 2 +-
examples/server-async-managed/pom.xml | 2 +-
examples/server-async-standalone/client/pom.xml | 2 +-
examples/server-async-standalone/pom.xml | 2 +-
examples/server-async-standalone/webapp/pom.xml | 2 +-
examples/server-async/pom.xml | 2 +-
examples/server-sent-events-jaxrs/pom.xml | 2 +-
examples/server-sent-events-jersey/pom.xml | 2 +-
examples/servlet3-webapp/pom.xml | 2 +-
examples/simple-console/pom.xml | 2 +-
examples/sse-item-store-jaxrs-webapp/pom.xml | 2 +-
examples/sse-item-store-jersey-webapp/pom.xml | 2 +-
examples/sse-twitter-aggregator/pom.xml | 2 +-
examples/system-properties-example/pom.xml | 2 +-
examples/webapp-example-parent/pom.xml | 2 +-
examples/xml-moxy/pom.xml | 2 +-
ext/bean-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-transaction/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi1x/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 2 +-
ext/cdi/pom.xml | 2 +-
ext/entity-filtering/pom.xml | 2 +-
ext/metainf-services/pom.xml | 2 +-
ext/microprofile/mp-config/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/microprofile/pom.xml | 2 +-
ext/mvc-bean-validation/pom.xml | 2 +-
ext/mvc-freemarker/pom.xml | 2 +-
ext/mvc-jsp/pom.xml | 2 +-
ext/mvc-mustache/pom.xml | 2 +-
ext/mvc/pom.xml | 2 +-
ext/pom.xml | 2 +-
ext/proxy-client/pom.xml | 2 +-
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 2 +-
ext/rx/rx-client-rxjava2/pom.xml | 2 +-
ext/spring6/pom.xml | 2 +-
ext/wadl-doclet/pom.xml | 2 +-
incubator/cdi-inject-weld/pom.xml | 2 +-
incubator/declarative-linking/pom.xml | 2 +-
incubator/gae-integration/pom.xml | 2 +-
incubator/html-json/pom.xml | 2 +-
incubator/kryo/pom.xml | 2 +-
incubator/open-tracing/pom.xml | 2 +-
incubator/pom.xml | 2 +-
inject/cdi2-se/pom.xml | 2 +-
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 2 +-
media/jaxb/pom.xml | 2 +-
media/json-binding/pom.xml | 2 +-
media/json-gson/pom.xml | 2 +-
media/json-jackson/pom.xml | 2 +-
media/json-jettison/pom.xml | 2 +-
media/json-processing/pom.xml | 2 +-
media/moxy/pom.xml | 2 +-
media/multipart/pom.xml | 2 +-
media/pom.xml | 2 +-
media/sse/pom.xml | 2 +-
pom.xml | 2 +-
security/oauth1-client/pom.xml | 2 +-
security/oauth1-server/pom.xml | 2 +-
security/oauth1-signature/pom.xml | 2 +-
security/oauth2-client/pom.xml | 2 +-
security/pom.xml | 2 +-
test-framework/core/pom.xml | 2 +-
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 2 +-
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 2 +-
test-framework/providers/bundle/pom.xml | 2 +-
test-framework/providers/external/pom.xml | 2 +-
test-framework/providers/grizzly2/pom.xml | 2 +-
test-framework/providers/inmemory/pom.xml | 2 +-
test-framework/providers/jdk-http/pom.xml | 2 +-
test-framework/providers/jetty/pom.xml | 2 +-
test-framework/providers/netty/pom.xml | 2 +-
test-framework/providers/pom.xml | 2 +-
test-framework/providers/simple/pom.xml | 2 +-
test-framework/util/pom.xml | 2 +-
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 2 +-
tests/e2e-inject/pom.xml | 2 +-
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 2 +-
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 2 +-
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 2 +-
.../integration/cdi-integration/cdi-client-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-client/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 2 +-
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-log-check/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-manually-bound/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multipart-webapp/pom.xml | 2 +-
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-singleton/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 2 +-
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 2 +-
.../pom.xml | 2 +-
.../cdi-integration/cdi-with-jersey-injection-webapp/pom.xml | 2 +-
.../cdi-integration/context-inject-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/gf-cdi-inject/pom.xml | 2 +-
tests/integration/cdi-integration/pom.xml | 2 +-
tests/integration/client-connector-provider/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule/pom.xml | 2 +-
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 2 +-
tests/integration/j-376/pom.xml | 2 +-
tests/integration/j-441/ear/pom.xml | 2 +-
tests/integration/j-441/pom.xml | 2 +-
tests/integration/j-441/war1/pom.xml | 2 +-
tests/integration/j-441/war2/pom.xml | 2 +-
tests/integration/j-59/ear/pom.xml | 2 +-
tests/integration/j-59/lib/pom.xml | 2 +-
tests/integration/j-59/pom.xml | 2 +-
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 2 +-
tests/integration/jersey-1107/pom.xml | 2 +-
tests/integration/jersey-1223/pom.xml | 2 +-
tests/integration/jersey-1604/pom.xml | 2 +-
tests/integration/jersey-1667/pom.xml | 2 +-
tests/integration/jersey-1883/pom.xml | 2 +-
tests/integration/jersey-1928/pom.xml | 2 +-
tests/integration/jersey-1960/pom.xml | 2 +-
tests/integration/jersey-1964/pom.xml | 2 +-
tests/integration/jersey-2031/pom.xml | 2 +-
tests/integration/jersey-2136/pom.xml | 2 +-
tests/integration/jersey-2137/pom.xml | 2 +-
tests/integration/jersey-2154/pom.xml | 2 +-
tests/integration/jersey-2160/pom.xml | 2 +-
tests/integration/jersey-2164/pom.xml | 2 +-
tests/integration/jersey-2167/pom.xml | 2 +-
tests/integration/jersey-2176/pom.xml | 2 +-
tests/integration/jersey-2184/pom.xml | 2 +-
tests/integration/jersey-2255/pom.xml | 2 +-
tests/integration/jersey-2322/pom.xml | 2 +-
tests/integration/jersey-2335/pom.xml | 2 +-
tests/integration/jersey-2421/pom.xml | 2 +-
tests/integration/jersey-2551/pom.xml | 2 +-
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 2 +-
tests/integration/jersey-2654/pom.xml | 2 +-
tests/integration/jersey-2673/pom.xml | 2 +-
tests/integration/jersey-2689/pom.xml | 2 +-
tests/integration/jersey-2704/pom.xml | 2 +-
tests/integration/jersey-2776/pom.xml | 2 +-
tests/integration/jersey-2794/pom.xml | 2 +-
tests/integration/jersey-2846/pom.xml | 2 +-
tests/integration/jersey-2878/pom.xml | 2 +-
tests/integration/jersey-2892/pom.xml | 2 +-
tests/integration/jersey-3662/pom.xml | 2 +-
tests/integration/jersey-3670/pom.xml | 2 +-
tests/integration/jersey-3796/pom.xml | 2 +-
tests/integration/jersey-3992/pom.xml | 2 +-
tests/integration/jersey-4003/pom.xml | 2 +-
tests/integration/jersey-4099/pom.xml | 2 +-
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 2 +-
tests/integration/jersey-4542/pom.xml | 2 +-
tests/integration/jersey-4697/pom.xml | 2 +-
tests/integration/jersey-4722/pom.xml | 2 +-
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-5087/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 2 +-
tests/integration/microprofile/config/helidon/pom.xml | 2 +-
tests/integration/microprofile/config/pom.xml | 2 +-
tests/integration/microprofile/config/webapp/pom.xml | 2 +-
tests/integration/microprofile/pom.xml | 2 +-
tests/integration/microprofile/rest-client-tck/pom.xml | 2 +-
tests/integration/microprofile/rest-client/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 2 +-
tests/integration/reactive-streams/sse/pom.xml | 2 +-
tests/integration/security-digest/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 2 +-
tests/integration/servlet-2.5-filter/pom.xml | 2 +-
tests/integration/servlet-2.5-inflector-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-2/pom.xml | 2 +-
tests/integration/servlet-2.5-init-3/pom.xml | 2 +-
tests/integration/servlet-2.5-init-4/pom.xml | 2 +-
tests/integration/servlet-2.5-init-5/pom.xml | 2 +-
tests/integration/servlet-2.5-init-6/pom.xml | 2 +-
tests/integration/servlet-2.5-init-7/pom.xml | 2 +-
tests/integration/servlet-2.5-init-8/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-1/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-2/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-3/pom.xml | 2 +-
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 2 +-
tests/integration/servlet-3-chunked-io/pom.xml | 2 +-
tests/integration/servlet-3-filter/pom.xml | 2 +-
tests/integration/servlet-3-gf-async/pom.xml | 2 +-
tests/integration/servlet-3-inflector-1/pom.xml | 2 +-
tests/integration/servlet-3-init-1/pom.xml | 2 +-
tests/integration/servlet-3-init-2/pom.xml | 2 +-
tests/integration/servlet-3-init-3/pom.xml | 2 +-
tests/integration/servlet-3-init-4/pom.xml | 2 +-
tests/integration/servlet-3-init-5/pom.xml | 2 +-
tests/integration/servlet-3-init-6/pom.xml | 2 +-
tests/integration/servlet-3-init-7/pom.xml | 2 +-
tests/integration/servlet-3-init-8/pom.xml | 2 +-
tests/integration/servlet-3-init-9/pom.xml | 2 +-
tests/integration/servlet-3-init-provider/pom.xml | 2 +-
tests/integration/servlet-3-params/pom.xml | 2 +-
tests/integration/servlet-3-sse-1/pom.xml | 2 +-
tests/integration/servlet-4.0-mvc-1/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 2 +-
tests/integration/sonar-test/pom.xml | 2 +-
tests/integration/spring6/pom.xml | 2 +-
tests/integration/tracing-support/pom.xml | 2 +-
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 2 +-
tests/mem-leaks/redeployment/pom.xml | 2 +-
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 4 ++--
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment/redeployment-threadlocals-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 2 +-
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 2 +-
tests/osgi/functional/pom.xml | 2 +-
tests/osgi/pom.xml | 2 +-
tests/performance/benchmarks/pom.xml | 2 +-
tests/performance/pom.xml | 2 +-
tests/performance/runners/jersey-grizzly-runner/pom.xml | 2 +-
tests/performance/runners/pom.xml | 2 +-
tests/performance/test-cases/assemblies/pom.xml | 2 +-
tests/performance/test-cases/filter-dynamic/pom.xml | 2 +-
tests/performance/test-cases/filter-global/pom.xml | 2 +-
tests/performance/test-cases/filter-name/pom.xml | 2 +-
tests/performance/test-cases/interceptor-dynamic/pom.xml | 2 +-
tests/performance/test-cases/interceptor-global/pom.xml | 2 +-
tests/performance/test-cases/interceptor-name/pom.xml | 2 +-
tests/performance/test-cases/mbw-custom-provider/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-jackson/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-moxy/pom.xml | 2 +-
tests/performance/test-cases/mbw-kryo/pom.xml | 2 +-
tests/performance/test-cases/mbw-text-plain/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 2 +-
tests/performance/test-cases/param-srl/pom.xml | 2 +-
tests/performance/test-cases/pom.xml | 2 +-
tests/performance/test-cases/proxy-injection/pom.xml | 2 +-
tests/performance/tools/pom.xml | 2 +-
tests/pom.xml | 2 +-
tests/stress/pom.xml | 2 +-
363 files changed, 364 insertions(+), 364 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index b47b480e685..4e03169cccc 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-example-java8-webapp
diff --git a/archetypes/jersey-heroku-webapp/pom.xml b/archetypes/jersey-heroku-webapp/pom.xml
index a413d64fa01..4cf594e09c8 100644
--- a/archetypes/jersey-heroku-webapp/pom.xml
+++ b/archetypes/jersey-heroku-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.99-SNAPSHOT
+ 3.0.8
maven-archetype
diff --git a/archetypes/jersey-quickstart-grizzly2/pom.xml b/archetypes/jersey-quickstart-grizzly2/pom.xml
index 24b37a46dae..7c6b3f88093 100644
--- a/archetypes/jersey-quickstart-grizzly2/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-quickstart-grizzly2
maven-archetype
diff --git a/archetypes/jersey-quickstart-webapp/pom.xml b/archetypes/jersey-quickstart-webapp/pom.xml
index 8b11c4ebc98..870dcd6e8ee 100644
--- a/archetypes/jersey-quickstart-webapp/pom.xml
+++ b/archetypes/jersey-quickstart-webapp/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
maven-archetype
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index e8a31139d10..6a85224454c 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.archetypes
diff --git a/bom/pom.xml b/bom/pom.xml
index 1083d28a38b..364dba45010 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,7 +30,7 @@
org.glassfish.jersey
jersey-bom
- 3.0.99-SNAPSHOT
+ 3.0.8
pom
jersey-bom
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index 083b14b1398..bb81b99c2a5 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.0.99-SNAPSHOT
+ 3.0.8
apidocs
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index e171811f24f..54c045a6e3a 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.bundles
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-examples
diff --git a/bundles/jaxrs-ri/pom.xml b/bundles/jaxrs-ri/pom.xml
index a254d5316a3..e979d954591 100644
--- a/bundles/jaxrs-ri/pom.xml
+++ b/bundles/jaxrs-ri/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jaxrs-ri
diff --git a/bundles/pom.xml b/bundles/pom.xml
index 5739d5eac11..e75e9c041e9 100644
--- a/bundles/pom.xml
+++ b/bundles/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.bundles
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index 269b753774a..5e2239560a5 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-apache-connector
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
index 899e2911e5e..481fa342e8f 100644
--- a/connectors/apache5-connector/pom.xml
+++ b/connectors/apache5-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-apache5-connector
diff --git a/connectors/grizzly-connector/pom.xml b/connectors/grizzly-connector/pom.xml
index 8d997a4ae4a..02644c2efbc 100644
--- a/connectors/grizzly-connector/pom.xml
+++ b/connectors/grizzly-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-grizzly-connector
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index 0e06810598d..0c3456e8d80 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.connectors
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/connectors/jdk-connector/pom.xml b/connectors/jdk-connector/pom.xml
index 57d04215b14..156ff87408c 100644
--- a/connectors/jdk-connector/pom.xml
+++ b/connectors/jdk-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-jdk-connector
diff --git a/connectors/jetty-connector/pom.xml b/connectors/jetty-connector/pom.xml
index 8be410ed3f1..f6005308614 100644
--- a/connectors/jetty-connector/pom.xml
+++ b/connectors/jetty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-jetty-connector
diff --git a/connectors/netty-connector/pom.xml b/connectors/netty-connector/pom.xml
index 18054902133..b035440b8c0 100644
--- a/connectors/netty-connector/pom.xml
+++ b/connectors/netty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-netty-connector
diff --git a/connectors/pom.xml b/connectors/pom.xml
index 472101738f9..2a949e46297 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.connectors
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index c9573115adb..b3280f2cb62 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers.glassfish
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-gf-ejb
diff --git a/containers/glassfish/pom.xml b/containers/glassfish/pom.xml
index 97b7748050b..665ff74c0de 100644
--- a/containers/glassfish/pom.xml
+++ b/containers/glassfish/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.containers.glassfish
diff --git a/containers/grizzly2-http/pom.xml b/containers/grizzly2-http/pom.xml
index 92ca31d2324..01d9fed9203 100644
--- a/containers/grizzly2-http/pom.xml
+++ b/containers/grizzly2-http/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-container-grizzly2-http
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index 727344d3c55..c95575104ac 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-container-grizzly2-servlet
diff --git a/containers/jdk-http/pom.xml b/containers/jdk-http/pom.xml
index c9d95593f90..a7d2ebc8e2d 100644
--- a/containers/jdk-http/pom.xml
+++ b/containers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-container-jdk-http
diff --git a/containers/jersey-servlet-core/pom.xml b/containers/jersey-servlet-core/pom.xml
index edd2e9ba58e..21a4057e030 100644
--- a/containers/jersey-servlet-core/pom.xml
+++ b/containers/jersey-servlet-core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-container-servlet-core
diff --git a/containers/jersey-servlet/pom.xml b/containers/jersey-servlet/pom.xml
index e066f5d541c..c96d84d809b 100644
--- a/containers/jersey-servlet/pom.xml
+++ b/containers/jersey-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-container-servlet
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index 8ffde3c771a..e05421f1017 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.containers
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-container-jetty-http
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 373d0044662..452673b16cc 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-container-jetty-servlet
diff --git a/containers/netty-http/pom.xml b/containers/netty-http/pom.xml
index 8bdca8e03b9..2d1d9c997b6 100644
--- a/containers/netty-http/pom.xml
+++ b/containers/netty-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-container-netty-http
diff --git a/containers/pom.xml b/containers/pom.xml
index d1d9d1f9f8f..f92aa997ccd 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.containers
diff --git a/containers/simple-http/pom.xml b/containers/simple-http/pom.xml
index 442093fc474..f60833225ce 100644
--- a/containers/simple-http/pom.xml
+++ b/containers/simple-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-container-simple-http
diff --git a/core-client/pom.xml b/core-client/pom.xml
index e9a51246873..5669f42d3c9 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.core
diff --git a/core-common/pom.xml b/core-common/pom.xml
index b6282d38161..d9145caf62d 100644
--- a/core-common/pom.xml
+++ b/core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.core
diff --git a/core-server/pom.xml b/core-server/pom.xml
index 5eaea68a6a7..60c72fc717c 100644
--- a/core-server/pom.xml
+++ b/core-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.core
diff --git a/docs/pom.xml b/docs/pom.xml
index 509d6f2c691..dab91b32081 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-documentation
pom
diff --git a/examples/assemblies/pom.xml b/examples/assemblies/pom.xml
index 3a9082c2c70..5c7a298c264 100644
--- a/examples/assemblies/pom.xml
+++ b/examples/assemblies/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
assemblies
diff --git a/examples/bookmark-em/pom.xml b/examples/bookmark-em/pom.xml
index 43c1eb4d89b..63ebc65a851 100644
--- a/examples/bookmark-em/pom.xml
+++ b/examples/bookmark-em/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
bookmark-em
diff --git a/examples/bookmark/pom.xml b/examples/bookmark/pom.xml
index 51b37c22f7d..4862b0facfb 100644
--- a/examples/bookmark/pom.xml
+++ b/examples/bookmark/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
bookmark
diff --git a/examples/bookstore-webapp/pom.xml b/examples/bookstore-webapp/pom.xml
index cfe9e6d253d..4284fb8451c 100644
--- a/examples/bookstore-webapp/pom.xml
+++ b/examples/bookstore-webapp/pom.xml
@@ -35,7 +35,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
bookstore-webapp
diff --git a/examples/cdi-webapp/pom.xml b/examples/cdi-webapp/pom.xml
index 803c399f4fd..a70e8d44092 100644
--- a/examples/cdi-webapp/pom.xml
+++ b/examples/cdi-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-webapp
diff --git a/examples/clipboard-programmatic/pom.xml b/examples/clipboard-programmatic/pom.xml
index 6fab951dac4..14c8e81655f 100644
--- a/examples/clipboard-programmatic/pom.xml
+++ b/examples/clipboard-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
clipboard-programmatic
diff --git a/examples/clipboard/pom.xml b/examples/clipboard/pom.xml
index 5caf76ce426..45941a47f03 100644
--- a/examples/clipboard/pom.xml
+++ b/examples/clipboard/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
clipboard
diff --git a/examples/declarative-linking/pom.xml b/examples/declarative-linking/pom.xml
index 910c6d5fadf..b04e5cbabc6 100644
--- a/examples/declarative-linking/pom.xml
+++ b/examples/declarative-linking/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
declarative-linking
diff --git a/examples/entity-filtering-security/pom.xml b/examples/entity-filtering-security/pom.xml
index a92d294e77e..4d326541fe6 100644
--- a/examples/entity-filtering-security/pom.xml
+++ b/examples/entity-filtering-security/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
entity-filtering-security
diff --git a/examples/entity-filtering-selectable/pom.xml b/examples/entity-filtering-selectable/pom.xml
index 986200ae1c2..5e3294baab4 100644
--- a/examples/entity-filtering-selectable/pom.xml
+++ b/examples/entity-filtering-selectable/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
entity-filtering-selectable
diff --git a/examples/entity-filtering/pom.xml b/examples/entity-filtering/pom.xml
index b6d5870b180..ddc7cfb51bf 100644
--- a/examples/entity-filtering/pom.xml
+++ b/examples/entity-filtering/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
entity-filtering
diff --git a/examples/exception-mapping/pom.xml b/examples/exception-mapping/pom.xml
index 5986740b376..ecb0ccf91e4 100644
--- a/examples/exception-mapping/pom.xml
+++ b/examples/exception-mapping/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
exception-mapping
diff --git a/examples/extended-wadl-webapp/pom.xml b/examples/extended-wadl-webapp/pom.xml
index 2373bd4e9e4..b7f94dcc92e 100644
--- a/examples/extended-wadl-webapp/pom.xml
+++ b/examples/extended-wadl-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
extended-wadl-webapp
diff --git a/examples/freemarker-webapp/pom.xml b/examples/freemarker-webapp/pom.xml
index 9af7112d7d1..5dc24b5de9f 100644
--- a/examples/freemarker-webapp/pom.xml
+++ b/examples/freemarker-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
freemarker-webapp
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index 76965f890c9..aa762c52f6d 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
groovy
jar
diff --git a/examples/helloworld-benchmark/pom.xml b/examples/helloworld-benchmark/pom.xml
index 888880182b2..340a2b8c039 100644
--- a/examples/helloworld-benchmark/pom.xml
+++ b/examples/helloworld-benchmark/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
helloworld-benchmark
diff --git a/examples/helloworld-cdi2-se/pom.xml b/examples/helloworld-cdi2-se/pom.xml
index 11aba91aad0..8443ccb1ffe 100644
--- a/examples/helloworld-cdi2-se/pom.xml
+++ b/examples/helloworld-cdi2-se/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
helloworld-cdi2-se
diff --git a/examples/helloworld-netty/pom.xml b/examples/helloworld-netty/pom.xml
index db6fe09c0cb..949a9e5004c 100644
--- a/examples/helloworld-netty/pom.xml
+++ b/examples/helloworld-netty/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
helloworld-netty
diff --git a/examples/helloworld-programmatic/pom.xml b/examples/helloworld-programmatic/pom.xml
index eb267ee7527..d8f00af1c05 100644
--- a/examples/helloworld-programmatic/pom.xml
+++ b/examples/helloworld-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
helloworld-programmatic
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index 9a6627ecbe7..b0f4d3a9be8 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
helloworld-pure-jax-rs
diff --git a/examples/helloworld-webapp/pom.xml b/examples/helloworld-webapp/pom.xml
index 68a24198610..a7cff9481cc 100644
--- a/examples/helloworld-webapp/pom.xml
+++ b/examples/helloworld-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
helloworld-webapp
diff --git a/examples/helloworld-weld/pom.xml b/examples/helloworld-weld/pom.xml
index e8e482c5ccb..a4c3e763e74 100644
--- a/examples/helloworld-weld/pom.xml
+++ b/examples/helloworld-weld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
helloworld-weld
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index f66764823fa..5ac06b235d1 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
helloworld
diff --git a/examples/http-patch/pom.xml b/examples/http-patch/pom.xml
index 47b7302cf78..f53677644a6 100644
--- a/examples/http-patch/pom.xml
+++ b/examples/http-patch/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
http-patch
diff --git a/examples/http-trace/pom.xml b/examples/http-trace/pom.xml
index 79f8f197dd5..c72ac3e9b32 100644
--- a/examples/http-trace/pom.xml
+++ b/examples/http-trace/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
http-trace
diff --git a/examples/https-clientserver-grizzly/pom.xml b/examples/https-clientserver-grizzly/pom.xml
index d6274d192e2..ba92cf2c040 100644
--- a/examples/https-clientserver-grizzly/pom.xml
+++ b/examples/https-clientserver-grizzly/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
https-clientserver-grizzly
diff --git a/examples/https-server-glassfish/pom.xml b/examples/https-server-glassfish/pom.xml
index d034d5ffb33..692c63a6cf5 100644
--- a/examples/https-server-glassfish/pom.xml
+++ b/examples/https-server-glassfish/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
https-server-glassfish
diff --git a/examples/java8-webapp/pom.xml b/examples/java8-webapp/pom.xml
index da4693a55f6..29d7690aaaf 100644
--- a/examples/java8-webapp/pom.xml
+++ b/examples/java8-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
java8-webapp
diff --git a/examples/jaxb/pom.xml b/examples/jaxb/pom.xml
index e24b2e6b0e7..3aece25d8bf 100644
--- a/examples/jaxb/pom.xml
+++ b/examples/jaxb/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jaxb
diff --git a/examples/jaxrs-types-injection/pom.xml b/examples/jaxrs-types-injection/pom.xml
index e32726e5643..18d8d5545d6 100644
--- a/examples/jaxrs-types-injection/pom.xml
+++ b/examples/jaxrs-types-injection/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jaxrs-types-injection
diff --git a/examples/jersey-ejb/pom.xml b/examples/jersey-ejb/pom.xml
index 4702463cc61..08344b7fc07 100644
--- a/examples/jersey-ejb/pom.xml
+++ b/examples/jersey-ejb/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-ejb
diff --git a/examples/json-binding-webapp/pom.xml b/examples/json-binding-webapp/pom.xml
index 979236e59f9..53c8c412c18 100644
--- a/examples/json-binding-webapp/pom.xml
+++ b/examples/json-binding-webapp/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
json-binding-webapp
diff --git a/examples/json-jackson/pom.xml b/examples/json-jackson/pom.xml
index 4cdfb639399..588a00981e2 100644
--- a/examples/json-jackson/pom.xml
+++ b/examples/json-jackson/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
json-jackson
diff --git a/examples/json-jettison/pom.xml b/examples/json-jettison/pom.xml
index 15a4e25e379..f55d8f8777e 100644
--- a/examples/json-jettison/pom.xml
+++ b/examples/json-jettison/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
json-jettison
diff --git a/examples/json-moxy/pom.xml b/examples/json-moxy/pom.xml
index 2ae80e1f8c3..4cb9db172c3 100644
--- a/examples/json-moxy/pom.xml
+++ b/examples/json-moxy/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
json-moxy
diff --git a/examples/json-processing-webapp/pom.xml b/examples/json-processing-webapp/pom.xml
index 10993fc8997..3b3d2b95616 100644
--- a/examples/json-processing-webapp/pom.xml
+++ b/examples/json-processing-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
json-processing-webapp
diff --git a/examples/json-with-padding/pom.xml b/examples/json-with-padding/pom.xml
index 64dac76588f..be01818b5e3 100644
--- a/examples/json-with-padding/pom.xml
+++ b/examples/json-with-padding/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
json-with-padding
diff --git a/examples/managed-beans-webapp/pom.xml b/examples/managed-beans-webapp/pom.xml
index e66fb183731..24942caeed6 100644
--- a/examples/managed-beans-webapp/pom.xml
+++ b/examples/managed-beans-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
managed-beans-webapp
diff --git a/examples/managed-client-simple-webapp/pom.xml b/examples/managed-client-simple-webapp/pom.xml
index 53ab47eaff0..827b1a568ea 100644
--- a/examples/managed-client-simple-webapp/pom.xml
+++ b/examples/managed-client-simple-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
managed-client-simple-webapp
diff --git a/examples/managed-client-webapp/pom.xml b/examples/managed-client-webapp/pom.xml
index 0583e891c94..a1a8794a4fb 100644
--- a/examples/managed-client-webapp/pom.xml
+++ b/examples/managed-client-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
managed-client-webapp
diff --git a/examples/managed-client/pom.xml b/examples/managed-client/pom.xml
index ac3e5f9ff0f..dc03d213bff 100644
--- a/examples/managed-client/pom.xml
+++ b/examples/managed-client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
managed-client
diff --git a/examples/multipart-webapp/pom.xml b/examples/multipart-webapp/pom.xml
index 9cb43ffd94b..f7d7acd40f5 100644
--- a/examples/multipart-webapp/pom.xml
+++ b/examples/multipart-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
multipart-webapp
diff --git a/examples/oauth-client-twitter/pom.xml b/examples/oauth-client-twitter/pom.xml
index 3b4e9dfb186..c385ba3a1cf 100644
--- a/examples/oauth-client-twitter/pom.xml
+++ b/examples/oauth-client-twitter/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index 76a9ffa1c4d..1328ed2b0bf 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
open-tracing
diff --git a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
index 51563792217..67c6e093e85 100644
--- a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
index f9f6a070392..bb1983e68ca 100644
--- a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index bdce8538d72..08402472300 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
index b92f2e1614f..1053f3cae86 100644
--- a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/pom.xml b/examples/osgi-helloworld-webapp/pom.xml
index 172dc08de0a..f05049dc715 100644
--- a/examples/osgi-helloworld-webapp/pom.xml
+++ b/examples/osgi-helloworld-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/war-bundle/pom.xml b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
index 24f518f1158..1c30e0f5f39 100644
--- a/examples/osgi-helloworld-webapp/war-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/pom.xml b/examples/pom.xml
index 70cf1629ce4..5487dc58bf5 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
diff --git a/examples/reload/pom.xml b/examples/reload/pom.xml
index 27427604cf8..69ce8ddc319 100644
--- a/examples/reload/pom.xml
+++ b/examples/reload/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
reload
diff --git a/examples/rx-client-webapp/pom.xml b/examples/rx-client-webapp/pom.xml
index f009bf06fcc..34df2bb57ef 100644
--- a/examples/rx-client-webapp/pom.xml
+++ b/examples/rx-client-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
rx-client-webapp
diff --git a/examples/server-async-managed/pom.xml b/examples/server-async-managed/pom.xml
index a32dbf4aefb..4ef81dfcc56 100644
--- a/examples/server-async-managed/pom.xml
+++ b/examples/server-async-managed/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
server-async-managed
diff --git a/examples/server-async-standalone/client/pom.xml b/examples/server-async-standalone/client/pom.xml
index 19447beabda..acb008bae3f 100644
--- a/examples/server-async-standalone/client/pom.xml
+++ b/examples/server-async-standalone/client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.0.99-SNAPSHOT
+ 3.0.8
server-async-standalone-client
diff --git a/examples/server-async-standalone/pom.xml b/examples/server-async-standalone/pom.xml
index 8b857fcc79f..ca6fc5c7f0b 100644
--- a/examples/server-async-standalone/pom.xml
+++ b/examples/server-async-standalone/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
server-async-standalone
diff --git a/examples/server-async-standalone/webapp/pom.xml b/examples/server-async-standalone/webapp/pom.xml
index 251316e440c..3caf1f24dd0 100644
--- a/examples/server-async-standalone/webapp/pom.xml
+++ b/examples/server-async-standalone/webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.0.99-SNAPSHOT
+ 3.0.8
server-async-standalone-webapp
diff --git a/examples/server-async/pom.xml b/examples/server-async/pom.xml
index cdabf47a283..4f70e727e67 100644
--- a/examples/server-async/pom.xml
+++ b/examples/server-async/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
server-async
diff --git a/examples/server-sent-events-jaxrs/pom.xml b/examples/server-sent-events-jaxrs/pom.xml
index 45f264ad4a8..e9bd13cde0a 100644
--- a/examples/server-sent-events-jaxrs/pom.xml
+++ b/examples/server-sent-events-jaxrs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
server-sent-events-jaxrs
diff --git a/examples/server-sent-events-jersey/pom.xml b/examples/server-sent-events-jersey/pom.xml
index af941b73b10..51eedcdbb9d 100644
--- a/examples/server-sent-events-jersey/pom.xml
+++ b/examples/server-sent-events-jersey/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
server-sent-events-jersey
diff --git a/examples/servlet3-webapp/pom.xml b/examples/servlet3-webapp/pom.xml
index 3c74fe0351e..a10ca327553 100644
--- a/examples/servlet3-webapp/pom.xml
+++ b/examples/servlet3-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet3-webapp
diff --git a/examples/simple-console/pom.xml b/examples/simple-console/pom.xml
index ce9ef1d032e..6d148c22908 100644
--- a/examples/simple-console/pom.xml
+++ b/examples/simple-console/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
simple-console
diff --git a/examples/sse-item-store-jaxrs-webapp/pom.xml b/examples/sse-item-store-jaxrs-webapp/pom.xml
index e65c1f505c5..d8707c0dacc 100644
--- a/examples/sse-item-store-jaxrs-webapp/pom.xml
+++ b/examples/sse-item-store-jaxrs-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
sse-item-store-jaxrs-webapp
diff --git a/examples/sse-item-store-jersey-webapp/pom.xml b/examples/sse-item-store-jersey-webapp/pom.xml
index a57656dcdcf..e7c961e9cb4 100644
--- a/examples/sse-item-store-jersey-webapp/pom.xml
+++ b/examples/sse-item-store-jersey-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.99-SNAPSHOT
+ 3.0.8
sse-item-store-jersey-webapp
diff --git a/examples/sse-twitter-aggregator/pom.xml b/examples/sse-twitter-aggregator/pom.xml
index 6adf1a8b45a..6a3e78f7757 100644
--- a/examples/sse-twitter-aggregator/pom.xml
+++ b/examples/sse-twitter-aggregator/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
sse-twitter-aggregator
diff --git a/examples/system-properties-example/pom.xml b/examples/system-properties-example/pom.xml
index 4f351e4a5e9..fd959ebe68f 100644
--- a/examples/system-properties-example/pom.xml
+++ b/examples/system-properties-example/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
system-properties-example
diff --git a/examples/webapp-example-parent/pom.xml b/examples/webapp-example-parent/pom.xml
index 536e978b3aa..5dc608a8eb5 100644
--- a/examples/webapp-example-parent/pom.xml
+++ b/examples/webapp-example-parent/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
webapp-example-parent
diff --git a/examples/xml-moxy/pom.xml b/examples/xml-moxy/pom.xml
index 814bbd71a43..94ecdab2fed 100644
--- a/examples/xml-moxy/pom.xml
+++ b/examples/xml-moxy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.99-SNAPSHOT
+ 3.0.8
xml-moxy
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index 914251e428a..6eabec1a011 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-bean-validation
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index e766bd0773d..6e7e2c3d7c3 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext.cdi
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
index ff5a5ce893e..009dfc28083 100644
--- a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
+++ b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-cdi1x-ban-custom-hk2-binding
diff --git a/ext/cdi/jersey-cdi1x-servlet/pom.xml b/ext/cdi/jersey-cdi1x-servlet/pom.xml
index c476fdb740a..c859ff7a1cf 100644
--- a/ext/cdi/jersey-cdi1x-servlet/pom.xml
+++ b/ext/cdi/jersey-cdi1x-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-cdi1x-servlet
diff --git a/ext/cdi/jersey-cdi1x-transaction/pom.xml b/ext/cdi/jersey-cdi1x-transaction/pom.xml
index d09e336cd1a..dbc00d5485a 100644
--- a/ext/cdi/jersey-cdi1x-transaction/pom.xml
+++ b/ext/cdi/jersey-cdi1x-transaction/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-cdi1x-transaction
diff --git a/ext/cdi/jersey-cdi1x-validation/pom.xml b/ext/cdi/jersey-cdi1x-validation/pom.xml
index 020f804bb4b..86c94fdce7f 100644
--- a/ext/cdi/jersey-cdi1x-validation/pom.xml
+++ b/ext/cdi/jersey-cdi1x-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-cdi1x-validation
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index 874234ff8fe..296dcede6d1 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-cdi1x
diff --git a/ext/cdi/jersey-weld2-se/pom.xml b/ext/cdi/jersey-weld2-se/pom.xml
index f8609bfa128..bf32d0a2e47 100644
--- a/ext/cdi/jersey-weld2-se/pom.xml
+++ b/ext/cdi/jersey-weld2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-weld2-se
diff --git a/ext/cdi/pom.xml b/ext/cdi/pom.xml
index 8653e97ef37..a4b55160ab6 100644
--- a/ext/cdi/pom.xml
+++ b/ext/cdi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.ext.cdi
diff --git a/ext/entity-filtering/pom.xml b/ext/entity-filtering/pom.xml
index 1f2613523bd..eed77fa7263 100644
--- a/ext/entity-filtering/pom.xml
+++ b/ext/entity-filtering/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-entity-filtering
diff --git a/ext/metainf-services/pom.xml b/ext/metainf-services/pom.xml
index 7b43b47227f..f97eee3de7b 100644
--- a/ext/metainf-services/pom.xml
+++ b/ext/metainf-services/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-metainf-services
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index 7a49dfc0556..3a1179e6d58 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index c85a4b0ff91..8868024ee35 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/ext/microprofile/pom.xml b/ext/microprofile/pom.xml
index 215ca3879af..13212cb5d79 100644
--- a/ext/microprofile/pom.xml
+++ b/ext/microprofile/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/ext/mvc-bean-validation/pom.xml b/ext/mvc-bean-validation/pom.xml
index c874d2fc713..a2a80dd04da 100644
--- a/ext/mvc-bean-validation/pom.xml
+++ b/ext/mvc-bean-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-mvc-bean-validation
diff --git a/ext/mvc-freemarker/pom.xml b/ext/mvc-freemarker/pom.xml
index f2355c8498a..b81fa1ae095 100644
--- a/ext/mvc-freemarker/pom.xml
+++ b/ext/mvc-freemarker/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-mvc-freemarker
diff --git a/ext/mvc-jsp/pom.xml b/ext/mvc-jsp/pom.xml
index 1744cdf534b..9d88ae76199 100644
--- a/ext/mvc-jsp/pom.xml
+++ b/ext/mvc-jsp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-mvc-jsp
diff --git a/ext/mvc-mustache/pom.xml b/ext/mvc-mustache/pom.xml
index 3a63b8c7314..b13c8df5ed7 100644
--- a/ext/mvc-mustache/pom.xml
+++ b/ext/mvc-mustache/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-mvc-mustache
diff --git a/ext/mvc/pom.xml b/ext/mvc/pom.xml
index 58d93f51235..5d2f14efde3 100644
--- a/ext/mvc/pom.xml
+++ b/ext/mvc/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-mvc
diff --git a/ext/pom.xml b/ext/pom.xml
index 93e409d4782..c8147b449dc 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.ext
diff --git a/ext/proxy-client/pom.xml b/ext/proxy-client/pom.xml
index 4bf1460f805..0189a06f8b4 100644
--- a/ext/proxy-client/pom.xml
+++ b/ext/proxy-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-proxy-client
diff --git a/ext/rx/pom.xml b/ext/rx/pom.xml
index 1a4de9a61da..828f49188d4 100644
--- a/ext/rx/pom.xml
+++ b/ext/rx/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.ext.rx
diff --git a/ext/rx/rx-client-guava/pom.xml b/ext/rx/rx-client-guava/pom.xml
index b3f1087ff09..d63ffc6590d 100644
--- a/ext/rx/rx-client-guava/pom.xml
+++ b/ext/rx/rx-client-guava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-rx-client-guava
diff --git a/ext/rx/rx-client-rxjava/pom.xml b/ext/rx/rx-client-rxjava/pom.xml
index 728bc60d75b..ec60790510a 100644
--- a/ext/rx/rx-client-rxjava/pom.xml
+++ b/ext/rx/rx-client-rxjava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-rx-client-rxjava
diff --git a/ext/rx/rx-client-rxjava2/pom.xml b/ext/rx/rx-client-rxjava2/pom.xml
index cf705933dda..1657e28af5f 100644
--- a/ext/rx/rx-client-rxjava2/pom.xml
+++ b/ext/rx/rx-client-rxjava2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-rx-client-rxjava2
diff --git a/ext/spring6/pom.xml b/ext/spring6/pom.xml
index e6d718797d4..1634cd938ee 100644
--- a/ext/spring6/pom.xml
+++ b/ext/spring6/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-spring6
diff --git a/ext/wadl-doclet/pom.xml b/ext/wadl-doclet/pom.xml
index 47a11c2211f..dad58996fb2 100644
--- a/ext/wadl-doclet/pom.xml
+++ b/ext/wadl-doclet/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
jersey-wadl-doclet
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index 331b92f17e7..3d5c0c9ed57 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-cdi-inject-weld
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index 97d9d54da78..e7d6c126aab 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.ext
diff --git a/incubator/gae-integration/pom.xml b/incubator/gae-integration/pom.xml
index 28971e56816..18e83d345be 100644
--- a/incubator/gae-integration/pom.xml
+++ b/incubator/gae-integration/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-gae-integration
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index 2ad845b8e8a..827d47f91ce 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.media
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index 3911bf84fba..f0d94666267 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.media
diff --git a/incubator/open-tracing/pom.xml b/incubator/open-tracing/pom.xml
index 7994cab4090..39579274e5b 100644
--- a/incubator/open-tracing/pom.xml
+++ b/incubator/open-tracing/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.incubator
diff --git a/incubator/pom.xml b/incubator/pom.xml
index e82e47b7eee..d94a71ad94e 100644
--- a/incubator/pom.xml
+++ b/incubator/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.incubator
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index 77e227088e2..eade7b115d6 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-cdi2-se
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index c3c8b94b971..49e439e8ad5 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-hk2
diff --git a/inject/pom.xml b/inject/pom.xml
index b43c0e318dd..71bdcad6a37 100644
--- a/inject/pom.xml
+++ b/inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.inject
diff --git a/media/jaxb/pom.xml b/media/jaxb/pom.xml
index 48560070e22..a9b64b36f76 100644
--- a/media/jaxb/pom.xml
+++ b/media/jaxb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-media-jaxb
diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
index f09590fecfb..700f32f606d 100644
--- a/media/json-binding/pom.xml
+++ b/media/json-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-media-json-binding
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index e57899b9dac..929ef1beade 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-media-json-gson
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index a0eb3bdeb6e..6d1a3d6dae7 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-media-json-jackson
diff --git a/media/json-jettison/pom.xml b/media/json-jettison/pom.xml
index 0efb1070056..59d4699d109 100644
--- a/media/json-jettison/pom.xml
+++ b/media/json-jettison/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-media-json-jettison
diff --git a/media/json-processing/pom.xml b/media/json-processing/pom.xml
index 9f884eedfba..b6898a656c6 100644
--- a/media/json-processing/pom.xml
+++ b/media/json-processing/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-media-json-processing
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index d1db2b3280b..56fafdcb257 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-media-moxy
diff --git a/media/multipart/pom.xml b/media/multipart/pom.xml
index 945e5d87620..3124a2627cb 100644
--- a/media/multipart/pom.xml
+++ b/media/multipart/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-media-multipart
diff --git a/media/pom.xml b/media/pom.xml
index 72a5ef66418..3833a35afbd 100644
--- a/media/pom.xml
+++ b/media/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.media
diff --git a/media/sse/pom.xml b/media/sse/pom.xml
index 812e7a6370d..d962ef922bc 100644
--- a/media/sse/pom.xml
+++ b/media/sse/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-media-sse
diff --git a/pom.xml b/pom.xml
index eda140e8fa6..ee993a3245f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
org.glassfish.jersey
project
pom
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey
Eclipse Jersey is the open source (under dual EPL+GPL license) Jakarta RESTful WebServices 3.0
diff --git a/security/oauth1-client/pom.xml b/security/oauth1-client/pom.xml
index bf765dc1ca2..8e6f2befae5 100644
--- a/security/oauth1-client/pom.xml
+++ b/security/oauth1-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.security
project
- 3.0.99-SNAPSHOT
+ 3.0.8
oauth1-client
diff --git a/security/oauth1-server/pom.xml b/security/oauth1-server/pom.xml
index 86b14091918..67ae9b6592b 100644
--- a/security/oauth1-server/pom.xml
+++ b/security/oauth1-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.security
project
- 3.0.99-SNAPSHOT
+ 3.0.8
oauth1-server
diff --git a/security/oauth1-signature/pom.xml b/security/oauth1-signature/pom.xml
index b1daa8b93f7..1c9a0a87e30 100644
--- a/security/oauth1-signature/pom.xml
+++ b/security/oauth1-signature/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/security/oauth2-client/pom.xml b/security/oauth2-client/pom.xml
index 920e17f2088..78a4a54156a 100644
--- a/security/oauth2-client/pom.xml
+++ b/security/oauth2-client/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/security/pom.xml b/security/pom.xml
index a798df20da5..db8cb8d40df 100644
--- a/security/pom.xml
+++ b/security/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.security
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index 36b26335fd0..239f1f7ac2c 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-test-framework-core
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index 32d86a40eb5..71c9ad49191 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.0.99-SNAPSHOT
+ 3.0.8
container-runner-maven-plugin
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index c690eef5731..7d9acc2e45b 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.0.99-SNAPSHOT
+ 3.0.8
custom-enforcer-rules
diff --git a/test-framework/maven/pom.xml b/test-framework/maven/pom.xml
index 84d353b880a..b59296b75df 100644
--- a/test-framework/maven/pom.xml
+++ b/test-framework/maven/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.test-framework.maven
diff --git a/test-framework/memleak-test-common/pom.xml b/test-framework/memleak-test-common/pom.xml
index a9b8f3d74b4..d2bc9c11ea7 100644
--- a/test-framework/memleak-test-common/pom.xml
+++ b/test-framework/memleak-test-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.0.8
memleak-test-common
diff --git a/test-framework/pom.xml b/test-framework/pom.xml
index eadee509eca..b9f5da7e7ba 100644
--- a/test-framework/pom.xml
+++ b/test-framework/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.test-framework
diff --git a/test-framework/providers/bundle/pom.xml b/test-framework/providers/bundle/pom.xml
index adc29afeea3..b6d71853630 100644
--- a/test-framework/providers/bundle/pom.xml
+++ b/test-framework/providers/bundle/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-test-framework-provider-bundle
diff --git a/test-framework/providers/external/pom.xml b/test-framework/providers/external/pom.xml
index 11cddbc864b..5a11437ce3b 100644
--- a/test-framework/providers/external/pom.xml
+++ b/test-framework/providers/external/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-test-framework-provider-external
diff --git a/test-framework/providers/grizzly2/pom.xml b/test-framework/providers/grizzly2/pom.xml
index 8b27f3a7d44..e8f6a67205b 100644
--- a/test-framework/providers/grizzly2/pom.xml
+++ b/test-framework/providers/grizzly2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-test-framework-provider-grizzly2
diff --git a/test-framework/providers/inmemory/pom.xml b/test-framework/providers/inmemory/pom.xml
index a7fb228a465..d27381df6aa 100644
--- a/test-framework/providers/inmemory/pom.xml
+++ b/test-framework/providers/inmemory/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-test-framework-provider-inmemory
diff --git a/test-framework/providers/jdk-http/pom.xml b/test-framework/providers/jdk-http/pom.xml
index 3876be43783..af777cb5c5d 100644
--- a/test-framework/providers/jdk-http/pom.xml
+++ b/test-framework/providers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-test-framework-provider-jdk-http
diff --git a/test-framework/providers/jetty/pom.xml b/test-framework/providers/jetty/pom.xml
index 7b20b609012..028fdb2d9b7 100644
--- a/test-framework/providers/jetty/pom.xml
+++ b/test-framework/providers/jetty/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/test-framework/providers/netty/pom.xml b/test-framework/providers/netty/pom.xml
index 38e56c787ab..96f43b95940 100644
--- a/test-framework/providers/netty/pom.xml
+++ b/test-framework/providers/netty/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-test-framework-provider-netty
diff --git a/test-framework/providers/pom.xml b/test-framework/providers/pom.xml
index 0da4a34cbc3..0c13ce88bd8 100644
--- a/test-framework/providers/pom.xml
+++ b/test-framework/providers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.test-framework.providers
diff --git a/test-framework/providers/simple/pom.xml b/test-framework/providers/simple/pom.xml
index 649b652dc91..b907619cd46 100644
--- a/test-framework/providers/simple/pom.xml
+++ b/test-framework/providers/simple/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/test-framework/util/pom.xml b/test-framework/util/pom.xml
index 569ab3e5c48..f222f17da6e 100644
--- a/test-framework/util/pom.xml
+++ b/test-framework/util/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-test-framework-util
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index 10c79d4f6ea..68ec2912d08 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.8
e2e-client
diff --git a/tests/e2e-core-common/pom.xml b/tests/e2e-core-common/pom.xml
index 0c97c1f4860..0c9a0a1b1b5 100644
--- a/tests/e2e-core-common/pom.xml
+++ b/tests/e2e-core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.8
e2e-core-common
diff --git a/tests/e2e-entity/pom.xml b/tests/e2e-entity/pom.xml
index 3c654b538af..d07909c4614 100644
--- a/tests/e2e-entity/pom.xml
+++ b/tests/e2e-entity/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.8
e2e-entity
diff --git a/tests/e2e-inject/cdi-inject-weld/pom.xml b/tests/e2e-inject/cdi-inject-weld/pom.xml
index 37f6c7665e9..2b9ed9829e2 100644
--- a/tests/e2e-inject/cdi-inject-weld/pom.xml
+++ b/tests/e2e-inject/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.0.99-SNAPSHOT
+ 3.0.8
e2e-inject-cdi-inject-weld
diff --git a/tests/e2e-inject/cdi2-se/pom.xml b/tests/e2e-inject/cdi2-se/pom.xml
index 578e6e9b236..f0849685a1e 100644
--- a/tests/e2e-inject/cdi2-se/pom.xml
+++ b/tests/e2e-inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.0.99-SNAPSHOT
+ 3.0.8
e2e-inject-cdi2-se
diff --git a/tests/e2e-inject/hk2/pom.xml b/tests/e2e-inject/hk2/pom.xml
index cf8d651a844..4a088cf9c19 100644
--- a/tests/e2e-inject/hk2/pom.xml
+++ b/tests/e2e-inject/hk2/pom.xml
@@ -23,7 +23,7 @@
e2e-inject
org.glassfish.jersey.tests
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/e2e-inject/pom.xml b/tests/e2e-inject/pom.xml
index a6dcfeb1dff..4cdcbbbf10d 100644
--- a/tests/e2e-inject/pom.xml
+++ b/tests/e2e-inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.8
e2e-inject
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index b82ce78e42d..1b161eceee4 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.8
e2e-server
diff --git a/tests/e2e-testng/pom.xml b/tests/e2e-testng/pom.xml
index 8e137eecb59..b950e5a646b 100644
--- a/tests/e2e-testng/pom.xml
+++ b/tests/e2e-testng/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.8
e2e-testng
diff --git a/tests/e2e/pom.xml b/tests/e2e/pom.xml
index da8b8d8a2ce..8d04acaa0ca 100644
--- a/tests/e2e/pom.xml
+++ b/tests/e2e/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.8
e2e
diff --git a/tests/integration/asm/pom.xml b/tests/integration/asm/pom.xml
index 31000df913a..29541e5b791 100644
--- a/tests/integration/asm/pom.xml
+++ b/tests/integration/asm/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/async-jersey-filter/pom.xml b/tests/integration/async-jersey-filter/pom.xml
index b258b0ab0ef..0a415cf5b61 100644
--- a/tests/integration/async-jersey-filter/pom.xml
+++ b/tests/integration/async-jersey-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
async-jersey-filter
diff --git a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
index dcbcb126a7c..2a786f9c395 100644
--- a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-beanvalidation-webapp
diff --git a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
index fbcc5e486c8..44e53bb71a9 100644
--- a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-client-on-server
diff --git a/tests/integration/cdi-integration/cdi-client/pom.xml b/tests/integration/cdi-integration/cdi-client/pom.xml
index 06b90f8c034..972825fc094 100644
--- a/tests/integration/cdi-integration/cdi-client/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-client
diff --git a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
index 1281b55d74d..4edbb2eca19 100644
--- a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-ejb-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
index 0e5399985b1..82349618e00 100644
--- a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-iface-with-non-jaxrs-impl-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-log-check/pom.xml b/tests/integration/cdi-integration/cdi-log-check/pom.xml
index e67c62e364e..25df372324a 100644
--- a/tests/integration/cdi-integration/cdi-log-check/pom.xml
+++ b/tests/integration/cdi-integration/cdi-log-check/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-log-check
diff --git a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
index 3dee33d65f0..e9bb3f0c33c 100644
--- a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
+++ b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
index 676d3c5a3f5..ffa6c843d7a 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
index 2cb280fefde..c6e5e3a7c58 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
index a2432f470ce..4d9d8931773 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-multimodule
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
index 18ec2873880..0dc4dd7fded 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
index 421a999f06d..1d0dee85243 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
index 39156de90b3..11a120874f2 100644
--- a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-multipart-webapp
diff --git a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
index dd515d77fd0..04bac33a073 100644
--- a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
+++ b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-singleton/pom.xml b/tests/integration/cdi-integration/cdi-singleton/pom.xml
index ad33e450d7f..e1e69101ba5 100644
--- a/tests/integration/cdi-integration/cdi-singleton/pom.xml
+++ b/tests/integration/cdi-integration/cdi-singleton/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
index 03ca8b022ae..e18b8e7f367 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
index 722e892c7a2..de9ba0ab0ec 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-with-jersey-injection-custom-cfg-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
index acf68dab964..feb63b3a4c6 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-with-jersey-injection-custom-hk2-banned-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
index 83084c2d2c0..27624372400 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
cdi-with-jersey-injection-webapp
diff --git a/tests/integration/cdi-integration/context-inject-on-server/pom.xml b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
index 8391b2c5362..c52161df810 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/pom.xml
+++ b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
context-inject-on-server
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
index 7228461549d..2d4e8cb2e5a 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
+++ b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.0.8
gf-cdi-inject-on-server
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index c14ab61cf3b..1b7246df368 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
pom
diff --git a/tests/integration/client-connector-provider/pom.xml b/tests/integration/client-connector-provider/pom.xml
index d2d838fee79..a25e105e9e0 100644
--- a/tests/integration/client-connector-provider/pom.xml
+++ b/tests/integration/client-connector-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
client-connector-provider
diff --git a/tests/integration/ejb-multimodule-reload/ear/pom.xml b/tests/integration/ejb-multimodule-reload/ear/pom.xml
index fe527f5e5f8..96ba7ce0ed6 100644
--- a/tests/integration/ejb-multimodule-reload/ear/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/lib/pom.xml b/tests/integration/ejb-multimodule-reload/lib/pom.xml
index 3bef14eb4c8..459411ad0c0 100644
--- a/tests/integration/ejb-multimodule-reload/lib/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/pom.xml b/tests/integration/ejb-multimodule-reload/pom.xml
index c041b5a5450..069ebca4725 100644
--- a/tests/integration/ejb-multimodule-reload/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
ejb-multimodule-reload
diff --git a/tests/integration/ejb-multimodule-reload/war1/pom.xml b/tests/integration/ejb-multimodule-reload/war1/pom.xml
index 5fda3a23e04..d06c979b45c 100644
--- a/tests/integration/ejb-multimodule-reload/war1/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/war2/pom.xml b/tests/integration/ejb-multimodule-reload/war2/pom.xml
index f3f7de908b7..14558201247 100644
--- a/tests/integration/ejb-multimodule-reload/war2/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/ear/pom.xml b/tests/integration/ejb-multimodule/ear/pom.xml
index 9d60c5d2fc7..a806b744986 100644
--- a/tests/integration/ejb-multimodule/ear/pom.xml
+++ b/tests/integration/ejb-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/lib/pom.xml b/tests/integration/ejb-multimodule/lib/pom.xml
index 9b583c2d5e4..d178715247a 100644
--- a/tests/integration/ejb-multimodule/lib/pom.xml
+++ b/tests/integration/ejb-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/pom.xml b/tests/integration/ejb-multimodule/pom.xml
index d1527cd4530..789a7ae427a 100644
--- a/tests/integration/ejb-multimodule/pom.xml
+++ b/tests/integration/ejb-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
ejb-multimodule
diff --git a/tests/integration/ejb-multimodule/war/pom.xml b/tests/integration/ejb-multimodule/war/pom.xml
index 0fb17710ad5..9f90ff1e40e 100644
--- a/tests/integration/ejb-multimodule/war/pom.xml
+++ b/tests/integration/ejb-multimodule/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/ejb-test-webapp/pom.xml b/tests/integration/ejb-test-webapp/pom.xml
index 0791de9bd8b..d2232767081 100644
--- a/tests/integration/ejb-test-webapp/pom.xml
+++ b/tests/integration/ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
ejb-test-webapp
diff --git a/tests/integration/externalproperties/pom.xml b/tests/integration/externalproperties/pom.xml
index 91ff812f485..9d7b4487951 100644
--- a/tests/integration/externalproperties/pom.xml
+++ b/tests/integration/externalproperties/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
externalproperties
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index bdc4ce0065e..308bd438aac 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
j-376
diff --git a/tests/integration/j-441/ear/pom.xml b/tests/integration/j-441/ear/pom.xml
index 37d2588c5a7..b590978d68f 100644
--- a/tests/integration/j-441/ear/pom.xml
+++ b/tests/integration/j-441/ear/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
j-441-ear
diff --git a/tests/integration/j-441/pom.xml b/tests/integration/j-441/pom.xml
index 34bce1499dc..deed4aa9392 100644
--- a/tests/integration/j-441/pom.xml
+++ b/tests/integration/j-441/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
j-441
diff --git a/tests/integration/j-441/war1/pom.xml b/tests/integration/j-441/war1/pom.xml
index e35999a4cf6..0c7b84dd83b 100644
--- a/tests/integration/j-441/war1/pom.xml
+++ b/tests/integration/j-441/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/j-441/war2/pom.xml b/tests/integration/j-441/war2/pom.xml
index a5a887eb45b..f6499b0ae2a 100644
--- a/tests/integration/j-441/war2/pom.xml
+++ b/tests/integration/j-441/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/j-59/ear/pom.xml b/tests/integration/j-59/ear/pom.xml
index 8eeeaa442a8..da544f60580 100644
--- a/tests/integration/j-59/ear/pom.xml
+++ b/tests/integration/j-59/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/j-59/lib/pom.xml b/tests/integration/j-59/lib/pom.xml
index 3f74aa4a5b5..b3ff64e4c57 100644
--- a/tests/integration/j-59/lib/pom.xml
+++ b/tests/integration/j-59/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/j-59/pom.xml b/tests/integration/j-59/pom.xml
index dc2dd9be86a..4efb73d70b6 100644
--- a/tests/integration/j-59/pom.xml
+++ b/tests/integration/j-59/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
j-59
diff --git a/tests/integration/j-59/war/pom.xml b/tests/integration/j-59/war/pom.xml
index 145ab55c00e..c54dab7e73c 100644
--- a/tests/integration/j-59/war/pom.xml
+++ b/tests/integration/j-59/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
../../pom.xml
diff --git a/tests/integration/jaxrs-component-inject/pom.xml b/tests/integration/jaxrs-component-inject/pom.xml
index 5ad88a24815..0cf00421465 100644
--- a/tests/integration/jaxrs-component-inject/pom.xml
+++ b/tests/integration/jaxrs-component-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jaxrs-component-inject
diff --git a/tests/integration/jersey-1107/pom.xml b/tests/integration/jersey-1107/pom.xml
index 0454541101e..6808ef44aa9 100644
--- a/tests/integration/jersey-1107/pom.xml
+++ b/tests/integration/jersey-1107/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-1107
diff --git a/tests/integration/jersey-1223/pom.xml b/tests/integration/jersey-1223/pom.xml
index 77c48ae2a9a..d9fe380297e 100644
--- a/tests/integration/jersey-1223/pom.xml
+++ b/tests/integration/jersey-1223/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
jersey-1223
diff --git a/tests/integration/jersey-1604/pom.xml b/tests/integration/jersey-1604/pom.xml
index c35da56feec..42e74f31431 100644
--- a/tests/integration/jersey-1604/pom.xml
+++ b/tests/integration/jersey-1604/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
jersey-1604
diff --git a/tests/integration/jersey-1667/pom.xml b/tests/integration/jersey-1667/pom.xml
index 917e178bd1f..41353434d35 100644
--- a/tests/integration/jersey-1667/pom.xml
+++ b/tests/integration/jersey-1667/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-1667
diff --git a/tests/integration/jersey-1883/pom.xml b/tests/integration/jersey-1883/pom.xml
index 4e483050991..ee9c7f47719 100644
--- a/tests/integration/jersey-1883/pom.xml
+++ b/tests/integration/jersey-1883/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-1883
diff --git a/tests/integration/jersey-1928/pom.xml b/tests/integration/jersey-1928/pom.xml
index d532fc19935..8a764abe1ce 100644
--- a/tests/integration/jersey-1928/pom.xml
+++ b/tests/integration/jersey-1928/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
jersey-1928
diff --git a/tests/integration/jersey-1960/pom.xml b/tests/integration/jersey-1960/pom.xml
index 0b73e155804..ed43cfa249c 100644
--- a/tests/integration/jersey-1960/pom.xml
+++ b/tests/integration/jersey-1960/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-1960
diff --git a/tests/integration/jersey-1964/pom.xml b/tests/integration/jersey-1964/pom.xml
index d62a7dfa750..68935ad5cd2 100644
--- a/tests/integration/jersey-1964/pom.xml
+++ b/tests/integration/jersey-1964/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-1964
diff --git a/tests/integration/jersey-2031/pom.xml b/tests/integration/jersey-2031/pom.xml
index 61fb008e544..bada2923182 100644
--- a/tests/integration/jersey-2031/pom.xml
+++ b/tests/integration/jersey-2031/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2031
diff --git a/tests/integration/jersey-2136/pom.xml b/tests/integration/jersey-2136/pom.xml
index 5c81daa8d40..326a4329d2b 100644
--- a/tests/integration/jersey-2136/pom.xml
+++ b/tests/integration/jersey-2136/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2136
diff --git a/tests/integration/jersey-2137/pom.xml b/tests/integration/jersey-2137/pom.xml
index 0522ff4f670..f14d3be0a5e 100644
--- a/tests/integration/jersey-2137/pom.xml
+++ b/tests/integration/jersey-2137/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2137
diff --git a/tests/integration/jersey-2154/pom.xml b/tests/integration/jersey-2154/pom.xml
index 6453678cb32..8810813cfa5 100644
--- a/tests/integration/jersey-2154/pom.xml
+++ b/tests/integration/jersey-2154/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2154
diff --git a/tests/integration/jersey-2160/pom.xml b/tests/integration/jersey-2160/pom.xml
index bd327294468..b07a1afb514 100644
--- a/tests/integration/jersey-2160/pom.xml
+++ b/tests/integration/jersey-2160/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2160
diff --git a/tests/integration/jersey-2164/pom.xml b/tests/integration/jersey-2164/pom.xml
index e333ee33b00..e3d8d3f39f9 100644
--- a/tests/integration/jersey-2164/pom.xml
+++ b/tests/integration/jersey-2164/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2164
diff --git a/tests/integration/jersey-2167/pom.xml b/tests/integration/jersey-2167/pom.xml
index 4bef57f7467..042bad64ca0 100644
--- a/tests/integration/jersey-2167/pom.xml
+++ b/tests/integration/jersey-2167/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2167
diff --git a/tests/integration/jersey-2176/pom.xml b/tests/integration/jersey-2176/pom.xml
index e69b33dc154..9a2eb4103c0 100644
--- a/tests/integration/jersey-2176/pom.xml
+++ b/tests/integration/jersey-2176/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2176
diff --git a/tests/integration/jersey-2184/pom.xml b/tests/integration/jersey-2184/pom.xml
index 67394390a58..1602efe1969 100644
--- a/tests/integration/jersey-2184/pom.xml
+++ b/tests/integration/jersey-2184/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2184
diff --git a/tests/integration/jersey-2255/pom.xml b/tests/integration/jersey-2255/pom.xml
index 864bbda5782..d8a20ed84f3 100644
--- a/tests/integration/jersey-2255/pom.xml
+++ b/tests/integration/jersey-2255/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2255
diff --git a/tests/integration/jersey-2322/pom.xml b/tests/integration/jersey-2322/pom.xml
index 5acef07879d..b57d1f8c4c0 100644
--- a/tests/integration/jersey-2322/pom.xml
+++ b/tests/integration/jersey-2322/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2322
diff --git a/tests/integration/jersey-2335/pom.xml b/tests/integration/jersey-2335/pom.xml
index ae251628aaa..368c6258a60 100644
--- a/tests/integration/jersey-2335/pom.xml
+++ b/tests/integration/jersey-2335/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2335
diff --git a/tests/integration/jersey-2421/pom.xml b/tests/integration/jersey-2421/pom.xml
index 57272ef5469..4078bdc1ecd 100644
--- a/tests/integration/jersey-2421/pom.xml
+++ b/tests/integration/jersey-2421/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2421
diff --git a/tests/integration/jersey-2551/pom.xml b/tests/integration/jersey-2551/pom.xml
index 4b3ed85e792..7f50535bbbf 100644
--- a/tests/integration/jersey-2551/pom.xml
+++ b/tests/integration/jersey-2551/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2551
diff --git a/tests/integration/jersey-2612/pom.xml b/tests/integration/jersey-2612/pom.xml
index cc4ba0cb4ce..455411c8f78 100644
--- a/tests/integration/jersey-2612/pom.xml
+++ b/tests/integration/jersey-2612/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2612
diff --git a/tests/integration/jersey-2637/pom.xml b/tests/integration/jersey-2637/pom.xml
index 7b89b885415..d9f5da40cac 100644
--- a/tests/integration/jersey-2637/pom.xml
+++ b/tests/integration/jersey-2637/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2637
diff --git a/tests/integration/jersey-2654/pom.xml b/tests/integration/jersey-2654/pom.xml
index 5a8ce536f94..873009dffbb 100644
--- a/tests/integration/jersey-2654/pom.xml
+++ b/tests/integration/jersey-2654/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2654
diff --git a/tests/integration/jersey-2673/pom.xml b/tests/integration/jersey-2673/pom.xml
index a09059f698f..1b3faedbf1d 100644
--- a/tests/integration/jersey-2673/pom.xml
+++ b/tests/integration/jersey-2673/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2673
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index 5a73166f846..90b87d6d210 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2689
diff --git a/tests/integration/jersey-2704/pom.xml b/tests/integration/jersey-2704/pom.xml
index 3356c790a61..feac179aaa6 100644
--- a/tests/integration/jersey-2704/pom.xml
+++ b/tests/integration/jersey-2704/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2704
diff --git a/tests/integration/jersey-2776/pom.xml b/tests/integration/jersey-2776/pom.xml
index 3a8f6045da8..0f132ebd93a 100644
--- a/tests/integration/jersey-2776/pom.xml
+++ b/tests/integration/jersey-2776/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2776
diff --git a/tests/integration/jersey-2794/pom.xml b/tests/integration/jersey-2794/pom.xml
index f5e47fda936..a6f4cc29530 100644
--- a/tests/integration/jersey-2794/pom.xml
+++ b/tests/integration/jersey-2794/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2794
diff --git a/tests/integration/jersey-2846/pom.xml b/tests/integration/jersey-2846/pom.xml
index 4f4bb9e1766..d7ed0014fa3 100644
--- a/tests/integration/jersey-2846/pom.xml
+++ b/tests/integration/jersey-2846/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2846
diff --git a/tests/integration/jersey-2878/pom.xml b/tests/integration/jersey-2878/pom.xml
index 1fba3f01eb5..1add30f9526 100644
--- a/tests/integration/jersey-2878/pom.xml
+++ b/tests/integration/jersey-2878/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2878
diff --git a/tests/integration/jersey-2892/pom.xml b/tests/integration/jersey-2892/pom.xml
index a2c420f62ac..22b3cd7af66 100644
--- a/tests/integration/jersey-2892/pom.xml
+++ b/tests/integration/jersey-2892/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-2892
diff --git a/tests/integration/jersey-3662/pom.xml b/tests/integration/jersey-3662/pom.xml
index ed7425b8f12..b1328700213 100644
--- a/tests/integration/jersey-3662/pom.xml
+++ b/tests/integration/jersey-3662/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/jersey-3670/pom.xml b/tests/integration/jersey-3670/pom.xml
index 2e23e7bd8e7..2bb54e9a995 100644
--- a/tests/integration/jersey-3670/pom.xml
+++ b/tests/integration/jersey-3670/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-3670
diff --git a/tests/integration/jersey-3796/pom.xml b/tests/integration/jersey-3796/pom.xml
index c555460dfbc..c53bc75568c 100644
--- a/tests/integration/jersey-3796/pom.xml
+++ b/tests/integration/jersey-3796/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-3796
diff --git a/tests/integration/jersey-3992/pom.xml b/tests/integration/jersey-3992/pom.xml
index 3a91fa66675..52d147729e4 100644
--- a/tests/integration/jersey-3992/pom.xml
+++ b/tests/integration/jersey-3992/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-3992
diff --git a/tests/integration/jersey-4003/pom.xml b/tests/integration/jersey-4003/pom.xml
index 9c2c8be8cc6..3827be9da6f 100644
--- a/tests/integration/jersey-4003/pom.xml
+++ b/tests/integration/jersey-4003/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/jersey-4099/pom.xml b/tests/integration/jersey-4099/pom.xml
index 8a11821c4b0..34f24c588c3 100644
--- a/tests/integration/jersey-4099/pom.xml
+++ b/tests/integration/jersey-4099/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-4099
diff --git a/tests/integration/jersey-4321/pom.xml b/tests/integration/jersey-4321/pom.xml
index 108d29d8cec..a2ccb6988a2 100644
--- a/tests/integration/jersey-4321/pom.xml
+++ b/tests/integration/jersey-4321/pom.xml
@@ -24,7 +24,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/jersey-4507/pom.xml b/tests/integration/jersey-4507/pom.xml
index 7bd6c4267ba..2223f08c47f 100644
--- a/tests/integration/jersey-4507/pom.xml
+++ b/tests/integration/jersey-4507/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/jersey-4542/pom.xml b/tests/integration/jersey-4542/pom.xml
index 9a57421cee7..4426ceb635c 100644
--- a/tests/integration/jersey-4542/pom.xml
+++ b/tests/integration/jersey-4542/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/jersey-4697/pom.xml b/tests/integration/jersey-4697/pom.xml
index 699cad95c6e..5e2d1f2c23f 100644
--- a/tests/integration/jersey-4697/pom.xml
+++ b/tests/integration/jersey-4697/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/jersey-4722/pom.xml b/tests/integration/jersey-4722/pom.xml
index 9899424ec8e..0bf3afe914c 100644
--- a/tests/integration/jersey-4722/pom.xml
+++ b/tests/integration/jersey-4722/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/jersey-4949/pom.xml b/tests/integration/jersey-4949/pom.xml
index df426ac5bb9..85228370d65 100644
--- a/tests/integration/jersey-4949/pom.xml
+++ b/tests/integration/jersey-4949/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-4949
diff --git a/tests/integration/jersey-5087/pom.xml b/tests/integration/jersey-5087/pom.xml
index 7f97ce81595..5e3e1bd204b 100644
--- a/tests/integration/jersey-5087/pom.xml
+++ b/tests/integration/jersey-5087/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/jersey-780/pom.xml b/tests/integration/jersey-780/pom.xml
index 4fd6edba78f..eac110fe607 100644
--- a/tests/integration/jersey-780/pom.xml
+++ b/tests/integration/jersey-780/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-780
diff --git a/tests/integration/microprofile/config/helidon/pom.xml b/tests/integration/microprofile/config/helidon/pom.xml
index 47bca4af4b4..6eec0bfd899 100644
--- a/tests/integration/microprofile/config/helidon/pom.xml
+++ b/tests/integration/microprofile/config/helidon/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/microprofile/config/pom.xml b/tests/integration/microprofile/config/pom.xml
index 3428dcce3f9..e0874d9c779 100644
--- a/tests/integration/microprofile/config/pom.xml
+++ b/tests/integration/microprofile/config/pom.xml
@@ -22,7 +22,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
pom
diff --git a/tests/integration/microprofile/config/webapp/pom.xml b/tests/integration/microprofile/config/webapp/pom.xml
index ef82e1e77e1..b9a395ce212 100644
--- a/tests/integration/microprofile/config/webapp/pom.xml
+++ b/tests/integration/microprofile/config/webapp/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/microprofile/pom.xml b/tests/integration/microprofile/pom.xml
index 19e06d62bbb..2d18923070b 100644
--- a/tests/integration/microprofile/pom.xml
+++ b/tests/integration/microprofile/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
pom
diff --git a/tests/integration/microprofile/rest-client-tck/pom.xml b/tests/integration/microprofile/rest-client-tck/pom.xml
index 9e477b8bd89..a0e694ddf47 100644
--- a/tests/integration/microprofile/rest-client-tck/pom.xml
+++ b/tests/integration/microprofile/rest-client-tck/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/microprofile/rest-client/pom.xml b/tests/integration/microprofile/rest-client/pom.xml
index 20e608714f3..079d5b2ebf8 100644
--- a/tests/integration/microprofile/rest-client/pom.xml
+++ b/tests/integration/microprofile/rest-client/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index 7313f12ce46..721a8f1425a 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.tests.integration
diff --git a/tests/integration/property-check/pom.xml b/tests/integration/property-check/pom.xml
index 1d1ca19b1d4..a39e5bf4e18 100644
--- a/tests/integration/property-check/pom.xml
+++ b/tests/integration/property-check/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
property-check
diff --git a/tests/integration/reactive-streams/pom.xml b/tests/integration/reactive-streams/pom.xml
index cef7e0e93c6..44fb7ac1069 100644
--- a/tests/integration/reactive-streams/pom.xml
+++ b/tests/integration/reactive-streams/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
pom
diff --git a/tests/integration/reactive-streams/sse/pom.xml b/tests/integration/reactive-streams/sse/pom.xml
index b6031de788e..c5c281d74d4 100644
--- a/tests/integration/reactive-streams/sse/pom.xml
+++ b/tests/integration/reactive-streams/sse/pom.xml
@@ -22,7 +22,7 @@
reactive-streams-integration-project
org.glassfish.jersey.tests.integration.reactive
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/integration/security-digest/pom.xml b/tests/integration/security-digest/pom.xml
index 1c3d9390d63..6f343616097 100644
--- a/tests/integration/security-digest/pom.xml
+++ b/tests/integration/security-digest/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
security-digest
diff --git a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
index 170ebdc6057..5d77c7eef3a 100644
--- a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-autodiscovery-1
diff --git a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
index 75d0d9d1692..3b581374583 100644
--- a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-autodiscovery-2
diff --git a/tests/integration/servlet-2.5-filter/pom.xml b/tests/integration/servlet-2.5-filter/pom.xml
index f5bde77bdd3..b496c4bba97 100644
--- a/tests/integration/servlet-2.5-filter/pom.xml
+++ b/tests/integration/servlet-2.5-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-filter
diff --git a/tests/integration/servlet-2.5-inflector-1/pom.xml b/tests/integration/servlet-2.5-inflector-1/pom.xml
index 8881a1aa86b..d67b0db94af 100644
--- a/tests/integration/servlet-2.5-inflector-1/pom.xml
+++ b/tests/integration/servlet-2.5-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-inflector-1
diff --git a/tests/integration/servlet-2.5-init-1/pom.xml b/tests/integration/servlet-2.5-init-1/pom.xml
index 7f73fa2db7a..4353b7cf286 100644
--- a/tests/integration/servlet-2.5-init-1/pom.xml
+++ b/tests/integration/servlet-2.5-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-init-1
diff --git a/tests/integration/servlet-2.5-init-2/pom.xml b/tests/integration/servlet-2.5-init-2/pom.xml
index a38fb5ab30a..15d642cf9eb 100644
--- a/tests/integration/servlet-2.5-init-2/pom.xml
+++ b/tests/integration/servlet-2.5-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-init-2
diff --git a/tests/integration/servlet-2.5-init-3/pom.xml b/tests/integration/servlet-2.5-init-3/pom.xml
index 54ae9820807..1bc65ffe9eb 100644
--- a/tests/integration/servlet-2.5-init-3/pom.xml
+++ b/tests/integration/servlet-2.5-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-init-3
diff --git a/tests/integration/servlet-2.5-init-4/pom.xml b/tests/integration/servlet-2.5-init-4/pom.xml
index f46d5bc8f9c..47b8391704e 100644
--- a/tests/integration/servlet-2.5-init-4/pom.xml
+++ b/tests/integration/servlet-2.5-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-init-4
diff --git a/tests/integration/servlet-2.5-init-5/pom.xml b/tests/integration/servlet-2.5-init-5/pom.xml
index a2d1ae3058c..9c3db1f6f20 100644
--- a/tests/integration/servlet-2.5-init-5/pom.xml
+++ b/tests/integration/servlet-2.5-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-init-5
diff --git a/tests/integration/servlet-2.5-init-6/pom.xml b/tests/integration/servlet-2.5-init-6/pom.xml
index 437f9499271..bac666a1406 100644
--- a/tests/integration/servlet-2.5-init-6/pom.xml
+++ b/tests/integration/servlet-2.5-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-init-6
diff --git a/tests/integration/servlet-2.5-init-7/pom.xml b/tests/integration/servlet-2.5-init-7/pom.xml
index 43dc4e1441c..1ab856f5288 100644
--- a/tests/integration/servlet-2.5-init-7/pom.xml
+++ b/tests/integration/servlet-2.5-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-init-7
diff --git a/tests/integration/servlet-2.5-init-8/pom.xml b/tests/integration/servlet-2.5-init-8/pom.xml
index 5c3c50febae..2886cfa1f2e 100644
--- a/tests/integration/servlet-2.5-init-8/pom.xml
+++ b/tests/integration/servlet-2.5-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-init-8
diff --git a/tests/integration/servlet-2.5-mvc-1/pom.xml b/tests/integration/servlet-2.5-mvc-1/pom.xml
index 9e080fb8a05..2120421db85 100644
--- a/tests/integration/servlet-2.5-mvc-1/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-mvc-1
diff --git a/tests/integration/servlet-2.5-mvc-2/pom.xml b/tests/integration/servlet-2.5-mvc-2/pom.xml
index 6b99036dc71..3548d1a0572 100644
--- a/tests/integration/servlet-2.5-mvc-2/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-mvc-2
diff --git a/tests/integration/servlet-2.5-mvc-3/pom.xml b/tests/integration/servlet-2.5-mvc-3/pom.xml
index b9e12c58a3f..165bbc32b23 100644
--- a/tests/integration/servlet-2.5-mvc-3/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-mvc-3
diff --git a/tests/integration/servlet-2.5-reload/pom.xml b/tests/integration/servlet-2.5-reload/pom.xml
index 300e1eed8c3..f180a72a8b3 100644
--- a/tests/integration/servlet-2.5-reload/pom.xml
+++ b/tests/integration/servlet-2.5-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-2.5-reload
diff --git a/tests/integration/servlet-3-async/pom.xml b/tests/integration/servlet-3-async/pom.xml
index d305a505f17..36f51832cc2 100644
--- a/tests/integration/servlet-3-async/pom.xml
+++ b/tests/integration/servlet-3-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-async
diff --git a/tests/integration/servlet-3-chunked-io/pom.xml b/tests/integration/servlet-3-chunked-io/pom.xml
index 4ea9c0416a0..a73931ca9b5 100644
--- a/tests/integration/servlet-3-chunked-io/pom.xml
+++ b/tests/integration/servlet-3-chunked-io/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-chunked-io
diff --git a/tests/integration/servlet-3-filter/pom.xml b/tests/integration/servlet-3-filter/pom.xml
index 99405a2a0e3..54751fa5a91 100644
--- a/tests/integration/servlet-3-filter/pom.xml
+++ b/tests/integration/servlet-3-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-filter
diff --git a/tests/integration/servlet-3-gf-async/pom.xml b/tests/integration/servlet-3-gf-async/pom.xml
index 448e9063629..1c570a8dfbb 100644
--- a/tests/integration/servlet-3-gf-async/pom.xml
+++ b/tests/integration/servlet-3-gf-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-gf-async
diff --git a/tests/integration/servlet-3-inflector-1/pom.xml b/tests/integration/servlet-3-inflector-1/pom.xml
index b49c04d6443..902d12d8272 100644
--- a/tests/integration/servlet-3-inflector-1/pom.xml
+++ b/tests/integration/servlet-3-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-inflector-1
diff --git a/tests/integration/servlet-3-init-1/pom.xml b/tests/integration/servlet-3-init-1/pom.xml
index 3862f57778f..d4d6132c105 100644
--- a/tests/integration/servlet-3-init-1/pom.xml
+++ b/tests/integration/servlet-3-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-init-1
diff --git a/tests/integration/servlet-3-init-2/pom.xml b/tests/integration/servlet-3-init-2/pom.xml
index 66bbfaad717..f90feafb67e 100644
--- a/tests/integration/servlet-3-init-2/pom.xml
+++ b/tests/integration/servlet-3-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-init-2
diff --git a/tests/integration/servlet-3-init-3/pom.xml b/tests/integration/servlet-3-init-3/pom.xml
index d81772b1c59..6672dd090b7 100644
--- a/tests/integration/servlet-3-init-3/pom.xml
+++ b/tests/integration/servlet-3-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-init-3
diff --git a/tests/integration/servlet-3-init-4/pom.xml b/tests/integration/servlet-3-init-4/pom.xml
index e2a8478d875..63c04fc82d2 100644
--- a/tests/integration/servlet-3-init-4/pom.xml
+++ b/tests/integration/servlet-3-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-init-4
diff --git a/tests/integration/servlet-3-init-5/pom.xml b/tests/integration/servlet-3-init-5/pom.xml
index 88ec528e7ef..7e9bc96b486 100644
--- a/tests/integration/servlet-3-init-5/pom.xml
+++ b/tests/integration/servlet-3-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-init-5
diff --git a/tests/integration/servlet-3-init-6/pom.xml b/tests/integration/servlet-3-init-6/pom.xml
index b0591746687..8d8330cf4ee 100644
--- a/tests/integration/servlet-3-init-6/pom.xml
+++ b/tests/integration/servlet-3-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-init-6
diff --git a/tests/integration/servlet-3-init-7/pom.xml b/tests/integration/servlet-3-init-7/pom.xml
index 39661f9bd26..af7367ae237 100644
--- a/tests/integration/servlet-3-init-7/pom.xml
+++ b/tests/integration/servlet-3-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-init-7
diff --git a/tests/integration/servlet-3-init-8/pom.xml b/tests/integration/servlet-3-init-8/pom.xml
index 9ab80e1f098..365e851a442 100644
--- a/tests/integration/servlet-3-init-8/pom.xml
+++ b/tests/integration/servlet-3-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-init-8
diff --git a/tests/integration/servlet-3-init-9/pom.xml b/tests/integration/servlet-3-init-9/pom.xml
index ed0a34a54fb..b1d83f50ce2 100644
--- a/tests/integration/servlet-3-init-9/pom.xml
+++ b/tests/integration/servlet-3-init-9/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-init-9
diff --git a/tests/integration/servlet-3-init-provider/pom.xml b/tests/integration/servlet-3-init-provider/pom.xml
index 8c909b441a0..8a3f184e9a3 100644
--- a/tests/integration/servlet-3-init-provider/pom.xml
+++ b/tests/integration/servlet-3-init-provider/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-init-provider
diff --git a/tests/integration/servlet-3-params/pom.xml b/tests/integration/servlet-3-params/pom.xml
index 9eca1fc6c90..7e07d30f0e0 100644
--- a/tests/integration/servlet-3-params/pom.xml
+++ b/tests/integration/servlet-3-params/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-params
diff --git a/tests/integration/servlet-3-sse-1/pom.xml b/tests/integration/servlet-3-sse-1/pom.xml
index ca82c6a288d..edde83cbc3d 100644
--- a/tests/integration/servlet-3-sse-1/pom.xml
+++ b/tests/integration/servlet-3-sse-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-3-sse-1
diff --git a/tests/integration/servlet-4.0-mvc-1/pom.xml b/tests/integration/servlet-4.0-mvc-1/pom.xml
index 7a93a3f1b54..b543182c996 100644
--- a/tests/integration/servlet-4.0-mvc-1/pom.xml
+++ b/tests/integration/servlet-4.0-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-4.0-mvc-1
diff --git a/tests/integration/servlet-request-wrapper-binding-2/pom.xml b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
index 063f1bf9778..d399294bf91 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-request-wrappper-binding-2
diff --git a/tests/integration/servlet-request-wrapper-binding/pom.xml b/tests/integration/servlet-request-wrapper-binding/pom.xml
index 2a6a9808591..4c83d539460 100644
--- a/tests/integration/servlet-request-wrapper-binding/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-request-wrappper-binding
diff --git a/tests/integration/servlet-tests/pom.xml b/tests/integration/servlet-tests/pom.xml
index d20aa3fd26d..7ed27edd37b 100644
--- a/tests/integration/servlet-tests/pom.xml
+++ b/tests/integration/servlet-tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
servlet-tests
diff --git a/tests/integration/sonar-test/pom.xml b/tests/integration/sonar-test/pom.xml
index 6e5ad790cb1..504c17d8a5e 100644
--- a/tests/integration/sonar-test/pom.xml
+++ b/tests/integration/sonar-test/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
sonar-test
diff --git a/tests/integration/spring6/pom.xml b/tests/integration/spring6/pom.xml
index 63625f40c13..e2ee3dff599 100644
--- a/tests/integration/spring6/pom.xml
+++ b/tests/integration/spring6/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
spring6
diff --git a/tests/integration/tracing-support/pom.xml b/tests/integration/tracing-support/pom.xml
index 1618cae39bb..c7b2f8b2aad 100644
--- a/tests/integration/tracing-support/pom.xml
+++ b/tests/integration/tracing-support/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.99-SNAPSHOT
+ 3.0.8
tracing-support
diff --git a/tests/jmockit/pom.xml b/tests/jmockit/pom.xml
index b23e24ee528..5a6c6121d78 100644
--- a/tests/jmockit/pom.xml
+++ b/tests/jmockit/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests
- 3.0.99-SNAPSHOT
+ 3.0.8
4.0.0
diff --git a/tests/mem-leaks/pom.xml b/tests/mem-leaks/pom.xml
index 6f88b8c504a..0a2da1fad8a 100644
--- a/tests/mem-leaks/pom.xml
+++ b/tests/mem-leaks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.tests.memleaks
diff --git a/tests/mem-leaks/redeployment/pom.xml b/tests/mem-leaks/redeployment/pom.xml
index d05070e2c88..a2dc2f0ca7f 100644
--- a/tests/mem-leaks/redeployment/pom.xml
+++ b/tests/mem-leaks/redeployment/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.tests.memleaks.redeployment
diff --git a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
index 5fe32d43680..ed3f2247717 100644
--- a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.99-SNAPSHOT
+ 3.0.8
redeployment-hello-world-app-ref
@@ -132,7 +132,7 @@
org.glassfish.jersey.examples
helloworld-webapp
war
- 3.0.99-SNAPSHOT
+ 3.0.8
diff --git a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
index 465a1b116f0..ba2029c160f 100644
--- a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.99-SNAPSHOT
+ 3.0.8
redeployment-leaking-test-app
diff --git a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
index 59a52b9e50c..e0dc992bd3e 100644
--- a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.99-SNAPSHOT
+ 3.0.8
redeployment-no-jersey-app
diff --git a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
index 0e0ebd4d6ce..7816fc0745b 100644
--- a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.99-SNAPSHOT
+ 3.0.8
redeployment-threadlocals-app
diff --git a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
index f6e335b7bd7..b48178485d7 100644
--- a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
bean-param-leak
diff --git a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
index 929337bd8c7..13d817c5095 100644
--- a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
+++ b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
leaking-test-app
diff --git a/tests/mem-leaks/test-cases/pom.xml b/tests/mem-leaks/test-cases/pom.xml
index 4428ff7f3d6..8b3adafc748 100644
--- a/tests/mem-leaks/test-cases/pom.xml
+++ b/tests/mem-leaks/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.tests.memleaks.testcases
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
index 40e375294ee..581d2ee1470 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
shutdown-hook-leak-client
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
index 3335fd2b424..92f13d92fd6 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
shutdown-hook-leak
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index 1b996666be8..2126670cf46 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.osgi
project
- 3.0.99-SNAPSHOT
+ 3.0.8
jersey-tests-osgi-functional
diff --git a/tests/osgi/pom.xml b/tests/osgi/pom.xml
index 0f6a61894cc..38dbff48f56 100644
--- a/tests/osgi/pom.xml
+++ b/tests/osgi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.tests.osgi
diff --git a/tests/performance/benchmarks/pom.xml b/tests/performance/benchmarks/pom.xml
index de3d43d789f..85c154a6688 100644
--- a/tests/performance/benchmarks/pom.xml
+++ b/tests/performance/benchmarks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.99-SNAPSHOT
+ 3.0.8
performance-test-benchmarks
diff --git a/tests/performance/pom.xml b/tests/performance/pom.xml
index 684deafa4a3..173ce2bbe1b 100644
--- a/tests/performance/pom.xml
+++ b/tests/performance/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.tests.performance
diff --git a/tests/performance/runners/jersey-grizzly-runner/pom.xml b/tests/performance/runners/jersey-grizzly-runner/pom.xml
index 1c55d8a29b8..443ecda1945 100644
--- a/tests/performance/runners/jersey-grizzly-runner/pom.xml
+++ b/tests/performance/runners/jersey-grizzly-runner/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.runners
project
- 3.0.99-SNAPSHOT
+ 3.0.8
diff --git a/tests/performance/runners/pom.xml b/tests/performance/runners/pom.xml
index 96707a881f3..f2d70b40dd9 100644
--- a/tests/performance/runners/pom.xml
+++ b/tests/performance/runners/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.tests.performance.runners
diff --git a/tests/performance/test-cases/assemblies/pom.xml b/tests/performance/test-cases/assemblies/pom.xml
index 0e174ef1738..7d1a32431e1 100644
--- a/tests/performance/test-cases/assemblies/pom.xml
+++ b/tests/performance/test-cases/assemblies/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
assemblies
diff --git a/tests/performance/test-cases/filter-dynamic/pom.xml b/tests/performance/test-cases/filter-dynamic/pom.xml
index 08679af1fec..77089b1f1b9 100644
--- a/tests/performance/test-cases/filter-dynamic/pom.xml
+++ b/tests/performance/test-cases/filter-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
filter-dynamic
diff --git a/tests/performance/test-cases/filter-global/pom.xml b/tests/performance/test-cases/filter-global/pom.xml
index 5fdc703dab5..fa7057931c8 100644
--- a/tests/performance/test-cases/filter-global/pom.xml
+++ b/tests/performance/test-cases/filter-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
filter-global
diff --git a/tests/performance/test-cases/filter-name/pom.xml b/tests/performance/test-cases/filter-name/pom.xml
index c6457f06c02..02d8e493b4e 100644
--- a/tests/performance/test-cases/filter-name/pom.xml
+++ b/tests/performance/test-cases/filter-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
filter-name
diff --git a/tests/performance/test-cases/interceptor-dynamic/pom.xml b/tests/performance/test-cases/interceptor-dynamic/pom.xml
index 3869ea29373..2a11595d05c 100644
--- a/tests/performance/test-cases/interceptor-dynamic/pom.xml
+++ b/tests/performance/test-cases/interceptor-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
interceptor-dynamic
diff --git a/tests/performance/test-cases/interceptor-global/pom.xml b/tests/performance/test-cases/interceptor-global/pom.xml
index 8cad5e337bd..9f569ef4205 100644
--- a/tests/performance/test-cases/interceptor-global/pom.xml
+++ b/tests/performance/test-cases/interceptor-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
interceptor-global
diff --git a/tests/performance/test-cases/interceptor-name/pom.xml b/tests/performance/test-cases/interceptor-name/pom.xml
index 2a179d3c6c2..8dd36288802 100644
--- a/tests/performance/test-cases/interceptor-name/pom.xml
+++ b/tests/performance/test-cases/interceptor-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
interceptor-name
diff --git a/tests/performance/test-cases/mbw-custom-provider/pom.xml b/tests/performance/test-cases/mbw-custom-provider/pom.xml
index 05def3afe70..38b1eb670c1 100644
--- a/tests/performance/test-cases/mbw-custom-provider/pom.xml
+++ b/tests/performance/test-cases/mbw-custom-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
custom-provider
diff --git a/tests/performance/test-cases/mbw-json-jackson/pom.xml b/tests/performance/test-cases/mbw-json-jackson/pom.xml
index 99b7e0a4e3e..f9be2c4840b 100644
--- a/tests/performance/test-cases/mbw-json-jackson/pom.xml
+++ b/tests/performance/test-cases/mbw-json-jackson/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
json-jackson
diff --git a/tests/performance/test-cases/mbw-json-moxy/pom.xml b/tests/performance/test-cases/mbw-json-moxy/pom.xml
index 110a87fe45d..0599ef5bef0 100644
--- a/tests/performance/test-cases/mbw-json-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-json-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
json-moxy
diff --git a/tests/performance/test-cases/mbw-kryo/pom.xml b/tests/performance/test-cases/mbw-kryo/pom.xml
index e6286ce24be..0fcd716f40d 100644
--- a/tests/performance/test-cases/mbw-kryo/pom.xml
+++ b/tests/performance/test-cases/mbw-kryo/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
mbw-kryo
diff --git a/tests/performance/test-cases/mbw-text-plain/pom.xml b/tests/performance/test-cases/mbw-text-plain/pom.xml
index 44b96b2ea34..4d1e0487bac 100644
--- a/tests/performance/test-cases/mbw-text-plain/pom.xml
+++ b/tests/performance/test-cases/mbw-text-plain/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
text-plain
diff --git a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
index e759a1d9fde..6b8322fd6ee 100644
--- a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
xml-jaxb
diff --git a/tests/performance/test-cases/mbw-xml-moxy/pom.xml b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
index ad3fc0d25c5..7a6685ee9f9 100644
--- a/tests/performance/test-cases/mbw-xml-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
xml-moxy
diff --git a/tests/performance/test-cases/param-srl/pom.xml b/tests/performance/test-cases/param-srl/pom.xml
index 95a00326615..1d210ff61a5 100644
--- a/tests/performance/test-cases/param-srl/pom.xml
+++ b/tests/performance/test-cases/param-srl/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
param-srl
diff --git a/tests/performance/test-cases/pom.xml b/tests/performance/test-cases/pom.xml
index 60c2b732796..c2bb8828607 100644
--- a/tests/performance/test-cases/pom.xml
+++ b/tests/performance/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.tests.performance.testcases
diff --git a/tests/performance/test-cases/proxy-injection/pom.xml b/tests/performance/test-cases/proxy-injection/pom.xml
index ab5a7456041..fa3708ced21 100644
--- a/tests/performance/test-cases/proxy-injection/pom.xml
+++ b/tests/performance/test-cases/proxy-injection/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.99-SNAPSHOT
+ 3.0.8
proxy-injection
diff --git a/tests/performance/tools/pom.xml b/tests/performance/tools/pom.xml
index 16ec2b20b48..5bbdcdba490 100644
--- a/tests/performance/tools/pom.xml
+++ b/tests/performance/tools/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.tests.performance.tools
performance-test-tools
diff --git a/tests/pom.xml b/tests/pom.xml
index 946aa00deba..2f63efd0ff9 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.99-SNAPSHOT
+ 3.0.8
org.glassfish.jersey.tests
diff --git a/tests/stress/pom.xml b/tests/stress/pom.xml
index f0e7ee23717..8903423ee94 100644
--- a/tests/stress/pom.xml
+++ b/tests/stress/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.99-SNAPSHOT
+ 3.0.8
stress
From 6fa898281fd73720e4270cdbbbd5ea1a697fbeeb Mon Sep 17 00:00:00 2001
From: jersey-bot
Date: Thu, 1 Sep 2022 09:21:41 +0000
Subject: [PATCH 089/305] 3.0.99-SNAPSHOT
---
archetypes/jersey-example-java8-webapp/pom.xml | 2 +-
archetypes/jersey-heroku-webapp/pom.xml | 2 +-
archetypes/jersey-quickstart-grizzly2/pom.xml | 2 +-
archetypes/jersey-quickstart-webapp/pom.xml | 2 +-
archetypes/pom.xml | 2 +-
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 2 +-
bundles/jaxrs-ri/pom.xml | 2 +-
bundles/pom.xml | 2 +-
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 2 +-
connectors/helidon-connector/pom.xml | 2 +-
connectors/jdk-connector/pom.xml | 2 +-
connectors/jetty-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 2 +-
containers/glassfish/pom.xml | 2 +-
containers/grizzly2-http/pom.xml | 2 +-
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-http/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
containers/netty-http/pom.xml | 2 +-
containers/pom.xml | 2 +-
containers/simple-http/pom.xml | 2 +-
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 2 +-
examples/assemblies/pom.xml | 2 +-
examples/bookmark-em/pom.xml | 2 +-
examples/bookmark/pom.xml | 2 +-
examples/bookstore-webapp/pom.xml | 2 +-
examples/cdi-webapp/pom.xml | 2 +-
examples/clipboard-programmatic/pom.xml | 2 +-
examples/clipboard/pom.xml | 2 +-
examples/declarative-linking/pom.xml | 2 +-
examples/entity-filtering-security/pom.xml | 2 +-
examples/entity-filtering-selectable/pom.xml | 2 +-
examples/entity-filtering/pom.xml | 2 +-
examples/exception-mapping/pom.xml | 2 +-
examples/extended-wadl-webapp/pom.xml | 2 +-
examples/freemarker-webapp/pom.xml | 2 +-
examples/groovy/pom.xml | 2 +-
examples/helloworld-benchmark/pom.xml | 2 +-
examples/helloworld-cdi2-se/pom.xml | 2 +-
examples/helloworld-netty/pom.xml | 2 +-
examples/helloworld-programmatic/pom.xml | 2 +-
examples/helloworld-pure-jax-rs/pom.xml | 2 +-
examples/helloworld-webapp/pom.xml | 2 +-
examples/helloworld-weld/pom.xml | 2 +-
examples/helloworld/pom.xml | 2 +-
examples/http-patch/pom.xml | 2 +-
examples/http-trace/pom.xml | 2 +-
examples/https-clientserver-grizzly/pom.xml | 2 +-
examples/https-server-glassfish/pom.xml | 2 +-
examples/java8-webapp/pom.xml | 2 +-
examples/jaxb/pom.xml | 2 +-
examples/jaxrs-types-injection/pom.xml | 2 +-
examples/jersey-ejb/pom.xml | 2 +-
examples/json-binding-webapp/pom.xml | 2 +-
examples/json-jackson/pom.xml | 2 +-
examples/json-jettison/pom.xml | 2 +-
examples/json-moxy/pom.xml | 2 +-
examples/json-processing-webapp/pom.xml | 2 +-
examples/json-with-padding/pom.xml | 2 +-
examples/managed-beans-webapp/pom.xml | 2 +-
examples/managed-client-simple-webapp/pom.xml | 2 +-
examples/managed-client-webapp/pom.xml | 2 +-
examples/managed-client/pom.xml | 2 +-
examples/multipart-webapp/pom.xml | 2 +-
examples/oauth-client-twitter/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 2 +-
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/functional-test/pom.xml | 2 +-
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/pom.xml | 2 +-
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 2 +-
examples/pom.xml | 2 +-
examples/reload/pom.xml | 2 +-
examples/rx-client-webapp/pom.xml | 2 +-
examples/server-async-managed/pom.xml | 2 +-
examples/server-async-standalone/client/pom.xml | 2 +-
examples/server-async-standalone/pom.xml | 2 +-
examples/server-async-standalone/webapp/pom.xml | 2 +-
examples/server-async/pom.xml | 2 +-
examples/server-sent-events-jaxrs/pom.xml | 2 +-
examples/server-sent-events-jersey/pom.xml | 2 +-
examples/servlet3-webapp/pom.xml | 2 +-
examples/simple-console/pom.xml | 2 +-
examples/sse-item-store-jaxrs-webapp/pom.xml | 2 +-
examples/sse-item-store-jersey-webapp/pom.xml | 2 +-
examples/sse-twitter-aggregator/pom.xml | 2 +-
examples/system-properties-example/pom.xml | 2 +-
examples/webapp-example-parent/pom.xml | 2 +-
examples/xml-moxy/pom.xml | 2 +-
ext/bean-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-transaction/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi1x/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 2 +-
ext/cdi/pom.xml | 2 +-
ext/entity-filtering/pom.xml | 2 +-
ext/metainf-services/pom.xml | 2 +-
ext/microprofile/mp-config/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/microprofile/pom.xml | 2 +-
ext/mvc-bean-validation/pom.xml | 2 +-
ext/mvc-freemarker/pom.xml | 2 +-
ext/mvc-jsp/pom.xml | 2 +-
ext/mvc-mustache/pom.xml | 2 +-
ext/mvc/pom.xml | 2 +-
ext/pom.xml | 2 +-
ext/proxy-client/pom.xml | 2 +-
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 2 +-
ext/rx/rx-client-rxjava2/pom.xml | 2 +-
ext/spring6/pom.xml | 2 +-
ext/wadl-doclet/pom.xml | 2 +-
incubator/cdi-inject-weld/pom.xml | 2 +-
incubator/declarative-linking/pom.xml | 2 +-
incubator/gae-integration/pom.xml | 2 +-
incubator/html-json/pom.xml | 2 +-
incubator/kryo/pom.xml | 2 +-
incubator/open-tracing/pom.xml | 2 +-
incubator/pom.xml | 2 +-
inject/cdi2-se/pom.xml | 2 +-
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 2 +-
media/jaxb/pom.xml | 2 +-
media/json-binding/pom.xml | 2 +-
media/json-gson/pom.xml | 2 +-
media/json-jackson/pom.xml | 2 +-
media/json-jettison/pom.xml | 2 +-
media/json-processing/pom.xml | 2 +-
media/moxy/pom.xml | 2 +-
media/multipart/pom.xml | 2 +-
media/pom.xml | 2 +-
media/sse/pom.xml | 2 +-
pom.xml | 2 +-
security/oauth1-client/pom.xml | 2 +-
security/oauth1-server/pom.xml | 2 +-
security/oauth1-signature/pom.xml | 2 +-
security/oauth2-client/pom.xml | 2 +-
security/pom.xml | 2 +-
test-framework/core/pom.xml | 2 +-
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 2 +-
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 2 +-
test-framework/providers/bundle/pom.xml | 2 +-
test-framework/providers/external/pom.xml | 2 +-
test-framework/providers/grizzly2/pom.xml | 2 +-
test-framework/providers/inmemory/pom.xml | 2 +-
test-framework/providers/jdk-http/pom.xml | 2 +-
test-framework/providers/jetty/pom.xml | 2 +-
test-framework/providers/netty/pom.xml | 2 +-
test-framework/providers/pom.xml | 2 +-
test-framework/providers/simple/pom.xml | 2 +-
test-framework/util/pom.xml | 2 +-
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 2 +-
tests/e2e-inject/pom.xml | 2 +-
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 2 +-
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 2 +-
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 2 +-
.../integration/cdi-integration/cdi-client-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-client/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 2 +-
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-log-check/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-manually-bound/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multipart-webapp/pom.xml | 2 +-
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-singleton/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 2 +-
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 2 +-
.../pom.xml | 2 +-
.../cdi-integration/cdi-with-jersey-injection-webapp/pom.xml | 2 +-
.../cdi-integration/context-inject-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/gf-cdi-inject/pom.xml | 2 +-
tests/integration/cdi-integration/pom.xml | 2 +-
tests/integration/client-connector-provider/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule/pom.xml | 2 +-
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 2 +-
tests/integration/j-376/pom.xml | 2 +-
tests/integration/j-441/ear/pom.xml | 2 +-
tests/integration/j-441/pom.xml | 2 +-
tests/integration/j-441/war1/pom.xml | 2 +-
tests/integration/j-441/war2/pom.xml | 2 +-
tests/integration/j-59/ear/pom.xml | 2 +-
tests/integration/j-59/lib/pom.xml | 2 +-
tests/integration/j-59/pom.xml | 2 +-
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 2 +-
tests/integration/jersey-1107/pom.xml | 2 +-
tests/integration/jersey-1223/pom.xml | 2 +-
tests/integration/jersey-1604/pom.xml | 2 +-
tests/integration/jersey-1667/pom.xml | 2 +-
tests/integration/jersey-1883/pom.xml | 2 +-
tests/integration/jersey-1928/pom.xml | 2 +-
tests/integration/jersey-1960/pom.xml | 2 +-
tests/integration/jersey-1964/pom.xml | 2 +-
tests/integration/jersey-2031/pom.xml | 2 +-
tests/integration/jersey-2136/pom.xml | 2 +-
tests/integration/jersey-2137/pom.xml | 2 +-
tests/integration/jersey-2154/pom.xml | 2 +-
tests/integration/jersey-2160/pom.xml | 2 +-
tests/integration/jersey-2164/pom.xml | 2 +-
tests/integration/jersey-2167/pom.xml | 2 +-
tests/integration/jersey-2176/pom.xml | 2 +-
tests/integration/jersey-2184/pom.xml | 2 +-
tests/integration/jersey-2255/pom.xml | 2 +-
tests/integration/jersey-2322/pom.xml | 2 +-
tests/integration/jersey-2335/pom.xml | 2 +-
tests/integration/jersey-2421/pom.xml | 2 +-
tests/integration/jersey-2551/pom.xml | 2 +-
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 2 +-
tests/integration/jersey-2654/pom.xml | 2 +-
tests/integration/jersey-2673/pom.xml | 2 +-
tests/integration/jersey-2689/pom.xml | 2 +-
tests/integration/jersey-2704/pom.xml | 2 +-
tests/integration/jersey-2776/pom.xml | 2 +-
tests/integration/jersey-2794/pom.xml | 2 +-
tests/integration/jersey-2846/pom.xml | 2 +-
tests/integration/jersey-2878/pom.xml | 2 +-
tests/integration/jersey-2892/pom.xml | 2 +-
tests/integration/jersey-3662/pom.xml | 2 +-
tests/integration/jersey-3670/pom.xml | 2 +-
tests/integration/jersey-3796/pom.xml | 2 +-
tests/integration/jersey-3992/pom.xml | 2 +-
tests/integration/jersey-4003/pom.xml | 2 +-
tests/integration/jersey-4099/pom.xml | 2 +-
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 2 +-
tests/integration/jersey-4542/pom.xml | 2 +-
tests/integration/jersey-4697/pom.xml | 2 +-
tests/integration/jersey-4722/pom.xml | 2 +-
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-5087/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 2 +-
tests/integration/microprofile/config/helidon/pom.xml | 2 +-
tests/integration/microprofile/config/pom.xml | 2 +-
tests/integration/microprofile/config/webapp/pom.xml | 2 +-
tests/integration/microprofile/pom.xml | 2 +-
tests/integration/microprofile/rest-client-tck/pom.xml | 2 +-
tests/integration/microprofile/rest-client/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 2 +-
tests/integration/reactive-streams/sse/pom.xml | 2 +-
tests/integration/security-digest/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 2 +-
tests/integration/servlet-2.5-filter/pom.xml | 2 +-
tests/integration/servlet-2.5-inflector-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-2/pom.xml | 2 +-
tests/integration/servlet-2.5-init-3/pom.xml | 2 +-
tests/integration/servlet-2.5-init-4/pom.xml | 2 +-
tests/integration/servlet-2.5-init-5/pom.xml | 2 +-
tests/integration/servlet-2.5-init-6/pom.xml | 2 +-
tests/integration/servlet-2.5-init-7/pom.xml | 2 +-
tests/integration/servlet-2.5-init-8/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-1/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-2/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-3/pom.xml | 2 +-
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 2 +-
tests/integration/servlet-3-chunked-io/pom.xml | 2 +-
tests/integration/servlet-3-filter/pom.xml | 2 +-
tests/integration/servlet-3-gf-async/pom.xml | 2 +-
tests/integration/servlet-3-inflector-1/pom.xml | 2 +-
tests/integration/servlet-3-init-1/pom.xml | 2 +-
tests/integration/servlet-3-init-2/pom.xml | 2 +-
tests/integration/servlet-3-init-3/pom.xml | 2 +-
tests/integration/servlet-3-init-4/pom.xml | 2 +-
tests/integration/servlet-3-init-5/pom.xml | 2 +-
tests/integration/servlet-3-init-6/pom.xml | 2 +-
tests/integration/servlet-3-init-7/pom.xml | 2 +-
tests/integration/servlet-3-init-8/pom.xml | 2 +-
tests/integration/servlet-3-init-9/pom.xml | 2 +-
tests/integration/servlet-3-init-provider/pom.xml | 2 +-
tests/integration/servlet-3-params/pom.xml | 2 +-
tests/integration/servlet-3-sse-1/pom.xml | 2 +-
tests/integration/servlet-4.0-mvc-1/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 2 +-
tests/integration/sonar-test/pom.xml | 2 +-
tests/integration/spring6/pom.xml | 2 +-
tests/integration/tracing-support/pom.xml | 2 +-
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 2 +-
tests/mem-leaks/redeployment/pom.xml | 2 +-
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 4 ++--
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment/redeployment-threadlocals-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 2 +-
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 2 +-
tests/osgi/functional/pom.xml | 2 +-
tests/osgi/pom.xml | 2 +-
tests/performance/benchmarks/pom.xml | 2 +-
tests/performance/pom.xml | 2 +-
tests/performance/runners/jersey-grizzly-runner/pom.xml | 2 +-
tests/performance/runners/pom.xml | 2 +-
tests/performance/test-cases/assemblies/pom.xml | 2 +-
tests/performance/test-cases/filter-dynamic/pom.xml | 2 +-
tests/performance/test-cases/filter-global/pom.xml | 2 +-
tests/performance/test-cases/filter-name/pom.xml | 2 +-
tests/performance/test-cases/interceptor-dynamic/pom.xml | 2 +-
tests/performance/test-cases/interceptor-global/pom.xml | 2 +-
tests/performance/test-cases/interceptor-name/pom.xml | 2 +-
tests/performance/test-cases/mbw-custom-provider/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-jackson/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-moxy/pom.xml | 2 +-
tests/performance/test-cases/mbw-kryo/pom.xml | 2 +-
tests/performance/test-cases/mbw-text-plain/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 2 +-
tests/performance/test-cases/param-srl/pom.xml | 2 +-
tests/performance/test-cases/pom.xml | 2 +-
tests/performance/test-cases/proxy-injection/pom.xml | 2 +-
tests/performance/tools/pom.xml | 2 +-
tests/pom.xml | 2 +-
tests/stress/pom.xml | 2 +-
363 files changed, 364 insertions(+), 364 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index 4e03169cccc..b47b480e685 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-example-java8-webapp
diff --git a/archetypes/jersey-heroku-webapp/pom.xml b/archetypes/jersey-heroku-webapp/pom.xml
index 4cf594e09c8..a413d64fa01 100644
--- a/archetypes/jersey-heroku-webapp/pom.xml
+++ b/archetypes/jersey-heroku-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.8
+ 3.0.99-SNAPSHOT
maven-archetype
diff --git a/archetypes/jersey-quickstart-grizzly2/pom.xml b/archetypes/jersey-quickstart-grizzly2/pom.xml
index 7c6b3f88093..24b37a46dae 100644
--- a/archetypes/jersey-quickstart-grizzly2/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-quickstart-grizzly2
maven-archetype
diff --git a/archetypes/jersey-quickstart-webapp/pom.xml b/archetypes/jersey-quickstart-webapp/pom.xml
index 870dcd6e8ee..8b11c4ebc98 100644
--- a/archetypes/jersey-quickstart-webapp/pom.xml
+++ b/archetypes/jersey-quickstart-webapp/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
maven-archetype
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index 6a85224454c..e8a31139d10 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.archetypes
diff --git a/bom/pom.xml b/bom/pom.xml
index 364dba45010..1083d28a38b 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,7 +30,7 @@
org.glassfish.jersey
jersey-bom
- 3.0.8
+ 3.0.99-SNAPSHOT
pom
jersey-bom
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index bb81b99c2a5..083b14b1398 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.0.8
+ 3.0.99-SNAPSHOT
apidocs
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index 54c045a6e3a..e171811f24f 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.bundles
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-examples
diff --git a/bundles/jaxrs-ri/pom.xml b/bundles/jaxrs-ri/pom.xml
index e979d954591..a254d5316a3 100644
--- a/bundles/jaxrs-ri/pom.xml
+++ b/bundles/jaxrs-ri/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jaxrs-ri
diff --git a/bundles/pom.xml b/bundles/pom.xml
index e75e9c041e9..5739d5eac11 100644
--- a/bundles/pom.xml
+++ b/bundles/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.bundles
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index 5e2239560a5..269b753774a 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-apache-connector
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
index 481fa342e8f..899e2911e5e 100644
--- a/connectors/apache5-connector/pom.xml
+++ b/connectors/apache5-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-apache5-connector
diff --git a/connectors/grizzly-connector/pom.xml b/connectors/grizzly-connector/pom.xml
index 02644c2efbc..8d997a4ae4a 100644
--- a/connectors/grizzly-connector/pom.xml
+++ b/connectors/grizzly-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-grizzly-connector
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index 0c3456e8d80..0e06810598d 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.connectors
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/connectors/jdk-connector/pom.xml b/connectors/jdk-connector/pom.xml
index 156ff87408c..57d04215b14 100644
--- a/connectors/jdk-connector/pom.xml
+++ b/connectors/jdk-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-jdk-connector
diff --git a/connectors/jetty-connector/pom.xml b/connectors/jetty-connector/pom.xml
index f6005308614..8be410ed3f1 100644
--- a/connectors/jetty-connector/pom.xml
+++ b/connectors/jetty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-jetty-connector
diff --git a/connectors/netty-connector/pom.xml b/connectors/netty-connector/pom.xml
index b035440b8c0..18054902133 100644
--- a/connectors/netty-connector/pom.xml
+++ b/connectors/netty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-netty-connector
diff --git a/connectors/pom.xml b/connectors/pom.xml
index 2a949e46297..472101738f9 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.connectors
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index b3280f2cb62..c9573115adb 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers.glassfish
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-gf-ejb
diff --git a/containers/glassfish/pom.xml b/containers/glassfish/pom.xml
index 665ff74c0de..97b7748050b 100644
--- a/containers/glassfish/pom.xml
+++ b/containers/glassfish/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.containers.glassfish
diff --git a/containers/grizzly2-http/pom.xml b/containers/grizzly2-http/pom.xml
index 01d9fed9203..92ca31d2324 100644
--- a/containers/grizzly2-http/pom.xml
+++ b/containers/grizzly2-http/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.containers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-container-grizzly2-http
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index c95575104ac..727344d3c55 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-container-grizzly2-servlet
diff --git a/containers/jdk-http/pom.xml b/containers/jdk-http/pom.xml
index a7d2ebc8e2d..c9d95593f90 100644
--- a/containers/jdk-http/pom.xml
+++ b/containers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-container-jdk-http
diff --git a/containers/jersey-servlet-core/pom.xml b/containers/jersey-servlet-core/pom.xml
index 21a4057e030..edd2e9ba58e 100644
--- a/containers/jersey-servlet-core/pom.xml
+++ b/containers/jersey-servlet-core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-container-servlet-core
diff --git a/containers/jersey-servlet/pom.xml b/containers/jersey-servlet/pom.xml
index c96d84d809b..e066f5d541c 100644
--- a/containers/jersey-servlet/pom.xml
+++ b/containers/jersey-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-container-servlet
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index e05421f1017..8ffde3c771a 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.containers
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-container-jetty-http
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 452673b16cc..373d0044662 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-container-jetty-servlet
diff --git a/containers/netty-http/pom.xml b/containers/netty-http/pom.xml
index 2d1d9c997b6..8bdca8e03b9 100644
--- a/containers/netty-http/pom.xml
+++ b/containers/netty-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-container-netty-http
diff --git a/containers/pom.xml b/containers/pom.xml
index f92aa997ccd..d1d9d1f9f8f 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.containers
diff --git a/containers/simple-http/pom.xml b/containers/simple-http/pom.xml
index f60833225ce..442093fc474 100644
--- a/containers/simple-http/pom.xml
+++ b/containers/simple-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-container-simple-http
diff --git a/core-client/pom.xml b/core-client/pom.xml
index 5669f42d3c9..e9a51246873 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.core
diff --git a/core-common/pom.xml b/core-common/pom.xml
index d9145caf62d..b6282d38161 100644
--- a/core-common/pom.xml
+++ b/core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.core
diff --git a/core-server/pom.xml b/core-server/pom.xml
index 60c72fc717c..5eaea68a6a7 100644
--- a/core-server/pom.xml
+++ b/core-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.core
diff --git a/docs/pom.xml b/docs/pom.xml
index dab91b32081..509d6f2c691 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-documentation
pom
diff --git a/examples/assemblies/pom.xml b/examples/assemblies/pom.xml
index 5c7a298c264..3a9082c2c70 100644
--- a/examples/assemblies/pom.xml
+++ b/examples/assemblies/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
assemblies
diff --git a/examples/bookmark-em/pom.xml b/examples/bookmark-em/pom.xml
index 63ebc65a851..43c1eb4d89b 100644
--- a/examples/bookmark-em/pom.xml
+++ b/examples/bookmark-em/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
bookmark-em
diff --git a/examples/bookmark/pom.xml b/examples/bookmark/pom.xml
index 4862b0facfb..51b37c22f7d 100644
--- a/examples/bookmark/pom.xml
+++ b/examples/bookmark/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
bookmark
diff --git a/examples/bookstore-webapp/pom.xml b/examples/bookstore-webapp/pom.xml
index 4284fb8451c..cfe9e6d253d 100644
--- a/examples/bookstore-webapp/pom.xml
+++ b/examples/bookstore-webapp/pom.xml
@@ -35,7 +35,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
bookstore-webapp
diff --git a/examples/cdi-webapp/pom.xml b/examples/cdi-webapp/pom.xml
index a70e8d44092..803c399f4fd 100644
--- a/examples/cdi-webapp/pom.xml
+++ b/examples/cdi-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-webapp
diff --git a/examples/clipboard-programmatic/pom.xml b/examples/clipboard-programmatic/pom.xml
index 14c8e81655f..6fab951dac4 100644
--- a/examples/clipboard-programmatic/pom.xml
+++ b/examples/clipboard-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
clipboard-programmatic
diff --git a/examples/clipboard/pom.xml b/examples/clipboard/pom.xml
index 45941a47f03..5caf76ce426 100644
--- a/examples/clipboard/pom.xml
+++ b/examples/clipboard/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
clipboard
diff --git a/examples/declarative-linking/pom.xml b/examples/declarative-linking/pom.xml
index b04e5cbabc6..910c6d5fadf 100644
--- a/examples/declarative-linking/pom.xml
+++ b/examples/declarative-linking/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
declarative-linking
diff --git a/examples/entity-filtering-security/pom.xml b/examples/entity-filtering-security/pom.xml
index 4d326541fe6..a92d294e77e 100644
--- a/examples/entity-filtering-security/pom.xml
+++ b/examples/entity-filtering-security/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
entity-filtering-security
diff --git a/examples/entity-filtering-selectable/pom.xml b/examples/entity-filtering-selectable/pom.xml
index 5e3294baab4..986200ae1c2 100644
--- a/examples/entity-filtering-selectable/pom.xml
+++ b/examples/entity-filtering-selectable/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
entity-filtering-selectable
diff --git a/examples/entity-filtering/pom.xml b/examples/entity-filtering/pom.xml
index ddc7cfb51bf..b6d5870b180 100644
--- a/examples/entity-filtering/pom.xml
+++ b/examples/entity-filtering/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
entity-filtering
diff --git a/examples/exception-mapping/pom.xml b/examples/exception-mapping/pom.xml
index ecb0ccf91e4..5986740b376 100644
--- a/examples/exception-mapping/pom.xml
+++ b/examples/exception-mapping/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
exception-mapping
diff --git a/examples/extended-wadl-webapp/pom.xml b/examples/extended-wadl-webapp/pom.xml
index b7f94dcc92e..2373bd4e9e4 100644
--- a/examples/extended-wadl-webapp/pom.xml
+++ b/examples/extended-wadl-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
extended-wadl-webapp
diff --git a/examples/freemarker-webapp/pom.xml b/examples/freemarker-webapp/pom.xml
index 5dc24b5de9f..9af7112d7d1 100644
--- a/examples/freemarker-webapp/pom.xml
+++ b/examples/freemarker-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
freemarker-webapp
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index aa762c52f6d..76965f890c9 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
groovy
jar
diff --git a/examples/helloworld-benchmark/pom.xml b/examples/helloworld-benchmark/pom.xml
index 340a2b8c039..888880182b2 100644
--- a/examples/helloworld-benchmark/pom.xml
+++ b/examples/helloworld-benchmark/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
helloworld-benchmark
diff --git a/examples/helloworld-cdi2-se/pom.xml b/examples/helloworld-cdi2-se/pom.xml
index 8443ccb1ffe..11aba91aad0 100644
--- a/examples/helloworld-cdi2-se/pom.xml
+++ b/examples/helloworld-cdi2-se/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
helloworld-cdi2-se
diff --git a/examples/helloworld-netty/pom.xml b/examples/helloworld-netty/pom.xml
index 949a9e5004c..db6fe09c0cb 100644
--- a/examples/helloworld-netty/pom.xml
+++ b/examples/helloworld-netty/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
helloworld-netty
diff --git a/examples/helloworld-programmatic/pom.xml b/examples/helloworld-programmatic/pom.xml
index d8f00af1c05..eb267ee7527 100644
--- a/examples/helloworld-programmatic/pom.xml
+++ b/examples/helloworld-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
helloworld-programmatic
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index b0f4d3a9be8..9a6627ecbe7 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
helloworld-pure-jax-rs
diff --git a/examples/helloworld-webapp/pom.xml b/examples/helloworld-webapp/pom.xml
index a7cff9481cc..68a24198610 100644
--- a/examples/helloworld-webapp/pom.xml
+++ b/examples/helloworld-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
helloworld-webapp
diff --git a/examples/helloworld-weld/pom.xml b/examples/helloworld-weld/pom.xml
index a4c3e763e74..e8e482c5ccb 100644
--- a/examples/helloworld-weld/pom.xml
+++ b/examples/helloworld-weld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
helloworld-weld
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index 5ac06b235d1..f66764823fa 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
helloworld
diff --git a/examples/http-patch/pom.xml b/examples/http-patch/pom.xml
index f53677644a6..47b7302cf78 100644
--- a/examples/http-patch/pom.xml
+++ b/examples/http-patch/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
http-patch
diff --git a/examples/http-trace/pom.xml b/examples/http-trace/pom.xml
index c72ac3e9b32..79f8f197dd5 100644
--- a/examples/http-trace/pom.xml
+++ b/examples/http-trace/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
http-trace
diff --git a/examples/https-clientserver-grizzly/pom.xml b/examples/https-clientserver-grizzly/pom.xml
index ba92cf2c040..d6274d192e2 100644
--- a/examples/https-clientserver-grizzly/pom.xml
+++ b/examples/https-clientserver-grizzly/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
https-clientserver-grizzly
diff --git a/examples/https-server-glassfish/pom.xml b/examples/https-server-glassfish/pom.xml
index 692c63a6cf5..d034d5ffb33 100644
--- a/examples/https-server-glassfish/pom.xml
+++ b/examples/https-server-glassfish/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
https-server-glassfish
diff --git a/examples/java8-webapp/pom.xml b/examples/java8-webapp/pom.xml
index 29d7690aaaf..da4693a55f6 100644
--- a/examples/java8-webapp/pom.xml
+++ b/examples/java8-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
java8-webapp
diff --git a/examples/jaxb/pom.xml b/examples/jaxb/pom.xml
index 3aece25d8bf..e24b2e6b0e7 100644
--- a/examples/jaxb/pom.xml
+++ b/examples/jaxb/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jaxb
diff --git a/examples/jaxrs-types-injection/pom.xml b/examples/jaxrs-types-injection/pom.xml
index 18d8d5545d6..e32726e5643 100644
--- a/examples/jaxrs-types-injection/pom.xml
+++ b/examples/jaxrs-types-injection/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jaxrs-types-injection
diff --git a/examples/jersey-ejb/pom.xml b/examples/jersey-ejb/pom.xml
index 08344b7fc07..4702463cc61 100644
--- a/examples/jersey-ejb/pom.xml
+++ b/examples/jersey-ejb/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-ejb
diff --git a/examples/json-binding-webapp/pom.xml b/examples/json-binding-webapp/pom.xml
index 53c8c412c18..979236e59f9 100644
--- a/examples/json-binding-webapp/pom.xml
+++ b/examples/json-binding-webapp/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
json-binding-webapp
diff --git a/examples/json-jackson/pom.xml b/examples/json-jackson/pom.xml
index 588a00981e2..4cdfb639399 100644
--- a/examples/json-jackson/pom.xml
+++ b/examples/json-jackson/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
json-jackson
diff --git a/examples/json-jettison/pom.xml b/examples/json-jettison/pom.xml
index f55d8f8777e..15a4e25e379 100644
--- a/examples/json-jettison/pom.xml
+++ b/examples/json-jettison/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
json-jettison
diff --git a/examples/json-moxy/pom.xml b/examples/json-moxy/pom.xml
index 4cb9db172c3..2ae80e1f8c3 100644
--- a/examples/json-moxy/pom.xml
+++ b/examples/json-moxy/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
json-moxy
diff --git a/examples/json-processing-webapp/pom.xml b/examples/json-processing-webapp/pom.xml
index 3b3d2b95616..10993fc8997 100644
--- a/examples/json-processing-webapp/pom.xml
+++ b/examples/json-processing-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
json-processing-webapp
diff --git a/examples/json-with-padding/pom.xml b/examples/json-with-padding/pom.xml
index be01818b5e3..64dac76588f 100644
--- a/examples/json-with-padding/pom.xml
+++ b/examples/json-with-padding/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
json-with-padding
diff --git a/examples/managed-beans-webapp/pom.xml b/examples/managed-beans-webapp/pom.xml
index 24942caeed6..e66fb183731 100644
--- a/examples/managed-beans-webapp/pom.xml
+++ b/examples/managed-beans-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
managed-beans-webapp
diff --git a/examples/managed-client-simple-webapp/pom.xml b/examples/managed-client-simple-webapp/pom.xml
index 827b1a568ea..53ab47eaff0 100644
--- a/examples/managed-client-simple-webapp/pom.xml
+++ b/examples/managed-client-simple-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
managed-client-simple-webapp
diff --git a/examples/managed-client-webapp/pom.xml b/examples/managed-client-webapp/pom.xml
index a1a8794a4fb..0583e891c94 100644
--- a/examples/managed-client-webapp/pom.xml
+++ b/examples/managed-client-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
managed-client-webapp
diff --git a/examples/managed-client/pom.xml b/examples/managed-client/pom.xml
index dc03d213bff..ac3e5f9ff0f 100644
--- a/examples/managed-client/pom.xml
+++ b/examples/managed-client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
managed-client
diff --git a/examples/multipart-webapp/pom.xml b/examples/multipart-webapp/pom.xml
index f7d7acd40f5..9cb43ffd94b 100644
--- a/examples/multipart-webapp/pom.xml
+++ b/examples/multipart-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
multipart-webapp
diff --git a/examples/oauth-client-twitter/pom.xml b/examples/oauth-client-twitter/pom.xml
index c385ba3a1cf..3b4e9dfb186 100644
--- a/examples/oauth-client-twitter/pom.xml
+++ b/examples/oauth-client-twitter/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index 1328ed2b0bf..76a9ffa1c4d 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
open-tracing
diff --git a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
index 67c6e093e85..51563792217 100644
--- a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
index bb1983e68ca..f9f6a070392 100644
--- a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index 08402472300..bdce8538d72 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
index 1053f3cae86..b92f2e1614f 100644
--- a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/pom.xml b/examples/osgi-helloworld-webapp/pom.xml
index f05049dc715..172dc08de0a 100644
--- a/examples/osgi-helloworld-webapp/pom.xml
+++ b/examples/osgi-helloworld-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/war-bundle/pom.xml b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
index 1c30e0f5f39..24f518f1158 100644
--- a/examples/osgi-helloworld-webapp/war-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/pom.xml b/examples/pom.xml
index 5487dc58bf5..70cf1629ce4 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
diff --git a/examples/reload/pom.xml b/examples/reload/pom.xml
index 69ce8ddc319..27427604cf8 100644
--- a/examples/reload/pom.xml
+++ b/examples/reload/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
reload
diff --git a/examples/rx-client-webapp/pom.xml b/examples/rx-client-webapp/pom.xml
index 34df2bb57ef..f009bf06fcc 100644
--- a/examples/rx-client-webapp/pom.xml
+++ b/examples/rx-client-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
rx-client-webapp
diff --git a/examples/server-async-managed/pom.xml b/examples/server-async-managed/pom.xml
index 4ef81dfcc56..a32dbf4aefb 100644
--- a/examples/server-async-managed/pom.xml
+++ b/examples/server-async-managed/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
server-async-managed
diff --git a/examples/server-async-standalone/client/pom.xml b/examples/server-async-standalone/client/pom.xml
index acb008bae3f..19447beabda 100644
--- a/examples/server-async-standalone/client/pom.xml
+++ b/examples/server-async-standalone/client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.0.8
+ 3.0.99-SNAPSHOT
server-async-standalone-client
diff --git a/examples/server-async-standalone/pom.xml b/examples/server-async-standalone/pom.xml
index ca6fc5c7f0b..8b857fcc79f 100644
--- a/examples/server-async-standalone/pom.xml
+++ b/examples/server-async-standalone/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
server-async-standalone
diff --git a/examples/server-async-standalone/webapp/pom.xml b/examples/server-async-standalone/webapp/pom.xml
index 3caf1f24dd0..251316e440c 100644
--- a/examples/server-async-standalone/webapp/pom.xml
+++ b/examples/server-async-standalone/webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.0.8
+ 3.0.99-SNAPSHOT
server-async-standalone-webapp
diff --git a/examples/server-async/pom.xml b/examples/server-async/pom.xml
index 4f70e727e67..cdabf47a283 100644
--- a/examples/server-async/pom.xml
+++ b/examples/server-async/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
server-async
diff --git a/examples/server-sent-events-jaxrs/pom.xml b/examples/server-sent-events-jaxrs/pom.xml
index e9bd13cde0a..45f264ad4a8 100644
--- a/examples/server-sent-events-jaxrs/pom.xml
+++ b/examples/server-sent-events-jaxrs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
server-sent-events-jaxrs
diff --git a/examples/server-sent-events-jersey/pom.xml b/examples/server-sent-events-jersey/pom.xml
index 51eedcdbb9d..af941b73b10 100644
--- a/examples/server-sent-events-jersey/pom.xml
+++ b/examples/server-sent-events-jersey/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
server-sent-events-jersey
diff --git a/examples/servlet3-webapp/pom.xml b/examples/servlet3-webapp/pom.xml
index a10ca327553..3c74fe0351e 100644
--- a/examples/servlet3-webapp/pom.xml
+++ b/examples/servlet3-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet3-webapp
diff --git a/examples/simple-console/pom.xml b/examples/simple-console/pom.xml
index 6d148c22908..ce9ef1d032e 100644
--- a/examples/simple-console/pom.xml
+++ b/examples/simple-console/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
simple-console
diff --git a/examples/sse-item-store-jaxrs-webapp/pom.xml b/examples/sse-item-store-jaxrs-webapp/pom.xml
index d8707c0dacc..e65c1f505c5 100644
--- a/examples/sse-item-store-jaxrs-webapp/pom.xml
+++ b/examples/sse-item-store-jaxrs-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
sse-item-store-jaxrs-webapp
diff --git a/examples/sse-item-store-jersey-webapp/pom.xml b/examples/sse-item-store-jersey-webapp/pom.xml
index e7c961e9cb4..a57656dcdcf 100644
--- a/examples/sse-item-store-jersey-webapp/pom.xml
+++ b/examples/sse-item-store-jersey-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.0.8
+ 3.0.99-SNAPSHOT
sse-item-store-jersey-webapp
diff --git a/examples/sse-twitter-aggregator/pom.xml b/examples/sse-twitter-aggregator/pom.xml
index 6a3e78f7757..6adf1a8b45a 100644
--- a/examples/sse-twitter-aggregator/pom.xml
+++ b/examples/sse-twitter-aggregator/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
sse-twitter-aggregator
diff --git a/examples/system-properties-example/pom.xml b/examples/system-properties-example/pom.xml
index fd959ebe68f..4f351e4a5e9 100644
--- a/examples/system-properties-example/pom.xml
+++ b/examples/system-properties-example/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
system-properties-example
diff --git a/examples/webapp-example-parent/pom.xml b/examples/webapp-example-parent/pom.xml
index 5dc608a8eb5..536e978b3aa 100644
--- a/examples/webapp-example-parent/pom.xml
+++ b/examples/webapp-example-parent/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
webapp-example-parent
diff --git a/examples/xml-moxy/pom.xml b/examples/xml-moxy/pom.xml
index 94ecdab2fed..814bbd71a43 100644
--- a/examples/xml-moxy/pom.xml
+++ b/examples/xml-moxy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.0.8
+ 3.0.99-SNAPSHOT
xml-moxy
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index 6eabec1a011..914251e428a 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-bean-validation
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index 6e7e2c3d7c3..e766bd0773d 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext.cdi
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
index 009dfc28083..ff5a5ce893e 100644
--- a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
+++ b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-cdi1x-ban-custom-hk2-binding
diff --git a/ext/cdi/jersey-cdi1x-servlet/pom.xml b/ext/cdi/jersey-cdi1x-servlet/pom.xml
index c859ff7a1cf..c476fdb740a 100644
--- a/ext/cdi/jersey-cdi1x-servlet/pom.xml
+++ b/ext/cdi/jersey-cdi1x-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-cdi1x-servlet
diff --git a/ext/cdi/jersey-cdi1x-transaction/pom.xml b/ext/cdi/jersey-cdi1x-transaction/pom.xml
index dbc00d5485a..d09e336cd1a 100644
--- a/ext/cdi/jersey-cdi1x-transaction/pom.xml
+++ b/ext/cdi/jersey-cdi1x-transaction/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-cdi1x-transaction
diff --git a/ext/cdi/jersey-cdi1x-validation/pom.xml b/ext/cdi/jersey-cdi1x-validation/pom.xml
index 86c94fdce7f..020f804bb4b 100644
--- a/ext/cdi/jersey-cdi1x-validation/pom.xml
+++ b/ext/cdi/jersey-cdi1x-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-cdi1x-validation
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index 296dcede6d1..874234ff8fe 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-cdi1x
diff --git a/ext/cdi/jersey-weld2-se/pom.xml b/ext/cdi/jersey-weld2-se/pom.xml
index bf32d0a2e47..f8609bfa128 100644
--- a/ext/cdi/jersey-weld2-se/pom.xml
+++ b/ext/cdi/jersey-weld2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-weld2-se
diff --git a/ext/cdi/pom.xml b/ext/cdi/pom.xml
index a4b55160ab6..8653e97ef37 100644
--- a/ext/cdi/pom.xml
+++ b/ext/cdi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.ext.cdi
diff --git a/ext/entity-filtering/pom.xml b/ext/entity-filtering/pom.xml
index eed77fa7263..1f2613523bd 100644
--- a/ext/entity-filtering/pom.xml
+++ b/ext/entity-filtering/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-entity-filtering
diff --git a/ext/metainf-services/pom.xml b/ext/metainf-services/pom.xml
index f97eee3de7b..7b43b47227f 100644
--- a/ext/metainf-services/pom.xml
+++ b/ext/metainf-services/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-metainf-services
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index 3a1179e6d58..7a49dfc0556 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index 8868024ee35..c85a4b0ff91 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/ext/microprofile/pom.xml b/ext/microprofile/pom.xml
index 13212cb5d79..215ca3879af 100644
--- a/ext/microprofile/pom.xml
+++ b/ext/microprofile/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/ext/mvc-bean-validation/pom.xml b/ext/mvc-bean-validation/pom.xml
index a2a80dd04da..c874d2fc713 100644
--- a/ext/mvc-bean-validation/pom.xml
+++ b/ext/mvc-bean-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-mvc-bean-validation
diff --git a/ext/mvc-freemarker/pom.xml b/ext/mvc-freemarker/pom.xml
index b81fa1ae095..f2355c8498a 100644
--- a/ext/mvc-freemarker/pom.xml
+++ b/ext/mvc-freemarker/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-mvc-freemarker
diff --git a/ext/mvc-jsp/pom.xml b/ext/mvc-jsp/pom.xml
index 9d88ae76199..1744cdf534b 100644
--- a/ext/mvc-jsp/pom.xml
+++ b/ext/mvc-jsp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-mvc-jsp
diff --git a/ext/mvc-mustache/pom.xml b/ext/mvc-mustache/pom.xml
index b13c8df5ed7..3a63b8c7314 100644
--- a/ext/mvc-mustache/pom.xml
+++ b/ext/mvc-mustache/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-mvc-mustache
diff --git a/ext/mvc/pom.xml b/ext/mvc/pom.xml
index 5d2f14efde3..58d93f51235 100644
--- a/ext/mvc/pom.xml
+++ b/ext/mvc/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-mvc
diff --git a/ext/pom.xml b/ext/pom.xml
index c8147b449dc..93e409d4782 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.ext
diff --git a/ext/proxy-client/pom.xml b/ext/proxy-client/pom.xml
index 0189a06f8b4..4bf1460f805 100644
--- a/ext/proxy-client/pom.xml
+++ b/ext/proxy-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-proxy-client
diff --git a/ext/rx/pom.xml b/ext/rx/pom.xml
index 828f49188d4..1a4de9a61da 100644
--- a/ext/rx/pom.xml
+++ b/ext/rx/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.ext.rx
diff --git a/ext/rx/rx-client-guava/pom.xml b/ext/rx/rx-client-guava/pom.xml
index d63ffc6590d..b3f1087ff09 100644
--- a/ext/rx/rx-client-guava/pom.xml
+++ b/ext/rx/rx-client-guava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-rx-client-guava
diff --git a/ext/rx/rx-client-rxjava/pom.xml b/ext/rx/rx-client-rxjava/pom.xml
index ec60790510a..728bc60d75b 100644
--- a/ext/rx/rx-client-rxjava/pom.xml
+++ b/ext/rx/rx-client-rxjava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-rx-client-rxjava
diff --git a/ext/rx/rx-client-rxjava2/pom.xml b/ext/rx/rx-client-rxjava2/pom.xml
index 1657e28af5f..cf705933dda 100644
--- a/ext/rx/rx-client-rxjava2/pom.xml
+++ b/ext/rx/rx-client-rxjava2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-rx-client-rxjava2
diff --git a/ext/spring6/pom.xml b/ext/spring6/pom.xml
index 1634cd938ee..e6d718797d4 100644
--- a/ext/spring6/pom.xml
+++ b/ext/spring6/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-spring6
diff --git a/ext/wadl-doclet/pom.xml b/ext/wadl-doclet/pom.xml
index dad58996fb2..47a11c2211f 100644
--- a/ext/wadl-doclet/pom.xml
+++ b/ext/wadl-doclet/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
jersey-wadl-doclet
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index 3d5c0c9ed57..331b92f17e7 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-cdi-inject-weld
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index e7d6c126aab..97d9d54da78 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.ext
diff --git a/incubator/gae-integration/pom.xml b/incubator/gae-integration/pom.xml
index 18e83d345be..28971e56816 100644
--- a/incubator/gae-integration/pom.xml
+++ b/incubator/gae-integration/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-gae-integration
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index 827d47f91ce..2ad845b8e8a 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.media
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index f0d94666267..3911bf84fba 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.media
diff --git a/incubator/open-tracing/pom.xml b/incubator/open-tracing/pom.xml
index 39579274e5b..7994cab4090 100644
--- a/incubator/open-tracing/pom.xml
+++ b/incubator/open-tracing/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.incubator
diff --git a/incubator/pom.xml b/incubator/pom.xml
index d94a71ad94e..e82e47b7eee 100644
--- a/incubator/pom.xml
+++ b/incubator/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.incubator
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index eade7b115d6..77e227088e2 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-cdi2-se
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index 49e439e8ad5..c3c8b94b971 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-hk2
diff --git a/inject/pom.xml b/inject/pom.xml
index 71bdcad6a37..b43c0e318dd 100644
--- a/inject/pom.xml
+++ b/inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.inject
diff --git a/media/jaxb/pom.xml b/media/jaxb/pom.xml
index a9b64b36f76..48560070e22 100644
--- a/media/jaxb/pom.xml
+++ b/media/jaxb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-media-jaxb
diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
index 700f32f606d..f09590fecfb 100644
--- a/media/json-binding/pom.xml
+++ b/media/json-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-media-json-binding
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index 929ef1beade..e57899b9dac 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-media-json-gson
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index 6d1a3d6dae7..a0eb3bdeb6e 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-media-json-jackson
diff --git a/media/json-jettison/pom.xml b/media/json-jettison/pom.xml
index 59d4699d109..0efb1070056 100644
--- a/media/json-jettison/pom.xml
+++ b/media/json-jettison/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-media-json-jettison
diff --git a/media/json-processing/pom.xml b/media/json-processing/pom.xml
index b6898a656c6..9f884eedfba 100644
--- a/media/json-processing/pom.xml
+++ b/media/json-processing/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-media-json-processing
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index 56fafdcb257..d1db2b3280b 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-media-moxy
diff --git a/media/multipart/pom.xml b/media/multipart/pom.xml
index 3124a2627cb..945e5d87620 100644
--- a/media/multipart/pom.xml
+++ b/media/multipart/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-media-multipart
diff --git a/media/pom.xml b/media/pom.xml
index 3833a35afbd..72a5ef66418 100644
--- a/media/pom.xml
+++ b/media/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.media
diff --git a/media/sse/pom.xml b/media/sse/pom.xml
index d962ef922bc..812e7a6370d 100644
--- a/media/sse/pom.xml
+++ b/media/sse/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-media-sse
diff --git a/pom.xml b/pom.xml
index ee993a3245f..eda140e8fa6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
org.glassfish.jersey
project
pom
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey
Eclipse Jersey is the open source (under dual EPL+GPL license) Jakarta RESTful WebServices 3.0
diff --git a/security/oauth1-client/pom.xml b/security/oauth1-client/pom.xml
index 8e6f2befae5..bf765dc1ca2 100644
--- a/security/oauth1-client/pom.xml
+++ b/security/oauth1-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.security
project
- 3.0.8
+ 3.0.99-SNAPSHOT
oauth1-client
diff --git a/security/oauth1-server/pom.xml b/security/oauth1-server/pom.xml
index 67ae9b6592b..86b14091918 100644
--- a/security/oauth1-server/pom.xml
+++ b/security/oauth1-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.security
project
- 3.0.8
+ 3.0.99-SNAPSHOT
oauth1-server
diff --git a/security/oauth1-signature/pom.xml b/security/oauth1-signature/pom.xml
index 1c9a0a87e30..b1daa8b93f7 100644
--- a/security/oauth1-signature/pom.xml
+++ b/security/oauth1-signature/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/security/oauth2-client/pom.xml b/security/oauth2-client/pom.xml
index 78a4a54156a..920e17f2088 100644
--- a/security/oauth2-client/pom.xml
+++ b/security/oauth2-client/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/security/pom.xml b/security/pom.xml
index db8cb8d40df..a798df20da5 100644
--- a/security/pom.xml
+++ b/security/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.security
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index 239f1f7ac2c..36b26335fd0 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-test-framework-core
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index 71c9ad49191..32d86a40eb5 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.0.8
+ 3.0.99-SNAPSHOT
container-runner-maven-plugin
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index 7d9acc2e45b..c690eef5731 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.0.8
+ 3.0.99-SNAPSHOT
custom-enforcer-rules
diff --git a/test-framework/maven/pom.xml b/test-framework/maven/pom.xml
index b59296b75df..84d353b880a 100644
--- a/test-framework/maven/pom.xml
+++ b/test-framework/maven/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.test-framework.maven
diff --git a/test-framework/memleak-test-common/pom.xml b/test-framework/memleak-test-common/pom.xml
index d2bc9c11ea7..a9b8f3d74b4 100644
--- a/test-framework/memleak-test-common/pom.xml
+++ b/test-framework/memleak-test-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.8
+ 3.0.99-SNAPSHOT
memleak-test-common
diff --git a/test-framework/pom.xml b/test-framework/pom.xml
index b9f5da7e7ba..eadee509eca 100644
--- a/test-framework/pom.xml
+++ b/test-framework/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.test-framework
diff --git a/test-framework/providers/bundle/pom.xml b/test-framework/providers/bundle/pom.xml
index b6d71853630..adc29afeea3 100644
--- a/test-framework/providers/bundle/pom.xml
+++ b/test-framework/providers/bundle/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-bundle
diff --git a/test-framework/providers/external/pom.xml b/test-framework/providers/external/pom.xml
index 5a11437ce3b..11cddbc864b 100644
--- a/test-framework/providers/external/pom.xml
+++ b/test-framework/providers/external/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-external
diff --git a/test-framework/providers/grizzly2/pom.xml b/test-framework/providers/grizzly2/pom.xml
index e8f6a67205b..8b27f3a7d44 100644
--- a/test-framework/providers/grizzly2/pom.xml
+++ b/test-framework/providers/grizzly2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-grizzly2
diff --git a/test-framework/providers/inmemory/pom.xml b/test-framework/providers/inmemory/pom.xml
index d27381df6aa..a7fb228a465 100644
--- a/test-framework/providers/inmemory/pom.xml
+++ b/test-framework/providers/inmemory/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-inmemory
diff --git a/test-framework/providers/jdk-http/pom.xml b/test-framework/providers/jdk-http/pom.xml
index af777cb5c5d..3876be43783 100644
--- a/test-framework/providers/jdk-http/pom.xml
+++ b/test-framework/providers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-jdk-http
diff --git a/test-framework/providers/jetty/pom.xml b/test-framework/providers/jetty/pom.xml
index 028fdb2d9b7..7b20b609012 100644
--- a/test-framework/providers/jetty/pom.xml
+++ b/test-framework/providers/jetty/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/test-framework/providers/netty/pom.xml b/test-framework/providers/netty/pom.xml
index 96f43b95940..38e56c787ab 100644
--- a/test-framework/providers/netty/pom.xml
+++ b/test-framework/providers/netty/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-test-framework-provider-netty
diff --git a/test-framework/providers/pom.xml b/test-framework/providers/pom.xml
index 0c13ce88bd8..0da4a34cbc3 100644
--- a/test-framework/providers/pom.xml
+++ b/test-framework/providers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.test-framework.providers
diff --git a/test-framework/providers/simple/pom.xml b/test-framework/providers/simple/pom.xml
index b907619cd46..649b652dc91 100644
--- a/test-framework/providers/simple/pom.xml
+++ b/test-framework/providers/simple/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/test-framework/util/pom.xml b/test-framework/util/pom.xml
index f222f17da6e..569ab3e5c48 100644
--- a/test-framework/util/pom.xml
+++ b/test-framework/util/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-test-framework-util
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index 68ec2912d08..10c79d4f6ea 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.8
+ 3.0.99-SNAPSHOT
e2e-client
diff --git a/tests/e2e-core-common/pom.xml b/tests/e2e-core-common/pom.xml
index 0c9a0a1b1b5..0c97c1f4860 100644
--- a/tests/e2e-core-common/pom.xml
+++ b/tests/e2e-core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.8
+ 3.0.99-SNAPSHOT
e2e-core-common
diff --git a/tests/e2e-entity/pom.xml b/tests/e2e-entity/pom.xml
index d07909c4614..3c654b538af 100644
--- a/tests/e2e-entity/pom.xml
+++ b/tests/e2e-entity/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.8
+ 3.0.99-SNAPSHOT
e2e-entity
diff --git a/tests/e2e-inject/cdi-inject-weld/pom.xml b/tests/e2e-inject/cdi-inject-weld/pom.xml
index 2b9ed9829e2..37f6c7665e9 100644
--- a/tests/e2e-inject/cdi-inject-weld/pom.xml
+++ b/tests/e2e-inject/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.0.8
+ 3.0.99-SNAPSHOT
e2e-inject-cdi-inject-weld
diff --git a/tests/e2e-inject/cdi2-se/pom.xml b/tests/e2e-inject/cdi2-se/pom.xml
index f0849685a1e..578e6e9b236 100644
--- a/tests/e2e-inject/cdi2-se/pom.xml
+++ b/tests/e2e-inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.0.8
+ 3.0.99-SNAPSHOT
e2e-inject-cdi2-se
diff --git a/tests/e2e-inject/hk2/pom.xml b/tests/e2e-inject/hk2/pom.xml
index 4a088cf9c19..cf8d651a844 100644
--- a/tests/e2e-inject/hk2/pom.xml
+++ b/tests/e2e-inject/hk2/pom.xml
@@ -23,7 +23,7 @@
e2e-inject
org.glassfish.jersey.tests
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/e2e-inject/pom.xml b/tests/e2e-inject/pom.xml
index 4cdcbbbf10d..a6dcfeb1dff 100644
--- a/tests/e2e-inject/pom.xml
+++ b/tests/e2e-inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.8
+ 3.0.99-SNAPSHOT
e2e-inject
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index 1b161eceee4..b82ce78e42d 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.8
+ 3.0.99-SNAPSHOT
e2e-server
diff --git a/tests/e2e-testng/pom.xml b/tests/e2e-testng/pom.xml
index b950e5a646b..8e137eecb59 100644
--- a/tests/e2e-testng/pom.xml
+++ b/tests/e2e-testng/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.0.8
+ 3.0.99-SNAPSHOT
e2e-testng
diff --git a/tests/e2e/pom.xml b/tests/e2e/pom.xml
index 8d04acaa0ca..da8b8d8a2ce 100644
--- a/tests/e2e/pom.xml
+++ b/tests/e2e/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.8
+ 3.0.99-SNAPSHOT
e2e
diff --git a/tests/integration/asm/pom.xml b/tests/integration/asm/pom.xml
index 29541e5b791..31000df913a 100644
--- a/tests/integration/asm/pom.xml
+++ b/tests/integration/asm/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/async-jersey-filter/pom.xml b/tests/integration/async-jersey-filter/pom.xml
index 0a415cf5b61..b258b0ab0ef 100644
--- a/tests/integration/async-jersey-filter/pom.xml
+++ b/tests/integration/async-jersey-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
async-jersey-filter
diff --git a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
index 2a786f9c395..dcbcb126a7c 100644
--- a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-beanvalidation-webapp
diff --git a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
index 44e53bb71a9..fbcc5e486c8 100644
--- a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-client-on-server
diff --git a/tests/integration/cdi-integration/cdi-client/pom.xml b/tests/integration/cdi-integration/cdi-client/pom.xml
index 972825fc094..06b90f8c034 100644
--- a/tests/integration/cdi-integration/cdi-client/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-client
diff --git a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
index 4edbb2eca19..1281b55d74d 100644
--- a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-ejb-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
index 82349618e00..0e5399985b1 100644
--- a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-iface-with-non-jaxrs-impl-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-log-check/pom.xml b/tests/integration/cdi-integration/cdi-log-check/pom.xml
index 25df372324a..e67c62e364e 100644
--- a/tests/integration/cdi-integration/cdi-log-check/pom.xml
+++ b/tests/integration/cdi-integration/cdi-log-check/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-log-check
diff --git a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
index e9bb3f0c33c..3dee33d65f0 100644
--- a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
+++ b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
index ffa6c843d7a..676d3c5a3f5 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
index c6e5e3a7c58..2cb280fefde 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
index 4d9d8931773..a2432f470ce 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-multimodule
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
index 0dc4dd7fded..18ec2873880 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
index 1d0dee85243..421a999f06d 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
index 11a120874f2..39156de90b3 100644
--- a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-multipart-webapp
diff --git a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
index 04bac33a073..dd515d77fd0 100644
--- a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
+++ b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-singleton/pom.xml b/tests/integration/cdi-integration/cdi-singleton/pom.xml
index e1e69101ba5..ad33e450d7f 100644
--- a/tests/integration/cdi-integration/cdi-singleton/pom.xml
+++ b/tests/integration/cdi-integration/cdi-singleton/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
index e18b8e7f367..03ca8b022ae 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
index de9ba0ab0ec..722e892c7a2 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-with-jersey-injection-custom-cfg-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
index feb63b3a4c6..acf68dab964 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-with-jersey-injection-custom-hk2-banned-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
index 27624372400..83084c2d2c0 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
cdi-with-jersey-injection-webapp
diff --git a/tests/integration/cdi-integration/context-inject-on-server/pom.xml b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
index c52161df810..8391b2c5362 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/pom.xml
+++ b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
context-inject-on-server
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
index 2d4e8cb2e5a..7228461549d 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
+++ b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.8
+ 3.0.99-SNAPSHOT
gf-cdi-inject-on-server
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index 1b7246df368..c14ab61cf3b 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/client-connector-provider/pom.xml b/tests/integration/client-connector-provider/pom.xml
index a25e105e9e0..d2d838fee79 100644
--- a/tests/integration/client-connector-provider/pom.xml
+++ b/tests/integration/client-connector-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
client-connector-provider
diff --git a/tests/integration/ejb-multimodule-reload/ear/pom.xml b/tests/integration/ejb-multimodule-reload/ear/pom.xml
index 96ba7ce0ed6..fe527f5e5f8 100644
--- a/tests/integration/ejb-multimodule-reload/ear/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/lib/pom.xml b/tests/integration/ejb-multimodule-reload/lib/pom.xml
index 459411ad0c0..3bef14eb4c8 100644
--- a/tests/integration/ejb-multimodule-reload/lib/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/pom.xml b/tests/integration/ejb-multimodule-reload/pom.xml
index 069ebca4725..c041b5a5450 100644
--- a/tests/integration/ejb-multimodule-reload/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
ejb-multimodule-reload
diff --git a/tests/integration/ejb-multimodule-reload/war1/pom.xml b/tests/integration/ejb-multimodule-reload/war1/pom.xml
index d06c979b45c..5fda3a23e04 100644
--- a/tests/integration/ejb-multimodule-reload/war1/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/war2/pom.xml b/tests/integration/ejb-multimodule-reload/war2/pom.xml
index 14558201247..f3f7de908b7 100644
--- a/tests/integration/ejb-multimodule-reload/war2/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/ear/pom.xml b/tests/integration/ejb-multimodule/ear/pom.xml
index a806b744986..9d60c5d2fc7 100644
--- a/tests/integration/ejb-multimodule/ear/pom.xml
+++ b/tests/integration/ejb-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/lib/pom.xml b/tests/integration/ejb-multimodule/lib/pom.xml
index d178715247a..9b583c2d5e4 100644
--- a/tests/integration/ejb-multimodule/lib/pom.xml
+++ b/tests/integration/ejb-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/pom.xml b/tests/integration/ejb-multimodule/pom.xml
index 789a7ae427a..d1527cd4530 100644
--- a/tests/integration/ejb-multimodule/pom.xml
+++ b/tests/integration/ejb-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
ejb-multimodule
diff --git a/tests/integration/ejb-multimodule/war/pom.xml b/tests/integration/ejb-multimodule/war/pom.xml
index 9f90ff1e40e..0fb17710ad5 100644
--- a/tests/integration/ejb-multimodule/war/pom.xml
+++ b/tests/integration/ejb-multimodule/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-test-webapp/pom.xml b/tests/integration/ejb-test-webapp/pom.xml
index d2232767081..0791de9bd8b 100644
--- a/tests/integration/ejb-test-webapp/pom.xml
+++ b/tests/integration/ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
ejb-test-webapp
diff --git a/tests/integration/externalproperties/pom.xml b/tests/integration/externalproperties/pom.xml
index 9d7b4487951..91ff812f485 100644
--- a/tests/integration/externalproperties/pom.xml
+++ b/tests/integration/externalproperties/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
externalproperties
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index 308bd438aac..bdc4ce0065e 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
j-376
diff --git a/tests/integration/j-441/ear/pom.xml b/tests/integration/j-441/ear/pom.xml
index b590978d68f..37d2588c5a7 100644
--- a/tests/integration/j-441/ear/pom.xml
+++ b/tests/integration/j-441/ear/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
j-441-ear
diff --git a/tests/integration/j-441/pom.xml b/tests/integration/j-441/pom.xml
index deed4aa9392..34bce1499dc 100644
--- a/tests/integration/j-441/pom.xml
+++ b/tests/integration/j-441/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
j-441
diff --git a/tests/integration/j-441/war1/pom.xml b/tests/integration/j-441/war1/pom.xml
index 0c7b84dd83b..e35999a4cf6 100644
--- a/tests/integration/j-441/war1/pom.xml
+++ b/tests/integration/j-441/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-441/war2/pom.xml b/tests/integration/j-441/war2/pom.xml
index f6499b0ae2a..a5a887eb45b 100644
--- a/tests/integration/j-441/war2/pom.xml
+++ b/tests/integration/j-441/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/ear/pom.xml b/tests/integration/j-59/ear/pom.xml
index da544f60580..8eeeaa442a8 100644
--- a/tests/integration/j-59/ear/pom.xml
+++ b/tests/integration/j-59/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/lib/pom.xml b/tests/integration/j-59/lib/pom.xml
index b3ff64e4c57..3f74aa4a5b5 100644
--- a/tests/integration/j-59/lib/pom.xml
+++ b/tests/integration/j-59/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/pom.xml b/tests/integration/j-59/pom.xml
index 4efb73d70b6..dc2dd9be86a 100644
--- a/tests/integration/j-59/pom.xml
+++ b/tests/integration/j-59/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
j-59
diff --git a/tests/integration/j-59/war/pom.xml b/tests/integration/j-59/war/pom.xml
index c54dab7e73c..145ab55c00e 100644
--- a/tests/integration/j-59/war/pom.xml
+++ b/tests/integration/j-59/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/jaxrs-component-inject/pom.xml b/tests/integration/jaxrs-component-inject/pom.xml
index 0cf00421465..5ad88a24815 100644
--- a/tests/integration/jaxrs-component-inject/pom.xml
+++ b/tests/integration/jaxrs-component-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jaxrs-component-inject
diff --git a/tests/integration/jersey-1107/pom.xml b/tests/integration/jersey-1107/pom.xml
index 6808ef44aa9..0454541101e 100644
--- a/tests/integration/jersey-1107/pom.xml
+++ b/tests/integration/jersey-1107/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-1107
diff --git a/tests/integration/jersey-1223/pom.xml b/tests/integration/jersey-1223/pom.xml
index d9fe380297e..77c48ae2a9a 100644
--- a/tests/integration/jersey-1223/pom.xml
+++ b/tests/integration/jersey-1223/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
jersey-1223
diff --git a/tests/integration/jersey-1604/pom.xml b/tests/integration/jersey-1604/pom.xml
index 42e74f31431..c35da56feec 100644
--- a/tests/integration/jersey-1604/pom.xml
+++ b/tests/integration/jersey-1604/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
jersey-1604
diff --git a/tests/integration/jersey-1667/pom.xml b/tests/integration/jersey-1667/pom.xml
index 41353434d35..917e178bd1f 100644
--- a/tests/integration/jersey-1667/pom.xml
+++ b/tests/integration/jersey-1667/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-1667
diff --git a/tests/integration/jersey-1883/pom.xml b/tests/integration/jersey-1883/pom.xml
index ee9c7f47719..4e483050991 100644
--- a/tests/integration/jersey-1883/pom.xml
+++ b/tests/integration/jersey-1883/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-1883
diff --git a/tests/integration/jersey-1928/pom.xml b/tests/integration/jersey-1928/pom.xml
index 8a764abe1ce..d532fc19935 100644
--- a/tests/integration/jersey-1928/pom.xml
+++ b/tests/integration/jersey-1928/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
jersey-1928
diff --git a/tests/integration/jersey-1960/pom.xml b/tests/integration/jersey-1960/pom.xml
index ed43cfa249c..0b73e155804 100644
--- a/tests/integration/jersey-1960/pom.xml
+++ b/tests/integration/jersey-1960/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-1960
diff --git a/tests/integration/jersey-1964/pom.xml b/tests/integration/jersey-1964/pom.xml
index 68935ad5cd2..d62a7dfa750 100644
--- a/tests/integration/jersey-1964/pom.xml
+++ b/tests/integration/jersey-1964/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-1964
diff --git a/tests/integration/jersey-2031/pom.xml b/tests/integration/jersey-2031/pom.xml
index bada2923182..61fb008e544 100644
--- a/tests/integration/jersey-2031/pom.xml
+++ b/tests/integration/jersey-2031/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2031
diff --git a/tests/integration/jersey-2136/pom.xml b/tests/integration/jersey-2136/pom.xml
index 326a4329d2b..5c81daa8d40 100644
--- a/tests/integration/jersey-2136/pom.xml
+++ b/tests/integration/jersey-2136/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2136
diff --git a/tests/integration/jersey-2137/pom.xml b/tests/integration/jersey-2137/pom.xml
index f14d3be0a5e..0522ff4f670 100644
--- a/tests/integration/jersey-2137/pom.xml
+++ b/tests/integration/jersey-2137/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2137
diff --git a/tests/integration/jersey-2154/pom.xml b/tests/integration/jersey-2154/pom.xml
index 8810813cfa5..6453678cb32 100644
--- a/tests/integration/jersey-2154/pom.xml
+++ b/tests/integration/jersey-2154/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2154
diff --git a/tests/integration/jersey-2160/pom.xml b/tests/integration/jersey-2160/pom.xml
index b07a1afb514..bd327294468 100644
--- a/tests/integration/jersey-2160/pom.xml
+++ b/tests/integration/jersey-2160/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2160
diff --git a/tests/integration/jersey-2164/pom.xml b/tests/integration/jersey-2164/pom.xml
index e3d8d3f39f9..e333ee33b00 100644
--- a/tests/integration/jersey-2164/pom.xml
+++ b/tests/integration/jersey-2164/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2164
diff --git a/tests/integration/jersey-2167/pom.xml b/tests/integration/jersey-2167/pom.xml
index 042bad64ca0..4bef57f7467 100644
--- a/tests/integration/jersey-2167/pom.xml
+++ b/tests/integration/jersey-2167/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2167
diff --git a/tests/integration/jersey-2176/pom.xml b/tests/integration/jersey-2176/pom.xml
index 9a2eb4103c0..e69b33dc154 100644
--- a/tests/integration/jersey-2176/pom.xml
+++ b/tests/integration/jersey-2176/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2176
diff --git a/tests/integration/jersey-2184/pom.xml b/tests/integration/jersey-2184/pom.xml
index 1602efe1969..67394390a58 100644
--- a/tests/integration/jersey-2184/pom.xml
+++ b/tests/integration/jersey-2184/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2184
diff --git a/tests/integration/jersey-2255/pom.xml b/tests/integration/jersey-2255/pom.xml
index d8a20ed84f3..864bbda5782 100644
--- a/tests/integration/jersey-2255/pom.xml
+++ b/tests/integration/jersey-2255/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2255
diff --git a/tests/integration/jersey-2322/pom.xml b/tests/integration/jersey-2322/pom.xml
index b57d1f8c4c0..5acef07879d 100644
--- a/tests/integration/jersey-2322/pom.xml
+++ b/tests/integration/jersey-2322/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2322
diff --git a/tests/integration/jersey-2335/pom.xml b/tests/integration/jersey-2335/pom.xml
index 368c6258a60..ae251628aaa 100644
--- a/tests/integration/jersey-2335/pom.xml
+++ b/tests/integration/jersey-2335/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2335
diff --git a/tests/integration/jersey-2421/pom.xml b/tests/integration/jersey-2421/pom.xml
index 4078bdc1ecd..57272ef5469 100644
--- a/tests/integration/jersey-2421/pom.xml
+++ b/tests/integration/jersey-2421/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2421
diff --git a/tests/integration/jersey-2551/pom.xml b/tests/integration/jersey-2551/pom.xml
index 7f50535bbbf..4b3ed85e792 100644
--- a/tests/integration/jersey-2551/pom.xml
+++ b/tests/integration/jersey-2551/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2551
diff --git a/tests/integration/jersey-2612/pom.xml b/tests/integration/jersey-2612/pom.xml
index 455411c8f78..cc4ba0cb4ce 100644
--- a/tests/integration/jersey-2612/pom.xml
+++ b/tests/integration/jersey-2612/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2612
diff --git a/tests/integration/jersey-2637/pom.xml b/tests/integration/jersey-2637/pom.xml
index d9f5da40cac..7b89b885415 100644
--- a/tests/integration/jersey-2637/pom.xml
+++ b/tests/integration/jersey-2637/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2637
diff --git a/tests/integration/jersey-2654/pom.xml b/tests/integration/jersey-2654/pom.xml
index 873009dffbb..5a8ce536f94 100644
--- a/tests/integration/jersey-2654/pom.xml
+++ b/tests/integration/jersey-2654/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2654
diff --git a/tests/integration/jersey-2673/pom.xml b/tests/integration/jersey-2673/pom.xml
index 1b3faedbf1d..a09059f698f 100644
--- a/tests/integration/jersey-2673/pom.xml
+++ b/tests/integration/jersey-2673/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2673
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index 90b87d6d210..5a73166f846 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2689
diff --git a/tests/integration/jersey-2704/pom.xml b/tests/integration/jersey-2704/pom.xml
index feac179aaa6..3356c790a61 100644
--- a/tests/integration/jersey-2704/pom.xml
+++ b/tests/integration/jersey-2704/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2704
diff --git a/tests/integration/jersey-2776/pom.xml b/tests/integration/jersey-2776/pom.xml
index 0f132ebd93a..3a8f6045da8 100644
--- a/tests/integration/jersey-2776/pom.xml
+++ b/tests/integration/jersey-2776/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2776
diff --git a/tests/integration/jersey-2794/pom.xml b/tests/integration/jersey-2794/pom.xml
index a6f4cc29530..f5e47fda936 100644
--- a/tests/integration/jersey-2794/pom.xml
+++ b/tests/integration/jersey-2794/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2794
diff --git a/tests/integration/jersey-2846/pom.xml b/tests/integration/jersey-2846/pom.xml
index d7ed0014fa3..4f4bb9e1766 100644
--- a/tests/integration/jersey-2846/pom.xml
+++ b/tests/integration/jersey-2846/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2846
diff --git a/tests/integration/jersey-2878/pom.xml b/tests/integration/jersey-2878/pom.xml
index 1add30f9526..1fba3f01eb5 100644
--- a/tests/integration/jersey-2878/pom.xml
+++ b/tests/integration/jersey-2878/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2878
diff --git a/tests/integration/jersey-2892/pom.xml b/tests/integration/jersey-2892/pom.xml
index 22b3cd7af66..a2c420f62ac 100644
--- a/tests/integration/jersey-2892/pom.xml
+++ b/tests/integration/jersey-2892/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-2892
diff --git a/tests/integration/jersey-3662/pom.xml b/tests/integration/jersey-3662/pom.xml
index b1328700213..ed7425b8f12 100644
--- a/tests/integration/jersey-3662/pom.xml
+++ b/tests/integration/jersey-3662/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-3670/pom.xml b/tests/integration/jersey-3670/pom.xml
index 2bb54e9a995..2e23e7bd8e7 100644
--- a/tests/integration/jersey-3670/pom.xml
+++ b/tests/integration/jersey-3670/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-3670
diff --git a/tests/integration/jersey-3796/pom.xml b/tests/integration/jersey-3796/pom.xml
index c53bc75568c..c555460dfbc 100644
--- a/tests/integration/jersey-3796/pom.xml
+++ b/tests/integration/jersey-3796/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-3796
diff --git a/tests/integration/jersey-3992/pom.xml b/tests/integration/jersey-3992/pom.xml
index 52d147729e4..3a91fa66675 100644
--- a/tests/integration/jersey-3992/pom.xml
+++ b/tests/integration/jersey-3992/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-3992
diff --git a/tests/integration/jersey-4003/pom.xml b/tests/integration/jersey-4003/pom.xml
index 3827be9da6f..9c2c8be8cc6 100644
--- a/tests/integration/jersey-4003/pom.xml
+++ b/tests/integration/jersey-4003/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4099/pom.xml b/tests/integration/jersey-4099/pom.xml
index 34f24c588c3..8a11821c4b0 100644
--- a/tests/integration/jersey-4099/pom.xml
+++ b/tests/integration/jersey-4099/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-4099
diff --git a/tests/integration/jersey-4321/pom.xml b/tests/integration/jersey-4321/pom.xml
index a2ccb6988a2..108d29d8cec 100644
--- a/tests/integration/jersey-4321/pom.xml
+++ b/tests/integration/jersey-4321/pom.xml
@@ -24,7 +24,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4507/pom.xml b/tests/integration/jersey-4507/pom.xml
index 2223f08c47f..7bd6c4267ba 100644
--- a/tests/integration/jersey-4507/pom.xml
+++ b/tests/integration/jersey-4507/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4542/pom.xml b/tests/integration/jersey-4542/pom.xml
index 4426ceb635c..9a57421cee7 100644
--- a/tests/integration/jersey-4542/pom.xml
+++ b/tests/integration/jersey-4542/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4697/pom.xml b/tests/integration/jersey-4697/pom.xml
index 5e2d1f2c23f..699cad95c6e 100644
--- a/tests/integration/jersey-4697/pom.xml
+++ b/tests/integration/jersey-4697/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4722/pom.xml b/tests/integration/jersey-4722/pom.xml
index 0bf3afe914c..9899424ec8e 100644
--- a/tests/integration/jersey-4722/pom.xml
+++ b/tests/integration/jersey-4722/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4949/pom.xml b/tests/integration/jersey-4949/pom.xml
index 85228370d65..df426ac5bb9 100644
--- a/tests/integration/jersey-4949/pom.xml
+++ b/tests/integration/jersey-4949/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-4949
diff --git a/tests/integration/jersey-5087/pom.xml b/tests/integration/jersey-5087/pom.xml
index 5e3e1bd204b..7f97ce81595 100644
--- a/tests/integration/jersey-5087/pom.xml
+++ b/tests/integration/jersey-5087/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-780/pom.xml b/tests/integration/jersey-780/pom.xml
index eac110fe607..4fd6edba78f 100644
--- a/tests/integration/jersey-780/pom.xml
+++ b/tests/integration/jersey-780/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-780
diff --git a/tests/integration/microprofile/config/helidon/pom.xml b/tests/integration/microprofile/config/helidon/pom.xml
index 6eec0bfd899..47bca4af4b4 100644
--- a/tests/integration/microprofile/config/helidon/pom.xml
+++ b/tests/integration/microprofile/config/helidon/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/config/pom.xml b/tests/integration/microprofile/config/pom.xml
index e0874d9c779..3428dcce3f9 100644
--- a/tests/integration/microprofile/config/pom.xml
+++ b/tests/integration/microprofile/config/pom.xml
@@ -22,7 +22,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/microprofile/config/webapp/pom.xml b/tests/integration/microprofile/config/webapp/pom.xml
index b9a395ce212..ef82e1e77e1 100644
--- a/tests/integration/microprofile/config/webapp/pom.xml
+++ b/tests/integration/microprofile/config/webapp/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/pom.xml b/tests/integration/microprofile/pom.xml
index 2d18923070b..19e06d62bbb 100644
--- a/tests/integration/microprofile/pom.xml
+++ b/tests/integration/microprofile/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/microprofile/rest-client-tck/pom.xml b/tests/integration/microprofile/rest-client-tck/pom.xml
index a0e694ddf47..9e477b8bd89 100644
--- a/tests/integration/microprofile/rest-client-tck/pom.xml
+++ b/tests/integration/microprofile/rest-client-tck/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/rest-client/pom.xml b/tests/integration/microprofile/rest-client/pom.xml
index 079d5b2ebf8..20e608714f3 100644
--- a/tests/integration/microprofile/rest-client/pom.xml
+++ b/tests/integration/microprofile/rest-client/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index 721a8f1425a..7313f12ce46 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.integration
diff --git a/tests/integration/property-check/pom.xml b/tests/integration/property-check/pom.xml
index a39e5bf4e18..1d1ca19b1d4 100644
--- a/tests/integration/property-check/pom.xml
+++ b/tests/integration/property-check/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
property-check
diff --git a/tests/integration/reactive-streams/pom.xml b/tests/integration/reactive-streams/pom.xml
index 44fb7ac1069..cef7e0e93c6 100644
--- a/tests/integration/reactive-streams/pom.xml
+++ b/tests/integration/reactive-streams/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/reactive-streams/sse/pom.xml b/tests/integration/reactive-streams/sse/pom.xml
index c5c281d74d4..b6031de788e 100644
--- a/tests/integration/reactive-streams/sse/pom.xml
+++ b/tests/integration/reactive-streams/sse/pom.xml
@@ -22,7 +22,7 @@
reactive-streams-integration-project
org.glassfish.jersey.tests.integration.reactive
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/security-digest/pom.xml b/tests/integration/security-digest/pom.xml
index 6f343616097..1c3d9390d63 100644
--- a/tests/integration/security-digest/pom.xml
+++ b/tests/integration/security-digest/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
security-digest
diff --git a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
index 5d77c7eef3a..170ebdc6057 100644
--- a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-autodiscovery-1
diff --git a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
index 3b581374583..75d0d9d1692 100644
--- a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-autodiscovery-2
diff --git a/tests/integration/servlet-2.5-filter/pom.xml b/tests/integration/servlet-2.5-filter/pom.xml
index b496c4bba97..f5bde77bdd3 100644
--- a/tests/integration/servlet-2.5-filter/pom.xml
+++ b/tests/integration/servlet-2.5-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-filter
diff --git a/tests/integration/servlet-2.5-inflector-1/pom.xml b/tests/integration/servlet-2.5-inflector-1/pom.xml
index d67b0db94af..8881a1aa86b 100644
--- a/tests/integration/servlet-2.5-inflector-1/pom.xml
+++ b/tests/integration/servlet-2.5-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-inflector-1
diff --git a/tests/integration/servlet-2.5-init-1/pom.xml b/tests/integration/servlet-2.5-init-1/pom.xml
index 4353b7cf286..7f73fa2db7a 100644
--- a/tests/integration/servlet-2.5-init-1/pom.xml
+++ b/tests/integration/servlet-2.5-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-init-1
diff --git a/tests/integration/servlet-2.5-init-2/pom.xml b/tests/integration/servlet-2.5-init-2/pom.xml
index 15d642cf9eb..a38fb5ab30a 100644
--- a/tests/integration/servlet-2.5-init-2/pom.xml
+++ b/tests/integration/servlet-2.5-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-init-2
diff --git a/tests/integration/servlet-2.5-init-3/pom.xml b/tests/integration/servlet-2.5-init-3/pom.xml
index 1bc65ffe9eb..54ae9820807 100644
--- a/tests/integration/servlet-2.5-init-3/pom.xml
+++ b/tests/integration/servlet-2.5-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-init-3
diff --git a/tests/integration/servlet-2.5-init-4/pom.xml b/tests/integration/servlet-2.5-init-4/pom.xml
index 47b8391704e..f46d5bc8f9c 100644
--- a/tests/integration/servlet-2.5-init-4/pom.xml
+++ b/tests/integration/servlet-2.5-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-init-4
diff --git a/tests/integration/servlet-2.5-init-5/pom.xml b/tests/integration/servlet-2.5-init-5/pom.xml
index 9c3db1f6f20..a2d1ae3058c 100644
--- a/tests/integration/servlet-2.5-init-5/pom.xml
+++ b/tests/integration/servlet-2.5-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-init-5
diff --git a/tests/integration/servlet-2.5-init-6/pom.xml b/tests/integration/servlet-2.5-init-6/pom.xml
index bac666a1406..437f9499271 100644
--- a/tests/integration/servlet-2.5-init-6/pom.xml
+++ b/tests/integration/servlet-2.5-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-init-6
diff --git a/tests/integration/servlet-2.5-init-7/pom.xml b/tests/integration/servlet-2.5-init-7/pom.xml
index 1ab856f5288..43dc4e1441c 100644
--- a/tests/integration/servlet-2.5-init-7/pom.xml
+++ b/tests/integration/servlet-2.5-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-init-7
diff --git a/tests/integration/servlet-2.5-init-8/pom.xml b/tests/integration/servlet-2.5-init-8/pom.xml
index 2886cfa1f2e..5c3c50febae 100644
--- a/tests/integration/servlet-2.5-init-8/pom.xml
+++ b/tests/integration/servlet-2.5-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-init-8
diff --git a/tests/integration/servlet-2.5-mvc-1/pom.xml b/tests/integration/servlet-2.5-mvc-1/pom.xml
index 2120421db85..9e080fb8a05 100644
--- a/tests/integration/servlet-2.5-mvc-1/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-mvc-1
diff --git a/tests/integration/servlet-2.5-mvc-2/pom.xml b/tests/integration/servlet-2.5-mvc-2/pom.xml
index 3548d1a0572..6b99036dc71 100644
--- a/tests/integration/servlet-2.5-mvc-2/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-mvc-2
diff --git a/tests/integration/servlet-2.5-mvc-3/pom.xml b/tests/integration/servlet-2.5-mvc-3/pom.xml
index 165bbc32b23..b9e12c58a3f 100644
--- a/tests/integration/servlet-2.5-mvc-3/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-mvc-3
diff --git a/tests/integration/servlet-2.5-reload/pom.xml b/tests/integration/servlet-2.5-reload/pom.xml
index f180a72a8b3..300e1eed8c3 100644
--- a/tests/integration/servlet-2.5-reload/pom.xml
+++ b/tests/integration/servlet-2.5-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-2.5-reload
diff --git a/tests/integration/servlet-3-async/pom.xml b/tests/integration/servlet-3-async/pom.xml
index 36f51832cc2..d305a505f17 100644
--- a/tests/integration/servlet-3-async/pom.xml
+++ b/tests/integration/servlet-3-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-async
diff --git a/tests/integration/servlet-3-chunked-io/pom.xml b/tests/integration/servlet-3-chunked-io/pom.xml
index a73931ca9b5..4ea9c0416a0 100644
--- a/tests/integration/servlet-3-chunked-io/pom.xml
+++ b/tests/integration/servlet-3-chunked-io/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-chunked-io
diff --git a/tests/integration/servlet-3-filter/pom.xml b/tests/integration/servlet-3-filter/pom.xml
index 54751fa5a91..99405a2a0e3 100644
--- a/tests/integration/servlet-3-filter/pom.xml
+++ b/tests/integration/servlet-3-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-filter
diff --git a/tests/integration/servlet-3-gf-async/pom.xml b/tests/integration/servlet-3-gf-async/pom.xml
index 1c570a8dfbb..448e9063629 100644
--- a/tests/integration/servlet-3-gf-async/pom.xml
+++ b/tests/integration/servlet-3-gf-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-gf-async
diff --git a/tests/integration/servlet-3-inflector-1/pom.xml b/tests/integration/servlet-3-inflector-1/pom.xml
index 902d12d8272..b49c04d6443 100644
--- a/tests/integration/servlet-3-inflector-1/pom.xml
+++ b/tests/integration/servlet-3-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-inflector-1
diff --git a/tests/integration/servlet-3-init-1/pom.xml b/tests/integration/servlet-3-init-1/pom.xml
index d4d6132c105..3862f57778f 100644
--- a/tests/integration/servlet-3-init-1/pom.xml
+++ b/tests/integration/servlet-3-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-init-1
diff --git a/tests/integration/servlet-3-init-2/pom.xml b/tests/integration/servlet-3-init-2/pom.xml
index f90feafb67e..66bbfaad717 100644
--- a/tests/integration/servlet-3-init-2/pom.xml
+++ b/tests/integration/servlet-3-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-init-2
diff --git a/tests/integration/servlet-3-init-3/pom.xml b/tests/integration/servlet-3-init-3/pom.xml
index 6672dd090b7..d81772b1c59 100644
--- a/tests/integration/servlet-3-init-3/pom.xml
+++ b/tests/integration/servlet-3-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-init-3
diff --git a/tests/integration/servlet-3-init-4/pom.xml b/tests/integration/servlet-3-init-4/pom.xml
index 63c04fc82d2..e2a8478d875 100644
--- a/tests/integration/servlet-3-init-4/pom.xml
+++ b/tests/integration/servlet-3-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-init-4
diff --git a/tests/integration/servlet-3-init-5/pom.xml b/tests/integration/servlet-3-init-5/pom.xml
index 7e9bc96b486..88ec528e7ef 100644
--- a/tests/integration/servlet-3-init-5/pom.xml
+++ b/tests/integration/servlet-3-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-init-5
diff --git a/tests/integration/servlet-3-init-6/pom.xml b/tests/integration/servlet-3-init-6/pom.xml
index 8d8330cf4ee..b0591746687 100644
--- a/tests/integration/servlet-3-init-6/pom.xml
+++ b/tests/integration/servlet-3-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-init-6
diff --git a/tests/integration/servlet-3-init-7/pom.xml b/tests/integration/servlet-3-init-7/pom.xml
index af7367ae237..39661f9bd26 100644
--- a/tests/integration/servlet-3-init-7/pom.xml
+++ b/tests/integration/servlet-3-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-init-7
diff --git a/tests/integration/servlet-3-init-8/pom.xml b/tests/integration/servlet-3-init-8/pom.xml
index 365e851a442..9ab80e1f098 100644
--- a/tests/integration/servlet-3-init-8/pom.xml
+++ b/tests/integration/servlet-3-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-init-8
diff --git a/tests/integration/servlet-3-init-9/pom.xml b/tests/integration/servlet-3-init-9/pom.xml
index b1d83f50ce2..ed0a34a54fb 100644
--- a/tests/integration/servlet-3-init-9/pom.xml
+++ b/tests/integration/servlet-3-init-9/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-init-9
diff --git a/tests/integration/servlet-3-init-provider/pom.xml b/tests/integration/servlet-3-init-provider/pom.xml
index 8a3f184e9a3..8c909b441a0 100644
--- a/tests/integration/servlet-3-init-provider/pom.xml
+++ b/tests/integration/servlet-3-init-provider/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-init-provider
diff --git a/tests/integration/servlet-3-params/pom.xml b/tests/integration/servlet-3-params/pom.xml
index 7e07d30f0e0..9eca1fc6c90 100644
--- a/tests/integration/servlet-3-params/pom.xml
+++ b/tests/integration/servlet-3-params/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-params
diff --git a/tests/integration/servlet-3-sse-1/pom.xml b/tests/integration/servlet-3-sse-1/pom.xml
index edde83cbc3d..ca82c6a288d 100644
--- a/tests/integration/servlet-3-sse-1/pom.xml
+++ b/tests/integration/servlet-3-sse-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-3-sse-1
diff --git a/tests/integration/servlet-4.0-mvc-1/pom.xml b/tests/integration/servlet-4.0-mvc-1/pom.xml
index b543182c996..7a93a3f1b54 100644
--- a/tests/integration/servlet-4.0-mvc-1/pom.xml
+++ b/tests/integration/servlet-4.0-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-4.0-mvc-1
diff --git a/tests/integration/servlet-request-wrapper-binding-2/pom.xml b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
index d399294bf91..063f1bf9778 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-request-wrappper-binding-2
diff --git a/tests/integration/servlet-request-wrapper-binding/pom.xml b/tests/integration/servlet-request-wrapper-binding/pom.xml
index 4c83d539460..2a6a9808591 100644
--- a/tests/integration/servlet-request-wrapper-binding/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-request-wrappper-binding
diff --git a/tests/integration/servlet-tests/pom.xml b/tests/integration/servlet-tests/pom.xml
index 7ed27edd37b..d20aa3fd26d 100644
--- a/tests/integration/servlet-tests/pom.xml
+++ b/tests/integration/servlet-tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
servlet-tests
diff --git a/tests/integration/sonar-test/pom.xml b/tests/integration/sonar-test/pom.xml
index 504c17d8a5e..6e5ad790cb1 100644
--- a/tests/integration/sonar-test/pom.xml
+++ b/tests/integration/sonar-test/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
sonar-test
diff --git a/tests/integration/spring6/pom.xml b/tests/integration/spring6/pom.xml
index e2ee3dff599..63625f40c13 100644
--- a/tests/integration/spring6/pom.xml
+++ b/tests/integration/spring6/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
spring6
diff --git a/tests/integration/tracing-support/pom.xml b/tests/integration/tracing-support/pom.xml
index c7b2f8b2aad..1618cae39bb 100644
--- a/tests/integration/tracing-support/pom.xml
+++ b/tests/integration/tracing-support/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.0.8
+ 3.0.99-SNAPSHOT
tracing-support
diff --git a/tests/jmockit/pom.xml b/tests/jmockit/pom.xml
index 5a6c6121d78..b23e24ee528 100644
--- a/tests/jmockit/pom.xml
+++ b/tests/jmockit/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests
- 3.0.8
+ 3.0.99-SNAPSHOT
4.0.0
diff --git a/tests/mem-leaks/pom.xml b/tests/mem-leaks/pom.xml
index 0a2da1fad8a..6f88b8c504a 100644
--- a/tests/mem-leaks/pom.xml
+++ b/tests/mem-leaks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.memleaks
diff --git a/tests/mem-leaks/redeployment/pom.xml b/tests/mem-leaks/redeployment/pom.xml
index a2dc2f0ca7f..d05070e2c88 100644
--- a/tests/mem-leaks/redeployment/pom.xml
+++ b/tests/mem-leaks/redeployment/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.memleaks.redeployment
diff --git a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
index ed3f2247717..5fe32d43680 100644
--- a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.8
+ 3.0.99-SNAPSHOT
redeployment-hello-world-app-ref
@@ -132,7 +132,7 @@
org.glassfish.jersey.examples
helloworld-webapp
war
- 3.0.8
+ 3.0.99-SNAPSHOT
diff --git a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
index ba2029c160f..465a1b116f0 100644
--- a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.8
+ 3.0.99-SNAPSHOT
redeployment-leaking-test-app
diff --git a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
index e0dc992bd3e..59a52b9e50c 100644
--- a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.8
+ 3.0.99-SNAPSHOT
redeployment-no-jersey-app
diff --git a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
index 7816fc0745b..0e0ebd4d6ce 100644
--- a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.0.8
+ 3.0.99-SNAPSHOT
redeployment-threadlocals-app
diff --git a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
index b48178485d7..f6e335b7bd7 100644
--- a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
bean-param-leak
diff --git a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
index 13d817c5095..929337bd8c7 100644
--- a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
+++ b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
leaking-test-app
diff --git a/tests/mem-leaks/test-cases/pom.xml b/tests/mem-leaks/test-cases/pom.xml
index 8b3adafc748..4428ff7f3d6 100644
--- a/tests/mem-leaks/test-cases/pom.xml
+++ b/tests/mem-leaks/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.memleaks.testcases
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
index 581d2ee1470..40e375294ee 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
shutdown-hook-leak-client
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
index 92f13d92fd6..3335fd2b424 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
shutdown-hook-leak
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index 2126670cf46..1b996666be8 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.osgi
project
- 3.0.8
+ 3.0.99-SNAPSHOT
jersey-tests-osgi-functional
diff --git a/tests/osgi/pom.xml b/tests/osgi/pom.xml
index 38dbff48f56..0f6a61894cc 100644
--- a/tests/osgi/pom.xml
+++ b/tests/osgi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.osgi
diff --git a/tests/performance/benchmarks/pom.xml b/tests/performance/benchmarks/pom.xml
index 85c154a6688..de3d43d789f 100644
--- a/tests/performance/benchmarks/pom.xml
+++ b/tests/performance/benchmarks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.8
+ 3.0.99-SNAPSHOT
performance-test-benchmarks
diff --git a/tests/performance/pom.xml b/tests/performance/pom.xml
index 173ce2bbe1b..684deafa4a3 100644
--- a/tests/performance/pom.xml
+++ b/tests/performance/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.performance
diff --git a/tests/performance/runners/jersey-grizzly-runner/pom.xml b/tests/performance/runners/jersey-grizzly-runner/pom.xml
index 443ecda1945..1c55d8a29b8 100644
--- a/tests/performance/runners/jersey-grizzly-runner/pom.xml
+++ b/tests/performance/runners/jersey-grizzly-runner/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.runners
project
- 3.0.8
+ 3.0.99-SNAPSHOT
diff --git a/tests/performance/runners/pom.xml b/tests/performance/runners/pom.xml
index f2d70b40dd9..96707a881f3 100644
--- a/tests/performance/runners/pom.xml
+++ b/tests/performance/runners/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.performance.runners
diff --git a/tests/performance/test-cases/assemblies/pom.xml b/tests/performance/test-cases/assemblies/pom.xml
index 7d1a32431e1..0e174ef1738 100644
--- a/tests/performance/test-cases/assemblies/pom.xml
+++ b/tests/performance/test-cases/assemblies/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
assemblies
diff --git a/tests/performance/test-cases/filter-dynamic/pom.xml b/tests/performance/test-cases/filter-dynamic/pom.xml
index 77089b1f1b9..08679af1fec 100644
--- a/tests/performance/test-cases/filter-dynamic/pom.xml
+++ b/tests/performance/test-cases/filter-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
filter-dynamic
diff --git a/tests/performance/test-cases/filter-global/pom.xml b/tests/performance/test-cases/filter-global/pom.xml
index fa7057931c8..5fdc703dab5 100644
--- a/tests/performance/test-cases/filter-global/pom.xml
+++ b/tests/performance/test-cases/filter-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
filter-global
diff --git a/tests/performance/test-cases/filter-name/pom.xml b/tests/performance/test-cases/filter-name/pom.xml
index 02d8e493b4e..c6457f06c02 100644
--- a/tests/performance/test-cases/filter-name/pom.xml
+++ b/tests/performance/test-cases/filter-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
filter-name
diff --git a/tests/performance/test-cases/interceptor-dynamic/pom.xml b/tests/performance/test-cases/interceptor-dynamic/pom.xml
index 2a11595d05c..3869ea29373 100644
--- a/tests/performance/test-cases/interceptor-dynamic/pom.xml
+++ b/tests/performance/test-cases/interceptor-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
interceptor-dynamic
diff --git a/tests/performance/test-cases/interceptor-global/pom.xml b/tests/performance/test-cases/interceptor-global/pom.xml
index 9f569ef4205..8cad5e337bd 100644
--- a/tests/performance/test-cases/interceptor-global/pom.xml
+++ b/tests/performance/test-cases/interceptor-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
interceptor-global
diff --git a/tests/performance/test-cases/interceptor-name/pom.xml b/tests/performance/test-cases/interceptor-name/pom.xml
index 8dd36288802..2a179d3c6c2 100644
--- a/tests/performance/test-cases/interceptor-name/pom.xml
+++ b/tests/performance/test-cases/interceptor-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
interceptor-name
diff --git a/tests/performance/test-cases/mbw-custom-provider/pom.xml b/tests/performance/test-cases/mbw-custom-provider/pom.xml
index 38b1eb670c1..05def3afe70 100644
--- a/tests/performance/test-cases/mbw-custom-provider/pom.xml
+++ b/tests/performance/test-cases/mbw-custom-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
custom-provider
diff --git a/tests/performance/test-cases/mbw-json-jackson/pom.xml b/tests/performance/test-cases/mbw-json-jackson/pom.xml
index f9be2c4840b..99b7e0a4e3e 100644
--- a/tests/performance/test-cases/mbw-json-jackson/pom.xml
+++ b/tests/performance/test-cases/mbw-json-jackson/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
json-jackson
diff --git a/tests/performance/test-cases/mbw-json-moxy/pom.xml b/tests/performance/test-cases/mbw-json-moxy/pom.xml
index 0599ef5bef0..110a87fe45d 100644
--- a/tests/performance/test-cases/mbw-json-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-json-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
json-moxy
diff --git a/tests/performance/test-cases/mbw-kryo/pom.xml b/tests/performance/test-cases/mbw-kryo/pom.xml
index 0fcd716f40d..e6286ce24be 100644
--- a/tests/performance/test-cases/mbw-kryo/pom.xml
+++ b/tests/performance/test-cases/mbw-kryo/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
mbw-kryo
diff --git a/tests/performance/test-cases/mbw-text-plain/pom.xml b/tests/performance/test-cases/mbw-text-plain/pom.xml
index 4d1e0487bac..44b96b2ea34 100644
--- a/tests/performance/test-cases/mbw-text-plain/pom.xml
+++ b/tests/performance/test-cases/mbw-text-plain/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
text-plain
diff --git a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
index 6b8322fd6ee..e759a1d9fde 100644
--- a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
xml-jaxb
diff --git a/tests/performance/test-cases/mbw-xml-moxy/pom.xml b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
index 7a6685ee9f9..ad3fc0d25c5 100644
--- a/tests/performance/test-cases/mbw-xml-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
xml-moxy
diff --git a/tests/performance/test-cases/param-srl/pom.xml b/tests/performance/test-cases/param-srl/pom.xml
index 1d210ff61a5..95a00326615 100644
--- a/tests/performance/test-cases/param-srl/pom.xml
+++ b/tests/performance/test-cases/param-srl/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
param-srl
diff --git a/tests/performance/test-cases/pom.xml b/tests/performance/test-cases/pom.xml
index c2bb8828607..60c2b732796 100644
--- a/tests/performance/test-cases/pom.xml
+++ b/tests/performance/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.performance.testcases
diff --git a/tests/performance/test-cases/proxy-injection/pom.xml b/tests/performance/test-cases/proxy-injection/pom.xml
index fa3708ced21..ab5a7456041 100644
--- a/tests/performance/test-cases/proxy-injection/pom.xml
+++ b/tests/performance/test-cases/proxy-injection/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.0.8
+ 3.0.99-SNAPSHOT
proxy-injection
diff --git a/tests/performance/tools/pom.xml b/tests/performance/tools/pom.xml
index 5bbdcdba490..16ec2b20b48 100644
--- a/tests/performance/tools/pom.xml
+++ b/tests/performance/tools/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests.performance.tools
performance-test-tools
diff --git a/tests/pom.xml b/tests/pom.xml
index 2f63efd0ff9..946aa00deba 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.0.8
+ 3.0.99-SNAPSHOT
org.glassfish.jersey.tests
diff --git a/tests/stress/pom.xml b/tests/stress/pom.xml
index 8903423ee94..f0e7ee23717 100644
--- a/tests/stress/pom.xml
+++ b/tests/stress/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.0.8
+ 3.0.99-SNAPSHOT
stress
From 16eaaff4e70c2fa0ca4d2d5b8447f661f5c3a138 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Tue, 30 Aug 2022 22:32:18 +0200
Subject: [PATCH 090/305] Additional OSGi headers
Signed-off-by: jansupol
---
connectors/jetty-connector/pom.xml | 22 +++++++++++++---------
connectors/netty-connector/pom.xml | 5 +++++
connectors/pom.xml | 2 +-
containers/jetty-http/pom.xml | 8 ++++++++
containers/jetty-servlet/pom.xml | 1 +
incubator/declarative-linking/pom.xml | 5 +++++
incubator/kryo/pom.xml | 16 ++++++++++++++++
pom.xml | 1 +
test-framework/providers/jetty/pom.xml | 12 ------------
9 files changed, 50 insertions(+), 22 deletions(-)
diff --git a/connectors/jetty-connector/pom.xml b/connectors/jetty-connector/pom.xml
index b2cd08ab4b1..ea9db625e59 100644
--- a/connectors/jetty-connector/pom.xml
+++ b/connectors/jetty-connector/pom.xml
@@ -84,6 +84,19 @@
org.apache.maven.plugins
maven-compiler-plugin
+
+ org.apache.felix
+ maven-bundle-plugin
+ true
+
+
+
+ ${jetty.osgi.version},
+ *
+
+
+
+
@@ -101,15 +114,6 @@
-
- testsSkipJdk6
-
- 1.6
-
-
- true
-
-
diff --git a/connectors/netty-connector/pom.xml b/connectors/netty-connector/pom.xml
index 448e0c2c628..d6cfecdfc0a 100644
--- a/connectors/netty-connector/pom.xml
+++ b/connectors/netty-connector/pom.xml
@@ -67,6 +67,11 @@
org.apache.maven.plugins
maven-compiler-plugin
+
+ org.apache.felix
+ maven-bundle-plugin
+ true
+
diff --git a/connectors/pom.xml b/connectors/pom.xml
index 844149953f8..7a698c3c6ad 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -81,7 +81,7 @@
HelidonConnector
- 11
+ [11,)
helidon-connector
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index 195b6c3eac9..bd07c6c8cf4 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -72,6 +72,14 @@
org.apache.felix
maven-bundle-plugin
true
+
+
+
+ ${jetty.osgi.version},
+ *
+
+
+
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 66c0909eab8..6bb32453bc8 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -67,6 +67,7 @@
javax.servlet.*;version="[2.4,5.0)",
+ ${jetty.osgi.version},
*
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index 743886ab5b9..52efc853918 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -169,6 +169,11 @@
+
+ org.apache.felix
+ maven-bundle-plugin
+ true
+
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index dc30852a283..5246bdbd3bc 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -67,5 +67,21 @@
${project.build.directory}/legal
+
+
+
+ org.apache.felix
+ maven-bundle-plugin
+ true
+
+
+
+ com.esotericsoftware.kryo.*;version="!",
+ *
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 71b31037e5a..7b5da0af6b5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2230,6 +2230,7 @@
2.1
2.1.6
6.1.26
+ org.eclipse.jetty.*;version="[9.4,11)"
9.4.46.v20220331
6.1.14
1.0.2
diff --git a/test-framework/providers/jetty/pom.xml b/test-framework/providers/jetty/pom.xml
index 2ffd3e959ea..7989f31ff11 100644
--- a/test-framework/providers/jetty/pom.xml
+++ b/test-framework/providers/jetty/pom.xml
@@ -44,16 +44,4 @@
-
-
- testsSkipJdk6
-
- 1.6
-
-
- true
-
-
-
-
From 77074f19f8cc6acc555690b5069f2519fb9693e4 Mon Sep 17 00:00:00 2001
From: David Joaquim
Date: Fri, 2 Sep 2022 13:01:17 +0200
Subject: [PATCH 091/305] =?UTF-8?q?Change=20JettyConnector=20'readTimeout'?=
=?UTF-8?q?=20behavior=20to=20match=20socket=20read=20tim=E2=80=A6=20(#511?=
=?UTF-8?q?4)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Change JettyConnector 'readTimeout' behavior to match socket read timeout definition - e.g., ApacheConnector behavior matches it.
* Read timeout: Time on waiting to receive the first data byte.
The `timeout` method timeouts the request even if data were already received, capping the query to a maximum execution time.
This behavior is problematic when streaming data over a prolonged duration; the client has already received data bytes, but data continues to flow.
I provided a jetty specific property (jersey.config.jetty.client.totalTimeout) that configures the 'totalTimeout' when required.
---
.../connector/JettyClientProperties.java | 15 ++
.../jetty/connector/JettyConnector.java | 8 +-
.../jersey/jetty/connector/TimeoutTest.java | 131 +++++++++++++++++-
3 files changed, 147 insertions(+), 7 deletions(-)
diff --git a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java
index ef2c8bef11b..aa7a77bd830 100644
--- a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java
+++ b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java
@@ -85,6 +85,21 @@ private JettyClientProperties() {
public static final String SYNC_LISTENER_RESPONSE_MAX_SIZE =
"jersey.config.jetty.client.syncListenerResponseMaxSize";
+ /**
+ * Total timeout interval, in milliseconds.
+ *
+ * The value MUST be an instance convertible to {@link java.lang.Integer}. A
+ * value of zero (0) is equivalent to an interval of infinity.
+ *
+ *
+ * The default value is infinity (0).
+ *
+ *
+ * The name of the configuration property is {@value} .
+ *
+ */
+ public static final String TOTAL_TIMEOUT = "jersey.config.jetty.client.totalTimeout";
+
/**
* Get the value of the specified property.
*
diff --git a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java
index 89a0c05eb78..111022d89a5 100644
--- a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java
+++ b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java
@@ -314,8 +314,14 @@ private Request translateRequest(final ClientRequest clientRequest) {
request.followRedirects(clientRequest.resolveProperty(ClientProperties.FOLLOW_REDIRECTS, true));
final Object readTimeout = clientRequest.resolveProperty(ClientProperties.READ_TIMEOUT, -1);
if (readTimeout != null && readTimeout instanceof Integer && (Integer) readTimeout > 0) {
- request.timeout((Integer) readTimeout, TimeUnit.MILLISECONDS);
+ request.idleTimeout((Integer) readTimeout, TimeUnit.MILLISECONDS);
}
+
+ final Object totalTimeout = clientRequest.resolveProperty(JettyClientProperties.TOTAL_TIMEOUT, -1);
+ if (totalTimeout != null && totalTimeout instanceof Integer && (Integer) totalTimeout > 0) {
+ request.timeout((Integer) totalTimeout, TimeUnit.MILLISECONDS);
+ }
+
return request;
}
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TimeoutTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TimeoutTest.java
index 21469f4d9c2..48c5bed5c12 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TimeoutTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TimeoutTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,30 +16,37 @@
package org.glassfish.jersey.jetty.connector;
+import static org.hamcrest.CoreMatchers.instanceOf;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
import java.net.URI;
+import java.nio.charset.StandardCharsets;
+import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.logging.Logger;
+import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.ProcessingException;
+import javax.ws.rs.QueryParam;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.Application;
import javax.ws.rs.core.Response;
+import javax.ws.rs.core.StreamingOutput;
+import org.glassfish.jersey.CommonProperties;
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-
import org.junit.Test;
-import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.fail;
/**
* @author Martin Matula
@@ -65,6 +72,48 @@ public String getTimeout() {
}
return "GET";
}
+
+ /**
+ * Long-running streaming request
+ *
+ * @param count number of packets send
+ * @param pauseMillis pause between each packets
+ */
+ @GET
+ @Path("stream")
+ public Response streamsWithDelay(@QueryParam("start") @DefaultValue("0") int startMillis, @QueryParam("count") int count,
+ @QueryParam("pauseMillis") int pauseMillis) {
+ StreamingOutput streamingOutput = streamSlowly(startMillis, count, pauseMillis);
+
+ return Response.ok(streamingOutput)
+ .build();
+ }
+ }
+
+ private static StreamingOutput streamSlowly(int startMillis, int count, int pauseMillis) {
+
+ return output -> {
+ try {
+ TimeUnit.MILLISECONDS.sleep(startMillis);
+ }
+ catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ }
+ output.write("begin\n".getBytes(StandardCharsets.UTF_8));
+ output.flush();
+ for (int i = 0; i < count; i++) {
+ try {
+ TimeUnit.MILLISECONDS.sleep(pauseMillis);
+ }
+ catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ }
+
+ output.write(("message " + i + "\n").getBytes(StandardCharsets.UTF_8));
+ output.flush();
+ }
+ output.write("end".getBytes(StandardCharsets.UTF_8));
+ };
}
@Override
@@ -121,4 +170,74 @@ public void testTimeoutInRequest() {
c.close();
}
}
+
+ /**
+ * Test accessing an operation that is streaming slowly
+ *
+ * @throws ProcessingException in case of a test error.
+ */
+ @Test
+ public void testSlowlyStreamedContentDoesNotReadTimeout() throws Exception {
+
+ int count = 5;
+ int pauseMillis = 50;
+
+ final Response response = target("test")
+ .property(ClientProperties.READ_TIMEOUT, 100L)
+ .property(CommonProperties.OUTBOUND_CONTENT_LENGTH_BUFFER_SERVER, "-1")
+ .path("stream")
+ .queryParam("count", count)
+ .queryParam("pauseMillis", pauseMillis)
+ .request().get();
+
+ assertTrue(response.readEntity(String.class).contains("end"));
+ }
+
+ @Test
+ public void testSlowlyStreamedContentDoesTotalTimeout() throws Exception {
+
+ int count = 5;
+ int pauseMillis = 50;
+
+ try {
+ target("test")
+ .property(JettyClientProperties.TOTAL_TIMEOUT, 100L)
+ .property(CommonProperties.OUTBOUND_CONTENT_LENGTH_BUFFER_SERVER, "-1")
+ .path("stream")
+ .queryParam("count", count)
+ .queryParam("pauseMillis", pauseMillis)
+ .request().get();
+
+ fail("This operation should trigger total timeout");
+ } catch (ProcessingException e) {
+ assertEquals(TimeoutException.class, e.getCause().getClass());
+ }
+ }
+
+ /**
+ * Test accessing an operation that is streaming slowly
+ *
+ * @throws ProcessingException in case of a test error.
+ */
+ @Test
+ public void testSlowToStartStreamedContentDoesReadTimeout() throws Exception {
+
+ int start = 150;
+ int count = 5;
+ int pauseMillis = 50;
+
+ try {
+ target("test")
+ .property(ClientProperties.READ_TIMEOUT, 100L)
+ .property(CommonProperties.OUTBOUND_CONTENT_LENGTH_BUFFER_SERVER, "-1")
+ .path("stream")
+ .queryParam("start", start)
+ .queryParam("count", count)
+ .queryParam("pauseMillis", pauseMillis)
+ .request().get();
+ fail("This operation should trigger idle timeout");
+ } catch (ProcessingException e) {
+ assertEquals(TimeoutException.class, e.getCause().getClass());
+ }
+ }
}
From 9a2da0969cc6dd4928ec134ea926168e65099dc9 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Thu, 1 Sep 2022 21:42:12 +0200
Subject: [PATCH 092/305] Adjustments after 3.0->3.1 merge
Signed-off-by: jansupol
---
pom.xml | 2 +-
tests/integration/cdi-integration/gf-cdi-inject/pom.xml | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pom.xml b/pom.xml
index a0104c9446a..0ac6bc6c951 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2237,7 +2237,7 @@
7.0.0-M2
4.0.1
- javax.enterprise.*;version="[3.0,5)"
+ jakarta.enterprise.*;version="[3.0,5)"
4.0.1
4.0.0
2.0.0
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
index 7228461549d..95c5bd7a7af 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
+++ b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.0.99-SNAPSHOT
+ 3.1.0-SNAPSHOT
gf-cdi-inject-on-server
@@ -31,7 +31,7 @@
Embedded GF tests @Inject
- ${project.build.directory}/glassfish6
+ ${project.build.directory}/glassfish7
${glassfish.home}/glassfish/modules
${gf.impl.version}
${junit5.version}
From 0f7bd90267e75da37e3bac0d22dfee46e0d997a5 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Fri, 2 Sep 2022 18:31:18 +0200
Subject: [PATCH 093/305] Fix OSGi veriables
Signed-off-by: jansupol
---
incubator/cdi-inject-weld/pom.xml | 2 +-
media/json-gson/pom.xml | 2 +-
pom.xml | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index 331b92f17e7..ccfb4cdcb76 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -124,7 +124,7 @@
sun.misc.*;resolution:=optional,
${cdi.osgi.version},
- ${javax.annotation.osgi.version},
+ ${jakarta.annotation.osgi.version},
*
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index e57899b9dac..eaa7d25ab53 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -54,7 +54,7 @@
org.glassfish.jersey.gson.*
- ${javax.annotation.osgi.version},*
+ ${jakarta.annotation.osgi.version},*
true
diff --git a/pom.xml b/pom.xml
index eda140e8fa6..edfec7ec649 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2109,7 +2109,7 @@
each module; the default exclude filter file is at etc/config/findbugs-exclude.xml -->
- javax.enterprise
+ jakarta.enterprise
1.8
@@ -2221,7 +2221,7 @@
6.2.5
3.0.0
- javax.enterprise.*;version="[3.0,5)"
+ jakarta.enterprise.*;version="[3.0,5)"
4.0.1
3.0.1
2.0.0
From 53b0fd293a0a8d8856bf408c76732c603c002c18 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Fri, 2 Sep 2022 13:41:19 +0200
Subject: [PATCH 094/305] Updated JettyClientProperties#TOTAL_TIMEOUT related
documentation.
Signed-off-by: jansupol
---
.../jetty/connector/JettyClientProperties.java | 9 ++++++---
docs/src/main/docbook/appendix-properties.xml | 17 +++++++++++++++++
docs/src/main/docbook/jersey.ent | 1 +
3 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java
index aa7a77bd830..b6817dc5565 100644
--- a/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java
+++ b/connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java
@@ -86,17 +86,20 @@ private JettyClientProperties() {
"jersey.config.jetty.client.syncListenerResponseMaxSize";
/**
- * Total timeout interval, in milliseconds.
+ * Total timeout interval for request/response conversation, in milliseconds.
+ * Opposed to {@link org.glassfish.jersey.client.ClientProperties#READ_TIMEOUT}.
*
- * The value MUST be an instance convertible to {@link java.lang.Integer}. A
+ * The value MUST be an instance convertible to {@link java.lang.Integer}. The
* value of zero (0) is equivalent to an interval of infinity.
*
*
- * The default value is infinity (0).
+ * The default value is zero (infinity).
*
*
* The name of the configuration property is {@value} .
*
+ *
+ * @since 2.37
*/
public static final String TOTAL_TIMEOUT = "jersey.config.jetty.client.totalTimeout";
diff --git a/docs/src/main/docbook/appendix-properties.xml b/docs/src/main/docbook/appendix-properties.xml
index 6bd970abad6..56fd939cebc 100644
--- a/docs/src/main/docbook/appendix-properties.xml
+++ b/docs/src/main/docbook/appendix-properties.xml
@@ -1790,6 +1790,23 @@
+
+ &jersey.jetty.JettyClientProperties.TOTAL_TIMEOUT;
+ jersey.config.jetty.client.totalTimeout
+
+
+ Total timeout interval for request/response conversation, in milliseconds.
+ Opposed to &jersey.client.ClientProperties.READ_TIMEOUT;.
+
+
+ The value MUST be an instance convertible to Integer .
+ The value of zero 0 is equivalent to an interval of infinity.
+
+
+ The default value is 0 (infinity).
+
+
+
diff --git a/docs/src/main/docbook/jersey.ent b/docs/src/main/docbook/jersey.ent
index e463997a619..a7291624c08 100644
--- a/docs/src/main/docbook/jersey.ent
+++ b/docs/src/main/docbook/jersey.ent
@@ -470,6 +470,7 @@
JettyClientProperties.DISABLE_COOKIES" >
JettyClientProperties.PREEMPTIVE_BASIC_AUTHENTICATION" >
JettyClientProperties.SYNC_LISTENER_RESPONSE_MAX_SIZE" >
+JettyClientProperties.TOTAL_TIMEOUT" >
JettyConnectorProvider">
JettyHttpContainer">
JettyHttpContainerFactory">
From 9f4bf3cb81fb891f8d8fd5f27656d11768d7e22c Mon Sep 17 00:00:00 2001
From: jansupol
Date: Fri, 2 Sep 2022 21:40:54 +0200
Subject: [PATCH 095/305] Spring 6 examples back
Signed-off-by: jansupol
---
.../helloworld-spring-annotations/README.MD | 4 +-
.../helloworld-spring-annotations/pom.xml | 45 +++++++++++---
.../hello/spring/annotations/App.java | 4 +-
examples/helloworld-spring-webapp/pom.xml | 60 ++++++++++++++-----
.../spring/CustomExceptionMapper.java | 4 +-
.../spring/GreetingServiceImpl.java | 2 +-
examples/pom.xml | 15 ++++-
7 files changed, 102 insertions(+), 32 deletions(-)
diff --git a/examples/helloworld-spring-annotations/README.MD b/examples/helloworld-spring-annotations/README.MD
index 63e6780f2e9..cec2cf5fef5 100644
--- a/examples/helloworld-spring-annotations/README.MD
+++ b/examples/helloworld-spring-annotations/README.MD
@@ -1,4 +1,4 @@
-[//]: # " Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved. "
+[//]: # " Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved. "
[//]: # " "
[//]: # " This program and the accompanying materials are made available under the "
[//]: # " terms of the Eclipse Distribution License v. 1.0, which is available at "
@@ -10,7 +10,7 @@ Jersey Spring Integration Spring Helloworld WebApp Example
==========================================================
This example demonstrates how to create simple Jersey application that
-utilises Spring 3 DI features based on Spring annotations, packaged into WAR file.
+utilises Spring 6 DI features based on Spring annotations, packaged into WAR file.
Contents
--------
diff --git a/examples/helloworld-spring-annotations/pom.xml b/examples/helloworld-spring-annotations/pom.xml
index 71a23917c62..26fe299dee2 100644
--- a/examples/helloworld-spring-annotations/pom.xml
+++ b/examples/helloworld-spring-annotations/pom.xml
@@ -15,11 +15,19 @@
project
org.glassfish.jersey.examples
- 3.0.0-SNAPSHOT
+ 3.0.99-SNAPSHOT
4.0.0
helloworld-spring-annotations
- Spring 4 Integration Jersey Example
+ Spring 6 Integration Jersey Example
+
+
+
+ Spring Repository
+ spring-repository
+ https://repo.spring.io/milestone
+
+
@@ -32,15 +40,36 @@
org.glassfish.jersey.ext
- jersey-spring5
+ jersey-spring6
${project.version}
+
org.springframework
spring-web
- ${spring5.version}
- compile
+ ${spring6.version}
+
+
+ org.springframework
+ spring-beans
+ ${spring6.version}
+
+
+ org.springframework
+ spring-core
+ ${spring6.version}
+
+ org.springframework
+ spring-context
+ ${spring6.version}
+
+
+ org.springframework
+ spring-aop
+ ${spring6.version}
+
+
commons-logging
commons-logging
@@ -52,9 +81,9 @@
test
- javax.servlet
- javax.servlet-api
- 3.0.1
+ jakarta.servlet
+ jakarta.servlet-api
+ ${servlet5.version}
diff --git a/examples/helloworld-spring-annotations/src/main/java/org/glassfish/jersey/examples/hello/spring/annotations/App.java b/examples/helloworld-spring-annotations/src/main/java/org/glassfish/jersey/examples/hello/spring/annotations/App.java
index 35560347b32..d1451c8765a 100644
--- a/examples/helloworld-spring-annotations/src/main/java/org/glassfish/jersey/examples/hello/spring/annotations/App.java
+++ b/examples/helloworld-spring-annotations/src/main/java/org/glassfish/jersey/examples/hello/spring/annotations/App.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -28,7 +28,7 @@ public class App {
private static final URI BASE_URI = URI.create("http://localhost:8080/base/");
- public static final String ROOT_PATH = "base";
+ public static final String ROOT_PATH = "spring-resource";
public static void main(String[] args) {
try {
diff --git a/examples/helloworld-spring-webapp/pom.xml b/examples/helloworld-spring-webapp/pom.xml
index d4e1eeef9fd..7948f93daee 100644
--- a/examples/helloworld-spring-webapp/pom.xml
+++ b/examples/helloworld-spring-webapp/pom.xml
@@ -25,14 +25,22 @@
org.glassfish.jersey.examples
project
- 3.0.0-SNAPSHOT
+ 3.0.99-SNAPSHOT
helloworld-spring-webapp
war
jersey-examples-helloworld-spring-webapp
- Spring 4 Integration Jersey Example
+ Spring 6 Integration Jersey Example
+
+
+
+ Spring Repository
+ spring-repository
+ https://repo.spring.io/milestone
+
+
@@ -43,11 +51,37 @@
org.glassfish.jersey.inject
jersey-hk2
+
org.springframework
spring-web
- ${spring4.version}
- compile
+ ${spring6.version}
+
+
+ org.springframework
+ spring-beans
+ ${spring6.version}
+
+
+ org.springframework
+ spring-core
+ ${spring6.version}
+
+
+ org.springframework
+ spring-context
+ ${spring6.version}
+
+
+ org.springframework
+ spring-aop
+ ${spring6.version}
+
+
+
+ jakarta.servlet
+ jakarta.servlet-api
+ ${servlet5.version}
@@ -64,17 +98,10 @@
org.glassfish.jersey.ext
- jersey-spring4
+ jersey-spring6
${project.version}
-
- org.mortbay.jetty
- servlet-api-2.5
- ${jetty.servlet.api.25.version}
- provided
-
-
junit
junit
@@ -86,8 +113,13 @@
- org.mortbay.jetty
- maven-jetty-plugin
+ org.eclipse.jetty
+ jetty-maven-plugin
+
+
+ /helloworld-spring-webapp
+
+
diff --git a/examples/helloworld-spring-webapp/src/main/java/org/glassfish/jersey/examples/helloworld/spring/CustomExceptionMapper.java b/examples/helloworld-spring-webapp/src/main/java/org/glassfish/jersey/examples/helloworld/spring/CustomExceptionMapper.java
index 4ca8d6c5dd9..a0deb274303 100644
--- a/examples/helloworld-spring-webapp/src/main/java/org/glassfish/jersey/examples/helloworld/spring/CustomExceptionMapper.java
+++ b/examples/helloworld-spring-webapp/src/main/java/org/glassfish/jersey/examples/helloworld/spring/CustomExceptionMapper.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,8 +10,6 @@
package org.glassfish.jersey.examples.helloworld.spring;
-import org.springframework.stereotype.Component;
-
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.ExceptionMapper;
import jakarta.ws.rs.ext.Provider;
diff --git a/examples/helloworld-spring-webapp/src/main/java/org/glassfish/jersey/examples/helloworld/spring/GreetingServiceImpl.java b/examples/helloworld-spring-webapp/src/main/java/org/glassfish/jersey/examples/helloworld/spring/GreetingServiceImpl.java
index 9b947887a12..652e763dfe1 100644
--- a/examples/helloworld-spring-webapp/src/main/java/org/glassfish/jersey/examples/helloworld/spring/GreetingServiceImpl.java
+++ b/examples/helloworld-spring-webapp/src/main/java/org/glassfish/jersey/examples/helloworld/spring/GreetingServiceImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
diff --git a/examples/pom.xml b/examples/pom.xml
index 70cf1629ce4..7edd6957730 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -78,8 +78,6 @@
helloworld-pure-jax-rs
helloworld-webapp
helloworld-weld
-
-
http-patch
http-trace
https-clientserver-grizzly
@@ -279,4 +277,17 @@
+
+
+ jdk17
+
+ [17,)
+
+
+ helloworld-spring-webapp
+ helloworld-spring-annotations
+
+
+
+
From fc63a054950448a5f5ae3b5d2076dc6f4782bb38 Mon Sep 17 00:00:00 2001
From: jbescos
Date: Mon, 5 Sep 2022 12:46:50 +0200
Subject: [PATCH 096/305] Fix test issues (#5137)
Signed-off-by: Jorge Bescos Gascon
---
.../jdk/connector/internal/StressTest.java | 87 -------------------
.../MonitoringEventListenerTest.java | 18 ++--
2 files changed, 10 insertions(+), 95 deletions(-)
delete mode 100644 connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/StressTest.java
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/StressTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/StressTest.java
deleted file mode 100644
index ed43c080c79..00000000000
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/StressTest.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.jdk.connector.internal;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-import java.util.concurrent.Future;
-import java.util.concurrent.TimeUnit;
-
-import javax.ws.rs.GET;
-import javax.ws.rs.Path;
-import javax.ws.rs.core.Application;
-import javax.ws.rs.core.Response;
-
-import org.glassfish.jersey.client.ClientConfig;
-import org.glassfish.jersey.internal.guava.ThreadFactoryBuilder;
-import org.glassfish.jersey.jdk.connector.JdkConnectorProvider;
-import org.glassfish.jersey.server.ResourceConfig;
-import org.glassfish.jersey.test.JerseyTest;
-import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-
-public class StressTest extends JerseyTest {
-
- private static final int PARALLELISM = 50;
- private static final int ITERATIONS = 1000;
-
- @Path("/test")
- public static class TestResource {
-
- @GET
- public String test() {
- return "test";
- }
- }
-
- @Override
- protected Application configure() {
- enable(TestProperties.LOG_TRAFFIC);
- enable(TestProperties.DUMP_ENTITY);
- return new ResourceConfig(TestResource.class);
- }
-
- @Override
- protected void configureClient(ClientConfig config) {
- config.connectorProvider(new JdkConnectorProvider());
- }
-
- @Test
- public void randomnessStatus200() throws InterruptedException, ExecutionException {
- ExecutorService executor = Executors.newFixedThreadPool(PARALLELISM,
- new ThreadFactoryBuilder().setNameFormat("client-%d").build());
- for (int i = 0; i < ITERATIONS; i++) {
- System.out.println("Iteration " + i);
- List> responses = new ArrayList<>();
- for (int j = 0; j < 100; j++) {
- Future future = executor.submit(() -> target("/test").request().get());
- responses.add(future);
- }
- for (Future response : responses) {
- assertEquals(200, response.get().getStatus());
- }
- }
- executor.shutdown();
- assertTrue(executor.awaitTermination(10, TimeUnit.SECONDS));
- }
-}
diff --git a/tests/integration/jersey-4697/src/test/java/org/glassfish/jersey/tests/integration/jersey4697/MonitoringEventListenerTest.java b/tests/integration/jersey-4697/src/test/java/org/glassfish/jersey/tests/integration/jersey4697/MonitoringEventListenerTest.java
index 578d96442d6..308d34215af 100644
--- a/tests/integration/jersey-4697/src/test/java/org/glassfish/jersey/tests/integration/jersey4697/MonitoringEventListenerTest.java
+++ b/tests/integration/jersey-4697/src/test/java/org/glassfish/jersey/tests/integration/jersey4697/MonitoringEventListenerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -52,7 +52,7 @@
public class MonitoringEventListenerTest extends JerseyTest {
- private static final long TIMEOUT = 500;
+ private static final long TIMEOUT = 1000;
private static final String MBEAN_EXCEPTION =
"org.glassfish.jersey:type=MonitoringEventListenerTest,subType=Global,exceptions=ExceptionMapper";
@@ -116,6 +116,7 @@ protected Application configure() {
resourceConfig.property(ServerProperties.MONITORING_ENABLED, true);
resourceConfig.property(ServerProperties.MONITORING_STATISTICS_ENABLED, true);
resourceConfig.property(ServerProperties.MONITORING_STATISTICS_MBEANS_ENABLED, true);
+ // Scheduler will process 1000 events per second
resourceConfig.property(ServerProperties.MONITORING_STATISTICS_REFRESH_INTERVAL, 1);
resourceConfig.setApplicationName("MonitoringEventListenerTest");
return resourceConfig;
@@ -126,17 +127,18 @@ public void exceptionInScheduler() throws Exception {
final Long ERRORS_BEFORE_FAIL = 10L;
// Send some requests to process some statistics.
request(ERRORS_BEFORE_FAIL);
- // Give some time to the scheduler to collect data.
+ // Give some time to process events
Thread.sleep(TIMEOUT);
- // All events were consumed by scheduler
+ // Verify the exceptionMapperEvents is empty, because no event of this type was sent yet
queueIsEmpty();
- // Make the scheduler to fail. No more statistics are collected.
+ // Sending one event that will make an internal error in the scheduler.
+ // No new events will be pushed in the queues after this.
makeFailure();
- // Sending again requests
+ // Sending again requests. These events will not be processed, so they will not be counted for statistics.
request(20);
+ // The expectation is that the scheduler is not going to process previous events because there was a failure before.
+ // We give some time before checking that no new errors are registered.
Thread.sleep(TIMEOUT);
- // No new events should be accepted because scheduler is not working.
- queueIsEmpty();
Long monitoredErrors = mappedErrorsFromJMX(MBEAN_EXCEPTION);
assertEquals(ERRORS_BEFORE_FAIL, monitoredErrors);
}
From ecf14442b636b6c0c865291c1801c43917ed9686 Mon Sep 17 00:00:00 2001
From: jersey-bot
Date: Mon, 5 Sep 2022 13:58:08 +0000
Subject: [PATCH 097/305] 2.37
---
archetypes/jersey-example-java8-webapp/pom.xml | 2 +-
archetypes/jersey-heroku-webapp/pom.xml | 2 +-
archetypes/jersey-quickstart-grizzly2/pom.xml | 2 +-
archetypes/jersey-quickstart-webapp/pom.xml | 2 +-
archetypes/pom.xml | 2 +-
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 2 +-
bundles/jaxrs-ri/pom.xml | 2 +-
bundles/pom.xml | 2 +-
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 2 +-
connectors/helidon-connector/pom.xml | 2 +-
connectors/jdk-connector/pom.xml | 2 +-
connectors/jetty-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 2 +-
containers/glassfish/pom.xml | 2 +-
containers/grizzly2-http/pom.xml | 2 +-
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-http/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
containers/netty-http/pom.xml | 2 +-
containers/pom.xml | 2 +-
containers/simple-http/pom.xml | 2 +-
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 2 +-
examples/assemblies/pom.xml | 2 +-
examples/bookmark-em/pom.xml | 2 +-
examples/bookmark/pom.xml | 2 +-
examples/bookstore-webapp/pom.xml | 2 +-
examples/cdi-webapp/pom.xml | 2 +-
examples/clipboard-programmatic/pom.xml | 2 +-
examples/clipboard/pom.xml | 2 +-
examples/declarative-linking/pom.xml | 2 +-
examples/entity-filtering-security/pom.xml | 2 +-
examples/entity-filtering-selectable/pom.xml | 2 +-
examples/entity-filtering/pom.xml | 2 +-
examples/exception-mapping/pom.xml | 2 +-
examples/extended-wadl-webapp/pom.xml | 2 +-
examples/freemarker-webapp/pom.xml | 2 +-
examples/groovy/pom.xml | 2 +-
examples/helloworld-benchmark/pom.xml | 2 +-
examples/helloworld-cdi2-se/pom.xml | 2 +-
examples/helloworld-netty/pom.xml | 2 +-
examples/helloworld-programmatic/pom.xml | 2 +-
examples/helloworld-pure-jax-rs/pom.xml | 2 +-
examples/helloworld-spring-annotations/pom.xml | 2 +-
examples/helloworld-spring-webapp/pom.xml | 2 +-
examples/helloworld-webapp/pom.xml | 2 +-
examples/helloworld-weld/pom.xml | 2 +-
examples/helloworld/pom.xml | 2 +-
examples/http-patch/pom.xml | 2 +-
examples/http-trace/pom.xml | 2 +-
examples/https-clientserver-grizzly/pom.xml | 2 +-
examples/https-server-glassfish/pom.xml | 2 +-
examples/java8-webapp/pom.xml | 2 +-
examples/jaxb/pom.xml | 2 +-
examples/jaxrs-types-injection/pom.xml | 2 +-
examples/jersey-ejb/pom.xml | 2 +-
examples/json-binding-webapp/pom.xml | 2 +-
examples/json-jackson/pom.xml | 2 +-
examples/json-jackson1/pom.xml | 2 +-
examples/json-jettison/pom.xml | 2 +-
examples/json-moxy/pom.xml | 2 +-
examples/json-processing-webapp/pom.xml | 2 +-
examples/json-with-padding/pom.xml | 2 +-
examples/managed-beans-webapp/pom.xml | 2 +-
examples/managed-client-simple-webapp/pom.xml | 2 +-
examples/managed-client-webapp/pom.xml | 2 +-
examples/managed-client/pom.xml | 2 +-
examples/multipart-webapp/pom.xml | 2 +-
examples/oauth-client-twitter/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 2 +-
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/functional-test/pom.xml | 2 +-
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/pom.xml | 2 +-
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 2 +-
examples/osgi-http-service/bundle/pom.xml | 2 +-
examples/osgi-http-service/functional-test/pom.xml | 2 +-
examples/osgi-http-service/pom.xml | 2 +-
examples/pom.xml | 2 +-
examples/reload/pom.xml | 2 +-
examples/rx-client-webapp/pom.xml | 2 +-
examples/server-async-managed/pom.xml | 2 +-
examples/server-async-standalone/client/pom.xml | 2 +-
examples/server-async-standalone/pom.xml | 2 +-
examples/server-async-standalone/webapp/pom.xml | 2 +-
examples/server-async/pom.xml | 2 +-
examples/server-sent-events-jaxrs/pom.xml | 2 +-
examples/server-sent-events-jersey/pom.xml | 2 +-
examples/servlet3-webapp/pom.xml | 2 +-
examples/simple-console/pom.xml | 2 +-
examples/sse-item-store-jaxrs-webapp/pom.xml | 2 +-
examples/sse-item-store-jersey-webapp/pom.xml | 2 +-
examples/sse-twitter-aggregator/pom.xml | 2 +-
examples/system-properties-example/pom.xml | 2 +-
examples/webapp-example-parent/pom.xml | 2 +-
examples/xml-moxy/pom.xml | 2 +-
ext/bean-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-transaction/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi1x/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 2 +-
ext/cdi/pom.xml | 2 +-
ext/entity-filtering/pom.xml | 2 +-
ext/metainf-services/pom.xml | 2 +-
ext/microprofile/mp-config/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/microprofile/pom.xml | 2 +-
ext/mvc-bean-validation/pom.xml | 2 +-
ext/mvc-freemarker/pom.xml | 2 +-
ext/mvc-jsp/pom.xml | 2 +-
ext/mvc-mustache/pom.xml | 2 +-
ext/mvc/pom.xml | 2 +-
ext/pom.xml | 2 +-
ext/proxy-client/pom.xml | 2 +-
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 2 +-
ext/rx/rx-client-rxjava2/pom.xml | 2 +-
ext/servlet-portability/pom.xml | 2 +-
ext/spring4/pom.xml | 2 +-
ext/spring5/pom.xml | 2 +-
ext/wadl-doclet/pom.xml | 2 +-
incubator/cdi-inject-weld/pom.xml | 2 +-
incubator/declarative-linking/pom.xml | 2 +-
incubator/gae-integration/pom.xml | 2 +-
incubator/html-json/pom.xml | 2 +-
incubator/kryo/pom.xml | 2 +-
incubator/open-tracing/pom.xml | 2 +-
incubator/pom.xml | 2 +-
inject/cdi2-se/pom.xml | 2 +-
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 2 +-
media/jaxb/pom.xml | 2 +-
media/json-binding/pom.xml | 2 +-
media/json-gson/pom.xml | 2 +-
media/json-jackson/pom.xml | 2 +-
media/json-jackson1/pom.xml | 2 +-
media/json-jettison/pom.xml | 2 +-
media/json-processing/pom.xml | 2 +-
media/moxy/pom.xml | 2 +-
media/multipart/pom.xml | 2 +-
media/pom.xml | 2 +-
media/sse/pom.xml | 2 +-
pom.xml | 2 +-
security/oauth1-client/pom.xml | 2 +-
security/oauth1-server/pom.xml | 2 +-
security/oauth1-signature/pom.xml | 2 +-
security/oauth2-client/pom.xml | 2 +-
security/pom.xml | 2 +-
test-framework/core/pom.xml | 2 +-
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 2 +-
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 2 +-
test-framework/providers/bundle/pom.xml | 2 +-
test-framework/providers/external/pom.xml | 2 +-
test-framework/providers/grizzly2/pom.xml | 2 +-
test-framework/providers/inmemory/pom.xml | 2 +-
test-framework/providers/jdk-http/pom.xml | 2 +-
test-framework/providers/jetty/pom.xml | 2 +-
test-framework/providers/netty/pom.xml | 2 +-
test-framework/providers/pom.xml | 2 +-
test-framework/providers/simple/pom.xml | 2 +-
test-framework/util/pom.xml | 2 +-
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 2 +-
tests/e2e-inject/pom.xml | 2 +-
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 2 +-
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 2 +-
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 2 +-
.../integration/cdi-integration/cdi-client-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-client/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 2 +-
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-log-check/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-manually-bound/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multipart-webapp/pom.xml | 2 +-
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-singleton/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 2 +-
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 2 +-
.../pom.xml | 2 +-
.../cdi-integration/cdi-with-jersey-injection-webapp/pom.xml | 2 +-
.../cdi-integration/context-inject-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/gf-cdi-inject/pom.xml | 2 +-
tests/integration/cdi-integration/pom.xml | 2 +-
tests/integration/client-connector-provider/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule/pom.xml | 2 +-
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 2 +-
tests/integration/j-376/pom.xml | 2 +-
tests/integration/j-441/ear/pom.xml | 2 +-
tests/integration/j-441/pom.xml | 2 +-
tests/integration/j-441/war1/pom.xml | 2 +-
tests/integration/j-441/war2/pom.xml | 2 +-
tests/integration/j-59/ear/pom.xml | 2 +-
tests/integration/j-59/lib/pom.xml | 2 +-
tests/integration/j-59/pom.xml | 2 +-
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 2 +-
tests/integration/jersey-1107/pom.xml | 2 +-
tests/integration/jersey-1223/pom.xml | 2 +-
tests/integration/jersey-1604/pom.xml | 2 +-
tests/integration/jersey-1667/pom.xml | 2 +-
tests/integration/jersey-1829/pom.xml | 2 +-
tests/integration/jersey-1883/pom.xml | 2 +-
tests/integration/jersey-1928/pom.xml | 2 +-
tests/integration/jersey-1960/pom.xml | 2 +-
tests/integration/jersey-1964/pom.xml | 2 +-
tests/integration/jersey-2031/pom.xml | 2 +-
tests/integration/jersey-2136/pom.xml | 2 +-
tests/integration/jersey-2137/pom.xml | 2 +-
tests/integration/jersey-2154/pom.xml | 2 +-
tests/integration/jersey-2160/pom.xml | 2 +-
tests/integration/jersey-2164/pom.xml | 2 +-
tests/integration/jersey-2167/pom.xml | 2 +-
tests/integration/jersey-2176/pom.xml | 2 +-
tests/integration/jersey-2184/pom.xml | 2 +-
tests/integration/jersey-2255/pom.xml | 2 +-
tests/integration/jersey-2322/pom.xml | 2 +-
tests/integration/jersey-2335/pom.xml | 2 +-
tests/integration/jersey-2421/pom.xml | 2 +-
tests/integration/jersey-2551/pom.xml | 2 +-
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 2 +-
tests/integration/jersey-2654/pom.xml | 2 +-
tests/integration/jersey-2673/pom.xml | 2 +-
tests/integration/jersey-2689/pom.xml | 2 +-
tests/integration/jersey-2704/pom.xml | 2 +-
tests/integration/jersey-2776/pom.xml | 2 +-
tests/integration/jersey-2794/pom.xml | 2 +-
tests/integration/jersey-2846/pom.xml | 2 +-
tests/integration/jersey-2878/pom.xml | 2 +-
tests/integration/jersey-2892/pom.xml | 2 +-
tests/integration/jersey-3662/pom.xml | 2 +-
tests/integration/jersey-3670/pom.xml | 2 +-
tests/integration/jersey-3796/pom.xml | 2 +-
tests/integration/jersey-3992/pom.xml | 2 +-
tests/integration/jersey-4003/pom.xml | 2 +-
tests/integration/jersey-4099/pom.xml | 2 +-
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 2 +-
tests/integration/jersey-4542/pom.xml | 2 +-
tests/integration/jersey-4697/pom.xml | 2 +-
tests/integration/jersey-4722/pom.xml | 2 +-
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 2 +-
tests/integration/jetty-response-close/pom.xml | 2 +-
tests/integration/microprofile/config/helidon/pom.xml | 2 +-
tests/integration/microprofile/config/pom.xml | 2 +-
tests/integration/microprofile/config/webapp/pom.xml | 2 +-
tests/integration/microprofile/pom.xml | 2 +-
tests/integration/microprofile/rest-client/pom.xml | 2 +-
.../microprofile/rest-client14-compatibility/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/portability-jersey-1/pom.xml | 2 +-
tests/integration/portability-jersey-2/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 2 +-
tests/integration/reactive-streams/sse/pom.xml | 2 +-
tests/integration/security-digest/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 2 +-
tests/integration/servlet-2.5-filter/pom.xml | 2 +-
tests/integration/servlet-2.5-inflector-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-2/pom.xml | 2 +-
tests/integration/servlet-2.5-init-3/pom.xml | 2 +-
tests/integration/servlet-2.5-init-4/pom.xml | 2 +-
tests/integration/servlet-2.5-init-5/pom.xml | 2 +-
tests/integration/servlet-2.5-init-6/pom.xml | 2 +-
tests/integration/servlet-2.5-init-7/pom.xml | 2 +-
tests/integration/servlet-2.5-init-8/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-1/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-2/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-3/pom.xml | 2 +-
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 2 +-
tests/integration/servlet-3-chunked-io/pom.xml | 2 +-
tests/integration/servlet-3-filter/pom.xml | 2 +-
tests/integration/servlet-3-gf-async/pom.xml | 2 +-
tests/integration/servlet-3-inflector-1/pom.xml | 2 +-
tests/integration/servlet-3-init-1/pom.xml | 2 +-
tests/integration/servlet-3-init-2/pom.xml | 2 +-
tests/integration/servlet-3-init-3/pom.xml | 2 +-
tests/integration/servlet-3-init-4/pom.xml | 2 +-
tests/integration/servlet-3-init-5/pom.xml | 2 +-
tests/integration/servlet-3-init-6/pom.xml | 2 +-
tests/integration/servlet-3-init-7/pom.xml | 2 +-
tests/integration/servlet-3-init-8/pom.xml | 2 +-
tests/integration/servlet-3-init-9/pom.xml | 2 +-
tests/integration/servlet-3-init-provider/pom.xml | 2 +-
tests/integration/servlet-3-params/pom.xml | 2 +-
tests/integration/servlet-3-sse-1/pom.xml | 2 +-
tests/integration/servlet-4.0-mvc-1/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 2 +-
tests/integration/sonar-test/pom.xml | 2 +-
tests/integration/spring4/pom.xml | 2 +-
tests/integration/spring5/pom.xml | 2 +-
tests/integration/tracing-support/pom.xml | 2 +-
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 2 +-
tests/mem-leaks/redeployment/pom.xml | 2 +-
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 4 ++--
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment/redeployment-threadlocals-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 2 +-
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 2 +-
tests/osgi/functional/pom.xml | 2 +-
tests/osgi/pom.xml | 2 +-
tests/performance/benchmarks/pom.xml | 2 +-
tests/performance/pom.xml | 2 +-
tests/performance/runners/jersey-grizzly-runner/pom.xml | 2 +-
tests/performance/runners/pom.xml | 2 +-
tests/performance/test-cases/assemblies/pom.xml | 2 +-
tests/performance/test-cases/filter-dynamic/pom.xml | 2 +-
tests/performance/test-cases/filter-global/pom.xml | 2 +-
tests/performance/test-cases/filter-name/pom.xml | 2 +-
tests/performance/test-cases/interceptor-dynamic/pom.xml | 2 +-
tests/performance/test-cases/interceptor-global/pom.xml | 2 +-
tests/performance/test-cases/interceptor-name/pom.xml | 2 +-
tests/performance/test-cases/mbw-custom-provider/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-jackson/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-moxy/pom.xml | 2 +-
tests/performance/test-cases/mbw-kryo/pom.xml | 2 +-
tests/performance/test-cases/mbw-text-plain/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 2 +-
tests/performance/test-cases/param-srl/pom.xml | 2 +-
tests/performance/test-cases/pom.xml | 2 +-
tests/performance/test-cases/proxy-injection/pom.xml | 2 +-
tests/performance/tools/pom.xml | 2 +-
tests/pom.xml | 2 +-
tests/stress/pom.xml | 2 +-
376 files changed, 377 insertions(+), 377 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index 7fd33a49838..01899fa895c 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 2.37-SNAPSHOT
+ 2.37
jersey-example-java8-webapp
diff --git a/archetypes/jersey-heroku-webapp/pom.xml b/archetypes/jersey-heroku-webapp/pom.xml
index 447f2f3c5ea..c62a4871e46 100644
--- a/archetypes/jersey-heroku-webapp/pom.xml
+++ b/archetypes/jersey-heroku-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 2.37-SNAPSHOT
+ 2.37
maven-archetype
diff --git a/archetypes/jersey-quickstart-grizzly2/pom.xml b/archetypes/jersey-quickstart-grizzly2/pom.xml
index ad185f3ffe4..c1092ff8685 100644
--- a/archetypes/jersey-quickstart-grizzly2/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 2.37-SNAPSHOT
+ 2.37
jersey-quickstart-grizzly2
maven-archetype
diff --git a/archetypes/jersey-quickstart-webapp/pom.xml b/archetypes/jersey-quickstart-webapp/pom.xml
index e15e8c0c35b..6a5128ece77 100644
--- a/archetypes/jersey-quickstart-webapp/pom.xml
+++ b/archetypes/jersey-quickstart-webapp/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 2.37-SNAPSHOT
+ 2.37
4.0.0
maven-archetype
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index f61b50732ab..a05709cb036 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.archetypes
diff --git a/bom/pom.xml b/bom/pom.xml
index 0cd67c4b8c9..ab1ca376803 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,7 +30,7 @@
org.glassfish.jersey
jersey-bom
- 2.37-SNAPSHOT
+ 2.37
pom
jersey-bom
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index 5306e7eb31e..2db2231dc9a 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 2.37-SNAPSHOT
+ 2.37
apidocs
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index 915995c6cef..455f01ced8e 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.bundles
project
- 2.37-SNAPSHOT
+ 2.37
jersey-examples
diff --git a/bundles/jaxrs-ri/pom.xml b/bundles/jaxrs-ri/pom.xml
index c3d1801abc5..6dab7695908 100644
--- a/bundles/jaxrs-ri/pom.xml
+++ b/bundles/jaxrs-ri/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 2.37-SNAPSHOT
+ 2.37
jaxrs-ri
diff --git a/bundles/pom.xml b/bundles/pom.xml
index 0e20fcdbb4e..f6abf5d2872 100644
--- a/bundles/pom.xml
+++ b/bundles/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.bundles
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index c5e08efa662..95af1e26806 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 2.37-SNAPSHOT
+ 2.37
jersey-apache-connector
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
index 6ff296597ad..bd53d6af67e 100644
--- a/connectors/apache5-connector/pom.xml
+++ b/connectors/apache5-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 2.37-SNAPSHOT
+ 2.37
jersey-apache5-connector
diff --git a/connectors/grizzly-connector/pom.xml b/connectors/grizzly-connector/pom.xml
index 4c373f28dc9..981f33dbc94 100644
--- a/connectors/grizzly-connector/pom.xml
+++ b/connectors/grizzly-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 2.37-SNAPSHOT
+ 2.37
jersey-grizzly-connector
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index 5767a628233..e51fcefa24c 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.connectors
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/connectors/jdk-connector/pom.xml b/connectors/jdk-connector/pom.xml
index e5a5d6dceda..258db509eec 100644
--- a/connectors/jdk-connector/pom.xml
+++ b/connectors/jdk-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 2.37-SNAPSHOT
+ 2.37
jersey-jdk-connector
diff --git a/connectors/jetty-connector/pom.xml b/connectors/jetty-connector/pom.xml
index ea9db625e59..bd968e43881 100644
--- a/connectors/jetty-connector/pom.xml
+++ b/connectors/jetty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 2.37-SNAPSHOT
+ 2.37
jersey-jetty-connector
diff --git a/connectors/netty-connector/pom.xml b/connectors/netty-connector/pom.xml
index d6cfecdfc0a..2667358e185 100644
--- a/connectors/netty-connector/pom.xml
+++ b/connectors/netty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 2.37-SNAPSHOT
+ 2.37
jersey-netty-connector
diff --git a/connectors/pom.xml b/connectors/pom.xml
index 7a698c3c6ad..629b101f151 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.connectors
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index a7c8e407e94..1227ef4b208 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers.glassfish
project
- 2.37-SNAPSHOT
+ 2.37
jersey-gf-ejb
diff --git a/containers/glassfish/pom.xml b/containers/glassfish/pom.xml
index e6e59445ba7..54bf68ba67d 100644
--- a/containers/glassfish/pom.xml
+++ b/containers/glassfish/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.containers.glassfish
diff --git a/containers/grizzly2-http/pom.xml b/containers/grizzly2-http/pom.xml
index 2257a8a8771..82d4ade5888 100644
--- a/containers/grizzly2-http/pom.xml
+++ b/containers/grizzly2-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-container-grizzly2-http
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index 42b40e7a549..7d84a9ebdf2 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-container-grizzly2-servlet
diff --git a/containers/jdk-http/pom.xml b/containers/jdk-http/pom.xml
index 6ee66df4d0b..ecd65cd9ef4 100644
--- a/containers/jdk-http/pom.xml
+++ b/containers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-container-jdk-http
diff --git a/containers/jersey-servlet-core/pom.xml b/containers/jersey-servlet-core/pom.xml
index dd4db7b6e99..8019ca1062b 100644
--- a/containers/jersey-servlet-core/pom.xml
+++ b/containers/jersey-servlet-core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-container-servlet-core
diff --git a/containers/jersey-servlet/pom.xml b/containers/jersey-servlet/pom.xml
index 7b5479e9458..cc03dd0be8c 100644
--- a/containers/jersey-servlet/pom.xml
+++ b/containers/jersey-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-container-servlet
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index bd07c6c8cf4..ae2389e3ce6 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.containers
- 2.37-SNAPSHOT
+ 2.37
jersey-container-jetty-http
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 6bb32453bc8..7926b1a99d1 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-container-jetty-servlet
diff --git a/containers/netty-http/pom.xml b/containers/netty-http/pom.xml
index bb44c1e0bc2..c99a6686872 100644
--- a/containers/netty-http/pom.xml
+++ b/containers/netty-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-container-netty-http
diff --git a/containers/pom.xml b/containers/pom.xml
index 99acf960588..4a45e68388f 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.containers
diff --git a/containers/simple-http/pom.xml b/containers/simple-http/pom.xml
index a3e30c14000..ab9fa68fb77 100644
--- a/containers/simple-http/pom.xml
+++ b/containers/simple-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-container-simple-http
diff --git a/core-client/pom.xml b/core-client/pom.xml
index 5f4bbcb75f8..35bab5a6c68 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.core
diff --git a/core-common/pom.xml b/core-common/pom.xml
index fcbd51abe1a..9c9c658ac85 100644
--- a/core-common/pom.xml
+++ b/core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.core
diff --git a/core-server/pom.xml b/core-server/pom.xml
index b550b3f8913..4ba86f1ed39 100644
--- a/core-server/pom.xml
+++ b/core-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.core
diff --git a/docs/pom.xml b/docs/pom.xml
index 1a5b8bfe531..fbd5884b948 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
jersey-documentation
pom
diff --git a/examples/assemblies/pom.xml b/examples/assemblies/pom.xml
index a3bb7f91ca4..3c1b2a92d56 100644
--- a/examples/assemblies/pom.xml
+++ b/examples/assemblies/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
assemblies
diff --git a/examples/bookmark-em/pom.xml b/examples/bookmark-em/pom.xml
index d30d5f063b3..897b66afd61 100644
--- a/examples/bookmark-em/pom.xml
+++ b/examples/bookmark-em/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
bookmark-em
diff --git a/examples/bookmark/pom.xml b/examples/bookmark/pom.xml
index b5e704d8d9d..76e0fe69a65 100644
--- a/examples/bookmark/pom.xml
+++ b/examples/bookmark/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
bookmark
diff --git a/examples/bookstore-webapp/pom.xml b/examples/bookstore-webapp/pom.xml
index ff2ba0b04c9..c33eb9a17fe 100644
--- a/examples/bookstore-webapp/pom.xml
+++ b/examples/bookstore-webapp/pom.xml
@@ -35,7 +35,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
bookstore-webapp
diff --git a/examples/cdi-webapp/pom.xml b/examples/cdi-webapp/pom.xml
index 5dff92dc2b9..d8bb7d4d2c7 100644
--- a/examples/cdi-webapp/pom.xml
+++ b/examples/cdi-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
cdi-webapp
diff --git a/examples/clipboard-programmatic/pom.xml b/examples/clipboard-programmatic/pom.xml
index faddd30cf6c..7fbb9235c13 100644
--- a/examples/clipboard-programmatic/pom.xml
+++ b/examples/clipboard-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
clipboard-programmatic
diff --git a/examples/clipboard/pom.xml b/examples/clipboard/pom.xml
index 270dc4883ab..cb446be180a 100644
--- a/examples/clipboard/pom.xml
+++ b/examples/clipboard/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
clipboard
diff --git a/examples/declarative-linking/pom.xml b/examples/declarative-linking/pom.xml
index d86abd5d330..85ea1f04b21 100644
--- a/examples/declarative-linking/pom.xml
+++ b/examples/declarative-linking/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
declarative-linking
diff --git a/examples/entity-filtering-security/pom.xml b/examples/entity-filtering-security/pom.xml
index 8021acd0c8f..8fa15d39001 100644
--- a/examples/entity-filtering-security/pom.xml
+++ b/examples/entity-filtering-security/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
entity-filtering-security
diff --git a/examples/entity-filtering-selectable/pom.xml b/examples/entity-filtering-selectable/pom.xml
index 910801b2131..6b91ce03d28 100644
--- a/examples/entity-filtering-selectable/pom.xml
+++ b/examples/entity-filtering-selectable/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
entity-filtering-selectable
diff --git a/examples/entity-filtering/pom.xml b/examples/entity-filtering/pom.xml
index 56775016ffc..4febee4843a 100644
--- a/examples/entity-filtering/pom.xml
+++ b/examples/entity-filtering/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
entity-filtering
diff --git a/examples/exception-mapping/pom.xml b/examples/exception-mapping/pom.xml
index a875568814e..c3aaa9a3530 100644
--- a/examples/exception-mapping/pom.xml
+++ b/examples/exception-mapping/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
exception-mapping
diff --git a/examples/extended-wadl-webapp/pom.xml b/examples/extended-wadl-webapp/pom.xml
index 9b381ec77d8..3b11d1d4581 100644
--- a/examples/extended-wadl-webapp/pom.xml
+++ b/examples/extended-wadl-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
extended-wadl-webapp
diff --git a/examples/freemarker-webapp/pom.xml b/examples/freemarker-webapp/pom.xml
index 4c99467c99d..c456696f556 100644
--- a/examples/freemarker-webapp/pom.xml
+++ b/examples/freemarker-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
freemarker-webapp
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index e6b1ca883c7..05c20c69e0c 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
groovy
jar
diff --git a/examples/helloworld-benchmark/pom.xml b/examples/helloworld-benchmark/pom.xml
index 73687ad1625..138f0b1bfa6 100644
--- a/examples/helloworld-benchmark/pom.xml
+++ b/examples/helloworld-benchmark/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
helloworld-benchmark
diff --git a/examples/helloworld-cdi2-se/pom.xml b/examples/helloworld-cdi2-se/pom.xml
index 4f6c7e16b13..3c7cee169ff 100644
--- a/examples/helloworld-cdi2-se/pom.xml
+++ b/examples/helloworld-cdi2-se/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
helloworld-cdi2-se
diff --git a/examples/helloworld-netty/pom.xml b/examples/helloworld-netty/pom.xml
index 64b4e466889..794d4371485 100644
--- a/examples/helloworld-netty/pom.xml
+++ b/examples/helloworld-netty/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
helloworld-netty
diff --git a/examples/helloworld-programmatic/pom.xml b/examples/helloworld-programmatic/pom.xml
index f87cbc15444..4d1c4d33675 100644
--- a/examples/helloworld-programmatic/pom.xml
+++ b/examples/helloworld-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
helloworld-programmatic
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index d6b00f9edd6..2ea65c4dd33 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
helloworld-pure-jax-rs
diff --git a/examples/helloworld-spring-annotations/pom.xml b/examples/helloworld-spring-annotations/pom.xml
index 68afcf96a80..69bae30640f 100644
--- a/examples/helloworld-spring-annotations/pom.xml
+++ b/examples/helloworld-spring-annotations/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 2.37-SNAPSHOT
+ 2.37
4.0.0
helloworld-spring-annotations
diff --git a/examples/helloworld-spring-webapp/pom.xml b/examples/helloworld-spring-webapp/pom.xml
index e1e9c0aa5bb..815ffa49c8e 100644
--- a/examples/helloworld-spring-webapp/pom.xml
+++ b/examples/helloworld-spring-webapp/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
helloworld-spring-webapp
diff --git a/examples/helloworld-webapp/pom.xml b/examples/helloworld-webapp/pom.xml
index 64732d4f23c..ffb3ffe2390 100644
--- a/examples/helloworld-webapp/pom.xml
+++ b/examples/helloworld-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
helloworld-webapp
diff --git a/examples/helloworld-weld/pom.xml b/examples/helloworld-weld/pom.xml
index ac6d15e7d37..08892dfa637 100644
--- a/examples/helloworld-weld/pom.xml
+++ b/examples/helloworld-weld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
helloworld-weld
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index 54104a81bdd..3b35c3a8a16 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
helloworld
diff --git a/examples/http-patch/pom.xml b/examples/http-patch/pom.xml
index 7154f052732..b9f203537b1 100644
--- a/examples/http-patch/pom.xml
+++ b/examples/http-patch/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
http-patch
diff --git a/examples/http-trace/pom.xml b/examples/http-trace/pom.xml
index 368e51438ae..71cb7a2ef00 100644
--- a/examples/http-trace/pom.xml
+++ b/examples/http-trace/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
http-trace
diff --git a/examples/https-clientserver-grizzly/pom.xml b/examples/https-clientserver-grizzly/pom.xml
index bd8536d5136..39fada13519 100644
--- a/examples/https-clientserver-grizzly/pom.xml
+++ b/examples/https-clientserver-grizzly/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
https-clientserver-grizzly
diff --git a/examples/https-server-glassfish/pom.xml b/examples/https-server-glassfish/pom.xml
index 736135ecf8e..78517563a65 100644
--- a/examples/https-server-glassfish/pom.xml
+++ b/examples/https-server-glassfish/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
https-server-glassfish
diff --git a/examples/java8-webapp/pom.xml b/examples/java8-webapp/pom.xml
index 978e8b58b3e..1bf044f1f7f 100644
--- a/examples/java8-webapp/pom.xml
+++ b/examples/java8-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
java8-webapp
diff --git a/examples/jaxb/pom.xml b/examples/jaxb/pom.xml
index d9988d3dddf..b07cb8f90c9 100644
--- a/examples/jaxb/pom.xml
+++ b/examples/jaxb/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
jaxb
diff --git a/examples/jaxrs-types-injection/pom.xml b/examples/jaxrs-types-injection/pom.xml
index 8f38727eb84..4ae2da71047 100644
--- a/examples/jaxrs-types-injection/pom.xml
+++ b/examples/jaxrs-types-injection/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
jaxrs-types-injection
diff --git a/examples/jersey-ejb/pom.xml b/examples/jersey-ejb/pom.xml
index 1ae8325b395..b29021006f6 100644
--- a/examples/jersey-ejb/pom.xml
+++ b/examples/jersey-ejb/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
jersey-ejb
diff --git a/examples/json-binding-webapp/pom.xml b/examples/json-binding-webapp/pom.xml
index daa3430b7d0..fefaedb4a86 100644
--- a/examples/json-binding-webapp/pom.xml
+++ b/examples/json-binding-webapp/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
json-binding-webapp
diff --git a/examples/json-jackson/pom.xml b/examples/json-jackson/pom.xml
index 705fd894ab9..3701caa8801 100644
--- a/examples/json-jackson/pom.xml
+++ b/examples/json-jackson/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
json-jackson
diff --git a/examples/json-jackson1/pom.xml b/examples/json-jackson1/pom.xml
index e4c4c77f585..ade469dee11 100644
--- a/examples/json-jackson1/pom.xml
+++ b/examples/json-jackson1/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
json-jackson1
diff --git a/examples/json-jettison/pom.xml b/examples/json-jettison/pom.xml
index 239300f848b..1248e1ff1e5 100644
--- a/examples/json-jettison/pom.xml
+++ b/examples/json-jettison/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
json-jettison
diff --git a/examples/json-moxy/pom.xml b/examples/json-moxy/pom.xml
index dc1f8240303..3a2d96a95fc 100644
--- a/examples/json-moxy/pom.xml
+++ b/examples/json-moxy/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
json-moxy
diff --git a/examples/json-processing-webapp/pom.xml b/examples/json-processing-webapp/pom.xml
index 4e10c644c93..730d98bab13 100644
--- a/examples/json-processing-webapp/pom.xml
+++ b/examples/json-processing-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
json-processing-webapp
diff --git a/examples/json-with-padding/pom.xml b/examples/json-with-padding/pom.xml
index 7052f0d3b64..aa6cf9a964e 100644
--- a/examples/json-with-padding/pom.xml
+++ b/examples/json-with-padding/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
json-with-padding
diff --git a/examples/managed-beans-webapp/pom.xml b/examples/managed-beans-webapp/pom.xml
index 20510e22106..5915f2e180d 100644
--- a/examples/managed-beans-webapp/pom.xml
+++ b/examples/managed-beans-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
managed-beans-webapp
diff --git a/examples/managed-client-simple-webapp/pom.xml b/examples/managed-client-simple-webapp/pom.xml
index 6e08ed59767..33efaea651d 100644
--- a/examples/managed-client-simple-webapp/pom.xml
+++ b/examples/managed-client-simple-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
managed-client-simple-webapp
diff --git a/examples/managed-client-webapp/pom.xml b/examples/managed-client-webapp/pom.xml
index 00d1d674d2b..41ee20a38f5 100644
--- a/examples/managed-client-webapp/pom.xml
+++ b/examples/managed-client-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
managed-client-webapp
diff --git a/examples/managed-client/pom.xml b/examples/managed-client/pom.xml
index ee5483faad2..a4f0b1f0619 100644
--- a/examples/managed-client/pom.xml
+++ b/examples/managed-client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
managed-client
diff --git a/examples/multipart-webapp/pom.xml b/examples/multipart-webapp/pom.xml
index 10795156845..7785f04893b 100644
--- a/examples/multipart-webapp/pom.xml
+++ b/examples/multipart-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
multipart-webapp
diff --git a/examples/oauth-client-twitter/pom.xml b/examples/oauth-client-twitter/pom.xml
index ca2d01725b8..8dc4be4e679 100644
--- a/examples/oauth-client-twitter/pom.xml
+++ b/examples/oauth-client-twitter/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index d7795e9c49e..6bf97ebb255 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
open-tracing
diff --git a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
index 2640d910a63..3840b39c726 100644
--- a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
index 91d2a1842a7..29522bcb641 100644
--- a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index 8150efefde4..f5f44c53bf1 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
index 9f3ccf021aa..c5072549e12 100644
--- a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/pom.xml b/examples/osgi-helloworld-webapp/pom.xml
index c6fa87b27e6..f0c233ee2d7 100644
--- a/examples/osgi-helloworld-webapp/pom.xml
+++ b/examples/osgi-helloworld-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/war-bundle/pom.xml b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
index d4e828428d8..d66dc6a97fd 100644
--- a/examples/osgi-helloworld-webapp/war-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-http-service/bundle/pom.xml b/examples/osgi-http-service/bundle/pom.xml
index 941376a8564..3cd1039d7f6 100644
--- a/examples/osgi-http-service/bundle/pom.xml
+++ b/examples/osgi-http-service/bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-http-service
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.examples.osgi-http-service
diff --git a/examples/osgi-http-service/functional-test/pom.xml b/examples/osgi-http-service/functional-test/pom.xml
index 144f0af641f..01d38f66cc5 100644
--- a/examples/osgi-http-service/functional-test/pom.xml
+++ b/examples/osgi-http-service/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-http-service
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.examples.osgi-http-service
diff --git a/examples/osgi-http-service/pom.xml b/examples/osgi-http-service/pom.xml
index 5036a618245..af031787c75 100644
--- a/examples/osgi-http-service/pom.xml
+++ b/examples/osgi-http-service/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
osgi-http-service
diff --git a/examples/pom.xml b/examples/pom.xml
index 760e1b89bf9..6606fde3450 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
diff --git a/examples/reload/pom.xml b/examples/reload/pom.xml
index d25ab1edf73..9b9d850687f 100644
--- a/examples/reload/pom.xml
+++ b/examples/reload/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
reload
diff --git a/examples/rx-client-webapp/pom.xml b/examples/rx-client-webapp/pom.xml
index bbb4956a999..ff178e17be7 100644
--- a/examples/rx-client-webapp/pom.xml
+++ b/examples/rx-client-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
rx-client-webapp
diff --git a/examples/server-async-managed/pom.xml b/examples/server-async-managed/pom.xml
index 08a36c78672..b3b71375a4d 100644
--- a/examples/server-async-managed/pom.xml
+++ b/examples/server-async-managed/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
server-async-managed
diff --git a/examples/server-async-standalone/client/pom.xml b/examples/server-async-standalone/client/pom.xml
index 1f3e958e8b8..3264f957919 100644
--- a/examples/server-async-standalone/client/pom.xml
+++ b/examples/server-async-standalone/client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 2.37-SNAPSHOT
+ 2.37
server-async-standalone-client
diff --git a/examples/server-async-standalone/pom.xml b/examples/server-async-standalone/pom.xml
index d5d7e273e70..180faa5702d 100644
--- a/examples/server-async-standalone/pom.xml
+++ b/examples/server-async-standalone/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
server-async-standalone
diff --git a/examples/server-async-standalone/webapp/pom.xml b/examples/server-async-standalone/webapp/pom.xml
index e9cedac2fb8..854bd950b5d 100644
--- a/examples/server-async-standalone/webapp/pom.xml
+++ b/examples/server-async-standalone/webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 2.37-SNAPSHOT
+ 2.37
server-async-standalone-webapp
diff --git a/examples/server-async/pom.xml b/examples/server-async/pom.xml
index fdb483607ed..c5cf297484f 100644
--- a/examples/server-async/pom.xml
+++ b/examples/server-async/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
server-async
diff --git a/examples/server-sent-events-jaxrs/pom.xml b/examples/server-sent-events-jaxrs/pom.xml
index 1ab814edaa6..a852cb45ba0 100644
--- a/examples/server-sent-events-jaxrs/pom.xml
+++ b/examples/server-sent-events-jaxrs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
server-sent-events-jaxrs
diff --git a/examples/server-sent-events-jersey/pom.xml b/examples/server-sent-events-jersey/pom.xml
index bf7ca29c23c..9e9af16c049 100644
--- a/examples/server-sent-events-jersey/pom.xml
+++ b/examples/server-sent-events-jersey/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
server-sent-events-jersey
diff --git a/examples/servlet3-webapp/pom.xml b/examples/servlet3-webapp/pom.xml
index 018cb9a0bf5..44c2f63c330 100644
--- a/examples/servlet3-webapp/pom.xml
+++ b/examples/servlet3-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
servlet3-webapp
diff --git a/examples/simple-console/pom.xml b/examples/simple-console/pom.xml
index 1d7fbae5aac..2479ba2f47b 100644
--- a/examples/simple-console/pom.xml
+++ b/examples/simple-console/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
simple-console
diff --git a/examples/sse-item-store-jaxrs-webapp/pom.xml b/examples/sse-item-store-jaxrs-webapp/pom.xml
index cd3de9e4e20..c7993cd682c 100644
--- a/examples/sse-item-store-jaxrs-webapp/pom.xml
+++ b/examples/sse-item-store-jaxrs-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
sse-item-store-jaxrs-webapp
diff --git a/examples/sse-item-store-jersey-webapp/pom.xml b/examples/sse-item-store-jersey-webapp/pom.xml
index 0001264832c..3e566bf4ce0 100644
--- a/examples/sse-item-store-jersey-webapp/pom.xml
+++ b/examples/sse-item-store-jersey-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37-SNAPSHOT
+ 2.37
sse-item-store-jersey-webapp
diff --git a/examples/sse-twitter-aggregator/pom.xml b/examples/sse-twitter-aggregator/pom.xml
index 5fc28483ba4..c8135da29e3 100644
--- a/examples/sse-twitter-aggregator/pom.xml
+++ b/examples/sse-twitter-aggregator/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
sse-twitter-aggregator
diff --git a/examples/system-properties-example/pom.xml b/examples/system-properties-example/pom.xml
index a2276bd5402..bba6c224075 100644
--- a/examples/system-properties-example/pom.xml
+++ b/examples/system-properties-example/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
system-properties-example
diff --git a/examples/webapp-example-parent/pom.xml b/examples/webapp-example-parent/pom.xml
index 6bd18953d68..2fa2b0c10a2 100644
--- a/examples/webapp-example-parent/pom.xml
+++ b/examples/webapp-example-parent/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
webapp-example-parent
diff --git a/examples/xml-moxy/pom.xml b/examples/xml-moxy/pom.xml
index 57fcebefae3..a765b26ec86 100644
--- a/examples/xml-moxy/pom.xml
+++ b/examples/xml-moxy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 2.37-SNAPSHOT
+ 2.37
xml-moxy
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index 51d88bf1978..9ab4e3396e9 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
jersey-bean-validation
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index 705c979c40e..838df15528e 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext.cdi
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
index 19b6330bf06..3b813956736 100644
--- a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
+++ b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 2.37-SNAPSHOT
+ 2.37
jersey-cdi1x-ban-custom-hk2-binding
diff --git a/ext/cdi/jersey-cdi1x-servlet/pom.xml b/ext/cdi/jersey-cdi1x-servlet/pom.xml
index a18ea12b54d..840f1ddb8db 100644
--- a/ext/cdi/jersey-cdi1x-servlet/pom.xml
+++ b/ext/cdi/jersey-cdi1x-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 2.37-SNAPSHOT
+ 2.37
jersey-cdi1x-servlet
diff --git a/ext/cdi/jersey-cdi1x-transaction/pom.xml b/ext/cdi/jersey-cdi1x-transaction/pom.xml
index 7d78cc07d8d..18ac4dcb9ec 100644
--- a/ext/cdi/jersey-cdi1x-transaction/pom.xml
+++ b/ext/cdi/jersey-cdi1x-transaction/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 2.37-SNAPSHOT
+ 2.37
jersey-cdi1x-transaction
diff --git a/ext/cdi/jersey-cdi1x-validation/pom.xml b/ext/cdi/jersey-cdi1x-validation/pom.xml
index 85f6771a3db..adf0ea88072 100644
--- a/ext/cdi/jersey-cdi1x-validation/pom.xml
+++ b/ext/cdi/jersey-cdi1x-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 2.37-SNAPSHOT
+ 2.37
jersey-cdi1x-validation
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index dfe9675d1d5..4b6c138ec45 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 2.37-SNAPSHOT
+ 2.37
jersey-cdi1x
diff --git a/ext/cdi/jersey-weld2-se/pom.xml b/ext/cdi/jersey-weld2-se/pom.xml
index b8ede1a8bec..7aa0a819320 100644
--- a/ext/cdi/jersey-weld2-se/pom.xml
+++ b/ext/cdi/jersey-weld2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 2.37-SNAPSHOT
+ 2.37
jersey-weld2-se
diff --git a/ext/cdi/pom.xml b/ext/cdi/pom.xml
index de66badd015..56644bc83bb 100644
--- a/ext/cdi/pom.xml
+++ b/ext/cdi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.ext.cdi
diff --git a/ext/entity-filtering/pom.xml b/ext/entity-filtering/pom.xml
index 3ad36f8c167..63478a44d7b 100644
--- a/ext/entity-filtering/pom.xml
+++ b/ext/entity-filtering/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
jersey-entity-filtering
diff --git a/ext/metainf-services/pom.xml b/ext/metainf-services/pom.xml
index 124ed06b104..66781aa7729 100644
--- a/ext/metainf-services/pom.xml
+++ b/ext/metainf-services/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
jersey-metainf-services
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index ce27dd6b480..a474e01f551 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext.microprofile
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index 62001d9fbf4..e4b5082cae9 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.ext.microprofile
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/ext/microprofile/pom.xml b/ext/microprofile/pom.xml
index 8bfd115ee01..7c587026e34 100644
--- a/ext/microprofile/pom.xml
+++ b/ext/microprofile/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/ext/mvc-bean-validation/pom.xml b/ext/mvc-bean-validation/pom.xml
index c1880dd0ff1..021d9c93bf3 100644
--- a/ext/mvc-bean-validation/pom.xml
+++ b/ext/mvc-bean-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
jersey-mvc-bean-validation
diff --git a/ext/mvc-freemarker/pom.xml b/ext/mvc-freemarker/pom.xml
index 4192d52779e..d60cdc2484c 100644
--- a/ext/mvc-freemarker/pom.xml
+++ b/ext/mvc-freemarker/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
jersey-mvc-freemarker
diff --git a/ext/mvc-jsp/pom.xml b/ext/mvc-jsp/pom.xml
index c106cf5c1e1..eff5cae8b27 100644
--- a/ext/mvc-jsp/pom.xml
+++ b/ext/mvc-jsp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
jersey-mvc-jsp
diff --git a/ext/mvc-mustache/pom.xml b/ext/mvc-mustache/pom.xml
index f2364f62cb5..f4eed323b50 100644
--- a/ext/mvc-mustache/pom.xml
+++ b/ext/mvc-mustache/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
jersey-mvc-mustache
diff --git a/ext/mvc/pom.xml b/ext/mvc/pom.xml
index 090526fba3c..3493de69b9c 100644
--- a/ext/mvc/pom.xml
+++ b/ext/mvc/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
jersey-mvc
diff --git a/ext/pom.xml b/ext/pom.xml
index cf8b3523547..6a41f777fc5 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.ext
diff --git a/ext/proxy-client/pom.xml b/ext/proxy-client/pom.xml
index 78383ac6afc..b997fc14e5d 100644
--- a/ext/proxy-client/pom.xml
+++ b/ext/proxy-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
jersey-proxy-client
diff --git a/ext/rx/pom.xml b/ext/rx/pom.xml
index c91b24e9361..063b279082a 100644
--- a/ext/rx/pom.xml
+++ b/ext/rx/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.ext.rx
diff --git a/ext/rx/rx-client-guava/pom.xml b/ext/rx/rx-client-guava/pom.xml
index 260ac946208..35d2f0824c1 100644
--- a/ext/rx/rx-client-guava/pom.xml
+++ b/ext/rx/rx-client-guava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 2.37-SNAPSHOT
+ 2.37
jersey-rx-client-guava
diff --git a/ext/rx/rx-client-rxjava/pom.xml b/ext/rx/rx-client-rxjava/pom.xml
index d17d1796625..60a7c694854 100644
--- a/ext/rx/rx-client-rxjava/pom.xml
+++ b/ext/rx/rx-client-rxjava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 2.37-SNAPSHOT
+ 2.37
jersey-rx-client-rxjava
diff --git a/ext/rx/rx-client-rxjava2/pom.xml b/ext/rx/rx-client-rxjava2/pom.xml
index ff2b8a5b779..7a0cdb79fc7 100644
--- a/ext/rx/rx-client-rxjava2/pom.xml
+++ b/ext/rx/rx-client-rxjava2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 2.37-SNAPSHOT
+ 2.37
jersey-rx-client-rxjava2
diff --git a/ext/servlet-portability/pom.xml b/ext/servlet-portability/pom.xml
index 17294170aea..6732e4b9925 100644
--- a/ext/servlet-portability/pom.xml
+++ b/ext/servlet-portability/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 2.37-SNAPSHOT
+ 2.37
jersey-servlet-portability
diff --git a/ext/spring4/pom.xml b/ext/spring4/pom.xml
index 8f5b59e9c88..fd0248267e5 100644
--- a/ext/spring4/pom.xml
+++ b/ext/spring4/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
jersey-spring4
diff --git a/ext/spring5/pom.xml b/ext/spring5/pom.xml
index ef661704e82..a8b6b02089d 100644
--- a/ext/spring5/pom.xml
+++ b/ext/spring5/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 2.37-SNAPSHOT
+ 2.37
jersey-spring5
diff --git a/ext/wadl-doclet/pom.xml b/ext/wadl-doclet/pom.xml
index fed5f9b2758..026e4c6fd9d 100644
--- a/ext/wadl-doclet/pom.xml
+++ b/ext/wadl-doclet/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext
- 2.37-SNAPSHOT
+ 2.37
4.0.0
jersey-wadl-doclet
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index 2eb3cf78c14..9505689c153 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 2.37-SNAPSHOT
+ 2.37
jersey-cdi-inject-weld
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index 52efc853918..9029dbbeb9c 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.ext
diff --git a/incubator/gae-integration/pom.xml b/incubator/gae-integration/pom.xml
index a76bf542e7b..8e43a731268 100644
--- a/incubator/gae-integration/pom.xml
+++ b/incubator/gae-integration/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 2.37-SNAPSHOT
+ 2.37
jersey-gae-integration
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index db567645179..e1a69b1e4a5 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.media
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index 5246bdbd3bc..f65379a697d 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.media
diff --git a/incubator/open-tracing/pom.xml b/incubator/open-tracing/pom.xml
index d29b5b11461..3c1ba7fb758 100644
--- a/incubator/open-tracing/pom.xml
+++ b/incubator/open-tracing/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.incubator
diff --git a/incubator/pom.xml b/incubator/pom.xml
index fcfc9178bbf..0d92b431e6a 100644
--- a/incubator/pom.xml
+++ b/incubator/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.incubator
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index 060d0c2534c..c11924d9461 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 2.37-SNAPSHOT
+ 2.37
jersey-cdi2-se
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index 9451adcdf30..d61a2de93cd 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 2.37-SNAPSHOT
+ 2.37
jersey-hk2
diff --git a/inject/pom.xml b/inject/pom.xml
index 5d8d54293b6..9baff4b17a0 100644
--- a/inject/pom.xml
+++ b/inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.inject
diff --git a/media/jaxb/pom.xml b/media/jaxb/pom.xml
index 109c69a5669..03f8c5a639b 100644
--- a/media/jaxb/pom.xml
+++ b/media/jaxb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37-SNAPSHOT
+ 2.37
jersey-media-jaxb
diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
index 08077a6beba..21897850b0a 100644
--- a/media/json-binding/pom.xml
+++ b/media/json-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37-SNAPSHOT
+ 2.37
jersey-media-json-binding
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index d1b45ea9677..45ff0f3061a 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37-SNAPSHOT
+ 2.37
jersey-media-json-gson
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index d495846c99a..5967ba18d7b 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37-SNAPSHOT
+ 2.37
jersey-media-json-jackson
diff --git a/media/json-jackson1/pom.xml b/media/json-jackson1/pom.xml
index 1e16c118c35..a911644aae9 100644
--- a/media/json-jackson1/pom.xml
+++ b/media/json-jackson1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37-SNAPSHOT
+ 2.37
jersey-media-json-jackson1
diff --git a/media/json-jettison/pom.xml b/media/json-jettison/pom.xml
index 73193b02305..38de36935ad 100644
--- a/media/json-jettison/pom.xml
+++ b/media/json-jettison/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37-SNAPSHOT
+ 2.37
jersey-media-json-jettison
diff --git a/media/json-processing/pom.xml b/media/json-processing/pom.xml
index e52ffcad40d..fee7d035c1c 100644
--- a/media/json-processing/pom.xml
+++ b/media/json-processing/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37-SNAPSHOT
+ 2.37
jersey-media-json-processing
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index 13e55c7b707..b88514e591d 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37-SNAPSHOT
+ 2.37
jersey-media-moxy
diff --git a/media/multipart/pom.xml b/media/multipart/pom.xml
index 5e7293952e9..fc6db99a82b 100644
--- a/media/multipart/pom.xml
+++ b/media/multipart/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37-SNAPSHOT
+ 2.37
jersey-media-multipart
diff --git a/media/pom.xml b/media/pom.xml
index 4f0d77f2371..d91692ef78f 100644
--- a/media/pom.xml
+++ b/media/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.media
diff --git a/media/sse/pom.xml b/media/sse/pom.xml
index 6e9f660789f..7d74fd6f210 100644
--- a/media/sse/pom.xml
+++ b/media/sse/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37-SNAPSHOT
+ 2.37
jersey-media-sse
diff --git a/pom.xml b/pom.xml
index 7b5da0af6b5..dce893ff231 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
org.glassfish.jersey
project
pom
- 2.37-SNAPSHOT
+ 2.37
jersey
Eclipse Jersey is the open source (under dual EPL+GPL license) JAX-RS 2.1 (JSR 370)
diff --git a/security/oauth1-client/pom.xml b/security/oauth1-client/pom.xml
index ee8001fbc06..228b3fc566a 100644
--- a/security/oauth1-client/pom.xml
+++ b/security/oauth1-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.security
project
- 2.37-SNAPSHOT
+ 2.37
oauth1-client
diff --git a/security/oauth1-server/pom.xml b/security/oauth1-server/pom.xml
index e3cab9220c8..7b62d048f4d 100644
--- a/security/oauth1-server/pom.xml
+++ b/security/oauth1-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.security
project
- 2.37-SNAPSHOT
+ 2.37
oauth1-server
diff --git a/security/oauth1-signature/pom.xml b/security/oauth1-signature/pom.xml
index df31b238116..2863748918a 100644
--- a/security/oauth1-signature/pom.xml
+++ b/security/oauth1-signature/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/security/oauth2-client/pom.xml b/security/oauth2-client/pom.xml
index 5cc5d8291dc..1384f0834f4 100644
--- a/security/oauth2-client/pom.xml
+++ b/security/oauth2-client/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/security/pom.xml b/security/pom.xml
index 24c99195747..dec8f451bb5 100644
--- a/security/pom.xml
+++ b/security/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.security
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index 6c775db43ab..eb9f2913916 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 2.37-SNAPSHOT
+ 2.37
jersey-test-framework-core
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index 83da834a48a..e3f5a652341 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 2.37-SNAPSHOT
+ 2.37
container-runner-maven-plugin
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index 714ba7e3adb..e4c0809e102 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 2.37-SNAPSHOT
+ 2.37
custom-enforcer-rules
diff --git a/test-framework/maven/pom.xml b/test-framework/maven/pom.xml
index 3811671b136..44f5f343088 100644
--- a/test-framework/maven/pom.xml
+++ b/test-framework/maven/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.test-framework.maven
diff --git a/test-framework/memleak-test-common/pom.xml b/test-framework/memleak-test-common/pom.xml
index 4821f2b9c2c..a4e4913baa9 100644
--- a/test-framework/memleak-test-common/pom.xml
+++ b/test-framework/memleak-test-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 2.37-SNAPSHOT
+ 2.37
memleak-test-common
diff --git a/test-framework/pom.xml b/test-framework/pom.xml
index 39432232ace..6d1339d50dd 100644
--- a/test-framework/pom.xml
+++ b/test-framework/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.test-framework
diff --git a/test-framework/providers/bundle/pom.xml b/test-framework/providers/bundle/pom.xml
index 7e1efbee1f2..17ebc4d21ed 100644
--- a/test-framework/providers/bundle/pom.xml
+++ b/test-framework/providers/bundle/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-test-framework-provider-bundle
diff --git a/test-framework/providers/external/pom.xml b/test-framework/providers/external/pom.xml
index 6e344be0948..983acaf925d 100644
--- a/test-framework/providers/external/pom.xml
+++ b/test-framework/providers/external/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-test-framework-provider-external
diff --git a/test-framework/providers/grizzly2/pom.xml b/test-framework/providers/grizzly2/pom.xml
index b7a00b4328f..4bf5f833ad9 100644
--- a/test-framework/providers/grizzly2/pom.xml
+++ b/test-framework/providers/grizzly2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-test-framework-provider-grizzly2
diff --git a/test-framework/providers/inmemory/pom.xml b/test-framework/providers/inmemory/pom.xml
index 89e59b6cef4..9aa81f18d84 100644
--- a/test-framework/providers/inmemory/pom.xml
+++ b/test-framework/providers/inmemory/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-test-framework-provider-inmemory
diff --git a/test-framework/providers/jdk-http/pom.xml b/test-framework/providers/jdk-http/pom.xml
index d0f2e30a249..7576e640449 100644
--- a/test-framework/providers/jdk-http/pom.xml
+++ b/test-framework/providers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-test-framework-provider-jdk-http
diff --git a/test-framework/providers/jetty/pom.xml b/test-framework/providers/jetty/pom.xml
index 7989f31ff11..267b4ee060f 100644
--- a/test-framework/providers/jetty/pom.xml
+++ b/test-framework/providers/jetty/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/test-framework/providers/netty/pom.xml b/test-framework/providers/netty/pom.xml
index 8c2e2c50ee8..1897b2dad7e 100644
--- a/test-framework/providers/netty/pom.xml
+++ b/test-framework/providers/netty/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 2.37-SNAPSHOT
+ 2.37
jersey-test-framework-provider-netty
diff --git a/test-framework/providers/pom.xml b/test-framework/providers/pom.xml
index 45074bb4fe1..9a1bc470473 100644
--- a/test-framework/providers/pom.xml
+++ b/test-framework/providers/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.test-framework.providers
diff --git a/test-framework/providers/simple/pom.xml b/test-framework/providers/simple/pom.xml
index a1780ae714f..c5c4b65716e 100644
--- a/test-framework/providers/simple/pom.xml
+++ b/test-framework/providers/simple/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/test-framework/util/pom.xml b/test-framework/util/pom.xml
index 834c04cdecb..15512ed3b7c 100644
--- a/test-framework/util/pom.xml
+++ b/test-framework/util/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 2.37-SNAPSHOT
+ 2.37
jersey-test-framework-util
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index ebfc75e6472..a1fdd8c17a4 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37-SNAPSHOT
+ 2.37
e2e-client
diff --git a/tests/e2e-core-common/pom.xml b/tests/e2e-core-common/pom.xml
index 145065ed7e5..b5e744f9a59 100644
--- a/tests/e2e-core-common/pom.xml
+++ b/tests/e2e-core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37-SNAPSHOT
+ 2.37
e2e-core-common
diff --git a/tests/e2e-entity/pom.xml b/tests/e2e-entity/pom.xml
index 7964d4b32b2..ee106aa4683 100644
--- a/tests/e2e-entity/pom.xml
+++ b/tests/e2e-entity/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37-SNAPSHOT
+ 2.37
e2e-entity
diff --git a/tests/e2e-inject/cdi-inject-weld/pom.xml b/tests/e2e-inject/cdi-inject-weld/pom.xml
index 7be753f1a18..9b3553593fb 100644
--- a/tests/e2e-inject/cdi-inject-weld/pom.xml
+++ b/tests/e2e-inject/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 2.37-SNAPSHOT
+ 2.37
e2e-inject-cdi-inject-weld
diff --git a/tests/e2e-inject/cdi2-se/pom.xml b/tests/e2e-inject/cdi2-se/pom.xml
index 63d1f7c345d..eff74ce6980 100644
--- a/tests/e2e-inject/cdi2-se/pom.xml
+++ b/tests/e2e-inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 2.37-SNAPSHOT
+ 2.37
e2e-inject-cdi2-se
diff --git a/tests/e2e-inject/hk2/pom.xml b/tests/e2e-inject/hk2/pom.xml
index 98e6c25952e..0f34099d119 100644
--- a/tests/e2e-inject/hk2/pom.xml
+++ b/tests/e2e-inject/hk2/pom.xml
@@ -23,7 +23,7 @@
e2e-inject
org.glassfish.jersey.tests
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/e2e-inject/pom.xml b/tests/e2e-inject/pom.xml
index dbabf54b0fb..1794063dfb6 100644
--- a/tests/e2e-inject/pom.xml
+++ b/tests/e2e-inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37-SNAPSHOT
+ 2.37
e2e-inject
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index 18cd6410925..4ab0c49bdc1 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37-SNAPSHOT
+ 2.37
e2e-server
diff --git a/tests/e2e-testng/pom.xml b/tests/e2e-testng/pom.xml
index 806e19505a9..694a4ca075f 100644
--- a/tests/e2e-testng/pom.xml
+++ b/tests/e2e-testng/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37-SNAPSHOT
+ 2.37
e2e-testng
diff --git a/tests/e2e/pom.xml b/tests/e2e/pom.xml
index d6f0ad9ca58..8c5ac64d11c 100644
--- a/tests/e2e/pom.xml
+++ b/tests/e2e/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37-SNAPSHOT
+ 2.37
e2e
diff --git a/tests/integration/asm/pom.xml b/tests/integration/asm/pom.xml
index 75bdf5ad309..ff2d8f65eaa 100644
--- a/tests/integration/asm/pom.xml
+++ b/tests/integration/asm/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/async-jersey-filter/pom.xml b/tests/integration/async-jersey-filter/pom.xml
index 203a65dbdf3..613ac3b9567 100644
--- a/tests/integration/async-jersey-filter/pom.xml
+++ b/tests/integration/async-jersey-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
async-jersey-filter
diff --git a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
index 64fc3595cee..a1de1d3076c 100644
--- a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
cdi-beanvalidation-webapp
diff --git a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
index 1a80e0d5870..6be5239705c 100644
--- a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
cdi-client-on-server
diff --git a/tests/integration/cdi-integration/cdi-client/pom.xml b/tests/integration/cdi-integration/cdi-client/pom.xml
index 59b01477841..d6d53a75a11 100644
--- a/tests/integration/cdi-integration/cdi-client/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
cdi-client
diff --git a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
index 4efae7438d6..6968335c212 100644
--- a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
cdi-ejb-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
index 6c00cf805ab..860c34bc942 100644
--- a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
cdi-iface-with-non-jaxrs-impl-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-log-check/pom.xml b/tests/integration/cdi-integration/cdi-log-check/pom.xml
index af590d9cd36..29e88bc4d38 100644
--- a/tests/integration/cdi-integration/cdi-log-check/pom.xml
+++ b/tests/integration/cdi-integration/cdi-log-check/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
cdi-log-check
diff --git a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
index d9efe505c69..c434891741b 100644
--- a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
+++ b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
index c805d5dcb24..7bdbe13efff 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
index f05ab0e29af..65e38d97ddd 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
index ab8ce27299f..91aa66a70be 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
cdi-multimodule
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
index 337748d098d..0194b44f33f 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
index 854a0bd4a16..8cc1c993504 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
index bbf5ca624a3..0d60bb8ea63 100644
--- a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
cdi-multipart-webapp
diff --git a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
index d0b30d45725..32b7687b816 100644
--- a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
+++ b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-singleton/pom.xml b/tests/integration/cdi-integration/cdi-singleton/pom.xml
index e79982b8bf3..816a47c2865 100644
--- a/tests/integration/cdi-integration/cdi-singleton/pom.xml
+++ b/tests/integration/cdi-integration/cdi-singleton/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
index d4dec61543a..e6bd39b0d4e 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
cdi-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
index c3183740882..fd95acb5ef0 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
cdi-with-jersey-injection-custom-cfg-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
index 098501b98ac..8b808707501 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
cdi-with-jersey-injection-custom-hk2-banned-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
index 52d5ddc914b..8f788e4f7df 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
cdi-with-jersey-injection-webapp
diff --git a/tests/integration/cdi-integration/context-inject-on-server/pom.xml b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
index cd0087d28d1..ed145027a5f 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/pom.xml
+++ b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
context-inject-on-server
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
index c9bb4289a45..64a4d05197d 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
+++ b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37-SNAPSHOT
+ 2.37
gf-cdi-inject-on-server
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index 36b5a6ae653..2115d9e7d7b 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
pom
diff --git a/tests/integration/client-connector-provider/pom.xml b/tests/integration/client-connector-provider/pom.xml
index c0b8d18efad..deac9057e79 100644
--- a/tests/integration/client-connector-provider/pom.xml
+++ b/tests/integration/client-connector-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
client-connector-provider
diff --git a/tests/integration/ejb-multimodule-reload/ear/pom.xml b/tests/integration/ejb-multimodule-reload/ear/pom.xml
index f443243411a..3a5a847f02a 100644
--- a/tests/integration/ejb-multimodule-reload/ear/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/lib/pom.xml b/tests/integration/ejb-multimodule-reload/lib/pom.xml
index 0da93a62e47..083a6acdec9 100644
--- a/tests/integration/ejb-multimodule-reload/lib/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/pom.xml b/tests/integration/ejb-multimodule-reload/pom.xml
index 0f8ffb32bc6..6870895f1a5 100644
--- a/tests/integration/ejb-multimodule-reload/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
ejb-multimodule-reload
diff --git a/tests/integration/ejb-multimodule-reload/war1/pom.xml b/tests/integration/ejb-multimodule-reload/war1/pom.xml
index 4a87e09459d..c3546c9a63a 100644
--- a/tests/integration/ejb-multimodule-reload/war1/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/war2/pom.xml b/tests/integration/ejb-multimodule-reload/war2/pom.xml
index 434402cefc1..6c7b1a618b7 100644
--- a/tests/integration/ejb-multimodule-reload/war2/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/ear/pom.xml b/tests/integration/ejb-multimodule/ear/pom.xml
index a0b464b34b2..e5897b71edf 100644
--- a/tests/integration/ejb-multimodule/ear/pom.xml
+++ b/tests/integration/ejb-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/lib/pom.xml b/tests/integration/ejb-multimodule/lib/pom.xml
index 883da24ea83..cd5c07405ed 100644
--- a/tests/integration/ejb-multimodule/lib/pom.xml
+++ b/tests/integration/ejb-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/pom.xml b/tests/integration/ejb-multimodule/pom.xml
index 54f42f73c77..d8edd742dd2 100644
--- a/tests/integration/ejb-multimodule/pom.xml
+++ b/tests/integration/ejb-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
ejb-multimodule
diff --git a/tests/integration/ejb-multimodule/war/pom.xml b/tests/integration/ejb-multimodule/war/pom.xml
index c4a935b31a4..4be0f0933d3 100644
--- a/tests/integration/ejb-multimodule/war/pom.xml
+++ b/tests/integration/ejb-multimodule/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/ejb-test-webapp/pom.xml b/tests/integration/ejb-test-webapp/pom.xml
index 3e7941d582e..9fe55623757 100644
--- a/tests/integration/ejb-test-webapp/pom.xml
+++ b/tests/integration/ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
ejb-test-webapp
diff --git a/tests/integration/externalproperties/pom.xml b/tests/integration/externalproperties/pom.xml
index dc50d8f211b..7c3de1d5fd8 100644
--- a/tests/integration/externalproperties/pom.xml
+++ b/tests/integration/externalproperties/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
externalproperties
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index 7291244afbb..6dacee3a21a 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
j-376
diff --git a/tests/integration/j-441/ear/pom.xml b/tests/integration/j-441/ear/pom.xml
index c251f33f809..f3760677055 100644
--- a/tests/integration/j-441/ear/pom.xml
+++ b/tests/integration/j-441/ear/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
j-441-ear
diff --git a/tests/integration/j-441/pom.xml b/tests/integration/j-441/pom.xml
index 44c7c65fa91..c39a9f9a896 100644
--- a/tests/integration/j-441/pom.xml
+++ b/tests/integration/j-441/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
j-441
diff --git a/tests/integration/j-441/war1/pom.xml b/tests/integration/j-441/war1/pom.xml
index fa4b8d6847f..24bac76d8ce 100644
--- a/tests/integration/j-441/war1/pom.xml
+++ b/tests/integration/j-441/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/j-441/war2/pom.xml b/tests/integration/j-441/war2/pom.xml
index 5df36c6ff30..03eca938e8e 100644
--- a/tests/integration/j-441/war2/pom.xml
+++ b/tests/integration/j-441/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/j-59/ear/pom.xml b/tests/integration/j-59/ear/pom.xml
index ee3b864fdc0..b05084ab17a 100644
--- a/tests/integration/j-59/ear/pom.xml
+++ b/tests/integration/j-59/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/j-59/lib/pom.xml b/tests/integration/j-59/lib/pom.xml
index 3c49c7679ea..5e4a172aea3 100644
--- a/tests/integration/j-59/lib/pom.xml
+++ b/tests/integration/j-59/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/j-59/pom.xml b/tests/integration/j-59/pom.xml
index 5abdd99312b..aae6b3c5696 100644
--- a/tests/integration/j-59/pom.xml
+++ b/tests/integration/j-59/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
j-59
diff --git a/tests/integration/j-59/war/pom.xml b/tests/integration/j-59/war/pom.xml
index fafff70594a..9341337a8c0 100644
--- a/tests/integration/j-59/war/pom.xml
+++ b/tests/integration/j-59/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
../../pom.xml
diff --git a/tests/integration/jaxrs-component-inject/pom.xml b/tests/integration/jaxrs-component-inject/pom.xml
index d42dbd1b0e2..25b98062069 100644
--- a/tests/integration/jaxrs-component-inject/pom.xml
+++ b/tests/integration/jaxrs-component-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jaxrs-component-inject
diff --git a/tests/integration/jersey-1107/pom.xml b/tests/integration/jersey-1107/pom.xml
index 0fa33d53104..8f7e7d59cb7 100644
--- a/tests/integration/jersey-1107/pom.xml
+++ b/tests/integration/jersey-1107/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-1107
diff --git a/tests/integration/jersey-1223/pom.xml b/tests/integration/jersey-1223/pom.xml
index 7e4e13cbce4..b97c7483506 100644
--- a/tests/integration/jersey-1223/pom.xml
+++ b/tests/integration/jersey-1223/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
jersey-1223
diff --git a/tests/integration/jersey-1604/pom.xml b/tests/integration/jersey-1604/pom.xml
index 7578d1449a4..481808c0654 100644
--- a/tests/integration/jersey-1604/pom.xml
+++ b/tests/integration/jersey-1604/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
jersey-1604
diff --git a/tests/integration/jersey-1667/pom.xml b/tests/integration/jersey-1667/pom.xml
index 3545d28ac5b..4105ff7a1e5 100644
--- a/tests/integration/jersey-1667/pom.xml
+++ b/tests/integration/jersey-1667/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-1667
diff --git a/tests/integration/jersey-1829/pom.xml b/tests/integration/jersey-1829/pom.xml
index b193e893231..393c552a989 100644
--- a/tests/integration/jersey-1829/pom.xml
+++ b/tests/integration/jersey-1829/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
jersey-1829
diff --git a/tests/integration/jersey-1883/pom.xml b/tests/integration/jersey-1883/pom.xml
index 0a28d8de605..80e4f209d6c 100644
--- a/tests/integration/jersey-1883/pom.xml
+++ b/tests/integration/jersey-1883/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-1883
diff --git a/tests/integration/jersey-1928/pom.xml b/tests/integration/jersey-1928/pom.xml
index a76d5f5947f..ad93b232739 100644
--- a/tests/integration/jersey-1928/pom.xml
+++ b/tests/integration/jersey-1928/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
jersey-1928
diff --git a/tests/integration/jersey-1960/pom.xml b/tests/integration/jersey-1960/pom.xml
index ea545388f6b..1d4fb448f85 100644
--- a/tests/integration/jersey-1960/pom.xml
+++ b/tests/integration/jersey-1960/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-1960
diff --git a/tests/integration/jersey-1964/pom.xml b/tests/integration/jersey-1964/pom.xml
index 5ae7c1b8f7b..a8b6b2c10cf 100644
--- a/tests/integration/jersey-1964/pom.xml
+++ b/tests/integration/jersey-1964/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-1964
diff --git a/tests/integration/jersey-2031/pom.xml b/tests/integration/jersey-2031/pom.xml
index 3fca886c989..5dad60db156 100644
--- a/tests/integration/jersey-2031/pom.xml
+++ b/tests/integration/jersey-2031/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2031
diff --git a/tests/integration/jersey-2136/pom.xml b/tests/integration/jersey-2136/pom.xml
index 823fa985197..6548c6eca56 100644
--- a/tests/integration/jersey-2136/pom.xml
+++ b/tests/integration/jersey-2136/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2136
diff --git a/tests/integration/jersey-2137/pom.xml b/tests/integration/jersey-2137/pom.xml
index e50befeb42f..a3069651a4e 100644
--- a/tests/integration/jersey-2137/pom.xml
+++ b/tests/integration/jersey-2137/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2137
diff --git a/tests/integration/jersey-2154/pom.xml b/tests/integration/jersey-2154/pom.xml
index 0a9d01af6b2..f278b24d974 100644
--- a/tests/integration/jersey-2154/pom.xml
+++ b/tests/integration/jersey-2154/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2154
diff --git a/tests/integration/jersey-2160/pom.xml b/tests/integration/jersey-2160/pom.xml
index 14b6cdadf35..401c10bfb61 100644
--- a/tests/integration/jersey-2160/pom.xml
+++ b/tests/integration/jersey-2160/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2160
diff --git a/tests/integration/jersey-2164/pom.xml b/tests/integration/jersey-2164/pom.xml
index e25bb2cd446..7c35370fab4 100644
--- a/tests/integration/jersey-2164/pom.xml
+++ b/tests/integration/jersey-2164/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2164
diff --git a/tests/integration/jersey-2167/pom.xml b/tests/integration/jersey-2167/pom.xml
index c4ffbec29ab..0949ff9d97f 100644
--- a/tests/integration/jersey-2167/pom.xml
+++ b/tests/integration/jersey-2167/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2167
diff --git a/tests/integration/jersey-2176/pom.xml b/tests/integration/jersey-2176/pom.xml
index 6529f4f8a64..8de21e1bfeb 100644
--- a/tests/integration/jersey-2176/pom.xml
+++ b/tests/integration/jersey-2176/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2176
diff --git a/tests/integration/jersey-2184/pom.xml b/tests/integration/jersey-2184/pom.xml
index 8e44c69db10..8a4894cec77 100644
--- a/tests/integration/jersey-2184/pom.xml
+++ b/tests/integration/jersey-2184/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2184
diff --git a/tests/integration/jersey-2255/pom.xml b/tests/integration/jersey-2255/pom.xml
index beff8eba2a8..a1d9458435a 100644
--- a/tests/integration/jersey-2255/pom.xml
+++ b/tests/integration/jersey-2255/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2255
diff --git a/tests/integration/jersey-2322/pom.xml b/tests/integration/jersey-2322/pom.xml
index c4928343ae8..35ba58f07e9 100644
--- a/tests/integration/jersey-2322/pom.xml
+++ b/tests/integration/jersey-2322/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2322
diff --git a/tests/integration/jersey-2335/pom.xml b/tests/integration/jersey-2335/pom.xml
index b76138b30eb..e48e84f3b2c 100644
--- a/tests/integration/jersey-2335/pom.xml
+++ b/tests/integration/jersey-2335/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2335
diff --git a/tests/integration/jersey-2421/pom.xml b/tests/integration/jersey-2421/pom.xml
index b0efeabae1b..86409e96aad 100644
--- a/tests/integration/jersey-2421/pom.xml
+++ b/tests/integration/jersey-2421/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2421
diff --git a/tests/integration/jersey-2551/pom.xml b/tests/integration/jersey-2551/pom.xml
index fbaf12604b1..eb7c4013bd3 100644
--- a/tests/integration/jersey-2551/pom.xml
+++ b/tests/integration/jersey-2551/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2551
diff --git a/tests/integration/jersey-2612/pom.xml b/tests/integration/jersey-2612/pom.xml
index eb7bf9ea2d8..a5b32879c6f 100644
--- a/tests/integration/jersey-2612/pom.xml
+++ b/tests/integration/jersey-2612/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2612
diff --git a/tests/integration/jersey-2637/pom.xml b/tests/integration/jersey-2637/pom.xml
index c544d1b4649..fc4a1b114c4 100644
--- a/tests/integration/jersey-2637/pom.xml
+++ b/tests/integration/jersey-2637/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2637
diff --git a/tests/integration/jersey-2654/pom.xml b/tests/integration/jersey-2654/pom.xml
index f60c21b9d84..afaccde7388 100644
--- a/tests/integration/jersey-2654/pom.xml
+++ b/tests/integration/jersey-2654/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2654
diff --git a/tests/integration/jersey-2673/pom.xml b/tests/integration/jersey-2673/pom.xml
index 140396fb5b1..9deb351eaf4 100644
--- a/tests/integration/jersey-2673/pom.xml
+++ b/tests/integration/jersey-2673/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2673
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index 8f4848563ea..c65d457a903 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2689
diff --git a/tests/integration/jersey-2704/pom.xml b/tests/integration/jersey-2704/pom.xml
index de39e1e9f4a..bf86249310d 100644
--- a/tests/integration/jersey-2704/pom.xml
+++ b/tests/integration/jersey-2704/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2704
diff --git a/tests/integration/jersey-2776/pom.xml b/tests/integration/jersey-2776/pom.xml
index aec4a720564..7a023d007a2 100644
--- a/tests/integration/jersey-2776/pom.xml
+++ b/tests/integration/jersey-2776/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2776
diff --git a/tests/integration/jersey-2794/pom.xml b/tests/integration/jersey-2794/pom.xml
index 52d424dc260..5fe1874f08b 100644
--- a/tests/integration/jersey-2794/pom.xml
+++ b/tests/integration/jersey-2794/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2794
diff --git a/tests/integration/jersey-2846/pom.xml b/tests/integration/jersey-2846/pom.xml
index 606f98f71fd..a4174c33cda 100644
--- a/tests/integration/jersey-2846/pom.xml
+++ b/tests/integration/jersey-2846/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2846
diff --git a/tests/integration/jersey-2878/pom.xml b/tests/integration/jersey-2878/pom.xml
index 0b2e62311bf..000677f853c 100644
--- a/tests/integration/jersey-2878/pom.xml
+++ b/tests/integration/jersey-2878/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2878
diff --git a/tests/integration/jersey-2892/pom.xml b/tests/integration/jersey-2892/pom.xml
index 47f12366a1f..73046f0352f 100644
--- a/tests/integration/jersey-2892/pom.xml
+++ b/tests/integration/jersey-2892/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-2892
diff --git a/tests/integration/jersey-3662/pom.xml b/tests/integration/jersey-3662/pom.xml
index a14f70f8b58..037373e7db5 100644
--- a/tests/integration/jersey-3662/pom.xml
+++ b/tests/integration/jersey-3662/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/jersey-3670/pom.xml b/tests/integration/jersey-3670/pom.xml
index 4ed478ddbfe..84843647166 100644
--- a/tests/integration/jersey-3670/pom.xml
+++ b/tests/integration/jersey-3670/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-3670
diff --git a/tests/integration/jersey-3796/pom.xml b/tests/integration/jersey-3796/pom.xml
index 7be22f8e326..bdefd7886e9 100644
--- a/tests/integration/jersey-3796/pom.xml
+++ b/tests/integration/jersey-3796/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-3796
diff --git a/tests/integration/jersey-3992/pom.xml b/tests/integration/jersey-3992/pom.xml
index 933beb76066..2b9d76514d2 100644
--- a/tests/integration/jersey-3992/pom.xml
+++ b/tests/integration/jersey-3992/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-3992
diff --git a/tests/integration/jersey-4003/pom.xml b/tests/integration/jersey-4003/pom.xml
index b1130886bac..51334ad4dff 100644
--- a/tests/integration/jersey-4003/pom.xml
+++ b/tests/integration/jersey-4003/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/jersey-4099/pom.xml b/tests/integration/jersey-4099/pom.xml
index 64ae3989bf7..820a69d171e 100644
--- a/tests/integration/jersey-4099/pom.xml
+++ b/tests/integration/jersey-4099/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-4099
diff --git a/tests/integration/jersey-4321/pom.xml b/tests/integration/jersey-4321/pom.xml
index 49ce3c61ca7..1685148240e 100644
--- a/tests/integration/jersey-4321/pom.xml
+++ b/tests/integration/jersey-4321/pom.xml
@@ -24,7 +24,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/jersey-4507/pom.xml b/tests/integration/jersey-4507/pom.xml
index 47bec72a74b..1a057632ce7 100644
--- a/tests/integration/jersey-4507/pom.xml
+++ b/tests/integration/jersey-4507/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/jersey-4542/pom.xml b/tests/integration/jersey-4542/pom.xml
index da316ceff34..1c0424af16e 100644
--- a/tests/integration/jersey-4542/pom.xml
+++ b/tests/integration/jersey-4542/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/jersey-4697/pom.xml b/tests/integration/jersey-4697/pom.xml
index c708659683b..fcc09865508 100644
--- a/tests/integration/jersey-4697/pom.xml
+++ b/tests/integration/jersey-4697/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/jersey-4722/pom.xml b/tests/integration/jersey-4722/pom.xml
index 9fd7556810a..54f89e0330c 100644
--- a/tests/integration/jersey-4722/pom.xml
+++ b/tests/integration/jersey-4722/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/jersey-4949/pom.xml b/tests/integration/jersey-4949/pom.xml
index c71703afd95..dbc1d783876 100644
--- a/tests/integration/jersey-4949/pom.xml
+++ b/tests/integration/jersey-4949/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-4949
diff --git a/tests/integration/jersey-780/pom.xml b/tests/integration/jersey-780/pom.xml
index de5142de507..33b68c506d1 100644
--- a/tests/integration/jersey-780/pom.xml
+++ b/tests/integration/jersey-780/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
jersey-780
diff --git a/tests/integration/jetty-response-close/pom.xml b/tests/integration/jetty-response-close/pom.xml
index 9028c5ce1fa..14c385b35a7 100644
--- a/tests/integration/jetty-response-close/pom.xml
+++ b/tests/integration/jetty-response-close/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/microprofile/config/helidon/pom.xml b/tests/integration/microprofile/config/helidon/pom.xml
index 50a2318bbe9..8ac59ebc2c9 100644
--- a/tests/integration/microprofile/config/helidon/pom.xml
+++ b/tests/integration/microprofile/config/helidon/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/microprofile/config/pom.xml b/tests/integration/microprofile/config/pom.xml
index 400cba95da9..3f8016a79a7 100644
--- a/tests/integration/microprofile/config/pom.xml
+++ b/tests/integration/microprofile/config/pom.xml
@@ -22,7 +22,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 2.37-SNAPSHOT
+ 2.37
4.0.0
pom
diff --git a/tests/integration/microprofile/config/webapp/pom.xml b/tests/integration/microprofile/config/webapp/pom.xml
index e21d974e7c5..7fcd5392d1e 100644
--- a/tests/integration/microprofile/config/webapp/pom.xml
+++ b/tests/integration/microprofile/config/webapp/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/microprofile/pom.xml b/tests/integration/microprofile/pom.xml
index 067ae93040f..75ae4d4703a 100644
--- a/tests/integration/microprofile/pom.xml
+++ b/tests/integration/microprofile/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
pom
diff --git a/tests/integration/microprofile/rest-client/pom.xml b/tests/integration/microprofile/rest-client/pom.xml
index 707543d3583..101c6192470 100644
--- a/tests/integration/microprofile/rest-client/pom.xml
+++ b/tests/integration/microprofile/rest-client/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/microprofile/rest-client14-compatibility/pom.xml b/tests/integration/microprofile/rest-client14-compatibility/pom.xml
index 5886112b13b..4b99829994c 100644
--- a/tests/integration/microprofile/rest-client14-compatibility/pom.xml
+++ b/tests/integration/microprofile/rest-client14-compatibility/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index e3863a4ad75..a2e6dc160ca 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.tests.integration
diff --git a/tests/integration/portability-jersey-1/pom.xml b/tests/integration/portability-jersey-1/pom.xml
index e03e916d435..b326d3cd6ff 100644
--- a/tests/integration/portability-jersey-1/pom.xml
+++ b/tests/integration/portability-jersey-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
portability-jersey-1
diff --git a/tests/integration/portability-jersey-2/pom.xml b/tests/integration/portability-jersey-2/pom.xml
index 007a89119a3..1dd06cdff6c 100644
--- a/tests/integration/portability-jersey-2/pom.xml
+++ b/tests/integration/portability-jersey-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
portability-jersey-2
diff --git a/tests/integration/property-check/pom.xml b/tests/integration/property-check/pom.xml
index ec5920e491b..10c329212c3 100644
--- a/tests/integration/property-check/pom.xml
+++ b/tests/integration/property-check/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
property-check
diff --git a/tests/integration/reactive-streams/pom.xml b/tests/integration/reactive-streams/pom.xml
index 4612f9464d1..ee8a6ccd878 100644
--- a/tests/integration/reactive-streams/pom.xml
+++ b/tests/integration/reactive-streams/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
pom
diff --git a/tests/integration/reactive-streams/sse/pom.xml b/tests/integration/reactive-streams/sse/pom.xml
index a5d9cc3ab3e..3f32e00e8cf 100644
--- a/tests/integration/reactive-streams/sse/pom.xml
+++ b/tests/integration/reactive-streams/sse/pom.xml
@@ -22,7 +22,7 @@
reactive-streams-integration-project
org.glassfish.jersey.tests.integration.reactive
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/integration/security-digest/pom.xml b/tests/integration/security-digest/pom.xml
index 768a8c953d5..6cdbdfdfef4 100644
--- a/tests/integration/security-digest/pom.xml
+++ b/tests/integration/security-digest/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37-SNAPSHOT
+ 2.37
4.0.0
security-digest
diff --git a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
index aa770d81806..c98b79d4af1 100644
--- a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-autodiscovery-1
diff --git a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
index 1f3cd86756d..bc2ec474c3b 100644
--- a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-autodiscovery-2
diff --git a/tests/integration/servlet-2.5-filter/pom.xml b/tests/integration/servlet-2.5-filter/pom.xml
index c5888e0bf49..0963856d0ad 100644
--- a/tests/integration/servlet-2.5-filter/pom.xml
+++ b/tests/integration/servlet-2.5-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-filter
diff --git a/tests/integration/servlet-2.5-inflector-1/pom.xml b/tests/integration/servlet-2.5-inflector-1/pom.xml
index 3ac5f2e9246..7444748e2a4 100644
--- a/tests/integration/servlet-2.5-inflector-1/pom.xml
+++ b/tests/integration/servlet-2.5-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-inflector-1
diff --git a/tests/integration/servlet-2.5-init-1/pom.xml b/tests/integration/servlet-2.5-init-1/pom.xml
index 1237fe833e9..e76284976ee 100644
--- a/tests/integration/servlet-2.5-init-1/pom.xml
+++ b/tests/integration/servlet-2.5-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-init-1
diff --git a/tests/integration/servlet-2.5-init-2/pom.xml b/tests/integration/servlet-2.5-init-2/pom.xml
index d7d2e4ff67d..af5bf1b8ba2 100644
--- a/tests/integration/servlet-2.5-init-2/pom.xml
+++ b/tests/integration/servlet-2.5-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-init-2
diff --git a/tests/integration/servlet-2.5-init-3/pom.xml b/tests/integration/servlet-2.5-init-3/pom.xml
index 727a21dba3d..bc2b5c0b502 100644
--- a/tests/integration/servlet-2.5-init-3/pom.xml
+++ b/tests/integration/servlet-2.5-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-init-3
diff --git a/tests/integration/servlet-2.5-init-4/pom.xml b/tests/integration/servlet-2.5-init-4/pom.xml
index 2d4fa3eaa62..fcc5c7bfc7f 100644
--- a/tests/integration/servlet-2.5-init-4/pom.xml
+++ b/tests/integration/servlet-2.5-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-init-4
diff --git a/tests/integration/servlet-2.5-init-5/pom.xml b/tests/integration/servlet-2.5-init-5/pom.xml
index e87c91a07ac..d826c0e7a77 100644
--- a/tests/integration/servlet-2.5-init-5/pom.xml
+++ b/tests/integration/servlet-2.5-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-init-5
diff --git a/tests/integration/servlet-2.5-init-6/pom.xml b/tests/integration/servlet-2.5-init-6/pom.xml
index 4eb29f71c1c..5b96352f8a8 100644
--- a/tests/integration/servlet-2.5-init-6/pom.xml
+++ b/tests/integration/servlet-2.5-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-init-6
diff --git a/tests/integration/servlet-2.5-init-7/pom.xml b/tests/integration/servlet-2.5-init-7/pom.xml
index 360093bc9b0..3a34b542804 100644
--- a/tests/integration/servlet-2.5-init-7/pom.xml
+++ b/tests/integration/servlet-2.5-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-init-7
diff --git a/tests/integration/servlet-2.5-init-8/pom.xml b/tests/integration/servlet-2.5-init-8/pom.xml
index 9118695e613..6ca834007b5 100644
--- a/tests/integration/servlet-2.5-init-8/pom.xml
+++ b/tests/integration/servlet-2.5-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-init-8
diff --git a/tests/integration/servlet-2.5-mvc-1/pom.xml b/tests/integration/servlet-2.5-mvc-1/pom.xml
index 4bd54b76c9b..443d66b5c41 100644
--- a/tests/integration/servlet-2.5-mvc-1/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-mvc-1
diff --git a/tests/integration/servlet-2.5-mvc-2/pom.xml b/tests/integration/servlet-2.5-mvc-2/pom.xml
index b15c3051534..d7f2b4e2c8b 100644
--- a/tests/integration/servlet-2.5-mvc-2/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-mvc-2
diff --git a/tests/integration/servlet-2.5-mvc-3/pom.xml b/tests/integration/servlet-2.5-mvc-3/pom.xml
index 78bc1ab3e69..b1f9a2f68ed 100644
--- a/tests/integration/servlet-2.5-mvc-3/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-mvc-3
diff --git a/tests/integration/servlet-2.5-reload/pom.xml b/tests/integration/servlet-2.5-reload/pom.xml
index e635443d609..974d2144450 100644
--- a/tests/integration/servlet-2.5-reload/pom.xml
+++ b/tests/integration/servlet-2.5-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-2.5-reload
diff --git a/tests/integration/servlet-3-async/pom.xml b/tests/integration/servlet-3-async/pom.xml
index d670e105dad..f8024b604c2 100644
--- a/tests/integration/servlet-3-async/pom.xml
+++ b/tests/integration/servlet-3-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-async
diff --git a/tests/integration/servlet-3-chunked-io/pom.xml b/tests/integration/servlet-3-chunked-io/pom.xml
index 574a7754782..fbd3dadc3d4 100644
--- a/tests/integration/servlet-3-chunked-io/pom.xml
+++ b/tests/integration/servlet-3-chunked-io/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-chunked-io
diff --git a/tests/integration/servlet-3-filter/pom.xml b/tests/integration/servlet-3-filter/pom.xml
index ae5909e3bba..96c35d7c31f 100644
--- a/tests/integration/servlet-3-filter/pom.xml
+++ b/tests/integration/servlet-3-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-filter
diff --git a/tests/integration/servlet-3-gf-async/pom.xml b/tests/integration/servlet-3-gf-async/pom.xml
index 2a447466ba6..0677e3bbc28 100644
--- a/tests/integration/servlet-3-gf-async/pom.xml
+++ b/tests/integration/servlet-3-gf-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-gf-async
diff --git a/tests/integration/servlet-3-inflector-1/pom.xml b/tests/integration/servlet-3-inflector-1/pom.xml
index c914be1147e..2de8738fd05 100644
--- a/tests/integration/servlet-3-inflector-1/pom.xml
+++ b/tests/integration/servlet-3-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-inflector-1
diff --git a/tests/integration/servlet-3-init-1/pom.xml b/tests/integration/servlet-3-init-1/pom.xml
index b76b82f6c26..2b43c485253 100644
--- a/tests/integration/servlet-3-init-1/pom.xml
+++ b/tests/integration/servlet-3-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-init-1
diff --git a/tests/integration/servlet-3-init-2/pom.xml b/tests/integration/servlet-3-init-2/pom.xml
index 39675d570b4..cafba981ddc 100644
--- a/tests/integration/servlet-3-init-2/pom.xml
+++ b/tests/integration/servlet-3-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-init-2
diff --git a/tests/integration/servlet-3-init-3/pom.xml b/tests/integration/servlet-3-init-3/pom.xml
index 19b9be95118..0d8729b6db9 100644
--- a/tests/integration/servlet-3-init-3/pom.xml
+++ b/tests/integration/servlet-3-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-init-3
diff --git a/tests/integration/servlet-3-init-4/pom.xml b/tests/integration/servlet-3-init-4/pom.xml
index 711baeb097b..c7d52875d35 100644
--- a/tests/integration/servlet-3-init-4/pom.xml
+++ b/tests/integration/servlet-3-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-init-4
diff --git a/tests/integration/servlet-3-init-5/pom.xml b/tests/integration/servlet-3-init-5/pom.xml
index 809bb3acbb7..3c992039e46 100644
--- a/tests/integration/servlet-3-init-5/pom.xml
+++ b/tests/integration/servlet-3-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-init-5
diff --git a/tests/integration/servlet-3-init-6/pom.xml b/tests/integration/servlet-3-init-6/pom.xml
index 85177afc196..e23cb648139 100644
--- a/tests/integration/servlet-3-init-6/pom.xml
+++ b/tests/integration/servlet-3-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-init-6
diff --git a/tests/integration/servlet-3-init-7/pom.xml b/tests/integration/servlet-3-init-7/pom.xml
index 721b5418e5f..179accf0d55 100644
--- a/tests/integration/servlet-3-init-7/pom.xml
+++ b/tests/integration/servlet-3-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-init-7
diff --git a/tests/integration/servlet-3-init-8/pom.xml b/tests/integration/servlet-3-init-8/pom.xml
index 2598947fb07..ebd016f1018 100644
--- a/tests/integration/servlet-3-init-8/pom.xml
+++ b/tests/integration/servlet-3-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-init-8
diff --git a/tests/integration/servlet-3-init-9/pom.xml b/tests/integration/servlet-3-init-9/pom.xml
index 11decf9d55a..54049bd2e72 100644
--- a/tests/integration/servlet-3-init-9/pom.xml
+++ b/tests/integration/servlet-3-init-9/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-init-9
diff --git a/tests/integration/servlet-3-init-provider/pom.xml b/tests/integration/servlet-3-init-provider/pom.xml
index 0ba59684c8b..f166b1368e3 100644
--- a/tests/integration/servlet-3-init-provider/pom.xml
+++ b/tests/integration/servlet-3-init-provider/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-init-provider
diff --git a/tests/integration/servlet-3-params/pom.xml b/tests/integration/servlet-3-params/pom.xml
index bf10c462100..dbd3493bcfe 100644
--- a/tests/integration/servlet-3-params/pom.xml
+++ b/tests/integration/servlet-3-params/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-params
diff --git a/tests/integration/servlet-3-sse-1/pom.xml b/tests/integration/servlet-3-sse-1/pom.xml
index e7b973cca54..ce6cb53427e 100644
--- a/tests/integration/servlet-3-sse-1/pom.xml
+++ b/tests/integration/servlet-3-sse-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-3-sse-1
diff --git a/tests/integration/servlet-4.0-mvc-1/pom.xml b/tests/integration/servlet-4.0-mvc-1/pom.xml
index a34ceb7e109..d0009d08dc2 100644
--- a/tests/integration/servlet-4.0-mvc-1/pom.xml
+++ b/tests/integration/servlet-4.0-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-4.0-mvc-1
diff --git a/tests/integration/servlet-request-wrapper-binding-2/pom.xml b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
index 552245196e8..a1d5b2724da 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-request-wrappper-binding-2
diff --git a/tests/integration/servlet-request-wrapper-binding/pom.xml b/tests/integration/servlet-request-wrapper-binding/pom.xml
index 343a63ab241..a25865afecb 100644
--- a/tests/integration/servlet-request-wrapper-binding/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-request-wrappper-binding
diff --git a/tests/integration/servlet-tests/pom.xml b/tests/integration/servlet-tests/pom.xml
index b9fd3c3026a..5079e03f777 100644
--- a/tests/integration/servlet-tests/pom.xml
+++ b/tests/integration/servlet-tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
servlet-tests
diff --git a/tests/integration/sonar-test/pom.xml b/tests/integration/sonar-test/pom.xml
index bc6eeccd5e7..9657f61cfa3 100644
--- a/tests/integration/sonar-test/pom.xml
+++ b/tests/integration/sonar-test/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
sonar-test
diff --git a/tests/integration/spring4/pom.xml b/tests/integration/spring4/pom.xml
index fed8b4d8bc8..806ea1a2021 100644
--- a/tests/integration/spring4/pom.xml
+++ b/tests/integration/spring4/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
spring4
diff --git a/tests/integration/spring5/pom.xml b/tests/integration/spring5/pom.xml
index 7b5eba7b219..0c201c8918d 100644
--- a/tests/integration/spring5/pom.xml
+++ b/tests/integration/spring5/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
spring5
diff --git a/tests/integration/tracing-support/pom.xml b/tests/integration/tracing-support/pom.xml
index 39d2968bc90..377965d8ef7 100644
--- a/tests/integration/tracing-support/pom.xml
+++ b/tests/integration/tracing-support/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37-SNAPSHOT
+ 2.37
tracing-support
diff --git a/tests/jmockit/pom.xml b/tests/jmockit/pom.xml
index 665f23637f8..4017b31be2b 100644
--- a/tests/jmockit/pom.xml
+++ b/tests/jmockit/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests
- 2.37-SNAPSHOT
+ 2.37
4.0.0
diff --git a/tests/mem-leaks/pom.xml b/tests/mem-leaks/pom.xml
index f4ea077e23c..b5c69176336 100644
--- a/tests/mem-leaks/pom.xml
+++ b/tests/mem-leaks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.tests.memleaks
diff --git a/tests/mem-leaks/redeployment/pom.xml b/tests/mem-leaks/redeployment/pom.xml
index 98bd97eb45c..bf69a773f94 100644
--- a/tests/mem-leaks/redeployment/pom.xml
+++ b/tests/mem-leaks/redeployment/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.tests.memleaks.redeployment
diff --git a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
index c60aa9061cf..93e40b0d10c 100644
--- a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 2.37-SNAPSHOT
+ 2.37
redeployment-hello-world-app-ref
@@ -132,7 +132,7 @@
org.glassfish.jersey.examples
helloworld-webapp
war
- 2.37-SNAPSHOT
+ 2.37
diff --git a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
index f42b20dbff3..a576ff8e6e9 100644
--- a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 2.37-SNAPSHOT
+ 2.37
redeployment-leaking-test-app
diff --git a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
index 50c79ee5a09..3aa602653a1 100644
--- a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 2.37-SNAPSHOT
+ 2.37
redeployment-no-jersey-app
diff --git a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
index d22a8a265ce..5d1509f40b5 100644
--- a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 2.37-SNAPSHOT
+ 2.37
redeployment-threadlocals-app
diff --git a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
index 52cd7ac3ca7..ff982accec1 100644
--- a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 2.37-SNAPSHOT
+ 2.37
bean-param-leak
diff --git a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
index a2b92f2b006..81f3bd1ad65 100644
--- a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
+++ b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 2.37-SNAPSHOT
+ 2.37
leaking-test-app
diff --git a/tests/mem-leaks/test-cases/pom.xml b/tests/mem-leaks/test-cases/pom.xml
index 16d88fd80e5..3a0fb39baae 100644
--- a/tests/mem-leaks/test-cases/pom.xml
+++ b/tests/mem-leaks/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.tests.memleaks.testcases
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
index 493111f8249..04412d36221 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 2.37-SNAPSHOT
+ 2.37
shutdown-hook-leak-client
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
index cae2318bf04..65494217e93 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 2.37-SNAPSHOT
+ 2.37
shutdown-hook-leak
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index 4afe7aa9bad..0a836d72464 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.osgi
project
- 2.37-SNAPSHOT
+ 2.37
jersey-tests-osgi-functional
diff --git a/tests/osgi/pom.xml b/tests/osgi/pom.xml
index 108bd74a214..200b8b5a654 100644
--- a/tests/osgi/pom.xml
+++ b/tests/osgi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.tests.osgi
diff --git a/tests/performance/benchmarks/pom.xml b/tests/performance/benchmarks/pom.xml
index 162bbdcb7e3..f8bff503536 100644
--- a/tests/performance/benchmarks/pom.xml
+++ b/tests/performance/benchmarks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 2.37-SNAPSHOT
+ 2.37
performance-test-benchmarks
diff --git a/tests/performance/pom.xml b/tests/performance/pom.xml
index f4961602253..3fc64bf0957 100644
--- a/tests/performance/pom.xml
+++ b/tests/performance/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.tests.performance
diff --git a/tests/performance/runners/jersey-grizzly-runner/pom.xml b/tests/performance/runners/jersey-grizzly-runner/pom.xml
index c5dc34d4e9c..37f9c131029 100644
--- a/tests/performance/runners/jersey-grizzly-runner/pom.xml
+++ b/tests/performance/runners/jersey-grizzly-runner/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.runners
project
- 2.37-SNAPSHOT
+ 2.37
diff --git a/tests/performance/runners/pom.xml b/tests/performance/runners/pom.xml
index 14c04a43e65..c2a9e7717e0 100644
--- a/tests/performance/runners/pom.xml
+++ b/tests/performance/runners/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.tests.performance.runners
diff --git a/tests/performance/test-cases/assemblies/pom.xml b/tests/performance/test-cases/assemblies/pom.xml
index dc18a249bdb..0e0df602c0b 100644
--- a/tests/performance/test-cases/assemblies/pom.xml
+++ b/tests/performance/test-cases/assemblies/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
assemblies
diff --git a/tests/performance/test-cases/filter-dynamic/pom.xml b/tests/performance/test-cases/filter-dynamic/pom.xml
index 3a292fc63e7..6e4c353bc14 100644
--- a/tests/performance/test-cases/filter-dynamic/pom.xml
+++ b/tests/performance/test-cases/filter-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
filter-dynamic
diff --git a/tests/performance/test-cases/filter-global/pom.xml b/tests/performance/test-cases/filter-global/pom.xml
index 598018aa963..bd2a76d6f53 100644
--- a/tests/performance/test-cases/filter-global/pom.xml
+++ b/tests/performance/test-cases/filter-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
filter-global
diff --git a/tests/performance/test-cases/filter-name/pom.xml b/tests/performance/test-cases/filter-name/pom.xml
index 625018082bd..36d1c4d9253 100644
--- a/tests/performance/test-cases/filter-name/pom.xml
+++ b/tests/performance/test-cases/filter-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
filter-name
diff --git a/tests/performance/test-cases/interceptor-dynamic/pom.xml b/tests/performance/test-cases/interceptor-dynamic/pom.xml
index 0108197b62c..4d9bd8ea1fa 100644
--- a/tests/performance/test-cases/interceptor-dynamic/pom.xml
+++ b/tests/performance/test-cases/interceptor-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
interceptor-dynamic
diff --git a/tests/performance/test-cases/interceptor-global/pom.xml b/tests/performance/test-cases/interceptor-global/pom.xml
index f36bcccb21c..59b7197d3aa 100644
--- a/tests/performance/test-cases/interceptor-global/pom.xml
+++ b/tests/performance/test-cases/interceptor-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
interceptor-global
diff --git a/tests/performance/test-cases/interceptor-name/pom.xml b/tests/performance/test-cases/interceptor-name/pom.xml
index 33ce1370c97..dac8df7c641 100644
--- a/tests/performance/test-cases/interceptor-name/pom.xml
+++ b/tests/performance/test-cases/interceptor-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
interceptor-name
diff --git a/tests/performance/test-cases/mbw-custom-provider/pom.xml b/tests/performance/test-cases/mbw-custom-provider/pom.xml
index 1074ec89c0e..1b445132d6b 100644
--- a/tests/performance/test-cases/mbw-custom-provider/pom.xml
+++ b/tests/performance/test-cases/mbw-custom-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
custom-provider
diff --git a/tests/performance/test-cases/mbw-json-jackson/pom.xml b/tests/performance/test-cases/mbw-json-jackson/pom.xml
index b0fccbcf648..84cbba3d4ab 100644
--- a/tests/performance/test-cases/mbw-json-jackson/pom.xml
+++ b/tests/performance/test-cases/mbw-json-jackson/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
json-jackson
diff --git a/tests/performance/test-cases/mbw-json-moxy/pom.xml b/tests/performance/test-cases/mbw-json-moxy/pom.xml
index 7d7b0d22e01..86f39b40045 100644
--- a/tests/performance/test-cases/mbw-json-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-json-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
json-moxy
diff --git a/tests/performance/test-cases/mbw-kryo/pom.xml b/tests/performance/test-cases/mbw-kryo/pom.xml
index 58107319b5f..999c8de898b 100644
--- a/tests/performance/test-cases/mbw-kryo/pom.xml
+++ b/tests/performance/test-cases/mbw-kryo/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
mbw-kryo
diff --git a/tests/performance/test-cases/mbw-text-plain/pom.xml b/tests/performance/test-cases/mbw-text-plain/pom.xml
index 77352186131..358517bfd58 100644
--- a/tests/performance/test-cases/mbw-text-plain/pom.xml
+++ b/tests/performance/test-cases/mbw-text-plain/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
text-plain
diff --git a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
index 62011de1be6..5d7cf87607f 100644
--- a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
xml-jaxb
diff --git a/tests/performance/test-cases/mbw-xml-moxy/pom.xml b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
index f9cb0b5d3a4..878faf906d9 100644
--- a/tests/performance/test-cases/mbw-xml-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
xml-moxy
diff --git a/tests/performance/test-cases/param-srl/pom.xml b/tests/performance/test-cases/param-srl/pom.xml
index 00c113e18ba..e0bf07725c2 100644
--- a/tests/performance/test-cases/param-srl/pom.xml
+++ b/tests/performance/test-cases/param-srl/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
param-srl
diff --git a/tests/performance/test-cases/pom.xml b/tests/performance/test-cases/pom.xml
index a3999ed8d6f..d899397bac3 100644
--- a/tests/performance/test-cases/pom.xml
+++ b/tests/performance/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.tests.performance.testcases
diff --git a/tests/performance/test-cases/proxy-injection/pom.xml b/tests/performance/test-cases/proxy-injection/pom.xml
index e26cd4ad589..0b0c2ebcae0 100644
--- a/tests/performance/test-cases/proxy-injection/pom.xml
+++ b/tests/performance/test-cases/proxy-injection/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37-SNAPSHOT
+ 2.37
proxy-injection
diff --git a/tests/performance/tools/pom.xml b/tests/performance/tools/pom.xml
index 34a0561edba..a78f6c6dc95 100644
--- a/tests/performance/tools/pom.xml
+++ b/tests/performance/tools/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.tests.performance.tools
performance-test-tools
diff --git a/tests/pom.xml b/tests/pom.xml
index 64d6dc884db..60759caabcb 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37-SNAPSHOT
+ 2.37
org.glassfish.jersey.tests
diff --git a/tests/stress/pom.xml b/tests/stress/pom.xml
index 1935a23a9de..848f11c5920 100644
--- a/tests/stress/pom.xml
+++ b/tests/stress/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37-SNAPSHOT
+ 2.37
stress
From f10ec04a28baf866b92f22fb607bed1268140a64 Mon Sep 17 00:00:00 2001
From: jersey-bot
Date: Mon, 5 Sep 2022 13:58:47 +0000
Subject: [PATCH 098/305] 2.38-SNAPSHOT
---
archetypes/jersey-example-java8-webapp/pom.xml | 2 +-
archetypes/jersey-heroku-webapp/pom.xml | 2 +-
archetypes/jersey-quickstart-grizzly2/pom.xml | 2 +-
archetypes/jersey-quickstart-webapp/pom.xml | 2 +-
archetypes/pom.xml | 2 +-
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 2 +-
bundles/jaxrs-ri/pom.xml | 2 +-
bundles/pom.xml | 2 +-
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 2 +-
connectors/helidon-connector/pom.xml | 2 +-
connectors/jdk-connector/pom.xml | 2 +-
connectors/jetty-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 2 +-
containers/glassfish/pom.xml | 2 +-
containers/grizzly2-http/pom.xml | 2 +-
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-http/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
containers/netty-http/pom.xml | 2 +-
containers/pom.xml | 2 +-
containers/simple-http/pom.xml | 2 +-
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 2 +-
examples/assemblies/pom.xml | 2 +-
examples/bookmark-em/pom.xml | 2 +-
examples/bookmark/pom.xml | 2 +-
examples/bookstore-webapp/pom.xml | 2 +-
examples/cdi-webapp/pom.xml | 2 +-
examples/clipboard-programmatic/pom.xml | 2 +-
examples/clipboard/pom.xml | 2 +-
examples/declarative-linking/pom.xml | 2 +-
examples/entity-filtering-security/pom.xml | 2 +-
examples/entity-filtering-selectable/pom.xml | 2 +-
examples/entity-filtering/pom.xml | 2 +-
examples/exception-mapping/pom.xml | 2 +-
examples/extended-wadl-webapp/pom.xml | 2 +-
examples/freemarker-webapp/pom.xml | 2 +-
examples/groovy/pom.xml | 2 +-
examples/helloworld-benchmark/pom.xml | 2 +-
examples/helloworld-cdi2-se/pom.xml | 2 +-
examples/helloworld-netty/pom.xml | 2 +-
examples/helloworld-programmatic/pom.xml | 2 +-
examples/helloworld-pure-jax-rs/pom.xml | 2 +-
examples/helloworld-spring-annotations/pom.xml | 2 +-
examples/helloworld-spring-webapp/pom.xml | 2 +-
examples/helloworld-webapp/pom.xml | 2 +-
examples/helloworld-weld/pom.xml | 2 +-
examples/helloworld/pom.xml | 2 +-
examples/http-patch/pom.xml | 2 +-
examples/http-trace/pom.xml | 2 +-
examples/https-clientserver-grizzly/pom.xml | 2 +-
examples/https-server-glassfish/pom.xml | 2 +-
examples/java8-webapp/pom.xml | 2 +-
examples/jaxb/pom.xml | 2 +-
examples/jaxrs-types-injection/pom.xml | 2 +-
examples/jersey-ejb/pom.xml | 2 +-
examples/json-binding-webapp/pom.xml | 2 +-
examples/json-jackson/pom.xml | 2 +-
examples/json-jackson1/pom.xml | 2 +-
examples/json-jettison/pom.xml | 2 +-
examples/json-moxy/pom.xml | 2 +-
examples/json-processing-webapp/pom.xml | 2 +-
examples/json-with-padding/pom.xml | 2 +-
examples/managed-beans-webapp/pom.xml | 2 +-
examples/managed-client-simple-webapp/pom.xml | 2 +-
examples/managed-client-webapp/pom.xml | 2 +-
examples/managed-client/pom.xml | 2 +-
examples/multipart-webapp/pom.xml | 2 +-
examples/oauth-client-twitter/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 2 +-
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/functional-test/pom.xml | 2 +-
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/pom.xml | 2 +-
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 2 +-
examples/osgi-http-service/bundle/pom.xml | 2 +-
examples/osgi-http-service/functional-test/pom.xml | 2 +-
examples/osgi-http-service/pom.xml | 2 +-
examples/pom.xml | 2 +-
examples/reload/pom.xml | 2 +-
examples/rx-client-webapp/pom.xml | 2 +-
examples/server-async-managed/pom.xml | 2 +-
examples/server-async-standalone/client/pom.xml | 2 +-
examples/server-async-standalone/pom.xml | 2 +-
examples/server-async-standalone/webapp/pom.xml | 2 +-
examples/server-async/pom.xml | 2 +-
examples/server-sent-events-jaxrs/pom.xml | 2 +-
examples/server-sent-events-jersey/pom.xml | 2 +-
examples/servlet3-webapp/pom.xml | 2 +-
examples/simple-console/pom.xml | 2 +-
examples/sse-item-store-jaxrs-webapp/pom.xml | 2 +-
examples/sse-item-store-jersey-webapp/pom.xml | 2 +-
examples/sse-twitter-aggregator/pom.xml | 2 +-
examples/system-properties-example/pom.xml | 2 +-
examples/webapp-example-parent/pom.xml | 2 +-
examples/xml-moxy/pom.xml | 2 +-
ext/bean-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-transaction/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi1x/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 2 +-
ext/cdi/pom.xml | 2 +-
ext/entity-filtering/pom.xml | 2 +-
ext/metainf-services/pom.xml | 2 +-
ext/microprofile/mp-config/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/microprofile/pom.xml | 2 +-
ext/mvc-bean-validation/pom.xml | 2 +-
ext/mvc-freemarker/pom.xml | 2 +-
ext/mvc-jsp/pom.xml | 2 +-
ext/mvc-mustache/pom.xml | 2 +-
ext/mvc/pom.xml | 2 +-
ext/pom.xml | 2 +-
ext/proxy-client/pom.xml | 2 +-
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 2 +-
ext/rx/rx-client-rxjava2/pom.xml | 2 +-
ext/servlet-portability/pom.xml | 2 +-
ext/spring4/pom.xml | 2 +-
ext/spring5/pom.xml | 2 +-
ext/wadl-doclet/pom.xml | 2 +-
incubator/cdi-inject-weld/pom.xml | 2 +-
incubator/declarative-linking/pom.xml | 2 +-
incubator/gae-integration/pom.xml | 2 +-
incubator/html-json/pom.xml | 2 +-
incubator/kryo/pom.xml | 2 +-
incubator/open-tracing/pom.xml | 2 +-
incubator/pom.xml | 2 +-
inject/cdi2-se/pom.xml | 2 +-
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 2 +-
media/jaxb/pom.xml | 2 +-
media/json-binding/pom.xml | 2 +-
media/json-gson/pom.xml | 2 +-
media/json-jackson/pom.xml | 2 +-
media/json-jackson1/pom.xml | 2 +-
media/json-jettison/pom.xml | 2 +-
media/json-processing/pom.xml | 2 +-
media/moxy/pom.xml | 2 +-
media/multipart/pom.xml | 2 +-
media/pom.xml | 2 +-
media/sse/pom.xml | 2 +-
pom.xml | 2 +-
security/oauth1-client/pom.xml | 2 +-
security/oauth1-server/pom.xml | 2 +-
security/oauth1-signature/pom.xml | 2 +-
security/oauth2-client/pom.xml | 2 +-
security/pom.xml | 2 +-
test-framework/core/pom.xml | 2 +-
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 2 +-
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 2 +-
test-framework/providers/bundle/pom.xml | 2 +-
test-framework/providers/external/pom.xml | 2 +-
test-framework/providers/grizzly2/pom.xml | 2 +-
test-framework/providers/inmemory/pom.xml | 2 +-
test-framework/providers/jdk-http/pom.xml | 2 +-
test-framework/providers/jetty/pom.xml | 2 +-
test-framework/providers/netty/pom.xml | 2 +-
test-framework/providers/pom.xml | 2 +-
test-framework/providers/simple/pom.xml | 2 +-
test-framework/util/pom.xml | 2 +-
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 2 +-
tests/e2e-inject/pom.xml | 2 +-
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 2 +-
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 2 +-
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 2 +-
.../integration/cdi-integration/cdi-client-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-client/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 2 +-
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-log-check/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-manually-bound/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multipart-webapp/pom.xml | 2 +-
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-singleton/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 2 +-
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 2 +-
.../pom.xml | 2 +-
.../cdi-integration/cdi-with-jersey-injection-webapp/pom.xml | 2 +-
.../cdi-integration/context-inject-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/gf-cdi-inject/pom.xml | 2 +-
tests/integration/cdi-integration/pom.xml | 2 +-
tests/integration/client-connector-provider/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule/pom.xml | 2 +-
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 2 +-
tests/integration/j-376/pom.xml | 2 +-
tests/integration/j-441/ear/pom.xml | 2 +-
tests/integration/j-441/pom.xml | 2 +-
tests/integration/j-441/war1/pom.xml | 2 +-
tests/integration/j-441/war2/pom.xml | 2 +-
tests/integration/j-59/ear/pom.xml | 2 +-
tests/integration/j-59/lib/pom.xml | 2 +-
tests/integration/j-59/pom.xml | 2 +-
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 2 +-
tests/integration/jersey-1107/pom.xml | 2 +-
tests/integration/jersey-1223/pom.xml | 2 +-
tests/integration/jersey-1604/pom.xml | 2 +-
tests/integration/jersey-1667/pom.xml | 2 +-
tests/integration/jersey-1829/pom.xml | 2 +-
tests/integration/jersey-1883/pom.xml | 2 +-
tests/integration/jersey-1928/pom.xml | 2 +-
tests/integration/jersey-1960/pom.xml | 2 +-
tests/integration/jersey-1964/pom.xml | 2 +-
tests/integration/jersey-2031/pom.xml | 2 +-
tests/integration/jersey-2136/pom.xml | 2 +-
tests/integration/jersey-2137/pom.xml | 2 +-
tests/integration/jersey-2154/pom.xml | 2 +-
tests/integration/jersey-2160/pom.xml | 2 +-
tests/integration/jersey-2164/pom.xml | 2 +-
tests/integration/jersey-2167/pom.xml | 2 +-
tests/integration/jersey-2176/pom.xml | 2 +-
tests/integration/jersey-2184/pom.xml | 2 +-
tests/integration/jersey-2255/pom.xml | 2 +-
tests/integration/jersey-2322/pom.xml | 2 +-
tests/integration/jersey-2335/pom.xml | 2 +-
tests/integration/jersey-2421/pom.xml | 2 +-
tests/integration/jersey-2551/pom.xml | 2 +-
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 2 +-
tests/integration/jersey-2654/pom.xml | 2 +-
tests/integration/jersey-2673/pom.xml | 2 +-
tests/integration/jersey-2689/pom.xml | 2 +-
tests/integration/jersey-2704/pom.xml | 2 +-
tests/integration/jersey-2776/pom.xml | 2 +-
tests/integration/jersey-2794/pom.xml | 2 +-
tests/integration/jersey-2846/pom.xml | 2 +-
tests/integration/jersey-2878/pom.xml | 2 +-
tests/integration/jersey-2892/pom.xml | 2 +-
tests/integration/jersey-3662/pom.xml | 2 +-
tests/integration/jersey-3670/pom.xml | 2 +-
tests/integration/jersey-3796/pom.xml | 2 +-
tests/integration/jersey-3992/pom.xml | 2 +-
tests/integration/jersey-4003/pom.xml | 2 +-
tests/integration/jersey-4099/pom.xml | 2 +-
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 2 +-
tests/integration/jersey-4542/pom.xml | 2 +-
tests/integration/jersey-4697/pom.xml | 2 +-
tests/integration/jersey-4722/pom.xml | 2 +-
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 2 +-
tests/integration/jetty-response-close/pom.xml | 2 +-
tests/integration/microprofile/config/helidon/pom.xml | 2 +-
tests/integration/microprofile/config/pom.xml | 2 +-
tests/integration/microprofile/config/webapp/pom.xml | 2 +-
tests/integration/microprofile/pom.xml | 2 +-
tests/integration/microprofile/rest-client/pom.xml | 2 +-
.../microprofile/rest-client14-compatibility/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/portability-jersey-1/pom.xml | 2 +-
tests/integration/portability-jersey-2/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 2 +-
tests/integration/reactive-streams/sse/pom.xml | 2 +-
tests/integration/security-digest/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 2 +-
tests/integration/servlet-2.5-filter/pom.xml | 2 +-
tests/integration/servlet-2.5-inflector-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-2/pom.xml | 2 +-
tests/integration/servlet-2.5-init-3/pom.xml | 2 +-
tests/integration/servlet-2.5-init-4/pom.xml | 2 +-
tests/integration/servlet-2.5-init-5/pom.xml | 2 +-
tests/integration/servlet-2.5-init-6/pom.xml | 2 +-
tests/integration/servlet-2.5-init-7/pom.xml | 2 +-
tests/integration/servlet-2.5-init-8/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-1/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-2/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-3/pom.xml | 2 +-
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 2 +-
tests/integration/servlet-3-chunked-io/pom.xml | 2 +-
tests/integration/servlet-3-filter/pom.xml | 2 +-
tests/integration/servlet-3-gf-async/pom.xml | 2 +-
tests/integration/servlet-3-inflector-1/pom.xml | 2 +-
tests/integration/servlet-3-init-1/pom.xml | 2 +-
tests/integration/servlet-3-init-2/pom.xml | 2 +-
tests/integration/servlet-3-init-3/pom.xml | 2 +-
tests/integration/servlet-3-init-4/pom.xml | 2 +-
tests/integration/servlet-3-init-5/pom.xml | 2 +-
tests/integration/servlet-3-init-6/pom.xml | 2 +-
tests/integration/servlet-3-init-7/pom.xml | 2 +-
tests/integration/servlet-3-init-8/pom.xml | 2 +-
tests/integration/servlet-3-init-9/pom.xml | 2 +-
tests/integration/servlet-3-init-provider/pom.xml | 2 +-
tests/integration/servlet-3-params/pom.xml | 2 +-
tests/integration/servlet-3-sse-1/pom.xml | 2 +-
tests/integration/servlet-4.0-mvc-1/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 2 +-
tests/integration/sonar-test/pom.xml | 2 +-
tests/integration/spring4/pom.xml | 2 +-
tests/integration/spring5/pom.xml | 2 +-
tests/integration/tracing-support/pom.xml | 2 +-
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 2 +-
tests/mem-leaks/redeployment/pom.xml | 2 +-
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 4 ++--
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment/redeployment-threadlocals-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 2 +-
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 2 +-
tests/osgi/functional/pom.xml | 2 +-
tests/osgi/pom.xml | 2 +-
tests/performance/benchmarks/pom.xml | 2 +-
tests/performance/pom.xml | 2 +-
tests/performance/runners/jersey-grizzly-runner/pom.xml | 2 +-
tests/performance/runners/pom.xml | 2 +-
tests/performance/test-cases/assemblies/pom.xml | 2 +-
tests/performance/test-cases/filter-dynamic/pom.xml | 2 +-
tests/performance/test-cases/filter-global/pom.xml | 2 +-
tests/performance/test-cases/filter-name/pom.xml | 2 +-
tests/performance/test-cases/interceptor-dynamic/pom.xml | 2 +-
tests/performance/test-cases/interceptor-global/pom.xml | 2 +-
tests/performance/test-cases/interceptor-name/pom.xml | 2 +-
tests/performance/test-cases/mbw-custom-provider/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-jackson/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-moxy/pom.xml | 2 +-
tests/performance/test-cases/mbw-kryo/pom.xml | 2 +-
tests/performance/test-cases/mbw-text-plain/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 2 +-
tests/performance/test-cases/param-srl/pom.xml | 2 +-
tests/performance/test-cases/pom.xml | 2 +-
tests/performance/test-cases/proxy-injection/pom.xml | 2 +-
tests/performance/tools/pom.xml | 2 +-
tests/pom.xml | 2 +-
tests/stress/pom.xml | 2 +-
376 files changed, 377 insertions(+), 377 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index 01899fa895c..23bd25f36f2 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 2.37
+ 2.38-SNAPSHOT
jersey-example-java8-webapp
diff --git a/archetypes/jersey-heroku-webapp/pom.xml b/archetypes/jersey-heroku-webapp/pom.xml
index c62a4871e46..3260c1b2c71 100644
--- a/archetypes/jersey-heroku-webapp/pom.xml
+++ b/archetypes/jersey-heroku-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 2.37
+ 2.38-SNAPSHOT
maven-archetype
diff --git a/archetypes/jersey-quickstart-grizzly2/pom.xml b/archetypes/jersey-quickstart-grizzly2/pom.xml
index c1092ff8685..7b3646ae4f8 100644
--- a/archetypes/jersey-quickstart-grizzly2/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 2.37
+ 2.38-SNAPSHOT
jersey-quickstart-grizzly2
maven-archetype
diff --git a/archetypes/jersey-quickstart-webapp/pom.xml b/archetypes/jersey-quickstart-webapp/pom.xml
index 6a5128ece77..a6aacfe5470 100644
--- a/archetypes/jersey-quickstart-webapp/pom.xml
+++ b/archetypes/jersey-quickstart-webapp/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 2.37
+ 2.38-SNAPSHOT
4.0.0
maven-archetype
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index a05709cb036..494e192d8a6 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.archetypes
diff --git a/bom/pom.xml b/bom/pom.xml
index ab1ca376803..ba3ff9c9004 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,7 +30,7 @@
org.glassfish.jersey
jersey-bom
- 2.37
+ 2.38-SNAPSHOT
pom
jersey-bom
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index 2db2231dc9a..539ca85c1b0 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 2.37
+ 2.38-SNAPSHOT
apidocs
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index 455f01ced8e..63b1e4e238a 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.bundles
project
- 2.37
+ 2.38-SNAPSHOT
jersey-examples
diff --git a/bundles/jaxrs-ri/pom.xml b/bundles/jaxrs-ri/pom.xml
index 6dab7695908..48fc483a229 100644
--- a/bundles/jaxrs-ri/pom.xml
+++ b/bundles/jaxrs-ri/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 2.37
+ 2.38-SNAPSHOT
jaxrs-ri
diff --git a/bundles/pom.xml b/bundles/pom.xml
index f6abf5d2872..1b40b8ddcda 100644
--- a/bundles/pom.xml
+++ b/bundles/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.bundles
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index 95af1e26806..afe1d1b8f93 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 2.37
+ 2.38-SNAPSHOT
jersey-apache-connector
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
index bd53d6af67e..8181d947e97 100644
--- a/connectors/apache5-connector/pom.xml
+++ b/connectors/apache5-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 2.37
+ 2.38-SNAPSHOT
jersey-apache5-connector
diff --git a/connectors/grizzly-connector/pom.xml b/connectors/grizzly-connector/pom.xml
index 981f33dbc94..b89499525e5 100644
--- a/connectors/grizzly-connector/pom.xml
+++ b/connectors/grizzly-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 2.37
+ 2.38-SNAPSHOT
jersey-grizzly-connector
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index e51fcefa24c..118b6ab5dd8 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.connectors
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/connectors/jdk-connector/pom.xml b/connectors/jdk-connector/pom.xml
index 258db509eec..b701ebdd14f 100644
--- a/connectors/jdk-connector/pom.xml
+++ b/connectors/jdk-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 2.37
+ 2.38-SNAPSHOT
jersey-jdk-connector
diff --git a/connectors/jetty-connector/pom.xml b/connectors/jetty-connector/pom.xml
index bd968e43881..2e8e98b477c 100644
--- a/connectors/jetty-connector/pom.xml
+++ b/connectors/jetty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 2.37
+ 2.38-SNAPSHOT
jersey-jetty-connector
diff --git a/connectors/netty-connector/pom.xml b/connectors/netty-connector/pom.xml
index 2667358e185..6f0073c4618 100644
--- a/connectors/netty-connector/pom.xml
+++ b/connectors/netty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 2.37
+ 2.38-SNAPSHOT
jersey-netty-connector
diff --git a/connectors/pom.xml b/connectors/pom.xml
index 629b101f151..d3a0f47f9b5 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.connectors
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index 1227ef4b208..1a0cff6f896 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers.glassfish
project
- 2.37
+ 2.38-SNAPSHOT
jersey-gf-ejb
diff --git a/containers/glassfish/pom.xml b/containers/glassfish/pom.xml
index 54bf68ba67d..690a86a3cb3 100644
--- a/containers/glassfish/pom.xml
+++ b/containers/glassfish/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.containers.glassfish
diff --git a/containers/grizzly2-http/pom.xml b/containers/grizzly2-http/pom.xml
index 82d4ade5888..4cdd86855eb 100644
--- a/containers/grizzly2-http/pom.xml
+++ b/containers/grizzly2-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-container-grizzly2-http
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index 7d84a9ebdf2..9290e69532c 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-container-grizzly2-servlet
diff --git a/containers/jdk-http/pom.xml b/containers/jdk-http/pom.xml
index ecd65cd9ef4..a2d341d7d07 100644
--- a/containers/jdk-http/pom.xml
+++ b/containers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-container-jdk-http
diff --git a/containers/jersey-servlet-core/pom.xml b/containers/jersey-servlet-core/pom.xml
index 8019ca1062b..092158dadc0 100644
--- a/containers/jersey-servlet-core/pom.xml
+++ b/containers/jersey-servlet-core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-container-servlet-core
diff --git a/containers/jersey-servlet/pom.xml b/containers/jersey-servlet/pom.xml
index cc03dd0be8c..be1fee8d368 100644
--- a/containers/jersey-servlet/pom.xml
+++ b/containers/jersey-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-container-servlet
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index ae2389e3ce6..86ea4683b1f 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.containers
- 2.37
+ 2.38-SNAPSHOT
jersey-container-jetty-http
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 7926b1a99d1..1b4be011e01 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-container-jetty-servlet
diff --git a/containers/netty-http/pom.xml b/containers/netty-http/pom.xml
index c99a6686872..524ad3f351a 100644
--- a/containers/netty-http/pom.xml
+++ b/containers/netty-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-container-netty-http
diff --git a/containers/pom.xml b/containers/pom.xml
index 4a45e68388f..5e9e98fd720 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.containers
diff --git a/containers/simple-http/pom.xml b/containers/simple-http/pom.xml
index ab9fa68fb77..d75aa7a8e4a 100644
--- a/containers/simple-http/pom.xml
+++ b/containers/simple-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-container-simple-http
diff --git a/core-client/pom.xml b/core-client/pom.xml
index 35bab5a6c68..196cca96841 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.core
diff --git a/core-common/pom.xml b/core-common/pom.xml
index 9c9c658ac85..223109f5561 100644
--- a/core-common/pom.xml
+++ b/core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.core
diff --git a/core-server/pom.xml b/core-server/pom.xml
index 4ba86f1ed39..0c0689ed3f8 100644
--- a/core-server/pom.xml
+++ b/core-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.core
diff --git a/docs/pom.xml b/docs/pom.xml
index fbd5884b948..6af661940fe 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
jersey-documentation
pom
diff --git a/examples/assemblies/pom.xml b/examples/assemblies/pom.xml
index 3c1b2a92d56..4fd4c75f985 100644
--- a/examples/assemblies/pom.xml
+++ b/examples/assemblies/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
assemblies
diff --git a/examples/bookmark-em/pom.xml b/examples/bookmark-em/pom.xml
index 897b66afd61..ba2c96a1827 100644
--- a/examples/bookmark-em/pom.xml
+++ b/examples/bookmark-em/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
bookmark-em
diff --git a/examples/bookmark/pom.xml b/examples/bookmark/pom.xml
index 76e0fe69a65..0f2485f9d8a 100644
--- a/examples/bookmark/pom.xml
+++ b/examples/bookmark/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
bookmark
diff --git a/examples/bookstore-webapp/pom.xml b/examples/bookstore-webapp/pom.xml
index c33eb9a17fe..b826f6fe81e 100644
--- a/examples/bookstore-webapp/pom.xml
+++ b/examples/bookstore-webapp/pom.xml
@@ -35,7 +35,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
bookstore-webapp
diff --git a/examples/cdi-webapp/pom.xml b/examples/cdi-webapp/pom.xml
index d8bb7d4d2c7..44288dad89b 100644
--- a/examples/cdi-webapp/pom.xml
+++ b/examples/cdi-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
cdi-webapp
diff --git a/examples/clipboard-programmatic/pom.xml b/examples/clipboard-programmatic/pom.xml
index 7fbb9235c13..42a1dc64e0f 100644
--- a/examples/clipboard-programmatic/pom.xml
+++ b/examples/clipboard-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
clipboard-programmatic
diff --git a/examples/clipboard/pom.xml b/examples/clipboard/pom.xml
index cb446be180a..e814c4c9ac4 100644
--- a/examples/clipboard/pom.xml
+++ b/examples/clipboard/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
clipboard
diff --git a/examples/declarative-linking/pom.xml b/examples/declarative-linking/pom.xml
index 85ea1f04b21..ec0c90d1d14 100644
--- a/examples/declarative-linking/pom.xml
+++ b/examples/declarative-linking/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
declarative-linking
diff --git a/examples/entity-filtering-security/pom.xml b/examples/entity-filtering-security/pom.xml
index 8fa15d39001..79ba621b0c6 100644
--- a/examples/entity-filtering-security/pom.xml
+++ b/examples/entity-filtering-security/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
entity-filtering-security
diff --git a/examples/entity-filtering-selectable/pom.xml b/examples/entity-filtering-selectable/pom.xml
index 6b91ce03d28..463b10f9f6b 100644
--- a/examples/entity-filtering-selectable/pom.xml
+++ b/examples/entity-filtering-selectable/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
entity-filtering-selectable
diff --git a/examples/entity-filtering/pom.xml b/examples/entity-filtering/pom.xml
index 4febee4843a..6c15e19bb5c 100644
--- a/examples/entity-filtering/pom.xml
+++ b/examples/entity-filtering/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
entity-filtering
diff --git a/examples/exception-mapping/pom.xml b/examples/exception-mapping/pom.xml
index c3aaa9a3530..cdfaa597861 100644
--- a/examples/exception-mapping/pom.xml
+++ b/examples/exception-mapping/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
exception-mapping
diff --git a/examples/extended-wadl-webapp/pom.xml b/examples/extended-wadl-webapp/pom.xml
index 3b11d1d4581..736b9975cbd 100644
--- a/examples/extended-wadl-webapp/pom.xml
+++ b/examples/extended-wadl-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
extended-wadl-webapp
diff --git a/examples/freemarker-webapp/pom.xml b/examples/freemarker-webapp/pom.xml
index c456696f556..c10519328cf 100644
--- a/examples/freemarker-webapp/pom.xml
+++ b/examples/freemarker-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
freemarker-webapp
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index 05c20c69e0c..ccc4956d6f7 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
groovy
jar
diff --git a/examples/helloworld-benchmark/pom.xml b/examples/helloworld-benchmark/pom.xml
index 138f0b1bfa6..a52a2ee086b 100644
--- a/examples/helloworld-benchmark/pom.xml
+++ b/examples/helloworld-benchmark/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
helloworld-benchmark
diff --git a/examples/helloworld-cdi2-se/pom.xml b/examples/helloworld-cdi2-se/pom.xml
index 3c7cee169ff..7d068c9ab0c 100644
--- a/examples/helloworld-cdi2-se/pom.xml
+++ b/examples/helloworld-cdi2-se/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
helloworld-cdi2-se
diff --git a/examples/helloworld-netty/pom.xml b/examples/helloworld-netty/pom.xml
index 794d4371485..99ec59d5a5c 100644
--- a/examples/helloworld-netty/pom.xml
+++ b/examples/helloworld-netty/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
helloworld-netty
diff --git a/examples/helloworld-programmatic/pom.xml b/examples/helloworld-programmatic/pom.xml
index 4d1c4d33675..140198a72a1 100644
--- a/examples/helloworld-programmatic/pom.xml
+++ b/examples/helloworld-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
helloworld-programmatic
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index 2ea65c4dd33..4bc69166b78 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
helloworld-pure-jax-rs
diff --git a/examples/helloworld-spring-annotations/pom.xml b/examples/helloworld-spring-annotations/pom.xml
index 69bae30640f..cb1342d96b6 100644
--- a/examples/helloworld-spring-annotations/pom.xml
+++ b/examples/helloworld-spring-annotations/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 2.37
+ 2.38-SNAPSHOT
4.0.0
helloworld-spring-annotations
diff --git a/examples/helloworld-spring-webapp/pom.xml b/examples/helloworld-spring-webapp/pom.xml
index 815ffa49c8e..0610019755b 100644
--- a/examples/helloworld-spring-webapp/pom.xml
+++ b/examples/helloworld-spring-webapp/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
helloworld-spring-webapp
diff --git a/examples/helloworld-webapp/pom.xml b/examples/helloworld-webapp/pom.xml
index ffb3ffe2390..2c7c32a5fa9 100644
--- a/examples/helloworld-webapp/pom.xml
+++ b/examples/helloworld-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
helloworld-webapp
diff --git a/examples/helloworld-weld/pom.xml b/examples/helloworld-weld/pom.xml
index 08892dfa637..64b5befd07b 100644
--- a/examples/helloworld-weld/pom.xml
+++ b/examples/helloworld-weld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
helloworld-weld
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index 3b35c3a8a16..db2aeef24dc 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
helloworld
diff --git a/examples/http-patch/pom.xml b/examples/http-patch/pom.xml
index b9f203537b1..b153aba5b91 100644
--- a/examples/http-patch/pom.xml
+++ b/examples/http-patch/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
http-patch
diff --git a/examples/http-trace/pom.xml b/examples/http-trace/pom.xml
index 71cb7a2ef00..705dea826ae 100644
--- a/examples/http-trace/pom.xml
+++ b/examples/http-trace/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
http-trace
diff --git a/examples/https-clientserver-grizzly/pom.xml b/examples/https-clientserver-grizzly/pom.xml
index 39fada13519..c96284fffdc 100644
--- a/examples/https-clientserver-grizzly/pom.xml
+++ b/examples/https-clientserver-grizzly/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
https-clientserver-grizzly
diff --git a/examples/https-server-glassfish/pom.xml b/examples/https-server-glassfish/pom.xml
index 78517563a65..05aa3b712f5 100644
--- a/examples/https-server-glassfish/pom.xml
+++ b/examples/https-server-glassfish/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
https-server-glassfish
diff --git a/examples/java8-webapp/pom.xml b/examples/java8-webapp/pom.xml
index 1bf044f1f7f..e157768c326 100644
--- a/examples/java8-webapp/pom.xml
+++ b/examples/java8-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
java8-webapp
diff --git a/examples/jaxb/pom.xml b/examples/jaxb/pom.xml
index b07cb8f90c9..4c900442647 100644
--- a/examples/jaxb/pom.xml
+++ b/examples/jaxb/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
jaxb
diff --git a/examples/jaxrs-types-injection/pom.xml b/examples/jaxrs-types-injection/pom.xml
index 4ae2da71047..d43a2f71d29 100644
--- a/examples/jaxrs-types-injection/pom.xml
+++ b/examples/jaxrs-types-injection/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
jaxrs-types-injection
diff --git a/examples/jersey-ejb/pom.xml b/examples/jersey-ejb/pom.xml
index b29021006f6..91728e76ea1 100644
--- a/examples/jersey-ejb/pom.xml
+++ b/examples/jersey-ejb/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
jersey-ejb
diff --git a/examples/json-binding-webapp/pom.xml b/examples/json-binding-webapp/pom.xml
index fefaedb4a86..be437d9a173 100644
--- a/examples/json-binding-webapp/pom.xml
+++ b/examples/json-binding-webapp/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
json-binding-webapp
diff --git a/examples/json-jackson/pom.xml b/examples/json-jackson/pom.xml
index 3701caa8801..5be93367fac 100644
--- a/examples/json-jackson/pom.xml
+++ b/examples/json-jackson/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
json-jackson
diff --git a/examples/json-jackson1/pom.xml b/examples/json-jackson1/pom.xml
index ade469dee11..0892f0dce72 100644
--- a/examples/json-jackson1/pom.xml
+++ b/examples/json-jackson1/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
json-jackson1
diff --git a/examples/json-jettison/pom.xml b/examples/json-jettison/pom.xml
index 1248e1ff1e5..3d49d388051 100644
--- a/examples/json-jettison/pom.xml
+++ b/examples/json-jettison/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
json-jettison
diff --git a/examples/json-moxy/pom.xml b/examples/json-moxy/pom.xml
index 3a2d96a95fc..91a38dcac83 100644
--- a/examples/json-moxy/pom.xml
+++ b/examples/json-moxy/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
json-moxy
diff --git a/examples/json-processing-webapp/pom.xml b/examples/json-processing-webapp/pom.xml
index 730d98bab13..f47b13c053e 100644
--- a/examples/json-processing-webapp/pom.xml
+++ b/examples/json-processing-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
json-processing-webapp
diff --git a/examples/json-with-padding/pom.xml b/examples/json-with-padding/pom.xml
index aa6cf9a964e..78a62934024 100644
--- a/examples/json-with-padding/pom.xml
+++ b/examples/json-with-padding/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
json-with-padding
diff --git a/examples/managed-beans-webapp/pom.xml b/examples/managed-beans-webapp/pom.xml
index 5915f2e180d..36990aa8ec3 100644
--- a/examples/managed-beans-webapp/pom.xml
+++ b/examples/managed-beans-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
managed-beans-webapp
diff --git a/examples/managed-client-simple-webapp/pom.xml b/examples/managed-client-simple-webapp/pom.xml
index 33efaea651d..957ee2250a8 100644
--- a/examples/managed-client-simple-webapp/pom.xml
+++ b/examples/managed-client-simple-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
managed-client-simple-webapp
diff --git a/examples/managed-client-webapp/pom.xml b/examples/managed-client-webapp/pom.xml
index 41ee20a38f5..8201b4ed189 100644
--- a/examples/managed-client-webapp/pom.xml
+++ b/examples/managed-client-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
managed-client-webapp
diff --git a/examples/managed-client/pom.xml b/examples/managed-client/pom.xml
index a4f0b1f0619..474a10db579 100644
--- a/examples/managed-client/pom.xml
+++ b/examples/managed-client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
managed-client
diff --git a/examples/multipart-webapp/pom.xml b/examples/multipart-webapp/pom.xml
index 7785f04893b..8479b6d8635 100644
--- a/examples/multipart-webapp/pom.xml
+++ b/examples/multipart-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
multipart-webapp
diff --git a/examples/oauth-client-twitter/pom.xml b/examples/oauth-client-twitter/pom.xml
index 8dc4be4e679..092209111d5 100644
--- a/examples/oauth-client-twitter/pom.xml
+++ b/examples/oauth-client-twitter/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index 6bf97ebb255..1bf2dc13afb 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
open-tracing
diff --git a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
index 3840b39c726..e8fbea27528 100644
--- a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
index 29522bcb641..6e1a9d9d25f 100644
--- a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index f5f44c53bf1..dc12eaab087 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
index c5072549e12..1fe07c6ff0c 100644
--- a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/pom.xml b/examples/osgi-helloworld-webapp/pom.xml
index f0c233ee2d7..e639b6e54fc 100644
--- a/examples/osgi-helloworld-webapp/pom.xml
+++ b/examples/osgi-helloworld-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/war-bundle/pom.xml b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
index d66dc6a97fd..1fade782067 100644
--- a/examples/osgi-helloworld-webapp/war-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-http-service/bundle/pom.xml b/examples/osgi-http-service/bundle/pom.xml
index 3cd1039d7f6..80395b15792 100644
--- a/examples/osgi-http-service/bundle/pom.xml
+++ b/examples/osgi-http-service/bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-http-service
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.examples.osgi-http-service
diff --git a/examples/osgi-http-service/functional-test/pom.xml b/examples/osgi-http-service/functional-test/pom.xml
index 01d38f66cc5..2777ad5dbd7 100644
--- a/examples/osgi-http-service/functional-test/pom.xml
+++ b/examples/osgi-http-service/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-http-service
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.examples.osgi-http-service
diff --git a/examples/osgi-http-service/pom.xml b/examples/osgi-http-service/pom.xml
index af031787c75..e40f9deca35 100644
--- a/examples/osgi-http-service/pom.xml
+++ b/examples/osgi-http-service/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
osgi-http-service
diff --git a/examples/pom.xml b/examples/pom.xml
index 6606fde3450..2b772019584 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
diff --git a/examples/reload/pom.xml b/examples/reload/pom.xml
index 9b9d850687f..144c0f6dd01 100644
--- a/examples/reload/pom.xml
+++ b/examples/reload/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
reload
diff --git a/examples/rx-client-webapp/pom.xml b/examples/rx-client-webapp/pom.xml
index ff178e17be7..124c64edbcb 100644
--- a/examples/rx-client-webapp/pom.xml
+++ b/examples/rx-client-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
rx-client-webapp
diff --git a/examples/server-async-managed/pom.xml b/examples/server-async-managed/pom.xml
index b3b71375a4d..0ca77f478e3 100644
--- a/examples/server-async-managed/pom.xml
+++ b/examples/server-async-managed/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
server-async-managed
diff --git a/examples/server-async-standalone/client/pom.xml b/examples/server-async-standalone/client/pom.xml
index 3264f957919..567abdcc6eb 100644
--- a/examples/server-async-standalone/client/pom.xml
+++ b/examples/server-async-standalone/client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 2.37
+ 2.38-SNAPSHOT
server-async-standalone-client
diff --git a/examples/server-async-standalone/pom.xml b/examples/server-async-standalone/pom.xml
index 180faa5702d..582f7f4fd48 100644
--- a/examples/server-async-standalone/pom.xml
+++ b/examples/server-async-standalone/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
server-async-standalone
diff --git a/examples/server-async-standalone/webapp/pom.xml b/examples/server-async-standalone/webapp/pom.xml
index 854bd950b5d..fe234d63ecd 100644
--- a/examples/server-async-standalone/webapp/pom.xml
+++ b/examples/server-async-standalone/webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 2.37
+ 2.38-SNAPSHOT
server-async-standalone-webapp
diff --git a/examples/server-async/pom.xml b/examples/server-async/pom.xml
index c5cf297484f..d28d3353df9 100644
--- a/examples/server-async/pom.xml
+++ b/examples/server-async/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
server-async
diff --git a/examples/server-sent-events-jaxrs/pom.xml b/examples/server-sent-events-jaxrs/pom.xml
index a852cb45ba0..d434d742a68 100644
--- a/examples/server-sent-events-jaxrs/pom.xml
+++ b/examples/server-sent-events-jaxrs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
server-sent-events-jaxrs
diff --git a/examples/server-sent-events-jersey/pom.xml b/examples/server-sent-events-jersey/pom.xml
index 9e9af16c049..5b6bf6f4e55 100644
--- a/examples/server-sent-events-jersey/pom.xml
+++ b/examples/server-sent-events-jersey/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
server-sent-events-jersey
diff --git a/examples/servlet3-webapp/pom.xml b/examples/servlet3-webapp/pom.xml
index 44c2f63c330..bfb5b614c9e 100644
--- a/examples/servlet3-webapp/pom.xml
+++ b/examples/servlet3-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
servlet3-webapp
diff --git a/examples/simple-console/pom.xml b/examples/simple-console/pom.xml
index 2479ba2f47b..178ed26f1ec 100644
--- a/examples/simple-console/pom.xml
+++ b/examples/simple-console/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
simple-console
diff --git a/examples/sse-item-store-jaxrs-webapp/pom.xml b/examples/sse-item-store-jaxrs-webapp/pom.xml
index c7993cd682c..30f3f69a597 100644
--- a/examples/sse-item-store-jaxrs-webapp/pom.xml
+++ b/examples/sse-item-store-jaxrs-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
sse-item-store-jaxrs-webapp
diff --git a/examples/sse-item-store-jersey-webapp/pom.xml b/examples/sse-item-store-jersey-webapp/pom.xml
index 3e566bf4ce0..b21601c30d9 100644
--- a/examples/sse-item-store-jersey-webapp/pom.xml
+++ b/examples/sse-item-store-jersey-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 2.37
+ 2.38-SNAPSHOT
sse-item-store-jersey-webapp
diff --git a/examples/sse-twitter-aggregator/pom.xml b/examples/sse-twitter-aggregator/pom.xml
index c8135da29e3..96daf38e141 100644
--- a/examples/sse-twitter-aggregator/pom.xml
+++ b/examples/sse-twitter-aggregator/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
sse-twitter-aggregator
diff --git a/examples/system-properties-example/pom.xml b/examples/system-properties-example/pom.xml
index bba6c224075..9a358f28148 100644
--- a/examples/system-properties-example/pom.xml
+++ b/examples/system-properties-example/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
system-properties-example
diff --git a/examples/webapp-example-parent/pom.xml b/examples/webapp-example-parent/pom.xml
index 2fa2b0c10a2..09f128167c0 100644
--- a/examples/webapp-example-parent/pom.xml
+++ b/examples/webapp-example-parent/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
webapp-example-parent
diff --git a/examples/xml-moxy/pom.xml b/examples/xml-moxy/pom.xml
index a765b26ec86..32bfc40b386 100644
--- a/examples/xml-moxy/pom.xml
+++ b/examples/xml-moxy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 2.37
+ 2.38-SNAPSHOT
xml-moxy
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index 9ab4e3396e9..0ca19e0fd1b 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
jersey-bean-validation
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index 838df15528e..68505d2b0e3 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext.cdi
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
index 3b813956736..583a5b4be6c 100644
--- a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
+++ b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 2.37
+ 2.38-SNAPSHOT
jersey-cdi1x-ban-custom-hk2-binding
diff --git a/ext/cdi/jersey-cdi1x-servlet/pom.xml b/ext/cdi/jersey-cdi1x-servlet/pom.xml
index 840f1ddb8db..6efc68f32f5 100644
--- a/ext/cdi/jersey-cdi1x-servlet/pom.xml
+++ b/ext/cdi/jersey-cdi1x-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 2.37
+ 2.38-SNAPSHOT
jersey-cdi1x-servlet
diff --git a/ext/cdi/jersey-cdi1x-transaction/pom.xml b/ext/cdi/jersey-cdi1x-transaction/pom.xml
index 18ac4dcb9ec..35715dc3596 100644
--- a/ext/cdi/jersey-cdi1x-transaction/pom.xml
+++ b/ext/cdi/jersey-cdi1x-transaction/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 2.37
+ 2.38-SNAPSHOT
jersey-cdi1x-transaction
diff --git a/ext/cdi/jersey-cdi1x-validation/pom.xml b/ext/cdi/jersey-cdi1x-validation/pom.xml
index adf0ea88072..2cd335fb9c6 100644
--- a/ext/cdi/jersey-cdi1x-validation/pom.xml
+++ b/ext/cdi/jersey-cdi1x-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 2.37
+ 2.38-SNAPSHOT
jersey-cdi1x-validation
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index 4b6c138ec45..61c5971980e 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 2.37
+ 2.38-SNAPSHOT
jersey-cdi1x
diff --git a/ext/cdi/jersey-weld2-se/pom.xml b/ext/cdi/jersey-weld2-se/pom.xml
index 7aa0a819320..ef83d2bb940 100644
--- a/ext/cdi/jersey-weld2-se/pom.xml
+++ b/ext/cdi/jersey-weld2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 2.37
+ 2.38-SNAPSHOT
jersey-weld2-se
diff --git a/ext/cdi/pom.xml b/ext/cdi/pom.xml
index 56644bc83bb..9b91cd43f53 100644
--- a/ext/cdi/pom.xml
+++ b/ext/cdi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.ext.cdi
diff --git a/ext/entity-filtering/pom.xml b/ext/entity-filtering/pom.xml
index 63478a44d7b..a47bb809136 100644
--- a/ext/entity-filtering/pom.xml
+++ b/ext/entity-filtering/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
jersey-entity-filtering
diff --git a/ext/metainf-services/pom.xml b/ext/metainf-services/pom.xml
index 66781aa7729..14d42315e4e 100644
--- a/ext/metainf-services/pom.xml
+++ b/ext/metainf-services/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
jersey-metainf-services
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index a474e01f551..dba9f6c6b32 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext.microprofile
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index e4b5082cae9..6265c0776af 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.ext.microprofile
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/ext/microprofile/pom.xml b/ext/microprofile/pom.xml
index 7c587026e34..fc64587942c 100644
--- a/ext/microprofile/pom.xml
+++ b/ext/microprofile/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/ext/mvc-bean-validation/pom.xml b/ext/mvc-bean-validation/pom.xml
index 021d9c93bf3..a695504ca31 100644
--- a/ext/mvc-bean-validation/pom.xml
+++ b/ext/mvc-bean-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
jersey-mvc-bean-validation
diff --git a/ext/mvc-freemarker/pom.xml b/ext/mvc-freemarker/pom.xml
index d60cdc2484c..e94d5b6d1ae 100644
--- a/ext/mvc-freemarker/pom.xml
+++ b/ext/mvc-freemarker/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
jersey-mvc-freemarker
diff --git a/ext/mvc-jsp/pom.xml b/ext/mvc-jsp/pom.xml
index eff5cae8b27..681b7ba08fe 100644
--- a/ext/mvc-jsp/pom.xml
+++ b/ext/mvc-jsp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
jersey-mvc-jsp
diff --git a/ext/mvc-mustache/pom.xml b/ext/mvc-mustache/pom.xml
index f4eed323b50..a216815e394 100644
--- a/ext/mvc-mustache/pom.xml
+++ b/ext/mvc-mustache/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
jersey-mvc-mustache
diff --git a/ext/mvc/pom.xml b/ext/mvc/pom.xml
index 3493de69b9c..84ef08a614b 100644
--- a/ext/mvc/pom.xml
+++ b/ext/mvc/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
jersey-mvc
diff --git a/ext/pom.xml b/ext/pom.xml
index 6a41f777fc5..f4109a6aeb8 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.ext
diff --git a/ext/proxy-client/pom.xml b/ext/proxy-client/pom.xml
index b997fc14e5d..693e3fad2b1 100644
--- a/ext/proxy-client/pom.xml
+++ b/ext/proxy-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
jersey-proxy-client
diff --git a/ext/rx/pom.xml b/ext/rx/pom.xml
index 063b279082a..83f755b2b68 100644
--- a/ext/rx/pom.xml
+++ b/ext/rx/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.ext.rx
diff --git a/ext/rx/rx-client-guava/pom.xml b/ext/rx/rx-client-guava/pom.xml
index 35d2f0824c1..ab36ecc956c 100644
--- a/ext/rx/rx-client-guava/pom.xml
+++ b/ext/rx/rx-client-guava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 2.37
+ 2.38-SNAPSHOT
jersey-rx-client-guava
diff --git a/ext/rx/rx-client-rxjava/pom.xml b/ext/rx/rx-client-rxjava/pom.xml
index 60a7c694854..1472121af90 100644
--- a/ext/rx/rx-client-rxjava/pom.xml
+++ b/ext/rx/rx-client-rxjava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 2.37
+ 2.38-SNAPSHOT
jersey-rx-client-rxjava
diff --git a/ext/rx/rx-client-rxjava2/pom.xml b/ext/rx/rx-client-rxjava2/pom.xml
index 7a0cdb79fc7..40c9d51aee2 100644
--- a/ext/rx/rx-client-rxjava2/pom.xml
+++ b/ext/rx/rx-client-rxjava2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 2.37
+ 2.38-SNAPSHOT
jersey-rx-client-rxjava2
diff --git a/ext/servlet-portability/pom.xml b/ext/servlet-portability/pom.xml
index 6732e4b9925..6b741340b94 100644
--- a/ext/servlet-portability/pom.xml
+++ b/ext/servlet-portability/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 2.37
+ 2.38-SNAPSHOT
jersey-servlet-portability
diff --git a/ext/spring4/pom.xml b/ext/spring4/pom.xml
index fd0248267e5..4ac0dc65136 100644
--- a/ext/spring4/pom.xml
+++ b/ext/spring4/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
jersey-spring4
diff --git a/ext/spring5/pom.xml b/ext/spring5/pom.xml
index a8b6b02089d..28e99c21af4 100644
--- a/ext/spring5/pom.xml
+++ b/ext/spring5/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 2.37
+ 2.38-SNAPSHOT
jersey-spring5
diff --git a/ext/wadl-doclet/pom.xml b/ext/wadl-doclet/pom.xml
index 026e4c6fd9d..2de8aab75c5 100644
--- a/ext/wadl-doclet/pom.xml
+++ b/ext/wadl-doclet/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext
- 2.37
+ 2.38-SNAPSHOT
4.0.0
jersey-wadl-doclet
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index 9505689c153..599099f584b 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 2.37
+ 2.38-SNAPSHOT
jersey-cdi-inject-weld
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index 9029dbbeb9c..56d220814ea 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.ext
diff --git a/incubator/gae-integration/pom.xml b/incubator/gae-integration/pom.xml
index 8e43a731268..0d70902d970 100644
--- a/incubator/gae-integration/pom.xml
+++ b/incubator/gae-integration/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 2.37
+ 2.38-SNAPSHOT
jersey-gae-integration
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index e1a69b1e4a5..16026364da8 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.media
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index f65379a697d..30d86d58585 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.media
diff --git a/incubator/open-tracing/pom.xml b/incubator/open-tracing/pom.xml
index 3c1ba7fb758..6e7450270c7 100644
--- a/incubator/open-tracing/pom.xml
+++ b/incubator/open-tracing/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.incubator
diff --git a/incubator/pom.xml b/incubator/pom.xml
index 0d92b431e6a..1a362714fac 100644
--- a/incubator/pom.xml
+++ b/incubator/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.incubator
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index c11924d9461..da9dcdc4666 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 2.37
+ 2.38-SNAPSHOT
jersey-cdi2-se
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index d61a2de93cd..195b4ecfa08 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 2.37
+ 2.38-SNAPSHOT
jersey-hk2
diff --git a/inject/pom.xml b/inject/pom.xml
index 9baff4b17a0..46846c8ec20 100644
--- a/inject/pom.xml
+++ b/inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.inject
diff --git a/media/jaxb/pom.xml b/media/jaxb/pom.xml
index 03f8c5a639b..61fae82b495 100644
--- a/media/jaxb/pom.xml
+++ b/media/jaxb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37
+ 2.38-SNAPSHOT
jersey-media-jaxb
diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
index 21897850b0a..899e682bfd8 100644
--- a/media/json-binding/pom.xml
+++ b/media/json-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37
+ 2.38-SNAPSHOT
jersey-media-json-binding
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index 45ff0f3061a..157e84f2242 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37
+ 2.38-SNAPSHOT
jersey-media-json-gson
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index 5967ba18d7b..ccfb15ac64a 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37
+ 2.38-SNAPSHOT
jersey-media-json-jackson
diff --git a/media/json-jackson1/pom.xml b/media/json-jackson1/pom.xml
index a911644aae9..ada3eaead00 100644
--- a/media/json-jackson1/pom.xml
+++ b/media/json-jackson1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37
+ 2.38-SNAPSHOT
jersey-media-json-jackson1
diff --git a/media/json-jettison/pom.xml b/media/json-jettison/pom.xml
index 38de36935ad..2436a5e32e6 100644
--- a/media/json-jettison/pom.xml
+++ b/media/json-jettison/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37
+ 2.38-SNAPSHOT
jersey-media-json-jettison
diff --git a/media/json-processing/pom.xml b/media/json-processing/pom.xml
index fee7d035c1c..f98abe3a690 100644
--- a/media/json-processing/pom.xml
+++ b/media/json-processing/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37
+ 2.38-SNAPSHOT
jersey-media-json-processing
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index b88514e591d..64ee029adc6 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37
+ 2.38-SNAPSHOT
jersey-media-moxy
diff --git a/media/multipart/pom.xml b/media/multipart/pom.xml
index fc6db99a82b..9d6113c3701 100644
--- a/media/multipart/pom.xml
+++ b/media/multipart/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37
+ 2.38-SNAPSHOT
jersey-media-multipart
diff --git a/media/pom.xml b/media/pom.xml
index d91692ef78f..98fcf4e9dbd 100644
--- a/media/pom.xml
+++ b/media/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.media
diff --git a/media/sse/pom.xml b/media/sse/pom.xml
index 7d74fd6f210..ce434af3771 100644
--- a/media/sse/pom.xml
+++ b/media/sse/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 2.37
+ 2.38-SNAPSHOT
jersey-media-sse
diff --git a/pom.xml b/pom.xml
index dce893ff231..0f08664574e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
org.glassfish.jersey
project
pom
- 2.37
+ 2.38-SNAPSHOT
jersey
Eclipse Jersey is the open source (under dual EPL+GPL license) JAX-RS 2.1 (JSR 370)
diff --git a/security/oauth1-client/pom.xml b/security/oauth1-client/pom.xml
index 228b3fc566a..8da420c97e8 100644
--- a/security/oauth1-client/pom.xml
+++ b/security/oauth1-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.security
project
- 2.37
+ 2.38-SNAPSHOT
oauth1-client
diff --git a/security/oauth1-server/pom.xml b/security/oauth1-server/pom.xml
index 7b62d048f4d..777d8aa07d8 100644
--- a/security/oauth1-server/pom.xml
+++ b/security/oauth1-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.security
project
- 2.37
+ 2.38-SNAPSHOT
oauth1-server
diff --git a/security/oauth1-signature/pom.xml b/security/oauth1-signature/pom.xml
index 2863748918a..3a3d7a155f2 100644
--- a/security/oauth1-signature/pom.xml
+++ b/security/oauth1-signature/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/security/oauth2-client/pom.xml b/security/oauth2-client/pom.xml
index 1384f0834f4..e9f8c7fe0cd 100644
--- a/security/oauth2-client/pom.xml
+++ b/security/oauth2-client/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/security/pom.xml b/security/pom.xml
index dec8f451bb5..13f50f322af 100644
--- a/security/pom.xml
+++ b/security/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.security
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index eb9f2913916..fe07d92bace 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 2.37
+ 2.38-SNAPSHOT
jersey-test-framework-core
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index e3f5a652341..4b98928027e 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 2.37
+ 2.38-SNAPSHOT
container-runner-maven-plugin
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index e4c0809e102..ad2c6fe1927 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 2.37
+ 2.38-SNAPSHOT
custom-enforcer-rules
diff --git a/test-framework/maven/pom.xml b/test-framework/maven/pom.xml
index 44f5f343088..c1358670ad2 100644
--- a/test-framework/maven/pom.xml
+++ b/test-framework/maven/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.test-framework.maven
diff --git a/test-framework/memleak-test-common/pom.xml b/test-framework/memleak-test-common/pom.xml
index a4e4913baa9..c51ef21c185 100644
--- a/test-framework/memleak-test-common/pom.xml
+++ b/test-framework/memleak-test-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 2.37
+ 2.38-SNAPSHOT
memleak-test-common
diff --git a/test-framework/pom.xml b/test-framework/pom.xml
index 6d1339d50dd..638b3c1e61c 100644
--- a/test-framework/pom.xml
+++ b/test-framework/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.test-framework
diff --git a/test-framework/providers/bundle/pom.xml b/test-framework/providers/bundle/pom.xml
index 17ebc4d21ed..057f0b64703 100644
--- a/test-framework/providers/bundle/pom.xml
+++ b/test-framework/providers/bundle/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-test-framework-provider-bundle
diff --git a/test-framework/providers/external/pom.xml b/test-framework/providers/external/pom.xml
index 983acaf925d..fc985796e08 100644
--- a/test-framework/providers/external/pom.xml
+++ b/test-framework/providers/external/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-test-framework-provider-external
diff --git a/test-framework/providers/grizzly2/pom.xml b/test-framework/providers/grizzly2/pom.xml
index 4bf5f833ad9..ed152d9e0c5 100644
--- a/test-framework/providers/grizzly2/pom.xml
+++ b/test-framework/providers/grizzly2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-test-framework-provider-grizzly2
diff --git a/test-framework/providers/inmemory/pom.xml b/test-framework/providers/inmemory/pom.xml
index 9aa81f18d84..5db4fbe92c1 100644
--- a/test-framework/providers/inmemory/pom.xml
+++ b/test-framework/providers/inmemory/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-test-framework-provider-inmemory
diff --git a/test-framework/providers/jdk-http/pom.xml b/test-framework/providers/jdk-http/pom.xml
index 7576e640449..314c402fb50 100644
--- a/test-framework/providers/jdk-http/pom.xml
+++ b/test-framework/providers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-test-framework-provider-jdk-http
diff --git a/test-framework/providers/jetty/pom.xml b/test-framework/providers/jetty/pom.xml
index 267b4ee060f..4d664e0d90c 100644
--- a/test-framework/providers/jetty/pom.xml
+++ b/test-framework/providers/jetty/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/test-framework/providers/netty/pom.xml b/test-framework/providers/netty/pom.xml
index 1897b2dad7e..09125c514a5 100644
--- a/test-framework/providers/netty/pom.xml
+++ b/test-framework/providers/netty/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 2.37
+ 2.38-SNAPSHOT
jersey-test-framework-provider-netty
diff --git a/test-framework/providers/pom.xml b/test-framework/providers/pom.xml
index 9a1bc470473..162c4162e22 100644
--- a/test-framework/providers/pom.xml
+++ b/test-framework/providers/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.test-framework.providers
diff --git a/test-framework/providers/simple/pom.xml b/test-framework/providers/simple/pom.xml
index c5c4b65716e..98c40c54f20 100644
--- a/test-framework/providers/simple/pom.xml
+++ b/test-framework/providers/simple/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/test-framework/util/pom.xml b/test-framework/util/pom.xml
index 15512ed3b7c..2118bbd59b1 100644
--- a/test-framework/util/pom.xml
+++ b/test-framework/util/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 2.37
+ 2.38-SNAPSHOT
jersey-test-framework-util
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index a1fdd8c17a4..4395a8cbbbc 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37
+ 2.38-SNAPSHOT
e2e-client
diff --git a/tests/e2e-core-common/pom.xml b/tests/e2e-core-common/pom.xml
index b5e744f9a59..fb49a82ab53 100644
--- a/tests/e2e-core-common/pom.xml
+++ b/tests/e2e-core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37
+ 2.38-SNAPSHOT
e2e-core-common
diff --git a/tests/e2e-entity/pom.xml b/tests/e2e-entity/pom.xml
index ee106aa4683..f4560b62f3d 100644
--- a/tests/e2e-entity/pom.xml
+++ b/tests/e2e-entity/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37
+ 2.38-SNAPSHOT
e2e-entity
diff --git a/tests/e2e-inject/cdi-inject-weld/pom.xml b/tests/e2e-inject/cdi-inject-weld/pom.xml
index 9b3553593fb..46c3cd6a901 100644
--- a/tests/e2e-inject/cdi-inject-weld/pom.xml
+++ b/tests/e2e-inject/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 2.37
+ 2.38-SNAPSHOT
e2e-inject-cdi-inject-weld
diff --git a/tests/e2e-inject/cdi2-se/pom.xml b/tests/e2e-inject/cdi2-se/pom.xml
index eff74ce6980..4af136d12d0 100644
--- a/tests/e2e-inject/cdi2-se/pom.xml
+++ b/tests/e2e-inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 2.37
+ 2.38-SNAPSHOT
e2e-inject-cdi2-se
diff --git a/tests/e2e-inject/hk2/pom.xml b/tests/e2e-inject/hk2/pom.xml
index 0f34099d119..bd12a425595 100644
--- a/tests/e2e-inject/hk2/pom.xml
+++ b/tests/e2e-inject/hk2/pom.xml
@@ -23,7 +23,7 @@
e2e-inject
org.glassfish.jersey.tests
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/e2e-inject/pom.xml b/tests/e2e-inject/pom.xml
index 1794063dfb6..c0990e3991d 100644
--- a/tests/e2e-inject/pom.xml
+++ b/tests/e2e-inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37
+ 2.38-SNAPSHOT
e2e-inject
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index 4ab0c49bdc1..2579e9ee5d3 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37
+ 2.38-SNAPSHOT
e2e-server
diff --git a/tests/e2e-testng/pom.xml b/tests/e2e-testng/pom.xml
index 694a4ca075f..18164b694c7 100644
--- a/tests/e2e-testng/pom.xml
+++ b/tests/e2e-testng/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37
+ 2.38-SNAPSHOT
e2e-testng
diff --git a/tests/e2e/pom.xml b/tests/e2e/pom.xml
index 8c5ac64d11c..5d22471a602 100644
--- a/tests/e2e/pom.xml
+++ b/tests/e2e/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37
+ 2.38-SNAPSHOT
e2e
diff --git a/tests/integration/asm/pom.xml b/tests/integration/asm/pom.xml
index ff2d8f65eaa..90980d0512e 100644
--- a/tests/integration/asm/pom.xml
+++ b/tests/integration/asm/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/async-jersey-filter/pom.xml b/tests/integration/async-jersey-filter/pom.xml
index 613ac3b9567..9c4250067c7 100644
--- a/tests/integration/async-jersey-filter/pom.xml
+++ b/tests/integration/async-jersey-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
async-jersey-filter
diff --git a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
index a1de1d3076c..474e4571a78 100644
--- a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
cdi-beanvalidation-webapp
diff --git a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
index 6be5239705c..66f7b3deec3 100644
--- a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
cdi-client-on-server
diff --git a/tests/integration/cdi-integration/cdi-client/pom.xml b/tests/integration/cdi-integration/cdi-client/pom.xml
index d6d53a75a11..ae4fadc5a27 100644
--- a/tests/integration/cdi-integration/cdi-client/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
cdi-client
diff --git a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
index 6968335c212..9c08c95468e 100644
--- a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
cdi-ejb-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
index 860c34bc942..8a848f7b631 100644
--- a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
cdi-iface-with-non-jaxrs-impl-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-log-check/pom.xml b/tests/integration/cdi-integration/cdi-log-check/pom.xml
index 29e88bc4d38..e0c3892de5d 100644
--- a/tests/integration/cdi-integration/cdi-log-check/pom.xml
+++ b/tests/integration/cdi-integration/cdi-log-check/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
cdi-log-check
diff --git a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
index c434891741b..154002b2465 100644
--- a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
+++ b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
index 7bdbe13efff..115ed366fe8 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
index 65e38d97ddd..aa18be09602 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
index 91aa66a70be..3eda963b48c 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
cdi-multimodule
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
index 0194b44f33f..dcffa9c1f0e 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
index 8cc1c993504..c1e3ada7129 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
index 0d60bb8ea63..17c611fc328 100644
--- a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
cdi-multipart-webapp
diff --git a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
index 32b7687b816..516a66682b1 100644
--- a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
+++ b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-singleton/pom.xml b/tests/integration/cdi-integration/cdi-singleton/pom.xml
index 816a47c2865..9fbfc1eda81 100644
--- a/tests/integration/cdi-integration/cdi-singleton/pom.xml
+++ b/tests/integration/cdi-integration/cdi-singleton/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
index e6bd39b0d4e..3d7d1b3bb3d 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
cdi-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
index fd95acb5ef0..9da9931b533 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
cdi-with-jersey-injection-custom-cfg-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
index 8b808707501..07cf257db7b 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
cdi-with-jersey-injection-custom-hk2-banned-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
index 8f788e4f7df..96e4c250aea 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
cdi-with-jersey-injection-webapp
diff --git a/tests/integration/cdi-integration/context-inject-on-server/pom.xml b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
index ed145027a5f..2b86d78914f 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/pom.xml
+++ b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
context-inject-on-server
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
index 64a4d05197d..dc889cf4c32 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
+++ b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 2.37
+ 2.38-SNAPSHOT
gf-cdi-inject-on-server
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index 2115d9e7d7b..68dae24448c 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/client-connector-provider/pom.xml b/tests/integration/client-connector-provider/pom.xml
index deac9057e79..caefaf8ee75 100644
--- a/tests/integration/client-connector-provider/pom.xml
+++ b/tests/integration/client-connector-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
client-connector-provider
diff --git a/tests/integration/ejb-multimodule-reload/ear/pom.xml b/tests/integration/ejb-multimodule-reload/ear/pom.xml
index 3a5a847f02a..d89adb00696 100644
--- a/tests/integration/ejb-multimodule-reload/ear/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/lib/pom.xml b/tests/integration/ejb-multimodule-reload/lib/pom.xml
index 083a6acdec9..76971867dab 100644
--- a/tests/integration/ejb-multimodule-reload/lib/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/pom.xml b/tests/integration/ejb-multimodule-reload/pom.xml
index 6870895f1a5..f2cae8fc2d9 100644
--- a/tests/integration/ejb-multimodule-reload/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
ejb-multimodule-reload
diff --git a/tests/integration/ejb-multimodule-reload/war1/pom.xml b/tests/integration/ejb-multimodule-reload/war1/pom.xml
index c3546c9a63a..313f8ab1938 100644
--- a/tests/integration/ejb-multimodule-reload/war1/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/war2/pom.xml b/tests/integration/ejb-multimodule-reload/war2/pom.xml
index 6c7b1a618b7..21769924895 100644
--- a/tests/integration/ejb-multimodule-reload/war2/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/ear/pom.xml b/tests/integration/ejb-multimodule/ear/pom.xml
index e5897b71edf..ef55df9bbaa 100644
--- a/tests/integration/ejb-multimodule/ear/pom.xml
+++ b/tests/integration/ejb-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/lib/pom.xml b/tests/integration/ejb-multimodule/lib/pom.xml
index cd5c07405ed..c30e0893607 100644
--- a/tests/integration/ejb-multimodule/lib/pom.xml
+++ b/tests/integration/ejb-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/pom.xml b/tests/integration/ejb-multimodule/pom.xml
index d8edd742dd2..47312eae9e4 100644
--- a/tests/integration/ejb-multimodule/pom.xml
+++ b/tests/integration/ejb-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
ejb-multimodule
diff --git a/tests/integration/ejb-multimodule/war/pom.xml b/tests/integration/ejb-multimodule/war/pom.xml
index 4be0f0933d3..f183be7f59a 100644
--- a/tests/integration/ejb-multimodule/war/pom.xml
+++ b/tests/integration/ejb-multimodule/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-test-webapp/pom.xml b/tests/integration/ejb-test-webapp/pom.xml
index 9fe55623757..05651d432c2 100644
--- a/tests/integration/ejb-test-webapp/pom.xml
+++ b/tests/integration/ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
ejb-test-webapp
diff --git a/tests/integration/externalproperties/pom.xml b/tests/integration/externalproperties/pom.xml
index 7c3de1d5fd8..05e8225cf2b 100644
--- a/tests/integration/externalproperties/pom.xml
+++ b/tests/integration/externalproperties/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
externalproperties
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index 6dacee3a21a..0e49f70cc1a 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
j-376
diff --git a/tests/integration/j-441/ear/pom.xml b/tests/integration/j-441/ear/pom.xml
index f3760677055..bf2de7fd7fb 100644
--- a/tests/integration/j-441/ear/pom.xml
+++ b/tests/integration/j-441/ear/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
j-441-ear
diff --git a/tests/integration/j-441/pom.xml b/tests/integration/j-441/pom.xml
index c39a9f9a896..d4ba647efac 100644
--- a/tests/integration/j-441/pom.xml
+++ b/tests/integration/j-441/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
j-441
diff --git a/tests/integration/j-441/war1/pom.xml b/tests/integration/j-441/war1/pom.xml
index 24bac76d8ce..d5cd11c4c8b 100644
--- a/tests/integration/j-441/war1/pom.xml
+++ b/tests/integration/j-441/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-441/war2/pom.xml b/tests/integration/j-441/war2/pom.xml
index 03eca938e8e..ddbdd35544e 100644
--- a/tests/integration/j-441/war2/pom.xml
+++ b/tests/integration/j-441/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/ear/pom.xml b/tests/integration/j-59/ear/pom.xml
index b05084ab17a..a1c2d55a6c7 100644
--- a/tests/integration/j-59/ear/pom.xml
+++ b/tests/integration/j-59/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/lib/pom.xml b/tests/integration/j-59/lib/pom.xml
index 5e4a172aea3..79b550d8066 100644
--- a/tests/integration/j-59/lib/pom.xml
+++ b/tests/integration/j-59/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/pom.xml b/tests/integration/j-59/pom.xml
index aae6b3c5696..8ba74b0eabb 100644
--- a/tests/integration/j-59/pom.xml
+++ b/tests/integration/j-59/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
j-59
diff --git a/tests/integration/j-59/war/pom.xml b/tests/integration/j-59/war/pom.xml
index 9341337a8c0..0214133e4ed 100644
--- a/tests/integration/j-59/war/pom.xml
+++ b/tests/integration/j-59/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/jaxrs-component-inject/pom.xml b/tests/integration/jaxrs-component-inject/pom.xml
index 25b98062069..0a5c499d75b 100644
--- a/tests/integration/jaxrs-component-inject/pom.xml
+++ b/tests/integration/jaxrs-component-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jaxrs-component-inject
diff --git a/tests/integration/jersey-1107/pom.xml b/tests/integration/jersey-1107/pom.xml
index 8f7e7d59cb7..ed757a44304 100644
--- a/tests/integration/jersey-1107/pom.xml
+++ b/tests/integration/jersey-1107/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-1107
diff --git a/tests/integration/jersey-1223/pom.xml b/tests/integration/jersey-1223/pom.xml
index b97c7483506..24a974fc1fd 100644
--- a/tests/integration/jersey-1223/pom.xml
+++ b/tests/integration/jersey-1223/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
jersey-1223
diff --git a/tests/integration/jersey-1604/pom.xml b/tests/integration/jersey-1604/pom.xml
index 481808c0654..0b0631807b5 100644
--- a/tests/integration/jersey-1604/pom.xml
+++ b/tests/integration/jersey-1604/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
jersey-1604
diff --git a/tests/integration/jersey-1667/pom.xml b/tests/integration/jersey-1667/pom.xml
index 4105ff7a1e5..0a132214931 100644
--- a/tests/integration/jersey-1667/pom.xml
+++ b/tests/integration/jersey-1667/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-1667
diff --git a/tests/integration/jersey-1829/pom.xml b/tests/integration/jersey-1829/pom.xml
index 393c552a989..2e0eb95d990 100644
--- a/tests/integration/jersey-1829/pom.xml
+++ b/tests/integration/jersey-1829/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
jersey-1829
diff --git a/tests/integration/jersey-1883/pom.xml b/tests/integration/jersey-1883/pom.xml
index 80e4f209d6c..6054948a3f2 100644
--- a/tests/integration/jersey-1883/pom.xml
+++ b/tests/integration/jersey-1883/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-1883
diff --git a/tests/integration/jersey-1928/pom.xml b/tests/integration/jersey-1928/pom.xml
index ad93b232739..a56348c81e9 100644
--- a/tests/integration/jersey-1928/pom.xml
+++ b/tests/integration/jersey-1928/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
jersey-1928
diff --git a/tests/integration/jersey-1960/pom.xml b/tests/integration/jersey-1960/pom.xml
index 1d4fb448f85..3840e7d055c 100644
--- a/tests/integration/jersey-1960/pom.xml
+++ b/tests/integration/jersey-1960/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-1960
diff --git a/tests/integration/jersey-1964/pom.xml b/tests/integration/jersey-1964/pom.xml
index a8b6b2c10cf..119b28023b7 100644
--- a/tests/integration/jersey-1964/pom.xml
+++ b/tests/integration/jersey-1964/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-1964
diff --git a/tests/integration/jersey-2031/pom.xml b/tests/integration/jersey-2031/pom.xml
index 5dad60db156..4f80ab2bef3 100644
--- a/tests/integration/jersey-2031/pom.xml
+++ b/tests/integration/jersey-2031/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2031
diff --git a/tests/integration/jersey-2136/pom.xml b/tests/integration/jersey-2136/pom.xml
index 6548c6eca56..54bb2b10700 100644
--- a/tests/integration/jersey-2136/pom.xml
+++ b/tests/integration/jersey-2136/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2136
diff --git a/tests/integration/jersey-2137/pom.xml b/tests/integration/jersey-2137/pom.xml
index a3069651a4e..d9875516e6d 100644
--- a/tests/integration/jersey-2137/pom.xml
+++ b/tests/integration/jersey-2137/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2137
diff --git a/tests/integration/jersey-2154/pom.xml b/tests/integration/jersey-2154/pom.xml
index f278b24d974..84328f130ab 100644
--- a/tests/integration/jersey-2154/pom.xml
+++ b/tests/integration/jersey-2154/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2154
diff --git a/tests/integration/jersey-2160/pom.xml b/tests/integration/jersey-2160/pom.xml
index 401c10bfb61..ee9d24e1890 100644
--- a/tests/integration/jersey-2160/pom.xml
+++ b/tests/integration/jersey-2160/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2160
diff --git a/tests/integration/jersey-2164/pom.xml b/tests/integration/jersey-2164/pom.xml
index 7c35370fab4..04144c5600b 100644
--- a/tests/integration/jersey-2164/pom.xml
+++ b/tests/integration/jersey-2164/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2164
diff --git a/tests/integration/jersey-2167/pom.xml b/tests/integration/jersey-2167/pom.xml
index 0949ff9d97f..81b043bc203 100644
--- a/tests/integration/jersey-2167/pom.xml
+++ b/tests/integration/jersey-2167/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2167
diff --git a/tests/integration/jersey-2176/pom.xml b/tests/integration/jersey-2176/pom.xml
index 8de21e1bfeb..8bd3b90d4eb 100644
--- a/tests/integration/jersey-2176/pom.xml
+++ b/tests/integration/jersey-2176/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2176
diff --git a/tests/integration/jersey-2184/pom.xml b/tests/integration/jersey-2184/pom.xml
index 8a4894cec77..7c25807afd3 100644
--- a/tests/integration/jersey-2184/pom.xml
+++ b/tests/integration/jersey-2184/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2184
diff --git a/tests/integration/jersey-2255/pom.xml b/tests/integration/jersey-2255/pom.xml
index a1d9458435a..3fb1c905087 100644
--- a/tests/integration/jersey-2255/pom.xml
+++ b/tests/integration/jersey-2255/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2255
diff --git a/tests/integration/jersey-2322/pom.xml b/tests/integration/jersey-2322/pom.xml
index 35ba58f07e9..efc59e2ef2f 100644
--- a/tests/integration/jersey-2322/pom.xml
+++ b/tests/integration/jersey-2322/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2322
diff --git a/tests/integration/jersey-2335/pom.xml b/tests/integration/jersey-2335/pom.xml
index e48e84f3b2c..98fb9d741cd 100644
--- a/tests/integration/jersey-2335/pom.xml
+++ b/tests/integration/jersey-2335/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2335
diff --git a/tests/integration/jersey-2421/pom.xml b/tests/integration/jersey-2421/pom.xml
index 86409e96aad..50afcf600d5 100644
--- a/tests/integration/jersey-2421/pom.xml
+++ b/tests/integration/jersey-2421/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2421
diff --git a/tests/integration/jersey-2551/pom.xml b/tests/integration/jersey-2551/pom.xml
index eb7c4013bd3..e3328978e27 100644
--- a/tests/integration/jersey-2551/pom.xml
+++ b/tests/integration/jersey-2551/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2551
diff --git a/tests/integration/jersey-2612/pom.xml b/tests/integration/jersey-2612/pom.xml
index a5b32879c6f..2d58cd6b637 100644
--- a/tests/integration/jersey-2612/pom.xml
+++ b/tests/integration/jersey-2612/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2612
diff --git a/tests/integration/jersey-2637/pom.xml b/tests/integration/jersey-2637/pom.xml
index fc4a1b114c4..2c0448a31d4 100644
--- a/tests/integration/jersey-2637/pom.xml
+++ b/tests/integration/jersey-2637/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2637
diff --git a/tests/integration/jersey-2654/pom.xml b/tests/integration/jersey-2654/pom.xml
index afaccde7388..6e765d5f948 100644
--- a/tests/integration/jersey-2654/pom.xml
+++ b/tests/integration/jersey-2654/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2654
diff --git a/tests/integration/jersey-2673/pom.xml b/tests/integration/jersey-2673/pom.xml
index 9deb351eaf4..ddbe6e9e2e1 100644
--- a/tests/integration/jersey-2673/pom.xml
+++ b/tests/integration/jersey-2673/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2673
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index c65d457a903..b6409a5f6ec 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2689
diff --git a/tests/integration/jersey-2704/pom.xml b/tests/integration/jersey-2704/pom.xml
index bf86249310d..7e0dc5826f3 100644
--- a/tests/integration/jersey-2704/pom.xml
+++ b/tests/integration/jersey-2704/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2704
diff --git a/tests/integration/jersey-2776/pom.xml b/tests/integration/jersey-2776/pom.xml
index 7a023d007a2..4e6b1298bb3 100644
--- a/tests/integration/jersey-2776/pom.xml
+++ b/tests/integration/jersey-2776/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2776
diff --git a/tests/integration/jersey-2794/pom.xml b/tests/integration/jersey-2794/pom.xml
index 5fe1874f08b..8774a12576c 100644
--- a/tests/integration/jersey-2794/pom.xml
+++ b/tests/integration/jersey-2794/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2794
diff --git a/tests/integration/jersey-2846/pom.xml b/tests/integration/jersey-2846/pom.xml
index a4174c33cda..2fbb3da7863 100644
--- a/tests/integration/jersey-2846/pom.xml
+++ b/tests/integration/jersey-2846/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2846
diff --git a/tests/integration/jersey-2878/pom.xml b/tests/integration/jersey-2878/pom.xml
index 000677f853c..6947a0f73b8 100644
--- a/tests/integration/jersey-2878/pom.xml
+++ b/tests/integration/jersey-2878/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2878
diff --git a/tests/integration/jersey-2892/pom.xml b/tests/integration/jersey-2892/pom.xml
index 73046f0352f..b6c17d06459 100644
--- a/tests/integration/jersey-2892/pom.xml
+++ b/tests/integration/jersey-2892/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-2892
diff --git a/tests/integration/jersey-3662/pom.xml b/tests/integration/jersey-3662/pom.xml
index 037373e7db5..0d7dbb71c1f 100644
--- a/tests/integration/jersey-3662/pom.xml
+++ b/tests/integration/jersey-3662/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-3670/pom.xml b/tests/integration/jersey-3670/pom.xml
index 84843647166..346bc4b4ef3 100644
--- a/tests/integration/jersey-3670/pom.xml
+++ b/tests/integration/jersey-3670/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-3670
diff --git a/tests/integration/jersey-3796/pom.xml b/tests/integration/jersey-3796/pom.xml
index bdefd7886e9..fc87d260d35 100644
--- a/tests/integration/jersey-3796/pom.xml
+++ b/tests/integration/jersey-3796/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-3796
diff --git a/tests/integration/jersey-3992/pom.xml b/tests/integration/jersey-3992/pom.xml
index 2b9d76514d2..f20af095842 100644
--- a/tests/integration/jersey-3992/pom.xml
+++ b/tests/integration/jersey-3992/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-3992
diff --git a/tests/integration/jersey-4003/pom.xml b/tests/integration/jersey-4003/pom.xml
index 51334ad4dff..883d53a3d4c 100644
--- a/tests/integration/jersey-4003/pom.xml
+++ b/tests/integration/jersey-4003/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4099/pom.xml b/tests/integration/jersey-4099/pom.xml
index 820a69d171e..d4eddac3cbf 100644
--- a/tests/integration/jersey-4099/pom.xml
+++ b/tests/integration/jersey-4099/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-4099
diff --git a/tests/integration/jersey-4321/pom.xml b/tests/integration/jersey-4321/pom.xml
index 1685148240e..83afd412f6f 100644
--- a/tests/integration/jersey-4321/pom.xml
+++ b/tests/integration/jersey-4321/pom.xml
@@ -24,7 +24,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4507/pom.xml b/tests/integration/jersey-4507/pom.xml
index 1a057632ce7..031b8ee17ad 100644
--- a/tests/integration/jersey-4507/pom.xml
+++ b/tests/integration/jersey-4507/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4542/pom.xml b/tests/integration/jersey-4542/pom.xml
index 1c0424af16e..b5147cfefa7 100644
--- a/tests/integration/jersey-4542/pom.xml
+++ b/tests/integration/jersey-4542/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4697/pom.xml b/tests/integration/jersey-4697/pom.xml
index fcc09865508..35da8d3bece 100644
--- a/tests/integration/jersey-4697/pom.xml
+++ b/tests/integration/jersey-4697/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4722/pom.xml b/tests/integration/jersey-4722/pom.xml
index 54f89e0330c..da7ad2ae278 100644
--- a/tests/integration/jersey-4722/pom.xml
+++ b/tests/integration/jersey-4722/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4949/pom.xml b/tests/integration/jersey-4949/pom.xml
index dbc1d783876..ce94b121dab 100644
--- a/tests/integration/jersey-4949/pom.xml
+++ b/tests/integration/jersey-4949/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-4949
diff --git a/tests/integration/jersey-780/pom.xml b/tests/integration/jersey-780/pom.xml
index 33b68c506d1..258a4cec68d 100644
--- a/tests/integration/jersey-780/pom.xml
+++ b/tests/integration/jersey-780/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
jersey-780
diff --git a/tests/integration/jetty-response-close/pom.xml b/tests/integration/jetty-response-close/pom.xml
index 14c385b35a7..2b04641b887 100644
--- a/tests/integration/jetty-response-close/pom.xml
+++ b/tests/integration/jetty-response-close/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/config/helidon/pom.xml b/tests/integration/microprofile/config/helidon/pom.xml
index 8ac59ebc2c9..f29acbb1f10 100644
--- a/tests/integration/microprofile/config/helidon/pom.xml
+++ b/tests/integration/microprofile/config/helidon/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/config/pom.xml b/tests/integration/microprofile/config/pom.xml
index 3f8016a79a7..7ef9a9df09d 100644
--- a/tests/integration/microprofile/config/pom.xml
+++ b/tests/integration/microprofile/config/pom.xml
@@ -22,7 +22,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 2.37
+ 2.38-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/microprofile/config/webapp/pom.xml b/tests/integration/microprofile/config/webapp/pom.xml
index 7fcd5392d1e..b58f9435759 100644
--- a/tests/integration/microprofile/config/webapp/pom.xml
+++ b/tests/integration/microprofile/config/webapp/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/pom.xml b/tests/integration/microprofile/pom.xml
index 75ae4d4703a..cb75aca9d92 100644
--- a/tests/integration/microprofile/pom.xml
+++ b/tests/integration/microprofile/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/microprofile/rest-client/pom.xml b/tests/integration/microprofile/rest-client/pom.xml
index 101c6192470..e5b78cf2d73 100644
--- a/tests/integration/microprofile/rest-client/pom.xml
+++ b/tests/integration/microprofile/rest-client/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/rest-client14-compatibility/pom.xml b/tests/integration/microprofile/rest-client14-compatibility/pom.xml
index 4b99829994c..fc40862acd7 100644
--- a/tests/integration/microprofile/rest-client14-compatibility/pom.xml
+++ b/tests/integration/microprofile/rest-client14-compatibility/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index a2e6dc160ca..47c6706b542 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.tests.integration
diff --git a/tests/integration/portability-jersey-1/pom.xml b/tests/integration/portability-jersey-1/pom.xml
index b326d3cd6ff..797451e1566 100644
--- a/tests/integration/portability-jersey-1/pom.xml
+++ b/tests/integration/portability-jersey-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
portability-jersey-1
diff --git a/tests/integration/portability-jersey-2/pom.xml b/tests/integration/portability-jersey-2/pom.xml
index 1dd06cdff6c..83b49347131 100644
--- a/tests/integration/portability-jersey-2/pom.xml
+++ b/tests/integration/portability-jersey-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
portability-jersey-2
diff --git a/tests/integration/property-check/pom.xml b/tests/integration/property-check/pom.xml
index 10c329212c3..ee47d73a87c 100644
--- a/tests/integration/property-check/pom.xml
+++ b/tests/integration/property-check/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
property-check
diff --git a/tests/integration/reactive-streams/pom.xml b/tests/integration/reactive-streams/pom.xml
index ee8a6ccd878..c8807bd154d 100644
--- a/tests/integration/reactive-streams/pom.xml
+++ b/tests/integration/reactive-streams/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/reactive-streams/sse/pom.xml b/tests/integration/reactive-streams/sse/pom.xml
index 3f32e00e8cf..021862adce6 100644
--- a/tests/integration/reactive-streams/sse/pom.xml
+++ b/tests/integration/reactive-streams/sse/pom.xml
@@ -22,7 +22,7 @@
reactive-streams-integration-project
org.glassfish.jersey.tests.integration.reactive
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/integration/security-digest/pom.xml b/tests/integration/security-digest/pom.xml
index 6cdbdfdfef4..901deaa82fe 100644
--- a/tests/integration/security-digest/pom.xml
+++ b/tests/integration/security-digest/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 2.37
+ 2.38-SNAPSHOT
4.0.0
security-digest
diff --git a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
index c98b79d4af1..ded8800dc28 100644
--- a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-autodiscovery-1
diff --git a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
index bc2ec474c3b..b0e282b6489 100644
--- a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-autodiscovery-2
diff --git a/tests/integration/servlet-2.5-filter/pom.xml b/tests/integration/servlet-2.5-filter/pom.xml
index 0963856d0ad..6522d365c31 100644
--- a/tests/integration/servlet-2.5-filter/pom.xml
+++ b/tests/integration/servlet-2.5-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-filter
diff --git a/tests/integration/servlet-2.5-inflector-1/pom.xml b/tests/integration/servlet-2.5-inflector-1/pom.xml
index 7444748e2a4..ceba5fdc591 100644
--- a/tests/integration/servlet-2.5-inflector-1/pom.xml
+++ b/tests/integration/servlet-2.5-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-inflector-1
diff --git a/tests/integration/servlet-2.5-init-1/pom.xml b/tests/integration/servlet-2.5-init-1/pom.xml
index e76284976ee..8d8666fdd60 100644
--- a/tests/integration/servlet-2.5-init-1/pom.xml
+++ b/tests/integration/servlet-2.5-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-init-1
diff --git a/tests/integration/servlet-2.5-init-2/pom.xml b/tests/integration/servlet-2.5-init-2/pom.xml
index af5bf1b8ba2..5a1142a282c 100644
--- a/tests/integration/servlet-2.5-init-2/pom.xml
+++ b/tests/integration/servlet-2.5-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-init-2
diff --git a/tests/integration/servlet-2.5-init-3/pom.xml b/tests/integration/servlet-2.5-init-3/pom.xml
index bc2b5c0b502..bb892b39c9c 100644
--- a/tests/integration/servlet-2.5-init-3/pom.xml
+++ b/tests/integration/servlet-2.5-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-init-3
diff --git a/tests/integration/servlet-2.5-init-4/pom.xml b/tests/integration/servlet-2.5-init-4/pom.xml
index fcc5c7bfc7f..7db66641da4 100644
--- a/tests/integration/servlet-2.5-init-4/pom.xml
+++ b/tests/integration/servlet-2.5-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-init-4
diff --git a/tests/integration/servlet-2.5-init-5/pom.xml b/tests/integration/servlet-2.5-init-5/pom.xml
index d826c0e7a77..572f515a393 100644
--- a/tests/integration/servlet-2.5-init-5/pom.xml
+++ b/tests/integration/servlet-2.5-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-init-5
diff --git a/tests/integration/servlet-2.5-init-6/pom.xml b/tests/integration/servlet-2.5-init-6/pom.xml
index 5b96352f8a8..3a554525c25 100644
--- a/tests/integration/servlet-2.5-init-6/pom.xml
+++ b/tests/integration/servlet-2.5-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-init-6
diff --git a/tests/integration/servlet-2.5-init-7/pom.xml b/tests/integration/servlet-2.5-init-7/pom.xml
index 3a34b542804..13983b9e938 100644
--- a/tests/integration/servlet-2.5-init-7/pom.xml
+++ b/tests/integration/servlet-2.5-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-init-7
diff --git a/tests/integration/servlet-2.5-init-8/pom.xml b/tests/integration/servlet-2.5-init-8/pom.xml
index 6ca834007b5..24b0e02639d 100644
--- a/tests/integration/servlet-2.5-init-8/pom.xml
+++ b/tests/integration/servlet-2.5-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-init-8
diff --git a/tests/integration/servlet-2.5-mvc-1/pom.xml b/tests/integration/servlet-2.5-mvc-1/pom.xml
index 443d66b5c41..bcce47ac431 100644
--- a/tests/integration/servlet-2.5-mvc-1/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-mvc-1
diff --git a/tests/integration/servlet-2.5-mvc-2/pom.xml b/tests/integration/servlet-2.5-mvc-2/pom.xml
index d7f2b4e2c8b..4361ec1091a 100644
--- a/tests/integration/servlet-2.5-mvc-2/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-mvc-2
diff --git a/tests/integration/servlet-2.5-mvc-3/pom.xml b/tests/integration/servlet-2.5-mvc-3/pom.xml
index b1f9a2f68ed..29cf88be4ca 100644
--- a/tests/integration/servlet-2.5-mvc-3/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-mvc-3
diff --git a/tests/integration/servlet-2.5-reload/pom.xml b/tests/integration/servlet-2.5-reload/pom.xml
index 974d2144450..d4b75bf4200 100644
--- a/tests/integration/servlet-2.5-reload/pom.xml
+++ b/tests/integration/servlet-2.5-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-2.5-reload
diff --git a/tests/integration/servlet-3-async/pom.xml b/tests/integration/servlet-3-async/pom.xml
index f8024b604c2..7d7ca240403 100644
--- a/tests/integration/servlet-3-async/pom.xml
+++ b/tests/integration/servlet-3-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-async
diff --git a/tests/integration/servlet-3-chunked-io/pom.xml b/tests/integration/servlet-3-chunked-io/pom.xml
index fbd3dadc3d4..4f488350f33 100644
--- a/tests/integration/servlet-3-chunked-io/pom.xml
+++ b/tests/integration/servlet-3-chunked-io/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-chunked-io
diff --git a/tests/integration/servlet-3-filter/pom.xml b/tests/integration/servlet-3-filter/pom.xml
index 96c35d7c31f..4c81e4c6ad8 100644
--- a/tests/integration/servlet-3-filter/pom.xml
+++ b/tests/integration/servlet-3-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-filter
diff --git a/tests/integration/servlet-3-gf-async/pom.xml b/tests/integration/servlet-3-gf-async/pom.xml
index 0677e3bbc28..9cc01640ed9 100644
--- a/tests/integration/servlet-3-gf-async/pom.xml
+++ b/tests/integration/servlet-3-gf-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-gf-async
diff --git a/tests/integration/servlet-3-inflector-1/pom.xml b/tests/integration/servlet-3-inflector-1/pom.xml
index 2de8738fd05..1ccfa0b8a79 100644
--- a/tests/integration/servlet-3-inflector-1/pom.xml
+++ b/tests/integration/servlet-3-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-inflector-1
diff --git a/tests/integration/servlet-3-init-1/pom.xml b/tests/integration/servlet-3-init-1/pom.xml
index 2b43c485253..68173630b6e 100644
--- a/tests/integration/servlet-3-init-1/pom.xml
+++ b/tests/integration/servlet-3-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-init-1
diff --git a/tests/integration/servlet-3-init-2/pom.xml b/tests/integration/servlet-3-init-2/pom.xml
index cafba981ddc..e76eb65f535 100644
--- a/tests/integration/servlet-3-init-2/pom.xml
+++ b/tests/integration/servlet-3-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-init-2
diff --git a/tests/integration/servlet-3-init-3/pom.xml b/tests/integration/servlet-3-init-3/pom.xml
index 0d8729b6db9..e3a45f36a53 100644
--- a/tests/integration/servlet-3-init-3/pom.xml
+++ b/tests/integration/servlet-3-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-init-3
diff --git a/tests/integration/servlet-3-init-4/pom.xml b/tests/integration/servlet-3-init-4/pom.xml
index c7d52875d35..7643f575f86 100644
--- a/tests/integration/servlet-3-init-4/pom.xml
+++ b/tests/integration/servlet-3-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-init-4
diff --git a/tests/integration/servlet-3-init-5/pom.xml b/tests/integration/servlet-3-init-5/pom.xml
index 3c992039e46..65598097e95 100644
--- a/tests/integration/servlet-3-init-5/pom.xml
+++ b/tests/integration/servlet-3-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-init-5
diff --git a/tests/integration/servlet-3-init-6/pom.xml b/tests/integration/servlet-3-init-6/pom.xml
index e23cb648139..c93de7018dd 100644
--- a/tests/integration/servlet-3-init-6/pom.xml
+++ b/tests/integration/servlet-3-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-init-6
diff --git a/tests/integration/servlet-3-init-7/pom.xml b/tests/integration/servlet-3-init-7/pom.xml
index 179accf0d55..35989e90b5d 100644
--- a/tests/integration/servlet-3-init-7/pom.xml
+++ b/tests/integration/servlet-3-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-init-7
diff --git a/tests/integration/servlet-3-init-8/pom.xml b/tests/integration/servlet-3-init-8/pom.xml
index ebd016f1018..a42dd658e15 100644
--- a/tests/integration/servlet-3-init-8/pom.xml
+++ b/tests/integration/servlet-3-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-init-8
diff --git a/tests/integration/servlet-3-init-9/pom.xml b/tests/integration/servlet-3-init-9/pom.xml
index 54049bd2e72..e094428deb4 100644
--- a/tests/integration/servlet-3-init-9/pom.xml
+++ b/tests/integration/servlet-3-init-9/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-init-9
diff --git a/tests/integration/servlet-3-init-provider/pom.xml b/tests/integration/servlet-3-init-provider/pom.xml
index f166b1368e3..57e4a30c909 100644
--- a/tests/integration/servlet-3-init-provider/pom.xml
+++ b/tests/integration/servlet-3-init-provider/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-init-provider
diff --git a/tests/integration/servlet-3-params/pom.xml b/tests/integration/servlet-3-params/pom.xml
index dbd3493bcfe..5b65ad641d2 100644
--- a/tests/integration/servlet-3-params/pom.xml
+++ b/tests/integration/servlet-3-params/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-params
diff --git a/tests/integration/servlet-3-sse-1/pom.xml b/tests/integration/servlet-3-sse-1/pom.xml
index ce6cb53427e..a6647517150 100644
--- a/tests/integration/servlet-3-sse-1/pom.xml
+++ b/tests/integration/servlet-3-sse-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-3-sse-1
diff --git a/tests/integration/servlet-4.0-mvc-1/pom.xml b/tests/integration/servlet-4.0-mvc-1/pom.xml
index d0009d08dc2..92b96116fd2 100644
--- a/tests/integration/servlet-4.0-mvc-1/pom.xml
+++ b/tests/integration/servlet-4.0-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-4.0-mvc-1
diff --git a/tests/integration/servlet-request-wrapper-binding-2/pom.xml b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
index a1d5b2724da..467e1db5e30 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-request-wrappper-binding-2
diff --git a/tests/integration/servlet-request-wrapper-binding/pom.xml b/tests/integration/servlet-request-wrapper-binding/pom.xml
index a25865afecb..1fb1d85be94 100644
--- a/tests/integration/servlet-request-wrapper-binding/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-request-wrappper-binding
diff --git a/tests/integration/servlet-tests/pom.xml b/tests/integration/servlet-tests/pom.xml
index 5079e03f777..00c1bbd9e94 100644
--- a/tests/integration/servlet-tests/pom.xml
+++ b/tests/integration/servlet-tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
servlet-tests
diff --git a/tests/integration/sonar-test/pom.xml b/tests/integration/sonar-test/pom.xml
index 9657f61cfa3..5cf4724d366 100644
--- a/tests/integration/sonar-test/pom.xml
+++ b/tests/integration/sonar-test/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
sonar-test
diff --git a/tests/integration/spring4/pom.xml b/tests/integration/spring4/pom.xml
index 806ea1a2021..65385e13052 100644
--- a/tests/integration/spring4/pom.xml
+++ b/tests/integration/spring4/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
spring4
diff --git a/tests/integration/spring5/pom.xml b/tests/integration/spring5/pom.xml
index 0c201c8918d..dafd41466e4 100644
--- a/tests/integration/spring5/pom.xml
+++ b/tests/integration/spring5/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
spring5
diff --git a/tests/integration/tracing-support/pom.xml b/tests/integration/tracing-support/pom.xml
index 377965d8ef7..720e48c38fc 100644
--- a/tests/integration/tracing-support/pom.xml
+++ b/tests/integration/tracing-support/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 2.37
+ 2.38-SNAPSHOT
tracing-support
diff --git a/tests/jmockit/pom.xml b/tests/jmockit/pom.xml
index 4017b31be2b..7c1a51afe83 100644
--- a/tests/jmockit/pom.xml
+++ b/tests/jmockit/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests
- 2.37
+ 2.38-SNAPSHOT
4.0.0
diff --git a/tests/mem-leaks/pom.xml b/tests/mem-leaks/pom.xml
index b5c69176336..2ab550e3cca 100644
--- a/tests/mem-leaks/pom.xml
+++ b/tests/mem-leaks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.tests.memleaks
diff --git a/tests/mem-leaks/redeployment/pom.xml b/tests/mem-leaks/redeployment/pom.xml
index bf69a773f94..0ef11b6581b 100644
--- a/tests/mem-leaks/redeployment/pom.xml
+++ b/tests/mem-leaks/redeployment/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.tests.memleaks.redeployment
diff --git a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
index 93e40b0d10c..96441773693 100644
--- a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 2.37
+ 2.38-SNAPSHOT
redeployment-hello-world-app-ref
@@ -132,7 +132,7 @@
org.glassfish.jersey.examples
helloworld-webapp
war
- 2.37
+ 2.38-SNAPSHOT
diff --git a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
index a576ff8e6e9..982080a5ea4 100644
--- a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 2.37
+ 2.38-SNAPSHOT
redeployment-leaking-test-app
diff --git a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
index 3aa602653a1..a194954439f 100644
--- a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 2.37
+ 2.38-SNAPSHOT
redeployment-no-jersey-app
diff --git a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
index 5d1509f40b5..fd2b7bb3694 100644
--- a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 2.37
+ 2.38-SNAPSHOT
redeployment-threadlocals-app
diff --git a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
index ff982accec1..3062ac6d25e 100644
--- a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 2.37
+ 2.38-SNAPSHOT
bean-param-leak
diff --git a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
index 81f3bd1ad65..cf35a9eb75e 100644
--- a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
+++ b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 2.37
+ 2.38-SNAPSHOT
leaking-test-app
diff --git a/tests/mem-leaks/test-cases/pom.xml b/tests/mem-leaks/test-cases/pom.xml
index 3a0fb39baae..a92234d49d2 100644
--- a/tests/mem-leaks/test-cases/pom.xml
+++ b/tests/mem-leaks/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.tests.memleaks.testcases
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
index 04412d36221..7ee44f62754 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 2.37
+ 2.38-SNAPSHOT
shutdown-hook-leak-client
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
index 65494217e93..ff2009eca52 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 2.37
+ 2.38-SNAPSHOT
shutdown-hook-leak
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index 0a836d72464..681e8fdd892 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.osgi
project
- 2.37
+ 2.38-SNAPSHOT
jersey-tests-osgi-functional
diff --git a/tests/osgi/pom.xml b/tests/osgi/pom.xml
index 200b8b5a654..19d1b3d79d9 100644
--- a/tests/osgi/pom.xml
+++ b/tests/osgi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.tests.osgi
diff --git a/tests/performance/benchmarks/pom.xml b/tests/performance/benchmarks/pom.xml
index f8bff503536..b8b6a67744f 100644
--- a/tests/performance/benchmarks/pom.xml
+++ b/tests/performance/benchmarks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 2.37
+ 2.38-SNAPSHOT
performance-test-benchmarks
diff --git a/tests/performance/pom.xml b/tests/performance/pom.xml
index 3fc64bf0957..69f10fb992f 100644
--- a/tests/performance/pom.xml
+++ b/tests/performance/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.tests.performance
diff --git a/tests/performance/runners/jersey-grizzly-runner/pom.xml b/tests/performance/runners/jersey-grizzly-runner/pom.xml
index 37f9c131029..df26e0649f1 100644
--- a/tests/performance/runners/jersey-grizzly-runner/pom.xml
+++ b/tests/performance/runners/jersey-grizzly-runner/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.runners
project
- 2.37
+ 2.38-SNAPSHOT
diff --git a/tests/performance/runners/pom.xml b/tests/performance/runners/pom.xml
index c2a9e7717e0..091940c6e2c 100644
--- a/tests/performance/runners/pom.xml
+++ b/tests/performance/runners/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.tests.performance.runners
diff --git a/tests/performance/test-cases/assemblies/pom.xml b/tests/performance/test-cases/assemblies/pom.xml
index 0e0df602c0b..52096259bc0 100644
--- a/tests/performance/test-cases/assemblies/pom.xml
+++ b/tests/performance/test-cases/assemblies/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
assemblies
diff --git a/tests/performance/test-cases/filter-dynamic/pom.xml b/tests/performance/test-cases/filter-dynamic/pom.xml
index 6e4c353bc14..fd00bd9378e 100644
--- a/tests/performance/test-cases/filter-dynamic/pom.xml
+++ b/tests/performance/test-cases/filter-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
filter-dynamic
diff --git a/tests/performance/test-cases/filter-global/pom.xml b/tests/performance/test-cases/filter-global/pom.xml
index bd2a76d6f53..89e00ad73f9 100644
--- a/tests/performance/test-cases/filter-global/pom.xml
+++ b/tests/performance/test-cases/filter-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
filter-global
diff --git a/tests/performance/test-cases/filter-name/pom.xml b/tests/performance/test-cases/filter-name/pom.xml
index 36d1c4d9253..43e8def32be 100644
--- a/tests/performance/test-cases/filter-name/pom.xml
+++ b/tests/performance/test-cases/filter-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
filter-name
diff --git a/tests/performance/test-cases/interceptor-dynamic/pom.xml b/tests/performance/test-cases/interceptor-dynamic/pom.xml
index 4d9bd8ea1fa..25e30e1ce84 100644
--- a/tests/performance/test-cases/interceptor-dynamic/pom.xml
+++ b/tests/performance/test-cases/interceptor-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
interceptor-dynamic
diff --git a/tests/performance/test-cases/interceptor-global/pom.xml b/tests/performance/test-cases/interceptor-global/pom.xml
index 59b7197d3aa..c442b0221e9 100644
--- a/tests/performance/test-cases/interceptor-global/pom.xml
+++ b/tests/performance/test-cases/interceptor-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
interceptor-global
diff --git a/tests/performance/test-cases/interceptor-name/pom.xml b/tests/performance/test-cases/interceptor-name/pom.xml
index dac8df7c641..9171b114958 100644
--- a/tests/performance/test-cases/interceptor-name/pom.xml
+++ b/tests/performance/test-cases/interceptor-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
interceptor-name
diff --git a/tests/performance/test-cases/mbw-custom-provider/pom.xml b/tests/performance/test-cases/mbw-custom-provider/pom.xml
index 1b445132d6b..6a174444a54 100644
--- a/tests/performance/test-cases/mbw-custom-provider/pom.xml
+++ b/tests/performance/test-cases/mbw-custom-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
custom-provider
diff --git a/tests/performance/test-cases/mbw-json-jackson/pom.xml b/tests/performance/test-cases/mbw-json-jackson/pom.xml
index 84cbba3d4ab..1f99a4e6b87 100644
--- a/tests/performance/test-cases/mbw-json-jackson/pom.xml
+++ b/tests/performance/test-cases/mbw-json-jackson/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
json-jackson
diff --git a/tests/performance/test-cases/mbw-json-moxy/pom.xml b/tests/performance/test-cases/mbw-json-moxy/pom.xml
index 86f39b40045..3704b8e7a0c 100644
--- a/tests/performance/test-cases/mbw-json-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-json-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
json-moxy
diff --git a/tests/performance/test-cases/mbw-kryo/pom.xml b/tests/performance/test-cases/mbw-kryo/pom.xml
index 999c8de898b..09f6c05d86d 100644
--- a/tests/performance/test-cases/mbw-kryo/pom.xml
+++ b/tests/performance/test-cases/mbw-kryo/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
mbw-kryo
diff --git a/tests/performance/test-cases/mbw-text-plain/pom.xml b/tests/performance/test-cases/mbw-text-plain/pom.xml
index 358517bfd58..45b40c5a6d7 100644
--- a/tests/performance/test-cases/mbw-text-plain/pom.xml
+++ b/tests/performance/test-cases/mbw-text-plain/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
text-plain
diff --git a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
index 5d7cf87607f..6f1adeef7f7 100644
--- a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
xml-jaxb
diff --git a/tests/performance/test-cases/mbw-xml-moxy/pom.xml b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
index 878faf906d9..c31776d14f2 100644
--- a/tests/performance/test-cases/mbw-xml-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
xml-moxy
diff --git a/tests/performance/test-cases/param-srl/pom.xml b/tests/performance/test-cases/param-srl/pom.xml
index e0bf07725c2..5345f1ca77f 100644
--- a/tests/performance/test-cases/param-srl/pom.xml
+++ b/tests/performance/test-cases/param-srl/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
param-srl
diff --git a/tests/performance/test-cases/pom.xml b/tests/performance/test-cases/pom.xml
index d899397bac3..762090cf887 100644
--- a/tests/performance/test-cases/pom.xml
+++ b/tests/performance/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.tests.performance.testcases
diff --git a/tests/performance/test-cases/proxy-injection/pom.xml b/tests/performance/test-cases/proxy-injection/pom.xml
index 0b0c2ebcae0..828b3162f9e 100644
--- a/tests/performance/test-cases/proxy-injection/pom.xml
+++ b/tests/performance/test-cases/proxy-injection/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 2.37
+ 2.38-SNAPSHOT
proxy-injection
diff --git a/tests/performance/tools/pom.xml b/tests/performance/tools/pom.xml
index a78f6c6dc95..3e52b643dd9 100644
--- a/tests/performance/tools/pom.xml
+++ b/tests/performance/tools/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.tests.performance.tools
performance-test-tools
diff --git a/tests/pom.xml b/tests/pom.xml
index 60759caabcb..616ec16b46f 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 2.37
+ 2.38-SNAPSHOT
org.glassfish.jersey.tests
diff --git a/tests/stress/pom.xml b/tests/stress/pom.xml
index 848f11c5920..460e0e42d13 100644
--- a/tests/stress/pom.xml
+++ b/tests/stress/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 2.37
+ 2.38-SNAPSHOT
stress
From 9db4c875bc513cee1e0b04af899c0abcc62eb95c Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Wed, 7 Sep 2022 12:59:31 +0200
Subject: [PATCH 099/305] servlet version update
Signed-off-by: Maxim Nesen
---
examples/helloworld-spring-annotations/pom.xml | 2 +-
examples/helloworld-spring-webapp/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/helloworld-spring-annotations/pom.xml b/examples/helloworld-spring-annotations/pom.xml
index 632050c05f5..df4093ab4d5 100644
--- a/examples/helloworld-spring-annotations/pom.xml
+++ b/examples/helloworld-spring-annotations/pom.xml
@@ -83,7 +83,7 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
+ ${servlet6.version}
diff --git a/examples/helloworld-spring-webapp/pom.xml b/examples/helloworld-spring-webapp/pom.xml
index 47f3af8ea08..b3e84c86a4a 100644
--- a/examples/helloworld-spring-webapp/pom.xml
+++ b/examples/helloworld-spring-webapp/pom.xml
@@ -81,7 +81,7 @@
jakarta.servlet
jakarta.servlet-api
- ${servlet5.version}
+ ${servlet6.version}
From a540ec49289777832a49fda7aa56decc2ecb93e5 Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Thu, 21 Jul 2022 11:20:45 +0200
Subject: [PATCH 100/305] Extensions for JNH connector
Signed-off-by: Maxim Nesen
---
connectors/jnh-connector/pom.xml | 22 ++
.../JavaNetHttpClientProperties.java | 20 ++
.../jnh/connector/JavaNetHttpConnector.java | 75 +++++-
.../jersey/jnh/connector/AuthTest.java | 207 +++++++++++++++
.../jersey/jnh/connector/CookieTest.java | 127 +++++++++
.../jersey/jnh/connector/EntityTest.java | 152 +++++++++++
.../jersey/jnh/connector/ErrorTest.java | 119 +++++++++
.../jnh/connector/FollowRedirectsTest.java | 134 ++++++++++
.../connector/GZIPContentEncodingTest.java | 101 +++++++
.../jersey/jnh/connector/HelloWorldTest.java | 158 +++++++++++
.../jersey/jnh/connector/HttpHeadersTest.java | 94 +++++++
.../jnh/connector/ManagedClientTest.java | 251 ++++++++++++++++++
.../jersey/jnh/connector/MethodTest.java | 147 ++++++++++
.../jersey/jnh/connector/NoEntityTest.java | 96 +++++++
.../jersey/jnh/connector/TimeoutTest.java | 120 +++++++++
.../jnh/connector/TraceSupportTest.java | 229 ++++++++++++++++
.../UnderlyingHttpClientAccessTest.java | 51 ++++
.../client/innate/Expect100ContinueUsage.java | 60 +++++
.../client/internal/HttpUrlConnector.java | 4 +-
...rlExpect100ContinueConnectorExtension.java | 25 +-
20 files changed, 2163 insertions(+), 29 deletions(-)
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/AuthTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/CookieTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/EntityTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/ErrorTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/FollowRedirectsTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/GZIPContentEncodingTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/HelloWorldTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/HttpHeadersTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/ManagedClientTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/MethodTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/NoEntityTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/TimeoutTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/TraceSupportTest.java
create mode 100644 connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/UnderlyingHttpClientAccessTest.java
create mode 100644 core-client/src/main/java/org/glassfish/jersey/client/innate/Expect100ContinueUsage.java
diff --git a/connectors/jnh-connector/pom.xml b/connectors/jnh-connector/pom.xml
index df184decb90..6f520ce9f1a 100644
--- a/connectors/jnh-connector/pom.xml
+++ b/connectors/jnh-connector/pom.xml
@@ -55,6 +55,28 @@
awaitility
test
+
+ org.glassfish.jersey.media
+ jersey-media-jaxb
+ ${project.version}
+ test
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-jackson
+ ${project.version}
+ test
+
+
+ jakarta.xml.bind
+ jakarta.xml.bind-api
+ test
+
+
+ com.sun.xml.bind
+ jaxb-osgi
+ test
+
diff --git a/connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpClientProperties.java b/connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpClientProperties.java
index 9c3097b3a03..43552bf9420 100644
--- a/connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpClientProperties.java
+++ b/connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpClientProperties.java
@@ -56,6 +56,26 @@ public class JavaNetHttpClientProperties {
*/
public static final String SSL_PARAMETERS = "jersey.config.jnh.client.sslParameters";
+ /**
+ * The credential provider that should be used to retrieve
+ * credentials from a user.
+ *
+ */
+ public static final String PREEMPTIVE_BASIC_AUTHENTICATION =
+ "jersey.config.jnh.client.preemptiveBasicAuthentication";
+
+ /**
+ * A value of {@code false} indicates the client should handle cookies
+ * automatically using HttpClient's default cookie policy. A value
+ * of {@code false} will cause the client to ignore all cookies.
+ *
+ * The value MUST be an instance of {@link java.lang.Boolean}.
+ * If the property is absent the default value is {@code false}
+ */
+ public static final String DISABLE_COOKIES =
+ "jersey.config.jnh.client.disableCookies";
+
+
/**
* Prevent this class from instantiation.
*/
diff --git a/connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpConnector.java b/connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpConnector.java
index cb166d5094a..7530c4ec93d 100644
--- a/connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpConnector.java
+++ b/connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpConnector.java
@@ -23,6 +23,8 @@
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.ClientRequest;
import org.glassfish.jersey.client.ClientResponse;
+import org.glassfish.jersey.client.innate.ClientProxy;
+import org.glassfish.jersey.client.innate.Expect100ContinueUsage;
import org.glassfish.jersey.client.spi.AsyncConnectorCallback;
import org.glassfish.jersey.client.spi.Connector;
import org.glassfish.jersey.internal.Version;
@@ -35,7 +37,14 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
+import java.net.Authenticator;
import java.net.CookieHandler;
+import java.net.CookieManager;
+import java.net.CookiePolicy;
+import java.net.InetSocketAddress;
+import java.net.PasswordAuthentication;
+import java.net.ProxySelector;
+import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
@@ -43,9 +52,11 @@
import java.time.temporal.ChronoUnit;
import java.util.List;
import java.util.Map;
+import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;
import java.util.logging.Logger;
+import java.util.zip.GZIPOutputStream;
/**
* Provides a Jersey client {@link Connector}, which internally uses Java's {@link HttpClient}.
@@ -77,15 +88,16 @@ public JavaNetHttpConnector(final Client client, final Configuration configurati
if (sslContext != null) {
httpClientBuilder.sslContext(sslContext);
}
- Integer connectTimeout = getPropertyOrNull(configuration, ClientProperties.CONNECT_TIMEOUT, Integer.class);
- if (connectTimeout != null) {
- httpClientBuilder.connectTimeout(Duration.of(connectTimeout, ChronoUnit.MILLIS));
- }
- CookieHandler cookieHandler =
+ final CookieHandler cookieHandler =
getPropertyOrNull(configuration, JavaNetHttpClientProperties.COOKIE_HANDLER, CookieHandler.class);
if (cookieHandler != null) {
httpClientBuilder.cookieHandler(cookieHandler);
}
+ final Boolean disableCookies =
+ getPropertyOrNull(configuration, JavaNetHttpClientProperties.DISABLE_COOKIES, Boolean.class);
+ if (Boolean.TRUE.equals(disableCookies)) {
+ httpClientBuilder.cookieHandler(new CookieManager(null, CookiePolicy.ACCEPT_NONE));
+ }
Boolean redirect = getPropertyOrNull(configuration, ClientProperties.FOLLOW_REDIRECTS, Boolean.class);
if (redirect != null) {
httpClientBuilder.followRedirects(redirect ? HttpClient.Redirect.ALWAYS : HttpClient.Redirect.NEVER);
@@ -97,9 +109,41 @@ public JavaNetHttpConnector(final Client client, final Configuration configurati
if (sslParameters != null) {
httpClientBuilder.sslParameters(sslParameters);
}
+ final Authenticator preemptiveAuthenticator =
+ getPropertyOrNull(configuration,
+ JavaNetHttpClientProperties.PREEMPTIVE_BASIC_AUTHENTICATION, Authenticator.class);
+ if (preemptiveAuthenticator != null) {
+ httpClientBuilder.authenticator(preemptiveAuthenticator);
+ }
+ configureProxy(httpClientBuilder, configuration);
this.httpClient = httpClientBuilder.build();
}
+ private static void configureProxy(HttpClient.Builder builder, final Configuration config) {
+
+ final Optional proxy = ClientProxy.proxyFromConfiguration(config);
+ proxy.ifPresent(clientProxy -> {
+ final URI u = clientProxy.uri();
+ final InetSocketAddress proxyAddress = new InetSocketAddress(u.getHost(),
+ u.getPort());
+ if (clientProxy.userName() != null) {
+ final Authenticator authenticator = new Authenticator() {
+ @Override
+ public PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(clientProxy.userName(), clientProxy.password() == null
+ ? null : clientProxy.password().toCharArray());
+ }
+ @Override
+ protected RequestorType getRequestorType() {
+ return RequestorType.PROXY;
+ }
+ };
+ builder.authenticator(authenticator);
+ }
+ builder.proxy(ProxySelector.of(proxyAddress));
+ });
+ }
+
/**
* Implements a {@link org.glassfish.jersey.message.internal.OutboundMessageContext.StreamProvider}
* for a {@link ByteArrayOutputStream}.
@@ -113,7 +157,9 @@ public ByteArrayOutputStream getByteArrayOutputStream() {
@Override
public OutputStream getOutputStream(int contentLength) throws IOException {
- return this.byteArrayOutputStream = new ByteArrayOutputStream(contentLength);
+ this.byteArrayOutputStream = contentLength > 0 ? new ByteArrayOutputStream(contentLength)
+ : new ByteArrayOutputStream();
+ return this.byteArrayOutputStream;
}
}
@@ -147,9 +193,18 @@ private HttpRequest getHttpRequest(ClientRequest request) {
builder.header(headerName, headerValue);
}
}
+ final Integer connectTimeout = request.resolveProperty(ClientProperties.READ_TIMEOUT, Integer.class);
+ if (connectTimeout != null) {
+ builder.timeout(Duration.ofMillis(connectTimeout));
+ }
+ processExtensions(builder, request);
return builder.build();
}
+ private static void processExtensions(HttpRequest.Builder builder, ClientRequest request) {
+ builder.expectContinue(Expect100ContinueUsage.isAllowed(request, request.getMethod()));
+ }
+
/**
* Retrieves a property from the configuration, if it was provided.
*
@@ -233,4 +288,12 @@ public String getName() {
public void close() {
}
+
+ public CookieHandler getCookieHandler() {
+ final Optional cookieHandler = httpClient.cookieHandler();
+ if (cookieHandler.isPresent()) {
+ return cookieHandler.get();
+ }
+ return null;
+ }
}
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/AuthTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/AuthTest.java
new file mode 100644
index 00000000000..12199c23bdf
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/AuthTest.java
@@ -0,0 +1,207 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import jakarta.inject.Singleton;
+import jakarta.ws.rs.DELETE;
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.POST;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.WebApplicationException;
+import jakarta.ws.rs.client.Client;
+import jakarta.ws.rs.client.ClientBuilder;
+import jakarta.ws.rs.client.Entity;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.Context;
+import jakarta.ws.rs.core.HttpHeaders;
+import jakarta.ws.rs.core.Response;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import java.net.Authenticator;
+import java.net.PasswordAuthentication;
+import java.util.logging.Logger;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+public class AuthTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(AuthTest.class.getName());
+ private static final String PATH = "test";
+
+ @Path("/test")
+ @Singleton
+ public static class AuthResource {
+
+ int requestCount = 0;
+
+ @GET
+ public String get(@Context HttpHeaders h) {
+ requestCount++;
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ assertEquals(1, requestCount);
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ } else {
+ assertTrue(requestCount > 1);
+ }
+
+ return "GET";
+ }
+
+ @GET
+ @Path("filter")
+ public String getFilter(@Context HttpHeaders h) {
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ }
+
+ return "GET";
+ }
+
+ @POST
+ public String post(@Context HttpHeaders h, String e) {
+ requestCount++;
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ assertEquals(1, requestCount);
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ } else {
+ assertTrue(requestCount > 1);
+ }
+
+ return e;
+ }
+
+ @POST
+ @Path("filter")
+ public String postFilter(@Context HttpHeaders h, String e) {
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ }
+
+ return e;
+ }
+
+ @DELETE
+ public void delete(@Context HttpHeaders h) {
+ requestCount++;
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ assertEquals(1, requestCount);
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ } else {
+ assertTrue(requestCount > 1);
+ }
+ }
+
+ @DELETE
+ @Path("filter")
+ public void deleteFilter(@Context HttpHeaders h) {
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ }
+ }
+
+ @DELETE
+ @Path("filter/withEntity")
+ public String deleteFilterWithEntity(@Context HttpHeaders h, String e) {
+ String value = h.getRequestHeaders().getFirst("Authorization");
+ if (value == null) {
+ throw new WebApplicationException(
+ Response.status(401).header("WWW-Authenticate", "Basic realm=\"WallyWorld\"").build());
+ }
+
+ return e;
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(AuthResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Test
+ public void testAuthGet() {
+ ClientConfig config = new ClientConfig();
+ config.property(JavaNetHttpClientProperties.PREEMPTIVE_BASIC_AUTHENTICATION,
+ new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication("name", "password".toCharArray());
+ }
+ });
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ Client client = ClientBuilder.newClient(config);
+
+ Response response = client.target(getBaseUri()).path(PATH).request().get();
+ assertEquals("GET", response.readEntity(String.class));
+ client.close();
+ }
+
+ @Test
+ public void testAuthPost() {
+ ClientConfig config = new ClientConfig();
+ config.property(JavaNetHttpClientProperties.PREEMPTIVE_BASIC_AUTHENTICATION,
+ new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication("name", "password".toCharArray());
+ }
+ });
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ Client client = ClientBuilder.newClient(config);
+
+ Response response = client.target(getBaseUri()).path(PATH).request().post(Entity.text("POST"));
+ assertEquals("POST", response.readEntity(String.class));
+ client.close();
+ }
+
+ @Test
+ public void testAuthDelete() {
+ ClientConfig config = new ClientConfig();
+ config.property(JavaNetHttpClientProperties.PREEMPTIVE_BASIC_AUTHENTICATION,
+ new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication("name", "password".toCharArray());
+ }
+ });
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ Client client = ClientBuilder.newClient(config);
+
+ Response response = client.target(getBaseUri()).path(PATH).request().delete();
+ assertEquals(response.getStatus(), 204);
+ client.close();
+ }
+
+ }
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/CookieTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/CookieTest.java
new file mode 100644
index 00000000000..413342f30fb
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/CookieTest.java
@@ -0,0 +1,127 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.client.Client;
+import jakarta.ws.rs.client.ClientBuilder;
+import jakarta.ws.rs.client.WebTarget;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.Context;
+import jakarta.ws.rs.core.Cookie;
+import jakarta.ws.rs.core.HttpHeaders;
+import jakarta.ws.rs.core.NewCookie;
+import jakarta.ws.rs.core.Response;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.JerseyClient;
+import org.glassfish.jersey.client.JerseyClientBuilder;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import java.io.IOException;
+import java.net.CookieManager;
+import java.util.Collections;
+import java.util.logging.Logger;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+
+public class CookieTest extends JerseyTest {
+
+private static final Logger LOGGER = Logger.getLogger(CookieTest.class.getName());
+
+@Path("/")
+public static class CookieResource {
+ @GET
+ public Response get(@Context HttpHeaders h) {
+ Cookie c = h.getCookies().get("name");
+ String e = (c == null) ? "NO-COOKIE" : c.getValue();
+ return Response.ok(e)
+ .cookie(new NewCookie("name", "value")).build();
+ }
+}
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(CookieResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Test
+ public void testCookieResource() {
+ ClientConfig config = new ClientConfig();
+ config.property(JavaNetHttpClientProperties.COOKIE_HANDLER, new CookieManager());
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ Client client = ClientBuilder.newClient(config);
+ WebTarget r = client.target(getBaseUri());
+
+
+ assertEquals("NO-COOKIE", r.request().get(String.class));
+ assertEquals("value", r.request().get(String.class));
+ client.close();
+ }
+
+ @Test
+ public void testDisabledCookies() throws IOException {
+ ClientConfig cc = new ClientConfig();
+ cc.property(JavaNetHttpClientProperties.DISABLE_COOKIES, true);
+ cc.property(JavaNetHttpClientProperties.COOKIE_HANDLER, new CookieManager());
+ cc.connectorProvider(new JavaNetHttpConnectorProvider());
+ JerseyClient client = JerseyClientBuilder.createClient(cc);
+ WebTarget r = client.target(getBaseUri());
+
+ assertEquals("NO-COOKIE", r.request().get(String.class));
+ assertEquals("NO-COOKIE", r.request().get(String.class));
+
+ CookieManager manager = new CookieManager();
+ manager.getCookieStore().getCookies();
+
+ final JavaNetHttpConnector connector = (JavaNetHttpConnector) client.getConfiguration().getConnector();
+
+ if (connector.getCookieHandler() != null) {
+ assertTrue(connector.getCookieHandler().get(getBaseUri(), Collections.emptyMap()).get("Cookie").isEmpty());
+ } else {
+ assertNull(connector.getCookieHandler());
+ }
+ client.close();
+ }
+
+ @Test
+ public void testCookies() throws IOException {
+ ClientConfig cc = new ClientConfig();
+ final CookieManager manager = new CookieManager();
+ cc.property(JavaNetHttpClientProperties.COOKIE_HANDLER, manager);
+ cc.connectorProvider(new JavaNetHttpConnectorProvider());
+ JerseyClient client = JerseyClientBuilder.createClient(cc);
+ WebTarget r = client.target(getBaseUri());
+
+ assertEquals("NO-COOKIE", r.request().get(String.class));
+ assertEquals("value", r.request().get(String.class));
+
+ final JavaNetHttpConnector connector = (JavaNetHttpConnector) client.getConfiguration().getConnector();
+ assertNotNull(connector.getCookieHandler());
+ assertEquals(1, connector.getCookieHandler().get(getBaseUri(), Collections.emptyMap()).size());
+ assertEquals("value", manager.getCookieStore().getCookies().get(0).getValue());
+ client.close();
+ }
+}
\ No newline at end of file
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/EntityTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/EntityTest.java
new file mode 100644
index 00000000000..44f0ff4afe2
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/EntityTest.java
@@ -0,0 +1,152 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.POST;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.client.Entity;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.Response;
+import jakarta.xml.bind.annotation.XmlRootElement;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.jackson.JacksonFeature;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.TimeoutException;
+import java.util.logging.Logger;
+
+import static org.junit.Assert.assertEquals;
+
+public class EntityTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(EntityTest.class.getName());
+
+ private static final String PATH = "test";
+
+ @Path("/test")
+ public static class EntityResource {
+
+ @GET
+ public Person get() {
+ return new Person("John", "Doe");
+ }
+
+ @POST
+ public Person post(Person entity) {
+ return entity;
+ }
+
+ }
+
+ @XmlRootElement
+ public static class Person {
+
+ private String firstName;
+ private String lastName;
+
+ public Person() {
+ //For JAXB processing
+ }
+
+ public Person(String firstName, String lastName) {
+ this.firstName = firstName;
+ this.lastName = lastName;
+ }
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ @Override
+ public String toString() {
+ return firstName + " " + lastName;
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(EntityResource.class, JacksonFeature.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new JavaNetHttpConnectorProvider())
+ .register(JacksonFeature.class);
+ }
+
+ @Test
+ public void testGet() {
+ Response response = target(PATH).request(MediaType.APPLICATION_XML_TYPE).get();
+ Person person = response.readEntity(Person.class);
+ assertEquals("John Doe", person.toString());
+ response = target(PATH).request(MediaType.APPLICATION_JSON_TYPE).get();
+ person = response.readEntity(Person.class);
+ assertEquals("John Doe", person.toString());
+ }
+
+ @Test
+ public void testGetAsync() throws ExecutionException, InterruptedException {
+ Response response = target(PATH).request(MediaType.APPLICATION_XML_TYPE).async().get().get();
+ Person person = response.readEntity(Person.class);
+ assertEquals("John Doe", person.toString());
+ response = target(PATH).request(MediaType.APPLICATION_JSON_TYPE).async().get().get();
+ person = response.readEntity(Person.class);
+ assertEquals("John Doe", person.toString());
+ }
+
+ @Test
+ public void testPost() {
+ Response response = target(PATH).request(MediaType.APPLICATION_XML_TYPE).post(Entity.xml(new Person("John", "Doe")));
+ Person person = response.readEntity(Person.class);
+ assertEquals("John Doe", person.toString());
+ response = target(PATH).request(MediaType.APPLICATION_JSON_TYPE).post(Entity.xml(new Person("John", "Doe")));
+ person = response.readEntity(Person.class);
+ assertEquals("John Doe", person.toString());
+ }
+
+ @Test
+ public void testPostAsync() throws ExecutionException, InterruptedException, TimeoutException {
+ Response response = target(PATH).request(MediaType.APPLICATION_XML_TYPE).async()
+ .post(Entity.xml(new Person("John", "Doe"))).get();
+ Person person = response.readEntity(Person.class);
+ assertEquals("John Doe", person.toString());
+ response = target(PATH).request(MediaType.APPLICATION_JSON_TYPE).async().post(Entity.xml(new Person("John", "Doe")))
+ .get();
+ person = response.readEntity(Person.class);
+ assertEquals("John Doe", person.toString());
+ }
+}
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/ErrorTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/ErrorTest.java
new file mode 100644
index 00000000000..ca01f33684a
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/ErrorTest.java
@@ -0,0 +1,119 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import jakarta.ws.rs.ClientErrorException;
+import jakarta.ws.rs.POST;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.client.Entity;
+import jakarta.ws.rs.client.WebTarget;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.Response;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import java.util.logging.Logger;
+
+import static org.junit.Assert.assertEquals;
+
+public class ErrorTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(ErrorTest.class.getName());
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(ErrorResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ }
+
+
+ @Path("/test")
+ public static class ErrorResource {
+ @POST
+ public Response post(String entity) {
+ return Response.serverError().build();
+ }
+
+ @Path("entity")
+ @POST
+ public Response postWithEntity(String entity) {
+ return Response.serverError().entity("error").build();
+ }
+ }
+
+ @Test
+ public void testPostError() {
+ WebTarget r = target("test");
+
+ for (int i = 0; i < 100; i++) {
+ try {
+ r.request().post(Entity.text("POST"));
+ } catch (ClientErrorException ex) {
+ }
+ }
+ }
+
+ @Test
+ public void testPostErrorWithEntity() {
+ WebTarget r = target("test");
+
+ for (int i = 0; i < 100; i++) {
+ try {
+ r.request().post(Entity.text("POST"));
+ } catch (ClientErrorException ex) {
+ String s = ex.getResponse().readEntity(String.class);
+ assertEquals("error", s);
+ }
+ }
+ }
+
+ @Test
+ public void testPostErrorAsync() {
+ WebTarget r = target("test");
+
+ for (int i = 0; i < 100; i++) {
+ try {
+ r.request().async().post(Entity.text("POST"));
+ } catch (ClientErrorException ex) {
+ }
+ }
+ }
+
+ @Test
+ public void testPostErrorWithEntityAsync() {
+ WebTarget r = target("test");
+
+ for (int i = 0; i < 100; i++) {
+ try {
+ r.request().async().post(Entity.text("POST"));
+ } catch (ClientErrorException ex) {
+ String s = ex.getResponse().readEntity(String.class);
+ assertEquals("error", s);
+ }
+ }
+ }
+}
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/FollowRedirectsTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/FollowRedirectsTest.java
new file mode 100644
index 00000000000..075bbba0efc
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/FollowRedirectsTest.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.client.Client;
+import jakarta.ws.rs.client.ClientBuilder;
+import jakarta.ws.rs.client.ClientRequestContext;
+import jakarta.ws.rs.client.ClientResponseContext;
+import jakarta.ws.rs.client.ClientResponseFilter;
+import jakarta.ws.rs.client.WebTarget;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.Response;
+import jakarta.ws.rs.core.UriBuilder;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.client.ClientResponse;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import java.io.IOException;
+import java.net.URI;
+import java.util.logging.Logger;
+
+import static org.junit.Assert.assertEquals;
+
+public class FollowRedirectsTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(FollowRedirectsTest.class.getName());
+
+ @Path("/test")
+ public static class RedirectResource {
+ @GET
+ public String get() {
+ return "GET";
+ }
+
+ @GET
+ @Path("redirect")
+ public Response redirect() {
+ return Response.seeOther(UriBuilder.fromResource(RedirectResource.class).build()).build();
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(RedirectResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.property(ClientProperties.FOLLOW_REDIRECTS, false);
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ }
+
+ private static class RedirectTestFilter implements ClientResponseFilter {
+ public static final String RESOLVED_URI_HEADER = "resolved-uri";
+
+ @Override
+ public void filter(ClientRequestContext requestContext, ClientResponseContext responseContext) throws IOException {
+ if (responseContext instanceof ClientResponse) {
+ ClientResponse clientResponse = (ClientResponse) responseContext;
+ responseContext.getHeaders().putSingle(RESOLVED_URI_HEADER, clientResponse.getResolvedRequestUri().toString());
+ }
+ }
+ }
+
+ @Test
+ public void testDoFollow() {
+ final URI u = target().getUri();
+ ClientConfig config = new ClientConfig().property(ClientProperties.FOLLOW_REDIRECTS, true);
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ Client c = ClientBuilder.newClient(config);
+ WebTarget t = c.target(u);
+ Response r = t.path("test/redirect")
+ .register(RedirectTestFilter.class)
+ .request().get();
+ assertEquals(200, r.getStatus());
+ assertEquals("GET", r.readEntity(String.class));
+// TODO uncomment as part of JERSEY-2388 fix.
+// assertEquals(
+// UriBuilder.fromUri(getBaseUri()).path(RedirectResource.class).build().toString(),
+// r.getHeaderString(RedirectTestFilter.RESOLVED_URI_HEADER));
+
+ c.close();
+ }
+
+ @Test
+ public void testDoFollowPerRequestOverride() {
+ WebTarget t = target("test/redirect");
+ t.property(ClientProperties.FOLLOW_REDIRECTS, true);
+ Response r = t.request().get();
+ assertEquals(200, r.getStatus());
+ assertEquals("GET", r.readEntity(String.class));
+ }
+
+ @Test
+ public void testDontFollow() {
+ WebTarget t = target("test/redirect");
+ assertEquals(303, t.request().get().getStatus());
+ }
+
+ @Test
+ public void testDontFollowPerRequestOverride() {
+ final URI u = target().getUri();
+ ClientConfig config = new ClientConfig().property(ClientProperties.FOLLOW_REDIRECTS, true);
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ Client client = ClientBuilder.newClient(config);
+ WebTarget t = client.target(u);
+ t.property(ClientProperties.FOLLOW_REDIRECTS, false);
+ Response r = t.path("test/redirect").request().get();
+ assertEquals(303, r.getStatus());
+ client.close();
+ }
+}
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/GZIPContentEncodingTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/GZIPContentEncodingTest.java
new file mode 100644
index 00000000000..eb80bafcd2f
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/GZIPContentEncodingTest.java
@@ -0,0 +1,101 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import jakarta.ws.rs.POST;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.client.Client;
+import jakarta.ws.rs.client.ClientBuilder;
+import jakarta.ws.rs.client.Entity;
+import jakarta.ws.rs.client.WebTarget;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.Response;
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.message.GZipEncoder;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import java.util.Arrays;
+import java.util.logging.Logger;
+
+import static org.junit.Assert.assertTrue;
+
+public class GZIPContentEncodingTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(GZIPContentEncodingTest.class.getName());
+
+ @Path("/")
+ public static class Resource {
+
+ @POST
+ public byte[] post(byte[] content) {
+ return content;
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(Resource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.register(GZipEncoder.class);
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ }
+
+ @Test
+ public void testPost() {
+ WebTarget r = target();
+ byte[] content = new byte[1024 * 1024];
+ content[0] = 1;
+ assertTrue(Arrays.equals(content,
+ r.request().post(Entity.entity(content, MediaType.APPLICATION_OCTET_STREAM_TYPE)).readEntity(byte[].class)));
+
+ Response cr = r.request().post(Entity.entity(content, MediaType.APPLICATION_OCTET_STREAM_TYPE));
+ assertTrue(cr.hasEntity());
+ cr.close();
+ }
+
+ @Test
+ public void testPostChunked() {
+ ClientConfig config = new ClientConfig();
+ config.property(ClientProperties.CHUNKED_ENCODING_SIZE, 1024);
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+
+ Client client = ClientBuilder.newClient(config);
+ WebTarget r = client.target(getBaseUri());
+
+ byte[] content = new byte[1024 * 1024];
+ assertTrue(Arrays.equals(content,
+ r.request().post(Entity.entity(content, MediaType.APPLICATION_OCTET_STREAM_TYPE)).readEntity(byte[].class)));
+
+ Response cr = r.request().post(Entity.text("POST"));
+ assertTrue(cr.hasEntity());
+ cr.close();
+
+ client.close();
+ }
+
+}
\ No newline at end of file
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/HelloWorldTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/HelloWorldTest.java
new file mode 100644
index 00000000000..97ade809f5c
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/HelloWorldTest.java
@@ -0,0 +1,158 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
+import java.util.logging.Logger;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.Produces;
+import jakarta.ws.rs.client.InvocationCallback;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.Response;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+public class HelloWorldTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(HelloWorldTest.class.getName());
+ private static final String ROOT_PATH = "helloworld";
+
+ @Path("helloworld")
+ public static class HelloWorldResource {
+ public static final String CLICHED_MESSAGE = "Hello World!";
+
+ @GET
+ @Produces("text/plain")
+ public String getHello() {
+ return CLICHED_MESSAGE;
+ }
+
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(HelloWorldResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ }
+
+ @Test
+ public void testConnection() {
+ Response response = target().path(ROOT_PATH).request("text/plain").get();
+ assertEquals(200, response.getStatus());
+ }
+
+ @Test
+ public void testClientStringResponse() {
+ String s = target().path(ROOT_PATH).request().get(String.class);
+ assertEquals(HelloWorldResource.CLICHED_MESSAGE, s);
+ }
+
+ @Test
+ public void testAsyncClientRequests() throws InterruptedException {
+ final int REQUESTS = 20;
+ final CountDownLatch latch = new CountDownLatch(REQUESTS);
+ final long tic = System.currentTimeMillis();
+ for (int i = 0; i < REQUESTS; i++) {
+ final int id = i;
+ target().path(ROOT_PATH).request().async().get(new InvocationCallback() {
+ @Override
+ public void completed(Response response) {
+ try {
+ final String result = response.readEntity(String.class);
+ assertEquals(HelloWorldResource.CLICHED_MESSAGE, result);
+ } finally {
+ latch.countDown();
+ }
+ }
+
+ @Override
+ public void failed(Throwable error) {
+ error.printStackTrace();
+ latch.countDown();
+ }
+ });
+ }
+ latch.await(10 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS);
+ final long toc = System.currentTimeMillis();
+ Logger.getLogger(HelloWorldTest.class.getName()).info("Executed in: " + (toc - tic));
+ }
+
+ @Test
+ public void testHead() {
+ Response response = target().path(ROOT_PATH).request().head();
+ assertEquals(200, response.getStatus());
+ assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
+ }
+
+ @Test
+ public void testFooBarOptions() {
+ Response response = target().path(ROOT_PATH).request().header("Accept", "foo/bar").options();
+ assertEquals(200, response.getStatus());
+ final String allowHeader = response.getHeaderString("Allow");
+ _checkAllowContent(allowHeader);
+ assertEquals("foo/bar", response.getMediaType().toString());
+ assertEquals(0, response.getLength());
+ }
+
+ @Test
+ public void testTextPlainOptions() {
+ Response response = target().path(ROOT_PATH).request().header("Accept", MediaType.TEXT_PLAIN).options();
+ assertEquals(200, response.getStatus());
+ final String allowHeader = response.getHeaderString("Allow");
+ _checkAllowContent(allowHeader);
+ assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
+ final String responseBody = response.readEntity(String.class);
+ _checkAllowContent(responseBody);
+ }
+
+ private void _checkAllowContent(final String content) {
+ assertTrue(content.contains("GET"));
+ assertTrue(content.contains("HEAD"));
+ assertTrue(content.contains("OPTIONS"));
+ }
+
+ @Test
+ public void testMissingResourceNotFound() {
+ Response response;
+
+ response = target().path(ROOT_PATH + "arbitrary").request().get();
+ assertEquals(404, response.getStatus());
+ response.close();
+
+ response = target().path(ROOT_PATH).path("arbitrary").request().get();
+ assertEquals(404, response.getStatus());
+ response.close();
+ }
+
+}
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/HttpHeadersTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/HttpHeadersTest.java
new file mode 100644
index 00000000000..230e27a9f98
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/HttpHeadersTest.java
@@ -0,0 +1,94 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import java.util.List;
+import java.util.logging.Logger;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.HeaderParam;
+import jakarta.ws.rs.POST;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.Context;
+import jakarta.ws.rs.core.HttpHeaders;
+import jakarta.ws.rs.core.Response;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+public class HttpHeadersTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(HttpHeadersTest.class.getName());
+
+ @Path("/test")
+ public static class HttpMethodResource {
+ @POST
+ public String post(
+ @HeaderParam("Transfer-Encoding") String transferEncoding,
+ @HeaderParam("X-CLIENT") String xClient,
+ @HeaderParam("X-WRITER") String xWriter,
+ String entity) {
+ assertEquals("client", xClient);
+ return "POST";
+ }
+
+ @GET
+ public String testUserAgent(@Context HttpHeaders httpHeaders) {
+ final List requestHeader = httpHeaders.getRequestHeader(HttpHeaders.USER_AGENT);
+ if (requestHeader.size() != 1) {
+ return "FAIL";
+ }
+ return requestHeader.get(0);
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(HttpMethodResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ }
+
+ @Test
+ public void testPost() {
+ Response response = target().path("test").request().header("X-CLIENT", "client").post(null);
+
+ assertEquals(200, response.getStatus());
+ assertTrue(response.hasEntity());
+ }
+
+ /**
+ * Test, that {@code User-agent} header is as set by Jersey, not by underlying Jetty client.
+ */
+ @Test
+ public void testUserAgent() {
+ String response = target().path("test").request().get(String.class);
+ assertTrue("User-agent header should start with 'Jersey', but was " + response, response.startsWith("Jersey"));
+ }
+}
\ No newline at end of file
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/ManagedClientTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/ManagedClientTest.java
new file mode 100644
index 00000000000..1b247709f23
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/ManagedClientTest.java
@@ -0,0 +1,251 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ClientBinding;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.server.Uri;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import java.io.IOException;
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.util.logging.Logger;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.Produces;
+import jakarta.ws.rs.client.ClientRequestContext;
+import jakarta.ws.rs.client.ClientRequestFilter;
+import jakarta.ws.rs.client.WebTarget;
+import jakarta.ws.rs.container.ContainerRequestContext;
+import jakarta.ws.rs.container.ContainerRequestFilter;
+import jakarta.ws.rs.container.DynamicFeature;
+import jakarta.ws.rs.container.ResourceInfo;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.FeatureContext;
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.Response;
+
+import static org.junit.Assert.assertEquals;
+
+public class ManagedClientTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(ManagedClientTest.class.getName());
+
+ /**
+ * Managed client configuration for client A.
+ */
+ @ClientBinding(configClass = MyClientAConfig.class)
+ @Documented
+ @Retention(RetentionPolicy.RUNTIME)
+ @Target({ElementType.FIELD, ElementType.PARAMETER})
+ public static @interface ClientA {
+ }
+
+ /**
+ * Managed client configuration for client B.
+ */
+ @ClientBinding(configClass = MyClientBConfig.class)
+ @Documented
+ @Retention(RetentionPolicy.RUNTIME)
+ @Target({ElementType.FIELD, ElementType.PARAMETER})
+ public @interface ClientB {
+ }
+
+ /**
+ * Dynamic feature that appends a properly configured {@link CustomHeaderFilter} instance
+ * to every method that is annotated with {@link Require @Require} internal feature
+ * annotation.
+ */
+ public static class CustomHeaderFeature implements DynamicFeature {
+
+ /**
+ * A method annotation to be placed on those resource methods to which a validating
+ * {@link CustomHeaderFilter} instance should be added.
+ */
+ @Retention(RetentionPolicy.RUNTIME)
+ @Documented
+ @Target(ElementType.METHOD)
+ public static @interface Require {
+
+ /**
+ * Expected custom header name to be validated by the {@link CustomHeaderFilter}.
+ */
+ String headerName();
+
+ /**
+ * Expected custom header value to be validated by the {@link CustomHeaderFilter}.
+ */
+ String headerValue();
+ }
+
+ @Override
+ public void configure(ResourceInfo resourceInfo, FeatureContext context) {
+ final Require va = resourceInfo.getResourceMethod().getAnnotation(Require.class);
+ if (va != null) {
+ context.register(new CustomHeaderFilter(va.headerName(), va.headerValue()));
+ }
+ }
+ }
+
+ /**
+ * A filter for appending and validating custom headers.
+ *
+ * On the client side, appends a new custom request header with a configured name and value to each outgoing request.
+ *
+ *
+ * On the server side, validates that each request has a custom header with a configured name and value.
+ * If the validation fails a HTTP 403 response is returned.
+ *
+ */
+ public static class CustomHeaderFilter implements ContainerRequestFilter, ClientRequestFilter {
+
+ private final String headerName;
+ private final String headerValue;
+
+ public CustomHeaderFilter(String headerName, String headerValue) {
+ if (headerName == null || headerValue == null) {
+ throw new IllegalArgumentException("Header name and value must not be null.");
+ }
+ this.headerName = headerName;
+ this.headerValue = headerValue;
+ }
+
+ @Override
+ public void filter(ContainerRequestContext ctx) throws IOException { // validate
+ if (!headerValue.equals(ctx.getHeaderString(headerName))) {
+ ctx.abortWith(Response.status(Response.Status.FORBIDDEN)
+ .type(MediaType.TEXT_PLAIN)
+ .entity(String
+ .format("Expected header '%s' not present or value not equal to '%s'", headerName, headerValue))
+ .build());
+ }
+ }
+
+ @Override
+ public void filter(ClientRequestContext ctx) throws IOException { // append
+ ctx.getHeaders().putSingle(headerName, headerValue);
+ }
+ }
+
+ /**
+ * Internal resource accessed from the managed client resource.
+ */
+ @Path("internal")
+ public static class InternalResource {
+
+ @GET
+ @Path("a")
+ @CustomHeaderFeature.Require(headerName = "custom-header", headerValue = "a")
+ public String getA() {
+ return "a";
+ }
+
+ @GET
+ @Path("b")
+ @CustomHeaderFeature.Require(headerName = "custom-header", headerValue = "b")
+ public String getB() {
+ return "b";
+ }
+ }
+
+ /**
+ * A resource that uses managed clients to retrieve values of internal
+ * resources 'A' and 'B', which are protected by a {@link CustomHeaderFilter}
+ * and require a specific custom header in a request to be set to a specific value.
+ *
+ * Properly configured managed clients have a {@code CustomHeaderFilter} instance
+ * configured to insert the {@link CustomHeaderFeature.Require required} custom header
+ * with a proper value into the outgoing client requests.
+ *
+ */
+ @Path("public")
+ public static class PublicResource {
+
+ @Uri("a")
+ @ClientA // resolves to /internal/a
+ private WebTarget targetA;
+
+ @GET
+ @Produces("text/plain")
+ @Path("a")
+ public String getTargetA() {
+ return targetA.request(MediaType.TEXT_PLAIN).get(String.class);
+ }
+
+ @GET
+ @Produces("text/plain")
+ @Path("b")
+ public Response getTargetB(@Uri("internal/b") @ClientB WebTarget targetB) {
+ return targetB.request(MediaType.TEXT_PLAIN).get();
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(PublicResource.class, InternalResource.class, CustomHeaderFeature.class)
+ .property(ClientA.class.getName() + ".baseUri", this.getBaseUri().toString() + "internal");
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ public static class MyClientAConfig extends ClientConfig {
+
+ public MyClientAConfig() {
+ this.register(new CustomHeaderFilter("custom-header", "a"));
+ }
+ }
+
+ public static class MyClientBConfig extends ClientConfig {
+
+ public MyClientBConfig() {
+ this.register(new CustomHeaderFilter("custom-header", "b"));
+ }
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ }
+
+ /**
+ * Test that a connection via managed clients works properly.
+ *
+ * @throws Exception in case of test failure.
+ */
+ @Test
+ public void testManagedClient() throws Exception {
+ final WebTarget resource = target().path("public").path("{name}");
+ Response response;
+
+ response = resource.resolveTemplate("name", "a").request(MediaType.TEXT_PLAIN).get();
+ assertEquals(200, response.getStatus());
+ assertEquals("a", response.readEntity(String.class));
+
+ response = resource.resolveTemplate("name", "b").request(MediaType.TEXT_PLAIN).get();
+ assertEquals(200, response.getStatus());
+ assertEquals("b", response.readEntity(String.class));
+ }
+
+}
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/MethodTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/MethodTest.java
new file mode 100644
index 00000000000..6ec57469788
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/MethodTest.java
@@ -0,0 +1,147 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import java.util.concurrent.ExecutionException;
+import java.util.logging.Logger;
+
+import jakarta.ws.rs.DELETE;
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.PATCH;
+import jakarta.ws.rs.POST;
+import jakarta.ws.rs.PUT;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.client.Entity;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.Response;
+
+import static org.junit.Assert.assertEquals;
+
+public class MethodTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(MethodTest.class.getName());
+
+ private static final String PATH = "test";
+
+ @Path("/test")
+ public static class HttpMethodResource {
+ @GET
+ public String get() {
+ return "GET";
+ }
+
+ @POST
+ public String post(String entity) {
+ return entity;
+ }
+
+ @PUT
+ public String put(String entity) {
+ return entity;
+ }
+
+ @PATCH
+ public String patch(String entity) {
+ return entity;
+ }
+
+ @DELETE
+ public String delete() {
+ return "DELETE";
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(HttpMethodResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ }
+
+ @Test
+ public void testGet() {
+ Response response = target(PATH).request().get();
+ assertEquals("GET", response.readEntity(String.class));
+ }
+
+ @Test
+ public void testGetAsync() throws ExecutionException, InterruptedException {
+ Response response = target(PATH).request().async().get().get();
+ assertEquals("GET", response.readEntity(String.class));
+ }
+
+ @Test
+ public void testPost() {
+ Response response = target(PATH).request().post(Entity.entity("POST", MediaType.TEXT_PLAIN));
+ assertEquals("POST", response.readEntity(String.class));
+ }
+
+ @Test
+ public void testPostAsync() throws ExecutionException, InterruptedException {
+ Response response = target(PATH).request().async().post(Entity.entity("POST", MediaType.TEXT_PLAIN)).get();
+ assertEquals("POST", response.readEntity(String.class));
+ }
+
+ @Test
+ public void testPut() {
+ Response response = target(PATH).request().put(Entity.entity("PUT", MediaType.TEXT_PLAIN));
+ assertEquals("PUT", response.readEntity(String.class));
+ }
+
+ @Test
+ public void testPutAsync() throws ExecutionException, InterruptedException {
+ Response response = target(PATH).request().async().put(Entity.entity("PUT", MediaType.TEXT_PLAIN)).get();
+ assertEquals("PUT", response.readEntity(String.class));
+ }
+
+ @Test
+ public void testDelete() {
+ Response response = target(PATH).request().delete();
+ assertEquals("DELETE", response.readEntity(String.class));
+ }
+
+ @Test
+ public void testDeleteAsync() throws ExecutionException, InterruptedException {
+ Response response = target(PATH).request().async().delete().get();
+ assertEquals("DELETE", response.readEntity(String.class));
+ }
+
+ @Test
+ public void testPatch() {
+ Response response = target(PATH).request().method("PATCH", Entity.entity("PATCH", MediaType.TEXT_PLAIN));
+ assertEquals("PATCH", response.readEntity(String.class));
+ }
+
+ @Test
+ public void testOptionsWithEntity() {
+ Response response = target(PATH).request().build("OPTIONS", Entity.text("OPTIONS")).invoke();
+ assertEquals(200, response.getStatus());
+ response.close();
+ }
+}
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/NoEntityTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/NoEntityTest.java
new file mode 100644
index 00000000000..73d9807e801
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/NoEntityTest.java
@@ -0,0 +1,96 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import java.util.logging.Logger;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.POST;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.client.WebTarget;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.Response;
+
+public class NoEntityTest extends JerseyTest {
+ private static final Logger LOGGER = Logger.getLogger(NoEntityTest.class.getName());
+
+ @Path("/test")
+ public static class HttpMethodResource {
+ @GET
+ public Response get() {
+ return Response.status(Response.Status.CONFLICT).build();
+ }
+
+ @POST
+ public void post(String entity) {
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(HttpMethodResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ }
+
+ @Test
+ public void testGet() {
+ WebTarget r = target("test");
+
+ for (int i = 0; i < 5; i++) {
+ Response cr = r.request().get();
+ cr.close();
+ }
+ }
+
+ @Test
+ public void testGetWithClose() {
+ WebTarget r = target("test");
+ for (int i = 0; i < 5; i++) {
+ Response cr = r.request().get();
+ cr.close();
+ }
+ }
+
+ @Test
+ public void testPost() {
+ WebTarget r = target("test");
+ for (int i = 0; i < 5; i++) {
+ Response cr = r.request().post(null);
+ }
+ }
+
+ @Test
+ public void testPostWithClose() {
+ WebTarget r = target("test");
+ for (int i = 0; i < 5; i++) {
+ Response cr = r.request().post(null);
+ cr.close();
+ }
+ }
+}
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/TimeoutTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/TimeoutTest.java
new file mode 100644
index 00000000000..5b7498c08c2
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/TimeoutTest.java
@@ -0,0 +1,120 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import java.net.URI;
+import java.net.http.HttpTimeoutException;
+import java.util.logging.Logger;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.ProcessingException;
+import jakarta.ws.rs.client.Client;
+import jakarta.ws.rs.client.ClientBuilder;
+import jakarta.ws.rs.client.WebTarget;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.Response;
+
+import static org.hamcrest.CoreMatchers.instanceOf;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertThat;
+import static org.junit.Assert.fail;
+
+public class TimeoutTest extends JerseyTest {
+ private static final Logger LOGGER = Logger.getLogger(TimeoutTest.class.getName());
+
+ @Path("/test")
+ public static class TimeoutResource {
+ @GET
+ public String get() {
+ return "GET";
+ }
+
+ @GET
+ @Path("timeout")
+ public String getTimeout() {
+ try {
+ Thread.sleep(2000);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ return "GET";
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(TimeoutResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ return config;
+ }
+
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ }
+
+ @Test
+ public void testFast() {
+ Response r = target("test").request().get();
+ assertEquals(200, r.getStatus());
+ assertEquals("GET", r.readEntity(String.class));
+ }
+
+ @Test
+ public void testSlow() {
+ final URI u = target().getUri();
+ ClientConfig config = new ClientConfig().property(ClientProperties.READ_TIMEOUT, 1_000);
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ Client c = ClientBuilder.newClient(config);
+ WebTarget t = c.target(u);
+ try {
+ t.path("test/timeout").request().get();
+ fail("Timeout expected.");
+ } catch (ProcessingException e) {
+ assertThat("Unexpected processing exception cause",
+ e.getCause(), instanceOf(HttpTimeoutException.class));
+ } finally {
+ c.close();
+ }
+ }
+
+ @Test
+ public void testTimeoutInRequest() {
+ final URI u = target().getUri();
+ ClientConfig config = new ClientConfig();
+ config.connectorProvider(new JavaNetHttpConnectorProvider());
+ Client c = ClientBuilder.newClient(config);
+ WebTarget t = c.target(u);
+ try {
+ t.path("test/timeout").request().property(ClientProperties.READ_TIMEOUT, 1_000).get();
+ fail("Timeout expected.");
+ } catch (ProcessingException e) {
+ assertThat("Unexpected processing exception cause",
+ e.getCause(), instanceOf(HttpTimeoutException.class));
+ } finally {
+ c.close();
+ }
+ }
+}
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/TraceSupportTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/TraceSupportTest.java
new file mode 100644
index 00000000000..b543e776473
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/TraceSupportTest.java
@@ -0,0 +1,229 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.glassfish.jersey.logging.LoggingFeature;
+import org.glassfish.jersey.process.Inflector;
+import org.glassfish.jersey.server.ContainerRequest;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.server.model.Resource;
+import org.glassfish.jersey.test.JerseyTest;
+import org.junit.Test;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.util.List;
+import java.util.Map;
+import java.util.logging.Logger;
+
+import jakarta.ws.rs.HttpMethod;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.Produces;
+import jakarta.ws.rs.client.Client;
+import jakarta.ws.rs.client.ClientBuilder;
+import jakarta.ws.rs.client.Entity;
+import jakarta.ws.rs.client.WebTarget;
+import jakarta.ws.rs.container.ContainerRequestContext;
+import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.Request;
+import jakarta.ws.rs.core.Response;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
+public class TraceSupportTest extends JerseyTest {
+
+ private static final Logger LOGGER = Logger.getLogger(TraceSupportTest.class.getName());
+
+ /**
+ * Programmatic tracing root resource path.
+ */
+ public static final String ROOT_PATH_PROGRAMMATIC = "tracing/programmatic";
+
+ /**
+ * Annotated class-based tracing root resource path.
+ */
+ public static final String ROOT_PATH_ANNOTATED = "tracing/annotated";
+
+ @HttpMethod(TRACE.NAME)
+ @Target(ElementType.METHOD)
+ @Retention(RetentionPolicy.RUNTIME)
+ public @interface TRACE {
+ public static final String NAME = "TRACE";
+ }
+
+ @Path(ROOT_PATH_ANNOTATED)
+ public static class TracingResource {
+
+ @TRACE
+ @Produces("text/plain")
+ public String trace(Request request) {
+ return stringify((ContainerRequest) request);
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ ResourceConfig config = new ResourceConfig(TracingResource.class);
+ config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
+ final Resource.Builder resourceBuilder = Resource.builder(ROOT_PATH_PROGRAMMATIC);
+ resourceBuilder.addMethod(TRACE.NAME).handledBy(new Inflector() {
+
+ @Override
+ public Response apply(ContainerRequestContext request) {
+ if (request == null) {
+ return Response.noContent().build();
+ } else {
+ return Response.ok(stringify((ContainerRequest) request), MediaType.TEXT_PLAIN).build();
+ }
+ }
+ });
+
+ return config.registerResources(resourceBuilder.build());
+
+ }
+
+ private String[] expectedFragmentsProgrammatic = new String[]{
+ "TRACE http://localhost:" + this.getPort() + "/tracing/programmatic"
+ };
+ private String[] expectedFragmentsAnnotated = new String[]{
+ "TRACE http://localhost:" + this.getPort() + "/tracing/annotated"
+ };
+
+ private WebTarget prepareTarget(String path) {
+ final WebTarget target = target();
+ target.register(LoggingFeature.class);
+ return target.path(path);
+ }
+
+ @Test
+ public void testProgrammaticApp() throws Exception {
+ Response response = prepareTarget(ROOT_PATH_PROGRAMMATIC).request("text/plain").method(TRACE.NAME);
+
+ assertEquals(Response.Status.OK.getStatusCode(), response.getStatusInfo().getStatusCode());
+
+ String responseEntity = response.readEntity(String.class);
+ for (String expectedFragment : expectedFragmentsProgrammatic) {
+ assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
+ // toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment));
+ }
+ }
+
+ @Test
+ public void testAnnotatedApp() throws Exception {
+ Response response = prepareTarget(ROOT_PATH_ANNOTATED).request("text/plain").method(TRACE.NAME);
+
+ assertEquals(Response.Status.OK.getStatusCode(), response.getStatusInfo().getStatusCode());
+
+ String responseEntity = response.readEntity(String.class);
+ for (String expectedFragment : expectedFragmentsAnnotated) {
+ assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
+ // toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment));
+ }
+ }
+
+ @Test
+ public void testTraceWithEntity() throws Exception {
+ _testTraceWithEntity(false, false);
+ }
+
+ @Test
+ public void testAsyncTraceWithEntity() throws Exception {
+ _testTraceWithEntity(true, false);
+ }
+
+ @Test
+ public void testTraceWithEntityJettyConnector() throws Exception {
+ _testTraceWithEntity(false, true);
+ }
+
+ @Test
+ public void testAsyncTraceWithEntityJettyConnector() throws Exception {
+ _testTraceWithEntity(true, true);
+ }
+
+ private void _testTraceWithEntity(final boolean isAsync, final boolean useJettyConnection) throws Exception {
+ try {
+ WebTarget target = useJettyConnection ? getJettyClient().target(target().getUri()) : target();
+ target = target.path(ROOT_PATH_ANNOTATED);
+
+ final Entity entity = Entity.entity("trace", MediaType.WILDCARD_TYPE);
+
+ Response response;
+ if (!isAsync) {
+ response = target.request().method(TRACE.NAME, entity);
+ } else {
+ response = target.request().async().method(TRACE.NAME, entity).get();
+ }
+
+ fail("A TRACE request MUST NOT include an entity. (response=" + response + ")");
+ } catch (Exception e) {
+ // OK
+ }
+ }
+
+ private Client getJettyClient() {
+ return ClientBuilder.newClient(new ClientConfig().connectorProvider(new JavaNetHttpConnectorProvider()));
+ }
+
+
+ public static String stringify(ContainerRequest request) {
+ StringBuilder buffer = new StringBuilder();
+
+ printRequestLine(buffer, request);
+ printPrefixedHeaders(buffer, request.getHeaders());
+
+ if (request.hasEntity()) {
+ buffer.append(request.readEntity(String.class)).append("\n");
+ }
+
+ return buffer.toString();
+ }
+
+ private static void printRequestLine(StringBuilder buffer, ContainerRequest request) {
+ buffer.append(request.getMethod()).append(" ").append(request.getUriInfo().getRequestUri().toASCIIString()).append("\n");
+ }
+
+ private static void printPrefixedHeaders(StringBuilder buffer, Map> headers) {
+ for (Map.Entry> e : headers.entrySet()) {
+ List val = e.getValue();
+ String header = e.getKey();
+
+ if (val.size() == 1) {
+ buffer.append(header).append(": ").append(val.get(0)).append("\n");
+ } else {
+ StringBuilder sb = new StringBuilder();
+ boolean add = false;
+ for (String s : val) {
+ if (add) {
+ sb.append(',');
+ }
+ add = true;
+ sb.append(s);
+ }
+ buffer.append(header).append(": ").append(sb.toString()).append("\n");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/UnderlyingHttpClientAccessTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/UnderlyingHttpClientAccessTest.java
new file mode 100644
index 00000000000..e00ff9c53cb
--- /dev/null
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/UnderlyingHttpClientAccessTest.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.jnh.connector;
+
+import org.glassfish.jersey.client.ClientConfig;
+import org.junit.Test;
+
+import java.net.http.HttpClient;
+
+import jakarta.ws.rs.client.Client;
+import jakarta.ws.rs.client.ClientBuilder;
+import jakarta.ws.rs.client.WebTarget;
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertSame;
+
+public class UnderlyingHttpClientAccessTest {
+
+ @Test
+ public void testHttpClientInstanceAccess() {
+ final Client client = ClientBuilder.newClient(new ClientConfig().connectorProvider(new JavaNetHttpConnectorProvider()));
+ final HttpClient hcOnClient = JavaNetHttpConnectorProvider.getHttpClient(client);
+ // important: the web target instance in this test must be only created AFTER the client has been pre-initialized
+ // (see org.glassfish.jersey.client.Initializable.preInitialize method). This is here achieved by calling the
+ // connector provider's static getHttpClient method above.
+ final WebTarget target = client.target("http://localhost/");
+ final HttpClient hcOnTarget = JavaNetHttpConnectorProvider.getHttpClient(target);
+
+ assertNotNull("HTTP client instance set on JerseyClient should not be null.", hcOnClient);
+ assertNotNull("HTTP client instance set on JerseyWebTarget should not be null.", hcOnTarget);
+ assertSame("HTTP client instance set on JerseyClient should be the same instance as the one set on JerseyWebTarget"
+ + "(provided the target instance has not been further configured).",
+ hcOnClient, hcOnTarget
+ );
+ }
+
+}
\ No newline at end of file
diff --git a/core-client/src/main/java/org/glassfish/jersey/client/innate/Expect100ContinueUsage.java b/core-client/src/main/java/org/glassfish/jersey/client/innate/Expect100ContinueUsage.java
new file mode 100644
index 00000000000..7c45854c802
--- /dev/null
+++ b/core-client/src/main/java/org/glassfish/jersey/client/innate/Expect100ContinueUsage.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.client.innate;
+
+import org.glassfish.jersey.client.ClientProperties;
+import org.glassfish.jersey.client.ClientRequest;
+import org.glassfish.jersey.client.RequestEntityProcessing;
+
+/**
+ * Utility class to check whether it's possible to send the Expect header within request.
+ */
+public final class Expect100ContinueUsage {
+
+ private Expect100ContinueUsage() {
+ //do not instantiate
+ }
+
+ /**
+ * Checks if usage of the Expect header with 100-Continue value is allowed
+ *
+ * @param request client's request
+ * @param requestMethod method of the request (GET, POST, PUT etc).
+ * @return true if the Expect header is allowed.
+ */
+ public static boolean isAllowed(ClientRequest request, String requestMethod) {
+
+ long requestLength = request.getLengthLong();
+
+ final RequestEntityProcessing entityProcessing = request.resolveProperty(
+ ClientProperties.REQUEST_ENTITY_PROCESSING, RequestEntityProcessing.class);
+
+ final Boolean expectContinueActivated = request.resolveProperty(
+ ClientProperties.EXPECT_100_CONTINUE, Boolean.class);
+ final Long expectContinueSizeThreshold = request.resolveProperty(
+ ClientProperties.EXPECT_100_CONTINUE_THRESHOLD_SIZE,
+ ClientProperties.DEFAULT_EXPECT_100_CONTINUE_THRESHOLD_SIZE);
+
+ final boolean allowStreaming = requestLength > expectContinueSizeThreshold
+ || entityProcessing == RequestEntityProcessing.CHUNKED;
+
+ return !(!Boolean.TRUE.equals(expectContinueActivated)
+ || !("POST".equals(requestMethod) || "PUT".equals(requestMethod))
+ || !allowStreaming
+ );
+ }
+}
diff --git a/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java b/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java
index 31a35835ddf..2e276ff36af 100644
--- a/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java
+++ b/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java
@@ -362,7 +362,7 @@ private ClientResponse _apply(final ClientRequest request) throws IOException {
}
}
- processExtentions(request, uc);
+ processExtensions(request, uc);
request.setStreamProvider(contentLength -> {
setOutboundHeaders(request.getStringHeaders(), uc);
@@ -536,7 +536,7 @@ public Object run() throws NoSuchFieldException,
}
}
- private void processExtentions(ClientRequest request, HttpURLConnection uc) {
+ private void processExtensions(ClientRequest request, HttpURLConnection uc) {
connectorExtension.invoke(request, uc);
}
diff --git a/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlExpect100ContinueConnectorExtension.java b/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlExpect100ContinueConnectorExtension.java
index 2e727eb9fa9..ad1383087db 100644
--- a/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlExpect100ContinueConnectorExtension.java
+++ b/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlExpect100ContinueConnectorExtension.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,7 +18,7 @@
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.ClientRequest;
-import org.glassfish.jersey.client.RequestEntityProcessing;
+import org.glassfish.jersey.client.innate.Expect100ContinueUsage;
import java.io.IOException;
import java.net.HttpURLConnection;
@@ -32,26 +32,9 @@ class HttpUrlExpect100ContinueConnectorExtension
@Override
public void invoke(ClientRequest request, HttpURLConnection uc) {
- final long length = request.getLengthLong();
- final RequestEntityProcessing entityProcessing = request.resolveProperty(
- ClientProperties.REQUEST_ENTITY_PROCESSING, RequestEntityProcessing.class);
-
- final Boolean expectContinueActivated = request.resolveProperty(
- ClientProperties.EXPECT_100_CONTINUE, Boolean.class);
- final Long expectContinueSizeThreshold = request.resolveProperty(
- ClientProperties.EXPECT_100_CONTINUE_THRESHOLD_SIZE,
- ClientProperties.DEFAULT_EXPECT_100_CONTINUE_THRESHOLD_SIZE);
-
- final boolean allowStreaming = length > expectContinueSizeThreshold
- || entityProcessing == RequestEntityProcessing.CHUNKED;
-
- if (!Boolean.TRUE.equals(expectContinueActivated)
- || !("POST".equals(uc.getRequestMethod()) || "PUT".equals(uc.getRequestMethod()))
- || !allowStreaming
- ) {
- return;
+ if (Expect100ContinueUsage.isAllowed(request, uc.getRequestMethod())) {
+ uc.setRequestProperty("Expect", "100-Continue");
}
- uc.setRequestProperty("Expect", "100-Continue");
}
@Override
From 5c5837726fd82a33cd1a44d2baaf8cf059d57774 Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Wed, 17 Aug 2022 15:25:46 +0200
Subject: [PATCH 101/305] jersey-jnh-connector documentation (properties
description)
Signed-off-by: Maxim Nesen
---
.../JavaNetHttpClientProperties.java | 2 +-
docs/src/main/docbook/appendix-properties.xml | 41 +++++++++++++++++++
docs/src/main/docbook/jersey.ent | 3 +-
3 files changed, 44 insertions(+), 2 deletions(-)
diff --git a/connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpClientProperties.java b/connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpClientProperties.java
index 43552bf9420..3a48d2c69a7 100644
--- a/connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpClientProperties.java
+++ b/connectors/jnh-connector/src/main/java/org/glassfish/jersey/jnh/connector/JavaNetHttpClientProperties.java
@@ -57,7 +57,7 @@ public class JavaNetHttpClientProperties {
public static final String SSL_PARAMETERS = "jersey.config.jnh.client.sslParameters";
/**
- * The credential provider that should be used to retrieve
+ * An instance of the {@link java.net.Authenticator} class that should be used to retrieve
* credentials from a user.
*
*/
diff --git a/docs/src/main/docbook/appendix-properties.xml b/docs/src/main/docbook/appendix-properties.xml
index 0082d54317d..10d860d2899 100644
--- a/docs/src/main/docbook/appendix-properties.xml
+++ b/docs/src/main/docbook/appendix-properties.xml
@@ -1918,6 +1918,12 @@
+
+ Java Net HTTP client configuration properties
+
+ List of client configuration properties that can be found in &jersey.jnh.JavaNetHttpClientProperties; class.
+
+
Netty HTTP client configuration properties
@@ -2033,6 +2039,41 @@
+
+ &jersey.jnh.JavaNetHttpClientProperties.PREEMPTIVE_BASIC_AUTHENTICATION;
+ jersey.config.jnh.client.preemptiveBasicAuthentication
+
+
+ An instance of the Authenticator class which represents an object that knows how to
+ obtain authentication for a network connection should be used.
+
+
+ If an java.net.Authenticator instance is found,
+ it is then used for the given request.
+
+
+ The value MUST be an instance of java.net.Authenticator .
+ If the property is absent, no authentication is used.
+
+
+
+
+ &jersey.jnh.JavaNetHttpClientProperties.DISABLE_COOKIES;
+ jersey.config.jnh.client.disableCookies
+
+
+ A value of &lit.false; indicates the client should handle cookies
+ automatically using HttpClient's default cookie policy. A value
+ of &lit.true; will cause the client to ignore all cookies.
+
+
+ The value MUST be an instance of java.lang.Boolean .
+
+
+ The default value is &lit.false;.
+
+
+
diff --git a/docs/src/main/docbook/jersey.ent b/docs/src/main/docbook/jersey.ent
index dae7cb50339..702c5119227 100644
--- a/docs/src/main/docbook/jersey.ent
+++ b/docs/src/main/docbook/jersey.ent
@@ -485,9 +485,10 @@
JettyWebContainerFactory">
JavaNetHttpConnectorProvider">
JavaNetHttpClientProperties">
-JavaNetHttpClientProperties">
JavaNetHttpClientProperties.COOKIE_HANDLER">
JavaNetHttpClientProperties.SSL_PARAMETERS">
+JavaNetHttpClientProperties.PREEMPTIVE_BASIC_AUTHENTICATION">
+JavaNetHttpClientProperties.DISABLE_COOKIES">
DeclarativeLinkingFeature">
LoggingFeature">
LoggingFeature.DEFAULT_LOGGER_NAME">
From 2a4b48559f449c45b9f66b2f37bdfe958dd54488 Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Thu, 8 Sep 2022 09:50:21 +0200
Subject: [PATCH 102/305] ErrorTest adjustments
Signed-off-by: Maxim Nesen
---
.../jersey/jnh/connector/ErrorTest.java | 28 ++++++++++++-------
1 file changed, 18 insertions(+), 10 deletions(-)
diff --git a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/ErrorTest.java b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/ErrorTest.java
index ca01f33684a..6c86d6340b5 100644
--- a/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/ErrorTest.java
+++ b/connectors/jnh-connector/src/test/java/org/glassfish/jersey/jnh/connector/ErrorTest.java
@@ -22,6 +22,7 @@
import jakarta.ws.rs.client.Entity;
import jakarta.ws.rs.client.WebTarget;
import jakarta.ws.rs.core.Application;
+import jakarta.ws.rs.core.Feature;
import jakarta.ws.rs.core.Response;
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.logging.LoggingFeature;
@@ -29,6 +30,10 @@
import org.glassfish.jersey.test.JerseyTest;
import org.junit.Test;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.Future;
import java.util.logging.Logger;
import static org.junit.Assert.assertEquals;
@@ -67,13 +72,11 @@ public Response postWithEntity(String entity) {
@Test
public void testPostError() {
- WebTarget r = target("test");
+ final WebTarget target = target("test");
for (int i = 0; i < 100; i++) {
- try {
- r.request().post(Entity.text("POST"));
- } catch (ClientErrorException ex) {
- }
+ final Response resp = target.request().post(Entity.text("POST"));
+ assertEquals(500, resp.getStatus());
}
}
@@ -92,13 +95,18 @@ public void testPostErrorWithEntity() {
}
@Test
- public void testPostErrorAsync() {
- WebTarget r = target("test");
+ public void testPostErrorAsync() throws ExecutionException, InterruptedException {
+ final WebTarget target = target("test");
+
+ final List> responses = new ArrayList<>(100);
for (int i = 0; i < 100; i++) {
- try {
- r.request().async().post(Entity.text("POST"));
- } catch (ClientErrorException ex) {
+ responses.add(target.request().async().post(Entity.text("POST")));
+ }
+ for (int i = responses.size() - 1; i >= 0;) {
+ if (responses.get(i).isDone()) {
+ assertEquals(500, responses.remove(i).get().getStatus());
+ i--;
}
}
}
From 17062cf93403c067368d5f9441ea9436bd52475c Mon Sep 17 00:00:00 2001
From: jansupol
Date: Wed, 7 Sep 2022 15:38:35 +0200
Subject: [PATCH 103/305] Update weld, moxy, and yasson
Signed-off-by: jansupol
---
pom.xml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/pom.xml b/pom.xml
index a9a98472252..d1acba3fc81 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2224,9 +2224,9 @@
2.9.0
- 5.0.0.SP2
+ 5.0.1.Final
3.1.7.SP1
- 8.0.0.Alpha1
+ 8.0.0.CR3
2.12.2
@@ -2269,10 +2269,10 @@
11.0.9
6.1.14
3.0.0
- 1.1.0
- 1.1.0
- 4.0.0-M3
- 3.0.0-RC2
+ 1.1.1
+ 1.1.1
+ 4.0.0-RC1
+ 3.0.2
1.3.2
From 9ea156c3027b05d3b647c393dd2e219998074b28 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Thu, 8 Sep 2022 14:10:24 +0200
Subject: [PATCH 104/305] OSGi for JNH connector
Signed-off-by: jansupol
---
connectors/jnh-connector/pom.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/connectors/jnh-connector/pom.xml b/connectors/jnh-connector/pom.xml
index 6f520ce9f1a..6fdd9cb8c39 100644
--- a/connectors/jnh-connector/pom.xml
+++ b/connectors/jnh-connector/pom.xml
@@ -95,6 +95,11 @@
org.apache.maven.plugins
maven-compiler-plugin
+
+ org.apache.felix
+ maven-bundle-plugin
+ true
+
From 12cd82bf8627b665321ed771727fa91e44e06737 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Thu, 8 Sep 2022 22:26:07 +0200
Subject: [PATCH 105/305] Add SSE Helidon Test
Signed-off-by: jansupol
---
.../org/glassfish/jersey/helidon/connector/sse/SseTest.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/sse/SseTest.java b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/sse/SseTest.java
index 6608c1031f1..67cdc8984be 100644
--- a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/sse/SseTest.java
+++ b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/sse/SseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,7 +21,6 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.junit.Assert;
-import org.junit.Ignore;
import org.junit.Test;
import jakarta.annotation.PostConstruct;
@@ -107,7 +106,6 @@ protected void configureClient(ClientConfig config) {
}
@Test
- @Ignore //TODO - remove after jakartification
public void testSend() throws InterruptedException {
final StringBuilder sb = new StringBuilder();
final CountDownLatch latch = new CountDownLatch(10);
From f2f95f94b965744be9d0f007f141b1e222d7e759 Mon Sep 17 00:00:00 2001
From: Matthias van der Hallen
Date: Thu, 22 Sep 2022 09:36:47 +0200
Subject: [PATCH 106/305] Update JdkHttpServerFactory.java (#5163)
---
.../glassfish/jersey/jdkhttp/JdkHttpServerFactory.java | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpServerFactory.java b/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpServerFactory.java
index 1743925469e..f31235998d7 100644
--- a/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpServerFactory.java
+++ b/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpServerFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -223,11 +223,15 @@ private static HttpServer createHttpServer(final URI uri,
? (isHttp ? Container.DEFAULT_HTTP_PORT : Container.DEFAULT_HTTPS_PORT)
: uri.getPort();
+ final InetSocketAddress socketAddress = (uri.getHost() == null)
+ ? new InetSocketAddress(port)
+ : new InetSocketAddress(uri.getHost(), port);
+
final HttpServer server;
try {
server = isHttp
- ? HttpServer.create(new InetSocketAddress(port), 0)
- : HttpsServer.create(new InetSocketAddress(port), 0);
+ ? HttpServer.create(socketAddress, 0)
+ : HttpsServer.create(socketAddress, 0);
} catch (final IOException ioe) {
throw new ProcessingException(LocalizationMessages.ERROR_CONTAINER_EXCEPTION_IO(), ioe);
}
From 0c2f28ae96bf1f89f944b9a7d901e34861d85633 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Fri, 16 Sep 2022 23:22:11 +0200
Subject: [PATCH 107/305] Fix Container#reload
Signed-off-by: jansupol
---
.../httpserver/GrizzlyHttpContainer.java | 4 +-
.../jdkhttp/JdkHttpHandlerContainer.java | 4 +-
.../jersey/servlet/ServletContainer.java | 2 +-
.../jersey/jetty/JettyHttpContainer.java | 4 +-
.../netty/httpserver/NettyHttpContainer.java | 4 +-
.../jersey/simple/SimpleContainer.java | 4 +-
.../internal/inject/InjectionManager.java | 8 ++-
.../jersey/server/ServerRuntime.java | 69 ++++++++++---------
.../cdi1x/internal/CdiComponentProvider.java | 4 +-
ext/microprofile/mp-rest-client/pom.xml | 1 +
.../managed/BinderRegisterExtension.java | 7 +-
.../internal/managed/CdiInjectionManager.java | 7 +-
.../managed/WrappingInjectionManager.java | 7 +-
.../inject/cdi/se/CdiSeInjectionManager.java | 7 +-
.../hk2/AbstractHk2InjectionManager.java | 9 ++-
pom.xml | 2 +-
.../jersey/tests/cdi/gf/GFTestApp.java | 29 ++++++++
.../jersey/tests/cdi/gf/GFTestResource.java | 10 +++
.../glassfish/jersey/tests/cdi/gf/GFTest.java | 19 ++++-
19 files changed, 148 insertions(+), 53 deletions(-)
diff --git a/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpContainer.java b/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpContainer.java
index 3519624652d..5bd8b1f68d5 100644
--- a/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpContainer.java
+++ b/containers/grizzly2-http/src/main/java/org/glassfish/jersey/grizzly2/httpserver/GrizzlyHttpContainer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -370,7 +370,7 @@ public ResourceConfig getConfiguration() {
@Override
public void reload() {
- reload(appHandler.getConfiguration());
+ reload(new ResourceConfig(appHandler.getConfiguration()));
}
@Override
diff --git a/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpHandlerContainer.java b/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpHandlerContainer.java
index 4f6cb30260e..d1ebf61fa6f 100644
--- a/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpHandlerContainer.java
+++ b/containers/jdk-http/src/main/java/org/glassfish/jersey/jdkhttp/JdkHttpHandlerContainer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -201,7 +201,7 @@ public ResourceConfig getConfiguration() {
@Override
public void reload() {
- reload(getConfiguration());
+ reload(new ResourceConfig(getConfiguration()));
}
@Override
diff --git a/containers/jersey-servlet-core/src/main/java/org/glassfish/jersey/servlet/ServletContainer.java b/containers/jersey-servlet-core/src/main/java/org/glassfish/jersey/servlet/ServletContainer.java
index 522ba333d87..a454d61162f 100644
--- a/containers/jersey-servlet-core/src/main/java/org/glassfish/jersey/servlet/ServletContainer.java
+++ b/containers/jersey-servlet-core/src/main/java/org/glassfish/jersey/servlet/ServletContainer.java
@@ -640,7 +640,7 @@ public ResourceConfig getConfiguration() {
@Override
public void reload() {
- reload(getConfiguration());
+ reload(new ResourceConfig(getConfiguration()));
}
@Override
diff --git a/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainer.java b/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainer.java
index 06687ec48bd..ccc2fe7a7a4 100644
--- a/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainer.java
+++ b/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -417,7 +417,7 @@ public ResourceConfig getConfiguration() {
@Override
public void reload() {
- reload(getConfiguration());
+ reload(new ResourceConfig(getConfiguration()));
}
@Override
diff --git a/containers/netty-http/src/main/java/org/glassfish/jersey/netty/httpserver/NettyHttpContainer.java b/containers/netty-http/src/main/java/org/glassfish/jersey/netty/httpserver/NettyHttpContainer.java
index ac4bf4ef03e..f21bd7ebefd 100644
--- a/containers/netty-http/src/main/java/org/glassfish/jersey/netty/httpserver/NettyHttpContainer.java
+++ b/containers/netty-http/src/main/java/org/glassfish/jersey/netty/httpserver/NettyHttpContainer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -53,7 +53,7 @@ public ApplicationHandler getApplicationHandler() {
@Override
public void reload() {
- reload(appHandler.getConfiguration());
+ reload(new ResourceConfig(appHandler.getConfiguration()));
}
@Override
diff --git a/containers/simple-http/src/main/java/org/glassfish/jersey/simple/SimpleContainer.java b/containers/simple-http/src/main/java/org/glassfish/jersey/simple/SimpleContainer.java
index 3561eab14fa..04e7f2ca583 100644
--- a/containers/simple-http/src/main/java/org/glassfish/jersey/simple/SimpleContainer.java
+++ b/containers/simple-http/src/main/java/org/glassfish/jersey/simple/SimpleContainer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -407,7 +407,7 @@ public ResourceConfig getConfiguration() {
@Override
public void reload() {
- reload(getConfiguration());
+ reload(new ResourceConfig(getConfiguration()));
}
@Override
diff --git a/core-common/src/main/java/org/glassfish/jersey/internal/inject/InjectionManager.java b/core-common/src/main/java/org/glassfish/jersey/internal/inject/InjectionManager.java
index 36fc6103b87..4d5fd1c2eec 100644
--- a/core-common/src/main/java/org/glassfish/jersey/internal/inject/InjectionManager.java
+++ b/core-common/src/main/java/org/glassfish/jersey/internal/inject/InjectionManager.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -50,6 +50,12 @@ public interface InjectionManager {
*/
void shutdown();
+ /**
+ * Returns {@code true} when the {@link InjectionManager} has been shutdown, {@code false} otherwise.
+ * @return Whether the {@code InjectionManager} has been shutdown.
+ */
+ boolean isShutdown();
+
/**
* Registers one bean represented using fields in the provided descriptor. The final bean can be direct bean or
* factory object which will create the bean at the time of injection. {@code InjectionManager} is able to register a bean
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java b/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java
index 981514c5851..086bcda208a 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -231,43 +231,50 @@ public void process(final ContainerRequest request) {
requestScopeInstance, externalRequestScope.open(injectionManager));
context.initAsyncContext(asyncResponderHolder);
- requestScope.runInScope(requestScopeInstance, new Runnable() {
- @Override
- public void run() {
- try {
- // set base URI into response builder thread-local variable
- // for later resolving of relative location URIs
- if (!disableLocationHeaderRelativeUriResolution) {
- final URI uriToUse =
- rfc7231LocationHeaderRelativeUriResolution ? request.getRequestUri() : request.getBaseUri();
- OutboundJaxrsResponse.Builder.setBaseUri(uriToUse);
- }
+ try {
+ requestScope.runInScope(requestScopeInstance, new Runnable() {
+ @Override
+ public void run() {
+ try {
+ // set base URI into response builder thread-local variable
+ // for later resolving of relative location URIs
+ if (!disableLocationHeaderRelativeUriResolution) {
+ final URI uriToUse =
+ rfc7231LocationHeaderRelativeUriResolution ? request.getRequestUri() : request.getBaseUri();
+ OutboundJaxrsResponse.Builder.setBaseUri(uriToUse);
+ }
- final Ref endpointRef = Refs.emptyRef();
- final RequestProcessingContext data = Stages.process(context, requestProcessingRoot, endpointRef);
+ final Ref endpointRef = Refs.emptyRef();
+ final RequestProcessingContext data = Stages.process(context, requestProcessingRoot, endpointRef);
- final Endpoint endpoint = endpointRef.get();
- if (endpoint == null) {
- // not found
- throw new NotFoundException();
- }
+ final Endpoint endpoint = endpointRef.get();
+ if (endpoint == null) {
+ // not found
+ throw new NotFoundException();
+ }
- final ContainerResponse response = endpoint.apply(data);
+ final ContainerResponse response = endpoint.apply(data);
- if (!asyncResponderHolder.isAsync()) {
- responder.process(response);
- } else {
- externalRequestScope.suspend(asyncResponderHolder.externalContext, injectionManager);
+ if (!asyncResponderHolder.isAsync()) {
+ responder.process(response);
+ } else {
+ externalRequestScope.suspend(asyncResponderHolder.externalContext, injectionManager);
+ }
+ } catch (final Throwable throwable) {
+ responder.process(throwable);
+ } finally {
+ asyncResponderHolder.release();
+ // clear base URI from the thread
+ OutboundJaxrsResponse.Builder.clearBaseUri();
}
- } catch (final Throwable throwable) {
- responder.process(throwable);
- } finally {
- asyncResponderHolder.release();
- // clear base URI from the thread
- OutboundJaxrsResponse.Builder.clearBaseUri();
}
+ });
+ } catch (RuntimeException illegalStateException) {
+ if (!IllegalStateException.class.isInstance(illegalStateException.getCause()) || !injectionManager.isShutdown()) {
+ // consume the IllegalStateException: InjectionManager has been closed.
+ throw illegalStateException;
}
- });
+ }
}
/**
diff --git a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
index 6ff37b4c94e..ff63759604b 100644
--- a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
+++ b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
@@ -671,7 +671,7 @@ public InjectionManagerInjectedCdiTarget(InjectionTarget delegate) {
@Override
public void inject(final Object t, final CreationalContext cc) {
InjectionManager injectingManager = getEffectiveInjectionManager();
- if (injectingManager == null) {
+ if (injectingManager == null || /* reload */ injectingManager.isShutdown()) {
injectingManager = effectiveInjectionManager;
threadInjectionManagers.set(injectingManager);
}
@@ -737,7 +737,7 @@ public boolean isNullable() {
@Override
public Object create(final CreationalContext creationalContext) {
InjectionManager injectionManager = getEffectiveInjectionManager();
- if (injectionManager == null) {
+ if (injectionManager == null || /* reload */ injectionManager.isShutdown()) {
injectionManager = threadInjectionManagers.get();
}
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index 6265c0776af..a07cb3012e1 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -116,6 +116,7 @@
${cdi.osgi.version},
org.eclipse.microprofile.rest.client.*;version="[1,3)",
+ org.eclipse.microprofile.config;version="!",
*
diff --git a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/BinderRegisterExtension.java b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/BinderRegisterExtension.java
index da291dfd435..9787cfe4322 100644
--- a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/BinderRegisterExtension.java
+++ b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/BinderRegisterExtension.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -597,6 +597,11 @@ public void shutdown() {
//noop
}
+ @Override
+ public boolean isShutdown() {
+ return false;
+ }
+
@Override
public void register(Binding binding) {
BinderRegisterExtension.this.register(runtimeType, binding);
diff --git a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/CdiInjectionManager.java b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/CdiInjectionManager.java
index e3746abec09..3c00646137e 100644
--- a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/CdiInjectionManager.java
+++ b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/CdiInjectionManager.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -333,6 +333,11 @@ public void shutdown() {
}
+ @Override
+ public boolean isShutdown() {
+ return false;
+ }
+
protected Binder getBindings() {
return bindings;
}
diff --git a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/WrappingInjectionManager.java b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/WrappingInjectionManager.java
index a3bea1ae436..5d40bfaa871 100644
--- a/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/WrappingInjectionManager.java
+++ b/incubator/cdi-inject-weld/src/main/java/org/glassfish/jersey/inject/weld/internal/managed/WrappingInjectionManager.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -50,6 +50,11 @@ public void shutdown() {
injectionManager.shutdown();
}
+ @Override
+ public boolean isShutdown() {
+ return injectionManager.isShutdown();
+ }
+
@Override
public void register(Binding binding) {
injectionManager.register(binding);
diff --git a/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/CdiSeInjectionManager.java b/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/CdiSeInjectionManager.java
index 3a8d44d40fe..6411310ba78 100644
--- a/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/CdiSeInjectionManager.java
+++ b/inject/cdi2-se/src/main/java/org/glassfish/jersey/inject/cdi/se/CdiSeInjectionManager.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -289,6 +289,11 @@ public void shutdown() {
}
}
+ @Override
+ public boolean isShutdown() {
+ return !container.isRunning();
+ }
+
@Override
public void inject(Object injectMe, String classAnalyzer) {
// TODO: Used only in legacy CDI integration.
diff --git a/inject/hk2/src/main/java/org/glassfish/jersey/inject/hk2/AbstractHk2InjectionManager.java b/inject/hk2/src/main/java/org/glassfish/jersey/inject/hk2/AbstractHk2InjectionManager.java
index 5a710844483..3a46d60f4f9 100644
--- a/inject/hk2/src/main/java/org/glassfish/jersey/inject/hk2/AbstractHk2InjectionManager.java
+++ b/inject/hk2/src/main/java/org/glassfish/jersey/inject/hk2/AbstractHk2InjectionManager.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -51,6 +51,7 @@ abstract class AbstractHk2InjectionManager implements InjectionManager {
private static final ServiceLocatorFactory factory = ServiceLocatorFactory.getInstance();
private ServiceLocator locator;
+ private Boolean isShutdown = Boolean.FALSE; // TODO replace by getServiceLocator().isShutDown() in 3.x
/**
* Private constructor.
@@ -182,6 +183,12 @@ public void shutdown() {
} else {
getServiceLocator().shutdown();
}
+ isShutdown = Boolean.TRUE;
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return isShutdown;
}
@Override
diff --git a/pom.xml b/pom.xml
index 0f08664574e..1fe9764aaeb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -448,7 +448,7 @@
org.apache.maven.plugins
maven-dependency-plugin
- 3.1.2
+ 3.3.0
org.apache.maven.plugins
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestApp.java b/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestApp.java
index 0d77c954894..dc4aa36f6f9 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestApp.java
+++ b/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestApp.java
@@ -16,13 +16,42 @@
package org.glassfish.jersey.tests.cdi.gf;
+import org.glassfish.jersey.CommonProperties;
import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.server.spi.Container;
+import org.glassfish.jersey.server.spi.ContainerLifecycleListener;
import javax.ws.rs.ApplicationPath;
@ApplicationPath("/test")
public class GFTestApp extends ResourceConfig {
+ public static final String RELOADER = "RELOADER";
+ private Reloader reloader = new Reloader();
+
public GFTestApp() {
super(GFTestResource.class);
+ register(reloader);
+
+ property(CommonProperties.PROVIDER_DEFAULT_DISABLE, "ALL");
+ property(RELOADER, reloader);
+ }
+
+ static class Reloader implements ContainerLifecycleListener {
+ Container container;
+
+ @Override
+ public void onStartup(Container container) {
+ this.container = container;
+ }
+
+ @Override
+ public void onReload(Container container) {
+
+ }
+
+ @Override
+ public void onShutdown(Container container) {
+
+ }
}
}
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestResource.java b/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestResource.java
index 8e39cc8aea5..d7a0c8f4939 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestResource.java
+++ b/tests/integration/cdi-integration/gf-cdi-inject/src/main/java/org/glassfish/jersey/tests/cdi/gf/GFTestResource.java
@@ -20,6 +20,8 @@
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.UriInfo;
@@ -34,4 +36,12 @@ public class GFTestResource {
public String info() {
return uriInfo.getBaseUri().toASCIIString();
}
+
+ @GET
+ @Path("reload")
+ public String reload(@Context Application application) {
+ GFTestApp.Reloader reloader = (GFTestApp.Reloader) application.getProperties().get(GFTestApp.RELOADER);
+ reloader.container.reload();
+ return GFTestApp.RELOADER;
+ }
}
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/src/test/java/org/glassfish/jersey/tests/cdi/gf/GFTest.java b/tests/integration/cdi-integration/gf-cdi-inject/src/test/java/org/glassfish/jersey/tests/cdi/gf/GFTest.java
index da49a8b447e..078cf64a750 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/src/test/java/org/glassfish/jersey/tests/cdi/gf/GFTest.java
+++ b/tests/integration/cdi-integration/gf-cdi-inject/src/test/java/org/glassfish/jersey/tests/cdi/gf/GFTest.java
@@ -47,12 +47,27 @@ private static WebArchive createDeployment(String archiveName, Class>...classe
@Test
public void testUriInfo() {
- int port = Integer.parseInt(System.getProperty("webServerPort"));
- try (Response response = ClientBuilder.newClient().target("http://localhost:" + port).path("gf-test/test/info").request().get()) {
+ try (Response response = ClientBuilder.newClient().target("http://localhost:" + port())
+ .path("gf-test/test/info").request().get()) {
String entity = response.readEntity(String.class);
System.out.println(entity);
Assertions.assertEquals(200, response.getStatus());
Assertions.assertTrue(entity.contains("gf-test/test"));
}
}
+
+ @Test
+ public void testReload() {
+ try (Response response = ClientBuilder.newClient().target("http://localhost:" + port())
+ .path("gf-test/test/reload").request().get()) {
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(GFTestApp.RELOADER, response.readEntity(String.class));
+ }
+ testUriInfo();
+ }
+
+ private static int port() {
+ int port = Integer.parseInt(System.getProperty("webServerPort"));
+ return port;
+ }
}
From b06385c0628cacd5aa179a3079ca3d6daf89ff97 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Fri, 21 Oct 2022 11:10:19 +0200
Subject: [PATCH 108/305] Better @Inject support. For servlet classes, a
qualifier is used.
Signed-off-by: jansupol
---
ext/cdi/jersey-cdi-rs-inject/pom.xml | 8 +
.../inject/internal/InjectExtension.java | 144 ++++++++++++++++--
.../cdi1x/inject/internal/JerseyContext.java | 61 ++++++++
.../internal/ServletReferenceProducer.java | 84 ++++++++++
.../cdi1x/internal/CdiComponentProvider.java | 11 +-
.../cdi/inject/ApplicationInjectParent.java | 15 +-
.../jersey/tests/cdi/inject/ParentInject.java | 21 +--
.../tests/cdi/inject/ServletApplication.java | 31 ++++
.../cdi/inject/ServletExceptionMapper.java | 29 ++++
.../tests/cdi/inject/ServletInject.java | 61 ++++++++
.../cdi/inject/ServletRequestFilter.java | 34 +++++
.../tests/cdi/inject/ServletResource.java | 38 +++++
.../cdi/inject/ServletResponseFilter.java | 38 +++++
.../jersey/tests/cdi/inject/ServletTest.java | 99 ++++++++++++
14 files changed, 619 insertions(+), 55 deletions(-)
create mode 100644 ext/cdi/jersey-cdi-rs-inject/src/main/java/org/glassfish/jersey/ext/cdi1x/inject/internal/JerseyContext.java
create mode 100644 ext/cdi/jersey-cdi-rs-inject/src/main/java/org/glassfish/jersey/ext/cdi1x/inject/internal/ServletReferenceProducer.java
create mode 100644 tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletApplication.java
create mode 100644 tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletExceptionMapper.java
create mode 100644 tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletInject.java
create mode 100644 tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletRequestFilter.java
create mode 100644 tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletResource.java
create mode 100644 tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletResponseFilter.java
create mode 100644 tests/integration/cdi-integration/context-inject-on-server/src/test/java/org/glassfish/jersey/tests/cdi/inject/ServletTest.java
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index 68505d2b0e3..537fb2ac28f 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -45,6 +45,13 @@
cdi-api
provided
+
+ jakarta.servlet
+ jakarta.servlet-api
+ ${servlet4.version}
+ provided
+ true
+
@@ -65,6 +72,7 @@
${cdi.osgi.version},
+ javax.servlet.*;version="[2.4,5.0)";resolution:=optional,
*
diff --git a/ext/cdi/jersey-cdi-rs-inject/src/main/java/org/glassfish/jersey/ext/cdi1x/inject/internal/InjectExtension.java b/ext/cdi/jersey-cdi-rs-inject/src/main/java/org/glassfish/jersey/ext/cdi1x/inject/internal/InjectExtension.java
index a6d2e09bb16..34668520f2b 100644
--- a/ext/cdi/jersey-cdi-rs-inject/src/main/java/org/glassfish/jersey/ext/cdi1x/inject/internal/InjectExtension.java
+++ b/ext/cdi/jersey-cdi-rs-inject/src/main/java/org/glassfish/jersey/ext/cdi1x/inject/internal/InjectExtension.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,12 +22,23 @@
import org.glassfish.jersey.internal.util.collection.Value;
import org.glassfish.jersey.internal.util.collection.Values;
+import javax.enterprise.context.RequestScoped;
+import javax.enterprise.context.spi.CreationalContext;
import javax.enterprise.event.Observes;
import javax.enterprise.inject.Alternative;
+import javax.enterprise.inject.Any;
+import javax.enterprise.inject.spi.AfterBeanDiscovery;
+import javax.enterprise.inject.spi.AnnotatedType;
+import javax.enterprise.inject.spi.Bean;
import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.BeforeBeanDiscovery;
import javax.enterprise.inject.spi.Extension;
+import javax.enterprise.inject.spi.InjectionPoint;
+import javax.enterprise.inject.spi.InjectionTarget;
+import javax.enterprise.inject.spi.InjectionTargetFactory;
+import javax.enterprise.inject.spi.PassivationCapable;
import javax.enterprise.inject.spi.ProcessAnnotatedType;
+import javax.inject.Singleton;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ResourceContext;
import javax.ws.rs.container.ResourceInfo;
@@ -40,9 +51,13 @@
import javax.ws.rs.ext.ParamConverterProvider;
import javax.ws.rs.ext.Providers;
import javax.ws.rs.sse.Sse;
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Type;
import java.security.AccessController;
+import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
+import java.util.UUID;
/**
*
@@ -57,7 +72,12 @@
*/
@SuppressWarnings("unused")
class InjectExtension implements Extension {
- private void processAnnotatedType(@Observes ProcessAnnotatedType> processAnnotatedType, BeanManager beanManager) {
+ private static final Class> WEB_CONFIG_CLASS =
+ AccessController.doPrivileged(ReflectionHelper.classForNamePA("org.glassfish.jersey.servlet.WebConfig"));
+ private AnnotatedType interceptorAnnotatedType;
+
+ private void processAnnotatedType(@Observes ProcessAnnotatedType> processAnnotatedType,
+ BeanManager beanManager) {
final Class> baseClass = (Class>) processAnnotatedType.getAnnotatedType().getBaseType();
if (Application.class.isAssignableFrom(baseClass) && Configuration.class.isAssignableFrom(baseClass)) {
if (!baseClass.isAnnotationPresent(Alternative.class)) {
@@ -67,8 +87,103 @@ private void processAnnotatedType(@Observes ProcessAnnotatedType> processAnnot
}
private void beforeDiscoveryObserver(@Observes final BeforeBeanDiscovery bbf, final BeanManager beanManager) {
- final CdiComponentProvider cdiComponentProvider = beanManager.getExtension(CdiComponentProvider.class);
- cdiComponentProvider.addHK2DepenendencyCheck(InjectExtension::isHK2Dependency);
+ if (WEB_CONFIG_CLASS != null) {
+ interceptorAnnotatedType = beanManager.createAnnotatedType(ServletReferenceProducer.class);
+ bbf.addAnnotatedType(interceptorAnnotatedType, ServletReferenceProducer.class.getName());
+ }
+ CdiComponentProvider.addHK2DepenendencyCheck(InjectExtension::isHK2Dependency);
+ }
+
+ private void afterDiscoveryObserver(@Observes final AfterBeanDiscovery abd, final BeanManager beanManager) {
+ if (WEB_CONFIG_CLASS != null) {
+ abd.addBean(new ServletReferenceProducerBean(beanManager));
+ }
+ }
+
+ @Singleton
+ private final class ServletReferenceProducerBean implements Bean, PassivationCapable {
+ private final Set qualifiers = new HashSet<>();
+ private final Set types = new HashSet<>(2);
+ private final InjectionTarget interceptorTarget;
+ private final String id = UUID.randomUUID().toString();
+
+ private ServletReferenceProducerBean(BeanManager beanManager) {
+ qualifiers.add(new CdiJerseyContextAnnotation());
+ qualifiers.add(new CdiAnyAnnotation());
+
+ types.add(ServletReferenceProducer.class);
+ types.add(Object.class);
+
+ final AnnotatedType interceptorType = interceptorAnnotatedType;
+ final InjectionTargetFactory injectionTargetFactory =
+ beanManager.getInjectionTargetFactory(interceptorType);
+
+ interceptorTarget = injectionTargetFactory.createInjectionTarget(null);
+ }
+ @Override
+ public Set getTypes() {
+ return types;
+ }
+
+ @Override
+ public Set getQualifiers() {
+ return qualifiers;
+ }
+
+ @Override
+ public Class extends Annotation> getScope() {
+ return RequestScoped.class;
+ }
+
+ @Override
+ public String getName() {
+ return ServletReferenceProducer.class.getName();
+ }
+
+ @Override
+ public Set> getStereotypes() {
+ return Collections.emptySet();
+ }
+
+ @Override
+ public boolean isAlternative() {
+ return false;
+ }
+
+ @Override
+ public ServletReferenceProducer create(CreationalContext creationalContext) {
+ final ServletReferenceProducer result = interceptorTarget.produce(creationalContext);
+ interceptorTarget.inject(result, creationalContext);
+ interceptorTarget.postConstruct(result);
+ return result;
+ }
+
+ @Override
+ public void destroy(ServletReferenceProducer servletProducer,
+ CreationalContext creationalContext) {
+ interceptorTarget.preDestroy(servletProducer);
+ interceptorTarget.dispose(servletProducer);
+ creationalContext.release();
+ }
+
+ @Override
+ public Class> getBeanClass() {
+ return ServletReferenceProducer.class;
+ }
+
+ @Override
+ public Set getInjectionPoints() {
+ return interceptorTarget.getInjectionPoints();
+ }
+
+ public boolean isNullable() {
+ return false;
+ }
+
+ @Override
+ public String getId() {
+ return id;
+ }
}
private static final boolean isHK2Dependency(Class> clazz) {
@@ -95,20 +210,17 @@ private static Set> sumNonJerseyBoundInjectables() {
injectables.add(Sse.class);
injectables.add(UriInfo.class);
- //Servlet if available
- addOptionally("javax.servlet.http.HttpServletRequest", injectables);
- addOptionally("javax.servlet.http.HttpServletResponse", injectables);
- addOptionally("javax.servlet.ServletConfig", injectables);
- addOptionally("javax.servlet.ServletContext", injectables);
- addOptionally("javax.servlet.FilterConfig", injectables);
-
return injectables;
}
- private static void addOptionally(String className, Set> set) {
- final Class> optionalClass = AccessController.doPrivileged(ReflectionHelper.classForNamePA(className));
- if (optionalClass != null) {
- set.add(optionalClass);
- }
+ private static class CdiJerseyContextAnnotation
+ extends javax.enterprise.util.AnnotationLiteral implements JerseyContext {
+ private static final long serialVersionUID = 1L;
}
+
+ private static class CdiAnyAnnotation
+ extends javax.enterprise.util.AnnotationLiteral implements Any {
+ private static final long serialVersionUID = 1L;
+ }
+
}
diff --git a/ext/cdi/jersey-cdi-rs-inject/src/main/java/org/glassfish/jersey/ext/cdi1x/inject/internal/JerseyContext.java b/ext/cdi/jersey-cdi-rs-inject/src/main/java/org/glassfish/jersey/ext/cdi1x/inject/internal/JerseyContext.java
new file mode 100644
index 00000000000..f238f5356d9
--- /dev/null
+++ b/ext/cdi/jersey-cdi-rs-inject/src/main/java/org/glassfish/jersey/ext/cdi1x/inject/internal/JerseyContext.java
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.ext.cdi1x.inject.internal;
+
+import javax.inject.Qualifier;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ *
+ * Qualifier used for injecting the CDI beans using {@code @Inject}. Used only for beans that originate in Specification other
+ * than Jakarta RESTful Web Services (such as Servlet). Such beans must not be produced with {@code @Default} qualifier so that
+ * there is no ambiguity for the CDI injection.
+ *
+ *
+ * Jakarta REST Spec. Section 11 demands {@code HttpServletRequest}, {@code HttpServletResponse}, {@code ServletContext},
+ * {@code ServletConfig}, and {@code FilterConfig} to be available by injections using {@code @Context}. For CDI, these
+ * servlet classes are available with {@link JerseyContext} qualifier.
+ *
+ *
+ * Note that {@code @Context} injection is not aware of the qualifier and using {@code @Context} in conjuction with
+ * {@code @JerseyContext} will not work.
+ *
+ *
+ * Can be used as e.g.
+ *
+ *
+ * @Inject
+ * @JerseyContext //internal
+ * HttpServletRequest httpServletRequest;
+ *
+ * or as iterable of all {@code HttpServletRequest} beans
+ *
+ * @Inject
+ * @Any
+ * Instance<HttpServletRequest> httpServletRequests;
+ *
+ *
+ * @since 2.38
+ */
+@Qualifier
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.TYPE})
+public @interface JerseyContext {
+}
diff --git a/ext/cdi/jersey-cdi-rs-inject/src/main/java/org/glassfish/jersey/ext/cdi1x/inject/internal/ServletReferenceProducer.java b/ext/cdi/jersey-cdi-rs-inject/src/main/java/org/glassfish/jersey/ext/cdi1x/inject/internal/ServletReferenceProducer.java
new file mode 100644
index 00000000000..56f4e9f5cb1
--- /dev/null
+++ b/ext/cdi/jersey-cdi-rs-inject/src/main/java/org/glassfish/jersey/ext/cdi1x/inject/internal/ServletReferenceProducer.java
@@ -0,0 +1,84 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.ext.cdi1x.inject.internal;
+
+import org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider;
+import org.glassfish.jersey.internal.inject.InjectionManager;
+
+import javax.enterprise.context.RequestScoped;
+import javax.enterprise.inject.Produces;
+import javax.enterprise.inject.spi.BeanManager;
+import javax.inject.Inject;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * A CDI producer producing servlet beans in a {@code RequestScope}.
+ */
+class ServletReferenceProducer {
+ @Inject
+ InjectionManager injectionManager;
+
+ @Inject
+ BeanManager beanManager;
+
+ @Produces
+ @JerseyContext
+ @RequestScoped
+ public HttpServletRequest produceHttpServletRequest() {
+ return injectionManager().getInstance(HttpServletRequest.class);
+ }
+
+ @Produces
+ @JerseyContext
+ @RequestScoped
+ public HttpServletResponse produceHttpServletResponse() {
+ return injectionManager().getInstance(HttpServletResponse.class);
+ }
+
+ @Produces
+ @JerseyContext
+ @RequestScoped
+ public ServletContext produceServletContext() {
+ return injectionManager().getInstance(ServletContext.class);
+ }
+
+ @Produces
+ @JerseyContext
+ @RequestScoped
+ public ServletConfig produceServletConfig() {
+ return injectionManager().getInstance(ServletConfig.class);
+ }
+
+ @Produces
+ @JerseyContext
+ @RequestScoped
+ public FilterConfig produceFilterConfig() {
+ return injectionManager().getInstance(FilterConfig.class);
+ }
+
+ private InjectionManager injectionManager() {
+ InjectionManager injectionManager = beanManager.getExtension(CdiComponentProvider.class).getEffectiveInjectionManager();
+ if (injectionManager != null && !injectionManager.isShutdown()) {
+ return injectionManager;
+ }
+ return this.injectionManager;
+ }
+}
diff --git a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
index ff63759604b..5595b8a3701 100644
--- a/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
+++ b/ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java
@@ -68,7 +68,6 @@
import javax.enterprise.inject.spi.ProcessAnnotatedType;
import javax.enterprise.inject.spi.ProcessInjectionTarget;
import javax.enterprise.util.AnnotationLiteral;
-import javax.inject.Qualifier;
import org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerInjectedTarget;
import org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore;
@@ -118,7 +117,7 @@ public class CdiComponentProvider implements ComponentProvider, Extension {
private final Set jaxrsInjectableTypes = new HashSet<>();
private final Set hk2ProvidedTypes = Collections.synchronizedSet(new HashSet());
private final Set jerseyVetoedTypes = Collections.synchronizedSet(new HashSet());
- private final Set jerseyOrDependencyTypes = Collections.synchronizedSet(new LinkedHashSet<>());
+ private static final Set jerseyOrDependencyTypes = Collections.synchronizedSet(new LinkedHashSet<>());
private final ThreadLocal threadInjectionManagers = new ThreadLocal<>();
/**
@@ -554,7 +553,7 @@ public static class CdiDefaultAnnotation extends AnnotationLiteral impl
*
* @return HK2 injection manager.
*/
- /* package */ InjectionManager getEffectiveInjectionManager() {
+ public InjectionManager getEffectiveInjectionManager() {
return injectionManagerStore.getEffectiveInjectionManager();
}
@@ -870,11 +869,11 @@ private void beforeShutDown(@Observes final BeforeShutdown beforeShutdown, final
* Add a predicate to test HK2 dependency to create a CDI bridge bean to HK2 for it.
* @param predicate to test whether given class is a HK2 dependency.
*/
- public void addHK2DepenendencyCheck(Predicate> predicate) {
+ public static void addHK2DepenendencyCheck(Predicate> predicate) {
jerseyOrDependencyTypes.add(new DependencyPredicate(predicate));
}
- private final class DependencyPredicate implements Predicate> {
+ private static final class DependencyPredicate implements Predicate> {
private final Predicate> predicate;
public DependencyPredicate(Predicate> predicate) {
@@ -891,7 +890,7 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DependencyPredicate that = (DependencyPredicate) o;
- return predicate.getClass().equals(that.predicate);
+ return predicate.getClass().equals(that.predicate.getClass());
}
@Override
diff --git a/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ApplicationInjectParent.java b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ApplicationInjectParent.java
index 5b4de387110..4f441232c23 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ApplicationInjectParent.java
+++ b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ApplicationInjectParent.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -37,7 +37,6 @@
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;
import javax.ws.rs.core.UriInfo;
-import javax.ws.rs.ext.ParamConverterProvider;
import javax.ws.rs.ext.Providers;
import java.lang.reflect.Field;
import java.util.Iterator;
@@ -96,9 +95,6 @@ public class ApplicationInjectParent extends Application {
@Context
protected HttpServletRequest contextHttpServletRequest;
- @Inject
- protected HttpServletRequest injectHttpServletRequest;
-
@Context
protected WebConfig contextWebConfig;
@@ -108,21 +104,12 @@ public class ApplicationInjectParent extends Application {
@Context
protected HttpServletResponse contextHttpServletResponse;
- @Inject
- protected HttpServletResponse injectHttpServletResponse;
-
@Context
protected ServletConfig contextServletConfig;
- @Inject
- protected ServletConfig injectServletConfig;
-
@Context
protected ServletContext contextServletContext;
- @Inject
- protected ServletContext injectServletContext;
-
static class InjectHolder extends ParentInject {
@Override
diff --git a/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ParentInject.java b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ParentInject.java
index 6a546fbe6bc..e4daf19819d 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ParentInject.java
+++ b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ParentInject.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,7 +33,6 @@
import javax.ws.rs.core.Request;
import javax.ws.rs.core.SecurityContext;
import javax.ws.rs.core.UriInfo;
-import javax.ws.rs.ext.ParamConverterProvider;
import javax.ws.rs.ext.Providers;
public class ParentInject implements ParentChecker {
@@ -106,9 +105,6 @@ public class ParentInject implements ParentChecker {
@Context
protected HttpServletRequest contextHttpServletRequest;
- @Inject
- protected HttpServletRequest injectHttpServletRequest;
-
@Context
protected WebConfig contextWebConfig;
@@ -118,21 +114,12 @@ public class ParentInject implements ParentChecker {
@Context
protected HttpServletResponse contextHttpServletResponse;
- @Inject
- protected HttpServletResponse injectHttpServletResponse;
-
@Context
protected ServletConfig contextServletConfig;
- @Inject
- protected ServletConfig injectServletConfig;
-
@Context
protected ServletContext contextServletContext;
- @Inject
- protected ServletContext injectServletContext;
-
@Override
public boolean checkInjected(StringBuilder stringBuilder) {
boolean injected = true;
@@ -148,11 +135,7 @@ public boolean checkInjected(StringBuilder stringBuilder) {
injected &= InjectionChecker.checkSecurityContext(injectSecurityContext, stringBuilder);
injected &= InjectionChecker.checkUriInfo(injectUriInfo, stringBuilder);
- injected &= InjectionChecker.checkHttpServletRequest(injectHttpServletRequest, stringBuilder);
- injected &= InjectionChecker.checkHttpServletResponse(injectHttpServletResponse, stringBuilder);
injected &= InjectionChecker.checkWebConfig(injectWebConfig, stringBuilder);
- injected &= InjectionChecker.checkServletConfig(injectServletConfig, stringBuilder);
- injected &= InjectionChecker.checkServletContext(injectServletContext, stringBuilder);
return injected;
}
@@ -182,7 +165,7 @@ public boolean checkContexted(StringBuilder stringBuilder) {
}
protected boolean checkApplication(Application application, StringBuilder stringBuilder) {
- return InjectionChecker.checkApplication(contextApplication, stringBuilder);
+ return InjectionChecker.checkApplication(application, stringBuilder);
}
protected boolean checkConfiguration(Configuration configuration, StringBuilder stringBuilder) {
diff --git a/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletApplication.java b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletApplication.java
new file mode 100644
index 00000000000..ec501286fa4
--- /dev/null
+++ b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletApplication.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.cdi.inject;
+
+import org.glassfish.jersey.server.ResourceConfig;
+
+import javax.enterprise.context.ApplicationScoped;
+
+@ApplicationScoped
+public class ServletApplication extends ResourceConfig {
+ ServletApplication() {
+ super(ServletExceptionMapper.class,
+ ServletResponseFilter.class,
+ ServletRequestFilter.class,
+ ServletResource.class);
+ }
+}
diff --git a/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletExceptionMapper.java b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletExceptionMapper.java
new file mode 100644
index 00000000000..96430197f7a
--- /dev/null
+++ b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletExceptionMapper.java
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.cdi.inject;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.ws.rs.core.Response;
+import javax.ws.rs.ext.ExceptionMapper;
+
+@ApplicationScoped
+public class ServletExceptionMapper extends ServletInject implements ExceptionMapper {
+ @Override
+ public Response toResponse(IllegalArgumentException exception) {
+ return super.check();
+ }
+}
diff --git a/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletInject.java b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletInject.java
new file mode 100644
index 00000000000..57fa75a6c5c
--- /dev/null
+++ b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletInject.java
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.cdi.inject;
+
+import javax.enterprise.inject.Any;
+import javax.inject.Inject;
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.ws.rs.core.Response;
+
+public class ServletInject {
+ @Inject
+ @Any
+ protected HttpServletRequest injectHttpServletRequest;
+
+ @Inject
+ @Any
+ protected HttpServletResponse injectHttpServletResponse;
+
+ @Inject
+ @Any
+ protected ServletConfig injectServletConfig;
+
+ @Inject
+ @Any
+ protected ServletContext injectServletContext;
+
+ public boolean check(StringBuilder sb) {
+ boolean injected = true;
+ injected &= InjectionChecker.checkHttpServletRequest(injectHttpServletRequest, sb);
+ injected &= InjectionChecker.checkHttpServletResponse(injectHttpServletResponse, sb);
+ injected &= InjectionChecker.checkServletConfig(injectServletConfig, sb);
+ injected &= InjectionChecker.checkServletContext(injectServletContext, sb);
+ return injected;
+ }
+
+ public Response check() {
+ StringBuilder sb = new StringBuilder();
+ if (check(sb)) {
+ return Response.ok().entity("All injected").build();
+ } else {
+ return Response.status(Response.Status.EXPECTATION_FAILED).entity(sb.toString()).build();
+ }
+ }
+}
diff --git a/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletRequestFilter.java b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletRequestFilter.java
new file mode 100644
index 00000000000..21996ccdbaf
--- /dev/null
+++ b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletRequestFilter.java
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.cdi.inject;
+
+import javax.enterprise.context.RequestScoped;
+import javax.ws.rs.container.ContainerRequestContext;
+import javax.ws.rs.container.ContainerRequestFilter;
+import javax.ws.rs.core.Response;
+import java.io.IOException;
+
+@RequestScoped
+public class ServletRequestFilter extends ServletInject implements ContainerRequestFilter {
+ @Override
+ public void filter(ContainerRequestContext requestContext) throws IOException {
+ Response response = super.check();
+ if (response.getStatus() != Response.Status.OK.getStatusCode()) {
+ requestContext.abortWith(response);
+ }
+ }
+}
diff --git a/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletResource.java b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletResource.java
new file mode 100644
index 00000000000..acddb888e1d
--- /dev/null
+++ b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletResource.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.cdi.inject;
+
+import javax.enterprise.context.RequestScoped;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.core.Response;
+
+@RequestScoped
+@Path("/servlet")
+public class ServletResource extends ServletInject {
+
+ @GET
+ public Response checkApp() {
+ return super.check();
+ }
+
+ @GET
+ @Path("exception")
+ public Response throwE() {
+ throw new IllegalArgumentException();
+ }
+}
diff --git a/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletResponseFilter.java b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletResponseFilter.java
new file mode 100644
index 00000000000..90cb656acbd
--- /dev/null
+++ b/tests/integration/cdi-integration/context-inject-on-server/src/main/java/org/glassfish/jersey/tests/cdi/inject/ServletResponseFilter.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.cdi.inject;
+
+import javax.enterprise.context.RequestScoped;
+import javax.ws.rs.container.ContainerRequestContext;
+import javax.ws.rs.container.ContainerResponseContext;
+import javax.ws.rs.container.ContainerResponseFilter;
+import javax.ws.rs.core.Response;
+import java.io.IOException;
+
+@RequestScoped
+public class ServletResponseFilter extends ServletInject implements ContainerResponseFilter {
+ @Override
+ public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {
+ if (responseContext.getStatus() != Response.Status.OK.getStatusCode()) {
+ Response response = super.check();
+ if (response.getStatus() != Response.Status.OK.getStatusCode()) {
+ responseContext.setStatus(response.getStatus());
+ responseContext.setEntity(response.getEntity());
+ }
+ }
+ }
+}
diff --git a/tests/integration/cdi-integration/context-inject-on-server/src/test/java/org/glassfish/jersey/tests/cdi/inject/ServletTest.java b/tests/integration/cdi-integration/context-inject-on-server/src/test/java/org/glassfish/jersey/tests/cdi/inject/ServletTest.java
new file mode 100644
index 00000000000..c3a77c7ce33
--- /dev/null
+++ b/tests/integration/cdi-integration/context-inject-on-server/src/test/java/org/glassfish/jersey/tests/cdi/inject/ServletTest.java
@@ -0,0 +1,99 @@
+/*
+ * Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.tests.cdi.inject;
+
+import org.glassfish.jersey.inject.hk2.Hk2InjectionManagerFactory;
+import org.glassfish.jersey.servlet.ServletProperties;
+import org.glassfish.jersey.test.DeploymentContext;
+import org.glassfish.jersey.test.JerseyTest;
+import org.glassfish.jersey.test.ServletDeploymentContext;
+import org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory;
+import org.glassfish.jersey.test.spi.TestContainerException;
+import org.glassfish.jersey.test.spi.TestContainerFactory;
+import org.jboss.weld.environment.se.Weld;
+import org.junit.Assert;
+import org.junit.Assume;
+import org.junit.Before;
+import org.junit.Test;
+
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Response;
+
+public class ServletTest extends JerseyTest {
+ private Weld weld;
+
+ @Before
+ public void setup() {
+ Assume.assumeTrue(Hk2InjectionManagerFactory.isImmediateStrategy());
+ }
+
+ @Override
+ public void setUp() throws Exception {
+ if (Hk2InjectionManagerFactory.isImmediateStrategy()) {
+ weld = new Weld();
+ weld.initialize();
+ super.setUp();
+ }
+ }
+
+ @Override
+ public void tearDown() throws Exception {
+ if (Hk2InjectionManagerFactory.isImmediateStrategy()) {
+ weld.shutdown();
+ super.tearDown();
+ }
+ }
+
+ @Override
+ protected Application configure() {
+ return new ServletApplication();
+ }
+
+ @Override
+ protected TestContainerFactory getTestContainerFactory() throws TestContainerException {
+ return new GrizzlyWebTestContainerFactory();
+ }
+
+ @Override
+ protected DeploymentContext configureDeployment() {
+ return ServletDeploymentContext.builder(configure())
+ .initParam(ServletProperties.JAXRS_APPLICATION_CLASS, ServletApplication.class.getName())
+ .build();
+ }
+
+ @Test
+ public void testServlet() {
+ try (Response response = target("servlet").request().header(InjectionChecker.HEADER, InjectionChecker.HEADER).get()) {
+ if (response.getStatus() != Response.Status.OK.getStatusCode()) {
+ System.out.println(response.readEntity(String.class));
+ }
+ Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode());
+ }
+ }
+
+ @Test
+ public void testServletExceptionMapper() {
+ try (Response response = target("servlet/exception").request()
+ .header(InjectionChecker.HEADER, InjectionChecker.HEADER).get()) {
+ if (response.getStatus() != Response.Status.OK.getStatusCode()) {
+ System.out.println(response.readEntity(String.class));
+ }
+ Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode());
+ }
+ }
+
+}
From a0c0421cc5a3d74cf03a634ea33b57102b269bd6 Mon Sep 17 00:00:00 2001
From: Jorge Bescos Gascon
Date: Tue, 25 Oct 2022 21:55:09 +0200
Subject: [PATCH 109/305] Adopt ASM 9.4 (#5174)
* Adopt ASM 9.4
Signed-off-by: Jorge Bescos Gascon
---
.../org/objectweb/asm/AnnotationVisitor.java | 11 ++++
.../org/objectweb/asm/Attribute.java | 50 ++++++++---------
.../org/objectweb/asm/ClassReader.java | 6 +--
.../objectweb/asm/ClassTooLargeException.java | 5 +-
.../org/objectweb/asm/ClassVisitor.java | 53 +++++++++++++------
.../org/objectweb/asm/ClassWriter.java | 20 ++++---
.../org/objectweb/asm/Constants.java | 1 +
.../org/objectweb/asm/FieldVisitor.java | 9 ++++
.../repackaged/org/objectweb/asm/Handle.java | 7 +--
.../asm/MethodTooLargeException.java | 4 +-
.../org/objectweb/asm/MethodVisitor.java | 31 +++++++----
.../org/objectweb/asm/ModuleVisitor.java | 27 +++++++---
.../repackaged/org/objectweb/asm/Opcodes.java | 1 +
.../objectweb/asm/RecordComponentVisitor.java | 5 +-
.../repackaged/org/objectweb/asm/Type.java | 2 +-
.../scanning/AnnotationAcceptingListener.java | 8 ++-
.../main/resources/META-INF/NOTICE.markdown | 2 +-
pom.xml | 2 +-
18 files changed, 161 insertions(+), 83 deletions(-)
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/AnnotationVisitor.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/AnnotationVisitor.java
index 0654582e496..3dd95b3f2d1 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/AnnotationVisitor.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/AnnotationVisitor.java
@@ -84,6 +84,17 @@ protected AnnotationVisitor(final int api, final AnnotationVisitor annotationVis
this.av = annotationVisitor;
}
+ /**
+ * The annotation visitor to which this visitor must delegate method calls. May be {@literal
+ * null}.
+ *
+ * @return the annotation visitor to which this visitor must delegate method calls, or {@literal
+ * null}.
+ */
+ public AnnotationVisitor getDelegate() {
+ return av;
+ }
+
/**
* Visits a primitive value of the annotation.
*
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Attribute.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Attribute.java
index bd090e6a416..f63fc71708f 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Attribute.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Attribute.java
@@ -28,7 +28,7 @@
package jersey.repackaged.org.objectweb.asm;
/**
- * A non standard class, field, method or code attribute, as defined in the Java Virtual Machine
+ * A non standard class, field, method or Code attribute, as defined in the Java Virtual Machine
* Specification (JVMS).
*
* @see JVMS
@@ -52,7 +52,7 @@ public class Attribute {
/**
* The next attribute in this attribute list (Attribute instances can be linked via this field to
- * store a list of class, field, method or code attributes). May be {@literal null}.
+ * store a list of class, field, method or Code attributes). May be {@literal null}.
*/
Attribute nextAttribute;
@@ -80,9 +80,9 @@ public boolean isUnknown() {
}
/**
- * Returns {@literal true} if this type of attribute is a code attribute.
+ * Returns {@literal true} if this type of attribute is a Code attribute.
*
- * @return {@literal true} if this type of attribute is a code attribute.
+ * @return {@literal true} if this type of attribute is a Code attribute.
*/
public boolean isCodeAttribute() {
return false;
@@ -92,7 +92,7 @@ public boolean isCodeAttribute() {
* Returns the labels corresponding to this attribute.
*
* @return the labels corresponding to this attribute, or {@literal null} if this attribute is not
- * a code attribute that contains labels.
+ * a Code attribute that contains labels.
*/
protected Label[] getLabels() {
return new Label[0];
@@ -111,11 +111,11 @@ protected Label[] getLabels() {
* @param charBuffer the buffer to be used to call the ClassReader methods requiring a
* 'charBuffer' parameter.
* @param codeAttributeOffset index of the first byte of content of the enclosing Code attribute
- * in {@link ClassReader}, or -1 if the attribute to be read is not a code attribute. The 6
+ * in {@link ClassReader}, or -1 if the attribute to be read is not a Code attribute. The 6
* attribute header bytes (attribute_name_index and attribute_length) are not taken into
* account here.
* @param labels the labels of the method's code, or {@literal null} if the attribute to be read
- * is not a code attribute.
+ * is not a Code attribute.
* @return a new {@link Attribute} object corresponding to the specified bytes.
*/
protected Attribute read(
@@ -138,16 +138,16 @@ protected Attribute read(
*
* @param classWriter the class to which this attribute must be added. This parameter can be used
* to add the items that corresponds to this attribute to the constant pool of this class.
- * @param code the bytecode of the method corresponding to this code attribute, or {@literal null}
- * if this attribute is not a code attribute. Corresponds to the 'code' field of the Code
+ * @param code the bytecode of the method corresponding to this Code attribute, or {@literal null}
+ * if this attribute is not a Code attribute. Corresponds to the 'code' field of the Code
* attribute.
* @param codeLength the length of the bytecode of the method corresponding to this code
- * attribute, or 0 if this attribute is not a code attribute. Corresponds to the 'code_length'
+ * attribute, or 0 if this attribute is not a Code attribute. Corresponds to the 'code_length'
* field of the Code attribute.
- * @param maxStack the maximum stack size of the method corresponding to this code attribute, or
- * -1 if this attribute is not a code attribute.
+ * @param maxStack the maximum stack size of the method corresponding to this Code attribute, or
+ * -1 if this attribute is not a Code attribute.
* @param maxLocals the maximum number of local variables of the method corresponding to this code
- * attribute, or -1 if this attribute is not a code attribute.
+ * attribute, or -1 if this attribute is not a Code attribute.
* @return the byte array form of this attribute.
*/
protected ByteVector write(
@@ -197,16 +197,16 @@ final int computeAttributesSize(final SymbolTable symbolTable) {
* attribute_length) per attribute. Also adds the attribute type names to the constant pool.
*
* @param symbolTable where the constants used in the attributes must be stored.
- * @param code the bytecode of the method corresponding to these code attributes, or {@literal
- * null} if they are not code attributes. Corresponds to the 'code' field of the Code
+ * @param code the bytecode of the method corresponding to these Code attributes, or {@literal
+ * null} if they are not Code attributes. Corresponds to the 'code' field of the Code
* attribute.
* @param codeLength the length of the bytecode of the method corresponding to these code
- * attributes, or 0 if they are not code attributes. Corresponds to the 'code_length' field of
+ * attributes, or 0 if they are not Code attributes. Corresponds to the 'code_length' field of
* the Code attribute.
- * @param maxStack the maximum stack size of the method corresponding to these code attributes, or
- * -1 if they are not code attributes.
+ * @param maxStack the maximum stack size of the method corresponding to these Code attributes, or
+ * -1 if they are not Code attributes.
* @param maxLocals the maximum number of local variables of the method corresponding to these
- * code attributes, or -1 if they are not code attribute.
+ * Code attributes, or -1 if they are not Code attribute.
* @return the size of all the attributes in this attribute list. This size includes the size of
* the attribute headers.
*/
@@ -285,16 +285,16 @@ final void putAttributes(final SymbolTable symbolTable, final ByteVector output)
* attribute.
*
* @param symbolTable where the constants used in the attributes must be stored.
- * @param code the bytecode of the method corresponding to these code attributes, or {@literal
- * null} if they are not code attributes. Corresponds to the 'code' field of the Code
+ * @param code the bytecode of the method corresponding to these Code attributes, or {@literal
+ * null} if they are not Code attributes. Corresponds to the 'code' field of the Code
* attribute.
* @param codeLength the length of the bytecode of the method corresponding to these code
- * attributes, or 0 if they are not code attributes. Corresponds to the 'code_length' field of
+ * attributes, or 0 if they are not Code attributes. Corresponds to the 'code_length' field of
* the Code attribute.
- * @param maxStack the maximum stack size of the method corresponding to these code attributes, or
- * -1 if they are not code attributes.
+ * @param maxStack the maximum stack size of the method corresponding to these Code attributes, or
+ * -1 if they are not Code attributes.
* @param maxLocals the maximum number of local variables of the method corresponding to these
- * code attributes, or -1 if they are not code attribute.
+ * Code attributes, or -1 if they are not Code attribute.
* @param output where the attributes must be written.
*/
final void putAttributes(
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassReader.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassReader.java
index cd4a6bb5ad5..d6e90a73491 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassReader.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassReader.java
@@ -194,7 +194,7 @@ public ClassReader(
this.b = classFileBuffer;
// Check the class' major_version. This field is after the magic and minor_version fields, which
// use 4 and 2 bytes respectively.
- if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V19) {
+ if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V20) {
throw new IllegalArgumentException(
"Unsupported class file major version " + readShort(classFileOffset + 6));
}
@@ -375,7 +375,7 @@ public String getClassName() {
}
/**
- * Returns the internal of name of the super class (see {@link Type#getInternalName()}). For
+ * Returns the internal name of the super class (see {@link Type#getInternalName()}). For
* interfaces, the super class is {@link Object}.
*
* @return the internal name of the super class, or {@literal null} for {@link Object} class.
@@ -859,7 +859,7 @@ private void readModuleAttributes(
currentOffset += 2;
}
- // Read the 'provides_count' and 'provides' fields.
+ // Read the 'provides_count' and 'provides' fields.
int providesCount = readUnsignedShort(currentOffset);
currentOffset += 2;
while (providesCount-- > 0) {
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassTooLargeException.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassTooLargeException.java
index 8b462010b7a..fefcfe73295 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassTooLargeException.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassTooLargeException.java
@@ -42,7 +42,8 @@ public final class ClassTooLargeException extends IndexOutOfBoundsException {
/**
* Constructs a new {@link ClassTooLargeException}.
*
- * @param className the internal name of the class.
+ * @param className the internal name of the class (see {@link
+ * jersey.repackaged.org.objectweb.asm.Type#getInternalName()}).
* @param constantPoolCount the number of constant pool items of the class.
*/
public ClassTooLargeException(final String className, final int constantPoolCount) {
@@ -52,7 +53,7 @@ public ClassTooLargeException(final String className, final int constantPoolCoun
}
/**
- * Returns the internal name of the class.
+ * Returns the internal name of the class (see {@link jersey.repackaged.org.objectweb.asm.Type#getInternalName()}).
*
* @return the internal name of the class.
*/
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassVisitor.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassVisitor.java
index 8ebf594f640..44c6535cd4e 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassVisitor.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassVisitor.java
@@ -67,7 +67,7 @@ protected ClassVisitor(final int api) {
* null.
*/
protected ClassVisitor(final int api, final ClassVisitor classVisitor) {
- if (api != Opcodes.ASM9
+ if (api != Opcodes.ASM9
&& api != Opcodes.ASM8
&& api != Opcodes.ASM7
&& api != Opcodes.ASM6
@@ -83,6 +83,15 @@ protected ClassVisitor(final int api, final ClassVisitor classVisitor) {
this.cv = classVisitor;
}
+ /**
+ * The class visitor to which this visitor must delegate method calls. May be {@literal null}.
+ *
+ * @return the class visitor to which this visitor must delegate method calls, or {@literal null}.
+ */
+ public ClassVisitor getDelegate() {
+ return cv;
+ }
+
/**
* Visits the header of the class.
*
@@ -157,7 +166,8 @@ public ModuleVisitor visitModule(final String name, final int access, final Stri
* implicitly its own nest, so it's invalid to call this method with the visited class name as
* argument.
*
- * @param nestHost the internal name of the host class of the nest.
+ * @param nestHost the internal name of the host class of the nest (see {@link
+ * Type#getInternalName()}).
*/
public void visitNestHost(final String nestHost) {
if (api < Opcodes.ASM7) {
@@ -169,14 +179,19 @@ public void visitNestHost(final String nestHost) {
}
/**
- * Visits the enclosing class of the class. This method must be called only if the class has an
- * enclosing class.
+ * Visits the enclosing class of the class. This method must be called only if this class is a
+ * local or anonymous class. See the JVMS 4.7.7 section for more details.
*
- * @param owner internal name of the enclosing class of the class.
+ * @param owner internal name of the enclosing class of the class (see {@link
+ * Type#getInternalName()}).
* @param name the name of the method that contains the class, or {@literal null} if the class is
- * not enclosed in a method of its enclosing class.
+ * not enclosed in a method or constructor of its enclosing class (e.g. if it is enclosed in
+ * an instance initializer, static initializer, instance variable initializer, or class
+ * variable initializer).
* @param descriptor the descriptor of the method that contains the class, or {@literal null} if
- * the class is not enclosed in a method of its enclosing class.
+ * the class is not enclosed in a method or constructor of its enclosing class (e.g. if it is
+ * enclosed in an instance initializer, static initializer, instance variable initializer, or
+ * class variable initializer).
*/
public void visitOuterClass(final String owner, final String name, final String descriptor) {
if (cv != null) {
@@ -243,7 +258,7 @@ public void visitAttribute(final Attribute attribute) {
* the visited class is the host of a nest. A nest host is implicitly a member of its own nest, so
* it's invalid to call this method with the visited class name as argument.
*
- * @param nestMember the internal name of a nest member.
+ * @param nestMember the internal name of a nest member (see {@link Type#getInternalName()}).
*/
public void visitNestMember(final String nestMember) {
if (api < Opcodes.ASM7) {
@@ -258,7 +273,8 @@ public void visitNestMember(final String nestMember) {
* Visits a permitted subclasses. A permitted subclass is one of the allowed subclasses of the
* current class.
*
- * @param permittedSubclass the internal name of a permitted subclass.
+ * @param permittedSubclass the internal name of a permitted subclass (see {@link
+ * Type#getInternalName()}).
*/
public void visitPermittedSubclass(final String permittedSubclass) {
if (api < Opcodes.ASM9) {
@@ -271,15 +287,18 @@ public void visitPermittedSubclass(final String permittedSubclass) {
/**
* Visits information about an inner class. This inner class is not necessarily a member of the
- * class being visited.
+ * class being visited. More precisely, every class or interface C which is referenced by this
+ * class and which is not a package member must be visited with this method. This class must
+ * reference its nested class or interface members, and its enclosing class, if any. See the JVMS
+ * 4.7.6 section for more details.
*
- * @param name the internal name of an inner class (see {@link Type#getInternalName()}).
- * @param outerName the internal name of the class to which the inner class belongs (see {@link
- * Type#getInternalName()}). May be {@literal null} for not member classes.
- * @param innerName the (simple) name of the inner class inside its enclosing class. May be
- * {@literal null} for anonymous inner classes.
- * @param access the access flags of the inner class as originally declared in the enclosing
- * class.
+ * @param name the internal name of C (see {@link Type#getInternalName()}).
+ * @param outerName the internal name of the class or interface C is a member of (see {@link
+ * Type#getInternalName()}). Must be {@literal null} if C is not the member of a class or
+ * interface (e.g. for local or anonymous classes).
+ * @param innerName the (simple) name of C. Must be {@literal null} for anonymous inner classes.
+ * @param access the access flags of C originally declared in the source code from which this
+ * class was compiled.
*/
public void visitInnerClass(
final String name, final String outerName, final String innerName, final int access) {
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassWriter.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassWriter.java
index de2c44194a2..7bb6ab075fd 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassWriter.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ClassWriter.java
@@ -842,7 +842,7 @@ public int newUTF8(final String value) {
* constant pool already contains a similar item. This method is intended for {@link Attribute}
* sub classes, and is normally not needed by class generators or adapters.
*
- * @param value the internal name of the class.
+ * @param value the internal name of the class (see {@link Type#getInternalName()}).
* @return the index of a new or already existing class reference item.
*/
public int newClass(final String value) {
@@ -894,7 +894,8 @@ public int newPackage(final String packageName) {
* Opcodes#H_GETSTATIC}, {@link Opcodes#H_PUTFIELD}, {@link Opcodes#H_PUTSTATIC}, {@link
* Opcodes#H_INVOKEVIRTUAL}, {@link Opcodes#H_INVOKESTATIC}, {@link Opcodes#H_INVOKESPECIAL},
* {@link Opcodes#H_NEWINVOKESPECIAL} or {@link Opcodes#H_INVOKEINTERFACE}.
- * @param owner the internal name of the field or method owner class.
+ * @param owner the internal name of the field or method owner class (see {@link
+ * Type#getInternalName()}).
* @param name the name of the field or method.
* @param descriptor the descriptor of the field or method.
* @return the index of a new or already existing method type reference item.
@@ -916,7 +917,8 @@ public int newHandle(
* Opcodes#H_GETSTATIC}, {@link Opcodes#H_PUTFIELD}, {@link Opcodes#H_PUTSTATIC}, {@link
* Opcodes#H_INVOKEVIRTUAL}, {@link Opcodes#H_INVOKESTATIC}, {@link Opcodes#H_INVOKESPECIAL},
* {@link Opcodes#H_NEWINVOKESPECIAL} or {@link Opcodes#H_INVOKEINTERFACE}.
- * @param owner the internal name of the field or method owner class.
+ * @param owner the internal name of the field or method owner class (see {@link
+ * Type#getInternalName()}).
* @param name the name of the field or method.
* @param descriptor the descriptor of the field or method.
* @param isInterface true if the owner is an interface.
@@ -978,7 +980,7 @@ public int newInvokeDynamic(
* constant pool already contains a similar item. This method is intended for {@link Attribute}
* sub classes, and is normally not needed by class generators or adapters.
*
- * @param owner the internal name of the field's owner class.
+ * @param owner the internal name of the field's owner class (see {@link Type#getInternalName()}).
* @param name the field's name.
* @param descriptor the field's descriptor.
* @return the index of a new or already existing field reference item.
@@ -992,7 +994,8 @@ public int newField(final String owner, final String name, final String descript
* constant pool already contains a similar item. This method is intended for {@link Attribute}
* sub classes, and is normally not needed by class generators or adapters.
*
- * @param owner the internal name of the method's owner class.
+ * @param owner the internal name of the method's owner class (see {@link
+ * Type#getInternalName()}).
* @param name the method's name.
* @param descriptor the method's descriptor.
* @param isInterface {@literal true} if {@code owner} is an interface.
@@ -1028,9 +1031,10 @@ public int newNameType(final String name, final String descriptor) {
* currently being generated by this ClassWriter, which can of course not be loaded since it is
* under construction.
*
- * @param type1 the internal name of a class.
- * @param type2 the internal name of another class.
- * @return the internal name of the common super class of the two given classes.
+ * @param type1 the internal name of a class (see {@link Type#getInternalName()}).
+ * @param type2 the internal name of another class (see {@link Type#getInternalName()}).
+ * @return the internal name of the common super class of the two given classes (see {@link
+ * Type#getInternalName()}).
*/
protected String getCommonSuperClass(final String type1, final String type2) {
ClassLoader classLoader = getClassLoader();
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Constants.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Constants.java
index 629d52f35b5..9e7b98c6584 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Constants.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Constants.java
@@ -26,6 +26,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
// THE POSSIBILITY OF SUCH DAMAGE.
package jersey.repackaged.org.objectweb.asm;
+
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/FieldVisitor.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/FieldVisitor.java
index 64865d6d9a4..a75ad5f30b6 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/FieldVisitor.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/FieldVisitor.java
@@ -80,6 +80,15 @@ protected FieldVisitor(final int api, final FieldVisitor fieldVisitor) {
this.fv = fieldVisitor;
}
+ /**
+ * The field visitor to which this visitor must delegate method calls. May be {@literal null}.
+ *
+ * @return the field visitor to which this visitor must delegate method calls, or {@literal null}.
+ */
+ public FieldVisitor getDelegate() {
+ return fv;
+ }
+
/**
* Visits an annotation of the field.
*
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Handle.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Handle.java
index 69188e0efa2..60aeb0fd041 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Handle.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Handle.java
@@ -65,7 +65,7 @@ public final class Handle {
* {@link Opcodes#H_INVOKESPECIAL}, {@link Opcodes#H_NEWINVOKESPECIAL} or {@link
* Opcodes#H_INVOKEINTERFACE}.
* @param owner the internal name of the class that owns the field or method designated by this
- * handle.
+ * handle (see {@link Type#getInternalName()}).
* @param name the name of the field or method designated by this handle.
* @param descriptor the descriptor of the field or method designated by this handle.
* @deprecated this constructor has been superseded by {@link #Handle(int, String, String, String,
@@ -85,7 +85,7 @@ public Handle(final int tag, final String owner, final String name, final String
* {@link Opcodes#H_INVOKESPECIAL}, {@link Opcodes#H_NEWINVOKESPECIAL} or {@link
* Opcodes#H_INVOKEINTERFACE}.
* @param owner the internal name of the class that owns the field or method designated by this
- * handle.
+ * handle (see {@link Type#getInternalName()}).
* @param name the name of the field or method designated by this handle.
* @param descriptor the descriptor of the field or method designated by this handle.
* @param isInterface whether the owner is an interface or not.
@@ -118,7 +118,8 @@ public int getTag() {
/**
* Returns the internal name of the class that owns the field or method designated by this handle.
*
- * @return the internal name of the class that owns the field or method designated by this handle.
+ * @return the internal name of the class that owns the field or method designated by this handle
+ * (see {@link Type#getInternalName()}).
*/
public String getOwner() {
return owner;
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodTooLargeException.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodTooLargeException.java
index 5ce29f4ea2c..303579bdb13 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodTooLargeException.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodTooLargeException.java
@@ -44,7 +44,7 @@ public final class MethodTooLargeException extends IndexOutOfBoundsException {
/**
* Constructs a new {@link MethodTooLargeException}.
*
- * @param className the internal name of the owner class.
+ * @param className the internal name of the owner class (see {@link Type#getInternalName()}).
* @param methodName the name of the method.
* @param descriptor the descriptor of the method.
* @param codeSize the size of the method's Code attribute, in bytes.
@@ -64,7 +64,7 @@ public MethodTooLargeException(
/**
* Returns the internal name of the owner class.
*
- * @return the internal name of the owner class.
+ * @return the internal name of the owner class (see {@link Type#getInternalName()}).
*/
public String getClassName() {
return className;
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodVisitor.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodVisitor.java
index 805aed50170..269b034d93a 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodVisitor.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/MethodVisitor.java
@@ -96,6 +96,16 @@ protected MethodVisitor(final int api, final MethodVisitor methodVisitor) {
this.mv = methodVisitor;
}
+ /**
+ * The method visitor to which this visitor must delegate method calls. May be {@literal null}.
+ *
+ * @return the method visitor to which this visitor must delegate method calls, or {@literal
+ * null}.
+ */
+ public MethodVisitor getDelegate() {
+ return mv;
+ }
+
// -----------------------------------------------------------------------------------------------
// Parameters, annotations and non standard attributes
// -----------------------------------------------------------------------------------------------
@@ -122,7 +132,7 @@ public void visitParameter(final String name, final int access) {
* @return a visitor to the visit the actual default value of this annotation interface method, or
* {@literal null} if this visitor is not interested in visiting this default value. The
* 'name' parameters passed to the methods of this annotation visitor are ignored. Moreover,
- * exacly one visit method must be called on this annotation visitor, followed by visitEnd.
+ * exactly one visit method must be called on this annotation visitor, followed by visitEnd.
*/
public AnnotationVisitor visitAnnotationDefault() {
if (mv != null) {
@@ -275,15 +285,17 @@ public void visitCode() {
* @param type the type of this stack map frame. Must be {@link Opcodes#F_NEW} for expanded
* frames, or {@link Opcodes#F_FULL}, {@link Opcodes#F_APPEND}, {@link Opcodes#F_CHOP}, {@link
* Opcodes#F_SAME} or {@link Opcodes#F_APPEND}, {@link Opcodes#F_SAME1} for compressed frames.
- * @param numLocal the number of local variables in the visited frame.
+ * @param numLocal the number of local variables in the visited frame. Long and double values
+ * count for one variable.
* @param local the local variable types in this frame. This array must not be modified. Primitive
* types are represented by {@link Opcodes#TOP}, {@link Opcodes#INTEGER}, {@link
* Opcodes#FLOAT}, {@link Opcodes#LONG}, {@link Opcodes#DOUBLE}, {@link Opcodes#NULL} or
* {@link Opcodes#UNINITIALIZED_THIS} (long and double are represented by a single element).
- * Reference types are represented by String objects (representing internal names), and
- * uninitialized types by Label objects (this label designates the NEW instruction that
- * created this uninitialized value).
- * @param numStack the number of operand stack elements in the visited frame.
+ * Reference types are represented by String objects (representing internal names, see {@link
+ * Type#getInternalName()}), and uninitialized types by Label objects (this label designates
+ * the NEW instruction that created this uninitialized value).
+ * @param numStack the number of operand stack elements in the visited frame. Long and double
+ * values count for one stack element.
* @param stack the operand stack types in this frame. This array must not be modified. Its
* content has the same format as the "local" array.
* @throws IllegalStateException if a frame is visited just after another one, without any
@@ -362,7 +374,7 @@ public void visitVarInsn(final int opcode, final int varIndex) {
/**
* Visits a type instruction. A type instruction is an instruction that takes the internal name of
- * a class as parameter.
+ * a class as parameter (see {@link Type#getInternalName()}).
*
* @param opcode the opcode of the type instruction to be visited. This opcode is either NEW,
* ANEWARRAY, CHECKCAST or INSTANCEOF.
@@ -645,8 +657,9 @@ public AnnotationVisitor visitInsnAnnotation(
* @param start the beginning of the exception handler's scope (inclusive).
* @param end the end of the exception handler's scope (exclusive).
* @param handler the beginning of the exception handler's code.
- * @param type the internal name of the type of exceptions handled by the handler, or {@literal
- * null} to catch any exceptions (for "finally" blocks).
+ * @param type the internal name of the type of exceptions handled by the handler (see {@link
+ * Type#getInternalName()}), or {@literal null} to catch any exceptions (for "finally"
+ * blocks).
* @throws IllegalArgumentException if one of the labels has already been visited by this visitor
* (by the {@link #visitLabel} method).
*/
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ModuleVisitor.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ModuleVisitor.java
index 96675909fa8..aba02832fe2 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ModuleVisitor.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/ModuleVisitor.java
@@ -82,10 +82,21 @@ protected ModuleVisitor(final int api, final ModuleVisitor moduleVisitor) {
this.mv = moduleVisitor;
}
+ /**
+ * The module visitor to which this visitor must delegate method calls. May be {@literal null}.
+ *
+ * @return the module visitor to which this visitor must delegate method calls, or {@literal
+ * null}.
+ */
+ public ModuleVisitor getDelegate() {
+ return mv;
+ }
+
/**
* Visit the main class of the current module.
*
- * @param mainClass the internal name of the main class of the current module.
+ * @param mainClass the internal name of the main class of the current module (see {@link
+ * Type#getInternalName()}).
*/
public void visitMainClass(final String mainClass) {
if (mv != null) {
@@ -96,7 +107,7 @@ public void visitMainClass(final String mainClass) {
/**
* Visit a package of the current module.
*
- * @param packaze the internal name of a package.
+ * @param packaze the internal name of a package (see {@link Type#getInternalName()}).
*/
public void visitPackage(final String packaze) {
if (mv != null) {
@@ -121,7 +132,7 @@ public void visitRequire(final String module, final int access, final String ver
/**
* Visit an exported package of the current module.
*
- * @param packaze the internal name of the exported package.
+ * @param packaze the internal name of the exported package (see {@link Type#getInternalName()}).
* @param access the access flag of the exported package, valid values are among {@code
* ACC_SYNTHETIC} and {@code ACC_MANDATED}.
* @param modules the fully qualified names (using dots) of the modules that can access the public
@@ -136,7 +147,7 @@ public void visitExport(final String packaze, final int access, final String...
/**
* Visit an open package of the current module.
*
- * @param packaze the internal name of the opened package.
+ * @param packaze the internal name of the opened package (see {@link Type#getInternalName()}).
* @param access the access flag of the opened package, valid values are among {@code
* ACC_SYNTHETIC} and {@code ACC_MANDATED}.
* @param modules the fully qualified names (using dots) of the modules that can use deep
@@ -152,7 +163,7 @@ public void visitOpen(final String packaze, final int access, final String... mo
* Visit a service used by the current module. The name must be the internal name of an interface
* or a class.
*
- * @param service the internal name of the service.
+ * @param service the internal name of the service (see {@link Type#getInternalName()}).
*/
public void visitUse(final String service) {
if (mv != null) {
@@ -163,9 +174,9 @@ public void visitUse(final String service) {
/**
* Visit an implementation of a service.
*
- * @param service the internal name of the service.
- * @param providers the internal names of the implementations of the service (there is at least
- * one provider).
+ * @param service the internal name of the service (see {@link Type#getInternalName()}).
+ * @param providers the internal names (see {@link Type#getInternalName()}) of the implementations
+ * of the service (there is at least one provider).
*/
public void visitProvide(final String service, final String... providers) {
if (mv != null) {
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Opcodes.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Opcodes.java
index 0a591eccd89..63963b05c3b 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Opcodes.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Opcodes.java
@@ -285,6 +285,7 @@ public interface Opcodes {
int V17 = 0 << 16 | 61;
int V18 = 0 << 16 | 62;
int V19 = 0 << 16 | 63;
+ int V20 = 0 << 16 | 64;
/**
* Version flag indicating that the class is using 'preview' features.
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/RecordComponentVisitor.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/RecordComponentVisitor.java
index 65cf92c9c86..e753339dc6b 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/RecordComponentVisitor.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/RecordComponentVisitor.java
@@ -45,7 +45,7 @@ public abstract class RecordComponentVisitor {
/**
* The record visitor to which this visitor must delegate method calls. May be {@literal null}.
*/
- /*package-private*/ RecordComponentVisitor delegate;
+ protected RecordComponentVisitor delegate;
/**
* Constructs a new {@link RecordComponentVisitor}.
@@ -85,7 +85,8 @@ protected RecordComponentVisitor(
/**
* The record visitor to which this visitor must delegate method calls. May be {@literal null}.
*
- * @return the record visitor to which this visitor must delegate method calls or {@literal null}.
+ * @return the record visitor to which this visitor must delegate method calls, or {@literal
+ * null}.
*/
public RecordComponentVisitor getDelegate() {
return delegate;
diff --git a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Type.java b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Type.java
index ab8687e4e85..6808aba692e 100644
--- a/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Type.java
+++ b/core-server/src/main/java/jersey/repackaged/org/objectweb/asm/Type.java
@@ -245,7 +245,7 @@ public Type getElementType() {
/**
* Returns the {@link Type} corresponding to the given internal name.
*
- * @param internalName an internal name.
+ * @param internalName an internal name (see {@link Type#getInternalName()}).
* @return the {@link Type} corresponding to the given internal name.
*/
public static Type getObjectType(final String internalName) {
diff --git a/core-server/src/main/java/org/glassfish/jersey/server/internal/scanning/AnnotationAcceptingListener.java b/core-server/src/main/java/org/glassfish/jersey/server/internal/scanning/AnnotationAcceptingListener.java
index df41359f48d..420db8f3c71 100644
--- a/core-server/src/main/java/org/glassfish/jersey/server/internal/scanning/AnnotationAcceptingListener.java
+++ b/core-server/src/main/java/org/glassfish/jersey/server/internal/scanning/AnnotationAcceptingListener.java
@@ -276,6 +276,12 @@ public AnnotationVisitor visitTypeAnnotation(
return null;
}
+ @Override
+ public ClassVisitor getDelegate() {
+ //do nothing
+ return null;
+ }
+
private Class getClassForName(final String className) {
try {
final OsgiRegistry osgiRegistry = ReflectionHelper.getOsgiRegistryInstance();
@@ -303,7 +309,7 @@ private Class getClassForName(final String className) {
private static class ClassReaderWrapper {
private static final Logger LOGGER = Logger.getLogger(ClassReader.class.getName());
- private static final int WARN_VERSION = Opcodes.V19;
+ private static final int WARN_VERSION = Opcodes.V20;
private static final int INPUT_STREAM_DATA_CHUNK_SIZE = 4096;
private final byte[] b;
diff --git a/core-server/src/main/resources/META-INF/NOTICE.markdown b/core-server/src/main/resources/META-INF/NOTICE.markdown
index 9399ca71520..f06adebb158 100644
--- a/core-server/src/main/resources/META-INF/NOTICE.markdown
+++ b/core-server/src/main/resources/META-INF/NOTICE.markdown
@@ -36,7 +36,7 @@ org.glassfish.jersey.server.internal.monitoring.core
* Copyright (c) 2015-2018 Oracle and/or its affiliates. All rights reserved.
* Copyright 2010-2013 Coda Hale and Yammer, Inc.
-org.objectweb.asm Version 9.3
+org.objectweb.asm Version 9.4
* License: Modified BSD (https://asm.ow2.io/license.html)
* Copyright: (c) 2000-2011 INRIA, France Telecom. All rights reserved.
diff --git a/pom.xml b/pom.xml
index 1fe9764aaeb..5d47d1b85ef 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2148,7 +2148,7 @@
${project.version}
- 9.3
+ 9.4
2.3.6
2.11.0
3.3.2
From 733c52b40b8c057e38593d5761636b14d7ac96cb Mon Sep 17 00:00:00 2001
From: jansupol
Date: Wed, 21 Sep 2022 17:59:56 +0200
Subject: [PATCH 110/305] warn less (just once for all clients) about missing
providers
Signed-off-by: jansupol
---
.../message/internal/MessagingBinders.java | 44 ++++++++++++-------
1 file changed, 28 insertions(+), 16 deletions(-)
diff --git a/core-common/src/main/java/org/glassfish/jersey/message/internal/MessagingBinders.java b/core-common/src/main/java/org/glassfish/jersey/message/internal/MessagingBinders.java
index 3df2ae9d7c2..95bb518aad9 100644
--- a/core-common/src/main/java/org/glassfish/jersey/message/internal/MessagingBinders.java
+++ b/core-common/src/main/java/org/glassfish/jersey/message/internal/MessagingBinders.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -17,11 +17,13 @@
package org.glassfish.jersey.message.internal;
import java.security.AccessController;
+import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
+import java.util.concurrent.atomic.AtomicBoolean;
import java.util.logging.Logger;
import javax.ws.rs.RuntimeType;
@@ -48,6 +50,14 @@
public final class MessagingBinders {
private static final Logger LOGGER = Logger.getLogger(MessagingBinders.class.getName());
+ private static final Map warningMap;
+
+ static {
+ warningMap = new HashMap<>();
+ for (EnabledProvidersBinder.Provider provider : EnabledProvidersBinder.Provider.values()) {
+ warningMap.put(provider, new AtomicBoolean(false));
+ }
+ }
/**
* Prevents instantiation.
@@ -223,21 +233,23 @@ private void bindToBinder(AbstractBinder binder) {
}
providerBinder.bind(binder, provider);
} else {
- switch (provider) {
- case DOMSOURCE:
- case SAXSOURCE:
- case STREAMSOURCE:
- LOGGER.warning(LocalizationMessages.DEPENDENT_CLASS_OF_DEFAULT_PROVIDER_NOT_FOUND(provider.className,
- "MessageBodyReader<" + provider.className + ">")
- );
- break;
- case DATASOURCE:
- case RENDEREDIMAGE:
- case SOURCE:
- LOGGER.warning(LocalizationMessages.DEPENDENT_CLASS_OF_DEFAULT_PROVIDER_NOT_FOUND(provider.className,
- "MessageBodyWriter<" + provider.className + ">")
- );
- break;
+ if (warningMap.get(provider).compareAndSet(false, true)) {
+ switch (provider) {
+ case DOMSOURCE:
+ case SAXSOURCE:
+ case STREAMSOURCE:
+ LOGGER.warning(LocalizationMessages.DEPENDENT_CLASS_OF_DEFAULT_PROVIDER_NOT_FOUND(
+ provider.className, "MessageBodyReader<" + provider.className + ">")
+ );
+ break;
+ case DATASOURCE:
+ case RENDEREDIMAGE:
+ case SOURCE:
+ LOGGER.warning(LocalizationMessages.DEPENDENT_CLASS_OF_DEFAULT_PROVIDER_NOT_FOUND(
+ provider.className, "MessageBodyWriter<" + provider.className + ">")
+ );
+ break;
+ }
}
}
}
From ecfb15eba722210dd7e05127122ad6df9141e9ef Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Mon, 10 Oct 2022 09:27:18 +0200
Subject: [PATCH 111/305] CI/CD job timeout
Signed-off-by: Maxim Nesen
---
etc/jenkins/Jenkinsfile_ci_build | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/etc/jenkins/Jenkinsfile_ci_build b/etc/jenkins/Jenkinsfile_ci_build
index a42997b475a..5cf0b4681c3 100644
--- a/etc/jenkins/Jenkinsfile_ci_build
+++ b/etc/jenkins/Jenkinsfile_ci_build
@@ -1,6 +1,10 @@
pipeline {
agent none
+ options {
+ timeout(time: 30, activity: true, unit: 'MINUTES')
+ }
+
stages {
stage('Jersey build') {
parallel {
From 8699060985fb27f3dc0bcbc8e7f0fa166904319f Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Thu, 15 Sep 2022 14:13:12 +0200
Subject: [PATCH 112/305] Fixes for: API docs, user-guide, examples bundle
Signed-off-by: Maxim Nesen
---
bundles/apidocs/pom.xml | 70 ++++++-------------
bundles/examples/pom.xml | 4 +-
connectors/helidon-connector/pom.xml | 2 +-
docs/src/main/docbook/appendix-properties.xml | 6 --
pom.xml | 6 +-
5 files changed, 29 insertions(+), 59 deletions(-)
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index bd175fb442b..7b71c1b112c 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -111,6 +111,10 @@
javax.servlet
3.1
+
+ jakarta.persistence
+ jakarta.persistence-api
+
org.glassfish.jersey.containers
jersey-container-simple-http
@@ -147,6 +151,22 @@
jersey-media-json-jackson
${project.version}
+
+ com.fasterxml.jackson.module
+ jackson-module-jaxb-annotations
+
+
+ jakarta.xml.bind
+ jakarta.xml.bind-api
+
+
+ jakarta.activation
+ jakarta.activation-api
+
+
+ true
+ provided
+
org.glassfish.jersey.media
jersey-media-json-jettison
@@ -228,54 +248,6 @@
${project.version}
-
-
- JettyExclude
-
- 1.8
-
-
- 9.4.28.v20200408
-
-
-
- org.eclipse.jetty
- jetty-client
- ${jetty.version}
-
-
- org.eclipse.jetty
- jetty-util
- ${jetty.version}
-
-
-
-
- jetty2x
-
- false
-
-
-
- org.glassfish.jersey.ext.microprofile
- jersey-mp-rest-client
- ${project.version}
-
-
-
- org.glassfish.jersey.media
- jersey-media-json-jackson1
- ${project.version}
-
-
-
- org.glassfish.jersey.connectors
- jersey-helidon-connector
- ${project.version}
-
-
-
-
@@ -292,6 +264,8 @@
META-INF/versions/12/org/glassfish/jersey/wadl/doclet/*.java
org/glassfish/jersey/helidon/connector/*.java
+ META-INF/versions/17/org/glassfish/jersey/helidon/connector/*.java
+ org/glassfish/jersey/wadl/doclet/*.java
org.glassfish.jersey.*:*
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index a6b8be3ce89..1a0de6d3bc4 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -735,5 +735,7 @@
-
+
+ true
+
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index c50199454c8..3b34c1dcb83 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -42,7 +42,7 @@
io.helidon.jersey
helidon-jersey-connector
- 3.0.0-M1
+ 3.0.1
provided
diff --git a/docs/src/main/docbook/appendix-properties.xml b/docs/src/main/docbook/appendix-properties.xml
index 10d860d2899..c979b320545 100644
--- a/docs/src/main/docbook/appendix-properties.xml
+++ b/docs/src/main/docbook/appendix-properties.xml
@@ -1918,12 +1918,6 @@
-
- Java Net HTTP client configuration properties
-
- List of client configuration properties that can be found in &jersey.jnh.JavaNetHttpClientProperties; class.
-
-
Netty HTTP client configuration properties
diff --git a/pom.xml b/pom.xml
index d1acba3fc81..43462c74a8f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -454,12 +454,12 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.3.2
+ 3.4.1
Jersey ${jersey.version} API Documentation
Jersey ${jersey.version} API
- Oracle
and/or its affiliates.
All Rights Reserved. Use is subject to license terms.]]>
@@ -1431,7 +1431,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.2.0
+ 3.4.1
false
From 2e4a1d8d16f96cc2130e5f07f950944106f524de Mon Sep 17 00:00:00 2001
From: jansupol
Date: Wed, 26 Oct 2022 10:54:03 +0200
Subject: [PATCH 113/305] Rely on HK2 regarding InjectionManager#isShutDown()
Signed-off-by: jansupol
---
.../jersey/inject/hk2/AbstractHk2InjectionManager.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/inject/hk2/src/main/java/org/glassfish/jersey/inject/hk2/AbstractHk2InjectionManager.java b/inject/hk2/src/main/java/org/glassfish/jersey/inject/hk2/AbstractHk2InjectionManager.java
index 3a46d60f4f9..94d5f8c2e59 100644
--- a/inject/hk2/src/main/java/org/glassfish/jersey/inject/hk2/AbstractHk2InjectionManager.java
+++ b/inject/hk2/src/main/java/org/glassfish/jersey/inject/hk2/AbstractHk2InjectionManager.java
@@ -51,7 +51,6 @@ abstract class AbstractHk2InjectionManager implements InjectionManager {
private static final ServiceLocatorFactory factory = ServiceLocatorFactory.getInstance();
private ServiceLocator locator;
- private Boolean isShutdown = Boolean.FALSE; // TODO replace by getServiceLocator().isShutDown() in 3.x
/**
* Private constructor.
@@ -183,12 +182,11 @@ public void shutdown() {
} else {
getServiceLocator().shutdown();
}
- isShutdown = Boolean.TRUE;
}
@Override
public boolean isShutdown() {
- return isShutdown;
+ return getServiceLocator().isShutdown();
}
@Override
From cd08a8d2f6f5ba90991a0c213e206d50cb3be632 Mon Sep 17 00:00:00 2001
From: jansupol
Date: Wed, 26 Oct 2022 11:09:05 +0200
Subject: [PATCH 114/305] Post merge updates
Signed-off-by: jansupol
---
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/servlet-portability/pom.xml | 0
ext/spring4/pom.xml | 0
ext/spring5/pom.xml | 0
tests/integration/jetty-response-close/pom.xml | 0
.../microprofile/rest-client14-compatibility/pom.xml | 0
tests/integration/portability-jersey-1/pom.xml | 0
tests/integration/portability-jersey-2/pom.xml | 0
tests/integration/spring4/pom.xml | 0
9 files changed, 1 insertion(+), 1 deletion(-)
delete mode 100644 ext/servlet-portability/pom.xml
delete mode 100644 ext/spring4/pom.xml
delete mode 100644 ext/spring5/pom.xml
delete mode 100644 tests/integration/jetty-response-close/pom.xml
delete mode 100644 tests/integration/microprofile/rest-client14-compatibility/pom.xml
delete mode 100644 tests/integration/portability-jersey-1/pom.xml
delete mode 100644 tests/integration/portability-jersey-2/pom.xml
delete mode 100644 tests/integration/spring4/pom.xml
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index 2a7bcdc6b9c..35f59e16d63 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -73,7 +73,7 @@
${cdi.osgi.version},
- jakarta.servlet.*;version="[2.4,5.0)";resolution:=optional,
+ jakarta.servlet.*;version="[5.0, 7.0)";resolution:=optional,
*
diff --git a/ext/servlet-portability/pom.xml b/ext/servlet-portability/pom.xml
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/ext/spring4/pom.xml b/ext/spring4/pom.xml
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/ext/spring5/pom.xml b/ext/spring5/pom.xml
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/tests/integration/jetty-response-close/pom.xml b/tests/integration/jetty-response-close/pom.xml
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/tests/integration/microprofile/rest-client14-compatibility/pom.xml b/tests/integration/microprofile/rest-client14-compatibility/pom.xml
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/tests/integration/portability-jersey-1/pom.xml b/tests/integration/portability-jersey-1/pom.xml
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/tests/integration/portability-jersey-2/pom.xml b/tests/integration/portability-jersey-2/pom.xml
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/tests/integration/spring4/pom.xml b/tests/integration/spring4/pom.xml
deleted file mode 100644
index e69de29bb2d..00000000000
From 4c552051ea1b64813ae4fb553aea91e29d25d543 Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Mon, 31 Oct 2022 15:16:01 +0100
Subject: [PATCH 115/305] JDK 1.8 build fix
Signed-off-by: Maxim Nesen
---
.../internal/SslFilterTLS13Test.java | 27 ++++++++++++++++---
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/SslFilterTLS13Test.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/SslFilterTLS13Test.java
index 757b8342130..aff60335ddc 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/SslFilterTLS13Test.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/SslFilterTLS13Test.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,11 +16,30 @@
package org.glassfish.jersey.jdk.connector.internal;
+import java.util.Arrays;
+
+import javax.net.ssl.SSLContext;
+
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+
public class SslFilterTLS13Test extends SslFilterTest {
- public SslFilterTLS13Test() {
- System.setProperty("jdk.tls.server.protocols", "TLSv1.3");
- System.setProperty("jdk.tls.client.protocols", "TLSv1.3");
+ @BeforeClass
+ public static void setup() throws Exception {
+ final SSLContext context = SSLContext.getInstance("TLS");
+ context.init(null, null, null);
+ final String[] supportedProtocols = context.getDefaultSSLParameters().getProtocols();
+ if (Arrays.toString(supportedProtocols).contains("TLSv1.3")) {
+ System.setProperty("jdk.tls.server.protocols", "TLSv1.3");
+ System.setProperty("jdk.tls.client.protocols", "TLSv1.3");
+ }
+ }
+
+ @AfterClass
+ public static void tearDown() {
+ System.clearProperty("jdk.tls.server.protocols");
+ System.clearProperty("jdk.tls.client.protocols");
}
}
From f8e6f5e50f47949a7f73170366b8757a4f3d1c42 Mon Sep 17 00:00:00 2001
From: Maxim Nesen <24524084+senivam@users.noreply.github.com>
Date: Wed, 2 Nov 2022 07:49:40 +0100
Subject: [PATCH 116/305] verify license via GitHub actions (#5129)
Signed-off-by: Maxim Nesen
---
.github/workflows/maven.yml | 45 ++++++++++++++++++++++
containers/glassfish/jersey-gf-ejb/pom.xml | 18 +++++++++
2 files changed, 63 insertions(+)
create mode 100644 .github/workflows/maven.yml
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 00000000000..ffc049293c4
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,45 @@
+#
+# Copyright (c) 2022 Contributors to the Eclipse Foundation
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License v. 2.0 which is available at
+# http://www.eclipse.org/legal/epl-2.0,
+# or the Eclipse Distribution License v. 1.0 which is available at
+# http://www.eclipse.org/org/documents/edl-v10.php.
+#
+# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
+#
+
+name: Jersey
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ name: Build on JDK ${{ matrix.java_version }} with ${{matrix.test_profiles}} profile
+ runs-on: ubuntu-latest
+ env:
+ script-directory: $GITHUB_WORKSPACE/etc/jenkins
+
+ strategy:
+ matrix:
+ java_version: [ 11 ]
+ verify_profiles: [ '-Plicense_check' ]
+ continue-on-error: false
+
+ steps:
+ - name: Checkout for build
+ uses: actions/checkout@v2.3.4
+ with:
+ fetch-depth: 0
+ - name: Set up JDK
+ uses: actions/setup-java@v2
+ with:
+ distribution: 'zulu'
+ java-version: ${{ matrix.java_version }}
+ - name: configure JDK
+ run: |
+ secLoc=`find $JAVA_HOME -name java.security`
+ sed -i 's/jdk.tls.disabledAlgorithms/# jdk.tls.disabledAlgorithms/g' -i $secLoc
+ - name: Build
+ run: mvn -V -U -B ${{matrix.verify_profiles}} org.eclipse.dash:license-tool-plugin:license-check -DexcludeArtifactIds=bsh,jmh-core,jmh-generator-annprocess,swing-layout
\ No newline at end of file
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index 1a0cff6f896..8d3da14db75 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -66,16 +66,34 @@
org.glassfish.main.ejb
ejb-container
provided
+
+
+ org.glassfish.hk2
+ hk2-core
+
+
org.glassfish.main.common
container-common
provided
+
+
+ org.glassfish.hk2
+ hk2-core
+
+
org.glassfish.main.hk2
hk2-config
true
+
+
+ org.glassfish.hk2
+ hk2-core
+
+
From 93a5c3927bcf45104078c481fd62a93652a84f0e Mon Sep 17 00:00:00 2001
From: Maxim Nesen <24524084+senivam@users.noreply.github.com>
Date: Wed, 2 Nov 2022 13:52:27 +0100
Subject: [PATCH 117/305] EE10 versions update (#5120)
* EE10 versions update
Signed-off-by: Maxim Nesen
---
core-client/pom.xml | 1 -
examples/helloworld-programmatic/pom.xml | 1 -
examples/helloworld-pure-jax-rs/pom.xml | 1 -
examples/helloworld/pom.xml | 1 -
.../functional-test/pom.xml | 1 -
.../osgi-http-service/functional-test/pom.xml | 1 -
pom.xml | 21 ++++++++-----------
7 files changed, 9 insertions(+), 18 deletions(-)
diff --git a/core-client/pom.xml b/core-client/pom.xml
index 2b6a03a0312..a50b9ab8508 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -122,7 +122,6 @@
com.sun.activation
jakarta.activation
- ${jakarta.activation.version}
test
diff --git a/examples/helloworld-programmatic/pom.xml b/examples/helloworld-programmatic/pom.xml
index 96ffc6fbbf4..82bc4fd609a 100644
--- a/examples/helloworld-programmatic/pom.xml
+++ b/examples/helloworld-programmatic/pom.xml
@@ -95,7 +95,6 @@
jakarta.activation
jakarta.activation-api
- ${jakarta.activation.version}
jakarta.xml.bind
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index 7e4bcf87936..6a1aa08382e 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -98,7 +98,6 @@
jakarta.activation
jakarta.activation-api
- ${jakarta.activation.version}
jakarta.xml.bind
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index 1dce28b37b2..aaf086e8615 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -107,7 +107,6 @@
jakarta.activation
jakarta.activation-api
- ${jakarta.activation.version}
jakarta.xml.bind
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index 76e6a3f42cb..4b0a83cc1f1 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -155,7 +155,6 @@
com.sun.activation
jakarta.activation
- ${jakarta.activation.version}
diff --git a/examples/osgi-http-service/functional-test/pom.xml b/examples/osgi-http-service/functional-test/pom.xml
index 29f843bceeb..9f6073b44c5 100644
--- a/examples/osgi-http-service/functional-test/pom.xml
+++ b/examples/osgi-http-service/functional-test/pom.xml
@@ -239,7 +239,6 @@
com.sun.activation
jakarta.activation
- ${jakarta.activation.version}
diff --git a/pom.xml b/pom.xml
index 67f99ff7ce0..a4741d30761 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2168,7 +2168,7 @@
3.1.0
- 2.0.0-alpha6
+ 2.0.0
1.15
1.0.3
0.27.0
@@ -2181,8 +2181,6 @@
3.0.0-M1
3.0.0-RC1
-
- 2.4.4
31.1-jre
2.2
@@ -2226,7 +2224,7 @@
5.0.1.Final
3.1.7.SP1
- 8.0.0.CR3
+ 8.0.0.Final
2.12.2
@@ -2248,16 +2246,16 @@
3.1.0
3.0.0
2.0.1
- 4.0.0
+ 4.1.1
2.1.0
2.0.1
- 5.0.0
+ 5.0.1
5.0.0-M1
jakarta.annotation.*;version="[2.0,3)"
2.1.1
2.0.1
2.1.0
- 2.1.0
+ 2.1.1
3.1.0
3.0.2
4.0.0
@@ -2265,17 +2263,16 @@
3.1
3.1.0
org.eclipse.jetty.*;version="[11,15)"
- 11.0.9
- 11.0.9
- 6.1.14
+ 11.0.12
+ 11.0.12
3.0.0
1.1.1
1.1.1
- 4.0.0-RC1
+ 4.0.0
3.0.2
1.3.2
- 1.9.13
+ 1.9.15
From a2f40030226694f8f21e23af0ad1c1239b972180 Mon Sep 17 00:00:00 2001
From: jersey-bot
Date: Fri, 4 Nov 2022 07:22:52 +0000
Subject: [PATCH 118/305] 3.1.0
---
archetypes/jersey-example-java8-webapp/pom.xml | 2 +-
archetypes/jersey-heroku-webapp/pom.xml | 2 +-
archetypes/jersey-quickstart-grizzly2/pom.xml | 2 +-
archetypes/jersey-quickstart-webapp/pom.xml | 2 +-
archetypes/pom.xml | 2 +-
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 2 +-
bundles/jaxrs-ri/pom.xml | 2 +-
bundles/pom.xml | 2 +-
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 2 +-
connectors/helidon-connector/pom.xml | 2 +-
connectors/jdk-connector/pom.xml | 2 +-
connectors/jetty-connector/pom.xml | 2 +-
connectors/jnh-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 2 +-
containers/glassfish/pom.xml | 2 +-
containers/grizzly2-http/pom.xml | 2 +-
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-http/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
containers/netty-http/pom.xml | 2 +-
containers/pom.xml | 2 +-
containers/simple-http/pom.xml | 2 +-
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 2 +-
examples/assemblies/pom.xml | 2 +-
examples/bookmark-em/pom.xml | 2 +-
examples/bookmark/pom.xml | 2 +-
examples/bookstore-webapp/pom.xml | 2 +-
examples/cdi-webapp/pom.xml | 2 +-
examples/clipboard-programmatic/pom.xml | 2 +-
examples/clipboard/pom.xml | 2 +-
examples/declarative-linking/pom.xml | 2 +-
examples/entity-filtering-security/pom.xml | 2 +-
examples/entity-filtering-selectable/pom.xml | 2 +-
examples/entity-filtering/pom.xml | 2 +-
examples/exception-mapping/pom.xml | 2 +-
examples/extended-wadl-webapp/pom.xml | 2 +-
examples/freemarker-webapp/pom.xml | 2 +-
examples/groovy/pom.xml | 2 +-
examples/helloworld-benchmark/pom.xml | 2 +-
examples/helloworld-cdi2-se/pom.xml | 2 +-
examples/helloworld-netty/pom.xml | 2 +-
examples/helloworld-programmatic/pom.xml | 2 +-
examples/helloworld-pure-jax-rs/pom.xml | 2 +-
examples/helloworld-spring-annotations/pom.xml | 2 +-
examples/helloworld-spring-webapp/pom.xml | 2 +-
examples/helloworld-webapp/pom.xml | 2 +-
examples/helloworld-weld/pom.xml | 2 +-
examples/helloworld/pom.xml | 2 +-
examples/http-patch/pom.xml | 2 +-
examples/http-trace/pom.xml | 2 +-
examples/https-clientserver-grizzly/pom.xml | 2 +-
examples/https-server-glassfish/pom.xml | 2 +-
examples/java8-webapp/pom.xml | 2 +-
examples/jaxb/pom.xml | 2 +-
examples/jaxrs-types-injection/pom.xml | 2 +-
examples/jersey-ejb/pom.xml | 2 +-
examples/json-binding-webapp/pom.xml | 2 +-
examples/json-jackson/pom.xml | 2 +-
examples/json-jettison/pom.xml | 2 +-
examples/json-moxy/pom.xml | 2 +-
examples/json-processing-webapp/pom.xml | 2 +-
examples/json-with-padding/pom.xml | 2 +-
examples/managed-beans-webapp/pom.xml | 2 +-
examples/managed-client-simple-webapp/pom.xml | 2 +-
examples/managed-client-webapp/pom.xml | 2 +-
examples/managed-client/pom.xml | 2 +-
examples/multipart-webapp/pom.xml | 2 +-
examples/oauth-client-twitter/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 2 +-
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/functional-test/pom.xml | 2 +-
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/pom.xml | 2 +-
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 2 +-
examples/pom.xml | 2 +-
examples/reload/pom.xml | 2 +-
examples/rx-client-webapp/pom.xml | 2 +-
examples/server-async-managed/pom.xml | 2 +-
examples/server-async-standalone/client/pom.xml | 2 +-
examples/server-async-standalone/pom.xml | 2 +-
examples/server-async-standalone/webapp/pom.xml | 2 +-
examples/server-async/pom.xml | 2 +-
examples/server-sent-events-jaxrs/pom.xml | 2 +-
examples/server-sent-events-jersey/pom.xml | 2 +-
examples/servlet3-webapp/pom.xml | 2 +-
examples/simple-console/pom.xml | 2 +-
examples/sse-item-store-jaxrs-webapp/pom.xml | 2 +-
examples/sse-item-store-jersey-webapp/pom.xml | 2 +-
examples/sse-twitter-aggregator/pom.xml | 2 +-
examples/system-properties-example/pom.xml | 2 +-
examples/webapp-example-parent/pom.xml | 2 +-
examples/xml-moxy/pom.xml | 2 +-
ext/bean-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-transaction/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi1x/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 2 +-
ext/cdi/pom.xml | 2 +-
ext/entity-filtering/pom.xml | 2 +-
ext/metainf-services/pom.xml | 2 +-
ext/microprofile/mp-config/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/microprofile/pom.xml | 2 +-
ext/mvc-bean-validation/pom.xml | 2 +-
ext/mvc-freemarker/pom.xml | 2 +-
ext/mvc-jsp/pom.xml | 2 +-
ext/mvc-mustache/pom.xml | 2 +-
ext/mvc/pom.xml | 2 +-
ext/pom.xml | 2 +-
ext/proxy-client/pom.xml | 2 +-
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 2 +-
ext/rx/rx-client-rxjava2/pom.xml | 2 +-
ext/spring6/pom.xml | 2 +-
ext/wadl-doclet/pom.xml | 2 +-
incubator/cdi-inject-weld/pom.xml | 2 +-
incubator/declarative-linking/pom.xml | 2 +-
incubator/gae-integration/pom.xml | 2 +-
incubator/html-json/pom.xml | 2 +-
incubator/kryo/pom.xml | 2 +-
incubator/open-tracing/pom.xml | 2 +-
incubator/pom.xml | 2 +-
inject/cdi2-se/pom.xml | 2 +-
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 2 +-
media/jaxb/pom.xml | 2 +-
media/json-binding/pom.xml | 2 +-
media/json-gson/pom.xml | 2 +-
media/json-jackson/pom.xml | 2 +-
media/json-jettison/pom.xml | 2 +-
media/json-processing/pom.xml | 2 +-
media/moxy/pom.xml | 2 +-
media/multipart/pom.xml | 2 +-
media/pom.xml | 2 +-
media/sse/pom.xml | 2 +-
pom.xml | 2 +-
security/oauth1-client/pom.xml | 2 +-
security/oauth1-server/pom.xml | 2 +-
security/oauth1-signature/pom.xml | 2 +-
security/oauth2-client/pom.xml | 2 +-
security/pom.xml | 2 +-
test-framework/core/pom.xml | 2 +-
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 2 +-
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 2 +-
test-framework/providers/bundle/pom.xml | 2 +-
test-framework/providers/external/pom.xml | 2 +-
test-framework/providers/grizzly2/pom.xml | 2 +-
test-framework/providers/inmemory/pom.xml | 2 +-
test-framework/providers/jdk-http/pom.xml | 2 +-
test-framework/providers/jetty/pom.xml | 2 +-
test-framework/providers/netty/pom.xml | 2 +-
test-framework/providers/pom.xml | 2 +-
test-framework/providers/simple/pom.xml | 2 +-
test-framework/util/pom.xml | 2 +-
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 2 +-
tests/e2e-inject/pom.xml | 2 +-
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 2 +-
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 2 +-
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 2 +-
.../integration/cdi-integration/cdi-client-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-client/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 2 +-
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-log-check/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-manually-bound/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multipart-webapp/pom.xml | 2 +-
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-singleton/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 2 +-
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 2 +-
.../pom.xml | 2 +-
.../cdi-integration/cdi-with-jersey-injection-webapp/pom.xml | 2 +-
.../cdi-integration/context-inject-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/gf-cdi-inject/pom.xml | 2 +-
tests/integration/cdi-integration/pom.xml | 2 +-
tests/integration/client-connector-provider/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule/pom.xml | 2 +-
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 2 +-
tests/integration/j-376/pom.xml | 2 +-
tests/integration/j-441/ear/pom.xml | 2 +-
tests/integration/j-441/pom.xml | 2 +-
tests/integration/j-441/war1/pom.xml | 2 +-
tests/integration/j-441/war2/pom.xml | 2 +-
tests/integration/j-59/ear/pom.xml | 2 +-
tests/integration/j-59/lib/pom.xml | 2 +-
tests/integration/j-59/pom.xml | 2 +-
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 2 +-
tests/integration/jersey-1107/pom.xml | 2 +-
tests/integration/jersey-1223/pom.xml | 2 +-
tests/integration/jersey-1604/pom.xml | 2 +-
tests/integration/jersey-1667/pom.xml | 2 +-
tests/integration/jersey-1883/pom.xml | 2 +-
tests/integration/jersey-1928/pom.xml | 2 +-
tests/integration/jersey-1960/pom.xml | 2 +-
tests/integration/jersey-1964/pom.xml | 2 +-
tests/integration/jersey-2031/pom.xml | 2 +-
tests/integration/jersey-2136/pom.xml | 2 +-
tests/integration/jersey-2137/pom.xml | 2 +-
tests/integration/jersey-2154/pom.xml | 2 +-
tests/integration/jersey-2160/pom.xml | 2 +-
tests/integration/jersey-2164/pom.xml | 2 +-
tests/integration/jersey-2167/pom.xml | 2 +-
tests/integration/jersey-2176/pom.xml | 2 +-
tests/integration/jersey-2184/pom.xml | 2 +-
tests/integration/jersey-2255/pom.xml | 2 +-
tests/integration/jersey-2322/pom.xml | 2 +-
tests/integration/jersey-2335/pom.xml | 2 +-
tests/integration/jersey-2421/pom.xml | 2 +-
tests/integration/jersey-2551/pom.xml | 2 +-
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 2 +-
tests/integration/jersey-2654/pom.xml | 2 +-
tests/integration/jersey-2673/pom.xml | 2 +-
tests/integration/jersey-2689/pom.xml | 2 +-
tests/integration/jersey-2704/pom.xml | 2 +-
tests/integration/jersey-2776/pom.xml | 2 +-
tests/integration/jersey-2794/pom.xml | 2 +-
tests/integration/jersey-2846/pom.xml | 2 +-
tests/integration/jersey-2878/pom.xml | 2 +-
tests/integration/jersey-2892/pom.xml | 2 +-
tests/integration/jersey-3662/pom.xml | 2 +-
tests/integration/jersey-3670/pom.xml | 2 +-
tests/integration/jersey-3796/pom.xml | 2 +-
tests/integration/jersey-3992/pom.xml | 2 +-
tests/integration/jersey-4003/pom.xml | 2 +-
tests/integration/jersey-4099/pom.xml | 2 +-
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 2 +-
tests/integration/jersey-4542/pom.xml | 2 +-
tests/integration/jersey-4697/pom.xml | 2 +-
tests/integration/jersey-4722/pom.xml | 2 +-
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-5087/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 2 +-
tests/integration/microprofile/config/helidon/pom.xml | 2 +-
tests/integration/microprofile/config/pom.xml | 2 +-
tests/integration/microprofile/config/webapp/pom.xml | 2 +-
tests/integration/microprofile/pom.xml | 2 +-
tests/integration/microprofile/rest-client-tck/pom.xml | 2 +-
tests/integration/microprofile/rest-client/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 2 +-
tests/integration/reactive-streams/sse/pom.xml | 2 +-
tests/integration/security-digest/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 2 +-
tests/integration/servlet-2.5-filter/pom.xml | 2 +-
tests/integration/servlet-2.5-inflector-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-2/pom.xml | 2 +-
tests/integration/servlet-2.5-init-3/pom.xml | 2 +-
tests/integration/servlet-2.5-init-4/pom.xml | 2 +-
tests/integration/servlet-2.5-init-5/pom.xml | 2 +-
tests/integration/servlet-2.5-init-6/pom.xml | 2 +-
tests/integration/servlet-2.5-init-7/pom.xml | 2 +-
tests/integration/servlet-2.5-init-8/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-1/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-2/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-3/pom.xml | 2 +-
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 2 +-
tests/integration/servlet-3-chunked-io/pom.xml | 2 +-
tests/integration/servlet-3-filter/pom.xml | 2 +-
tests/integration/servlet-3-gf-async/pom.xml | 2 +-
tests/integration/servlet-3-inflector-1/pom.xml | 2 +-
tests/integration/servlet-3-init-1/pom.xml | 2 +-
tests/integration/servlet-3-init-2/pom.xml | 2 +-
tests/integration/servlet-3-init-3/pom.xml | 2 +-
tests/integration/servlet-3-init-4/pom.xml | 2 +-
tests/integration/servlet-3-init-5/pom.xml | 2 +-
tests/integration/servlet-3-init-6/pom.xml | 2 +-
tests/integration/servlet-3-init-7/pom.xml | 2 +-
tests/integration/servlet-3-init-8/pom.xml | 2 +-
tests/integration/servlet-3-init-9/pom.xml | 2 +-
tests/integration/servlet-3-init-provider/pom.xml | 2 +-
tests/integration/servlet-3-params/pom.xml | 2 +-
tests/integration/servlet-3-sse-1/pom.xml | 2 +-
tests/integration/servlet-4.0-mvc-1/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 2 +-
tests/integration/sonar-test/pom.xml | 2 +-
tests/integration/spring6/pom.xml | 2 +-
tests/integration/thin-server/pom.xml | 2 +-
tests/integration/tracing-support/pom.xml | 2 +-
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 2 +-
tests/mem-leaks/redeployment/pom.xml | 2 +-
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 4 ++--
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment/redeployment-threadlocals-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 2 +-
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 2 +-
tests/osgi/functional/pom.xml | 2 +-
tests/osgi/pom.xml | 2 +-
tests/performance/benchmarks/pom.xml | 2 +-
tests/performance/pom.xml | 2 +-
tests/performance/runners/jersey-grizzly-runner/pom.xml | 2 +-
tests/performance/runners/pom.xml | 2 +-
tests/performance/test-cases/assemblies/pom.xml | 2 +-
tests/performance/test-cases/filter-dynamic/pom.xml | 2 +-
tests/performance/test-cases/filter-global/pom.xml | 2 +-
tests/performance/test-cases/filter-name/pom.xml | 2 +-
tests/performance/test-cases/interceptor-dynamic/pom.xml | 2 +-
tests/performance/test-cases/interceptor-global/pom.xml | 2 +-
tests/performance/test-cases/interceptor-name/pom.xml | 2 +-
tests/performance/test-cases/mbw-custom-provider/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-jackson/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-moxy/pom.xml | 2 +-
tests/performance/test-cases/mbw-kryo/pom.xml | 2 +-
tests/performance/test-cases/mbw-text-plain/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 2 +-
tests/performance/test-cases/param-srl/pom.xml | 2 +-
tests/performance/test-cases/pom.xml | 2 +-
tests/performance/test-cases/proxy-injection/pom.xml | 2 +-
tests/performance/tools/pom.xml | 2 +-
tests/pom.xml | 2 +-
tests/stress/pom.xml | 2 +-
367 files changed, 368 insertions(+), 368 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index a31bd683b26..48eda1e667a 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-example-java8-webapp
diff --git a/archetypes/jersey-heroku-webapp/pom.xml b/archetypes/jersey-heroku-webapp/pom.xml
index e33c51f5b7f..1b1f377986b 100644
--- a/archetypes/jersey-heroku-webapp/pom.xml
+++ b/archetypes/jersey-heroku-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0-SNAPSHOT
+ 3.1.0
maven-archetype
diff --git a/archetypes/jersey-quickstart-grizzly2/pom.xml b/archetypes/jersey-quickstart-grizzly2/pom.xml
index 32d4a9a8695..17923f1a2a7 100644
--- a/archetypes/jersey-quickstart-grizzly2/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-quickstart-grizzly2
maven-archetype
diff --git a/archetypes/jersey-quickstart-webapp/pom.xml b/archetypes/jersey-quickstart-webapp/pom.xml
index 5b395540d44..42432d47079 100644
--- a/archetypes/jersey-quickstart-webapp/pom.xml
+++ b/archetypes/jersey-quickstart-webapp/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
maven-archetype
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index baba57c9962..c97fc1644f4 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.archetypes
diff --git a/bom/pom.xml b/bom/pom.xml
index c5393d2b5d0..f6e4c09053e 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,7 +30,7 @@
org.glassfish.jersey
jersey-bom
- 3.1.0-SNAPSHOT
+ 3.1.0
pom
jersey-bom
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index 7b71c1b112c..85d7c5764a5 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.1.0-SNAPSHOT
+ 3.1.0
apidocs
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index 1a0de6d3bc4..a9a126d7bc1 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.bundles
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-examples
diff --git a/bundles/jaxrs-ri/pom.xml b/bundles/jaxrs-ri/pom.xml
index 80aa6ba575a..9691d6478d3 100644
--- a/bundles/jaxrs-ri/pom.xml
+++ b/bundles/jaxrs-ri/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jaxrs-ri
diff --git a/bundles/pom.xml b/bundles/pom.xml
index b993bc606de..7f8ebb00ffd 100644
--- a/bundles/pom.xml
+++ b/bundles/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.bundles
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index 258ef18f321..de0072ad7ee 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-apache-connector
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
index 9d08082d249..9163fb39c63 100644
--- a/connectors/apache5-connector/pom.xml
+++ b/connectors/apache5-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-apache5-connector
diff --git a/connectors/grizzly-connector/pom.xml b/connectors/grizzly-connector/pom.xml
index ba96bfdfcf5..4858726ca0a 100644
--- a/connectors/grizzly-connector/pom.xml
+++ b/connectors/grizzly-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-grizzly-connector
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index 3b34c1dcb83..0fc1a885657 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.connectors
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/connectors/jdk-connector/pom.xml b/connectors/jdk-connector/pom.xml
index 37a68e90a70..951a3687531 100644
--- a/connectors/jdk-connector/pom.xml
+++ b/connectors/jdk-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-jdk-connector
diff --git a/connectors/jetty-connector/pom.xml b/connectors/jetty-connector/pom.xml
index a8564f1e790..5c5103a5c13 100644
--- a/connectors/jetty-connector/pom.xml
+++ b/connectors/jetty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-jetty-connector
diff --git a/connectors/jnh-connector/pom.xml b/connectors/jnh-connector/pom.xml
index 6fdd9cb8c39..cc56166da7b 100644
--- a/connectors/jnh-connector/pom.xml
+++ b/connectors/jnh-connector/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.connectors
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/connectors/netty-connector/pom.xml b/connectors/netty-connector/pom.xml
index ebaf7b99fba..83235dae5c9 100644
--- a/connectors/netty-connector/pom.xml
+++ b/connectors/netty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-netty-connector
diff --git a/connectors/pom.xml b/connectors/pom.xml
index 79ce0031d98..174e81686b3 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.connectors
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index e75a3377415..510ab78d692 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers.glassfish
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-gf-ejb
diff --git a/containers/glassfish/pom.xml b/containers/glassfish/pom.xml
index 4bf9302e8b6..13c8856e348 100644
--- a/containers/glassfish/pom.xml
+++ b/containers/glassfish/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.containers.glassfish
diff --git a/containers/grizzly2-http/pom.xml b/containers/grizzly2-http/pom.xml
index bddcf006eb0..f339055065a 100644
--- a/containers/grizzly2-http/pom.xml
+++ b/containers/grizzly2-http/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-container-grizzly2-http
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index f44f63cd3f7..a2aa91f2956 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-container-grizzly2-servlet
diff --git a/containers/jdk-http/pom.xml b/containers/jdk-http/pom.xml
index 4fb6f49381f..a8b04f5d73d 100644
--- a/containers/jdk-http/pom.xml
+++ b/containers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-container-jdk-http
diff --git a/containers/jersey-servlet-core/pom.xml b/containers/jersey-servlet-core/pom.xml
index 2bcfc85a834..f53f265d7e9 100644
--- a/containers/jersey-servlet-core/pom.xml
+++ b/containers/jersey-servlet-core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-container-servlet-core
diff --git a/containers/jersey-servlet/pom.xml b/containers/jersey-servlet/pom.xml
index b5244a6ced3..4f2869cf5d4 100644
--- a/containers/jersey-servlet/pom.xml
+++ b/containers/jersey-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-container-servlet
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index 903bd17828e..1223ef86053 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.containers
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-container-jetty-http
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 8053e9defa3..8d1241a2788 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-container-jetty-servlet
diff --git a/containers/netty-http/pom.xml b/containers/netty-http/pom.xml
index 894c547c730..fba8ca54866 100644
--- a/containers/netty-http/pom.xml
+++ b/containers/netty-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-container-netty-http
diff --git a/containers/pom.xml b/containers/pom.xml
index 1c074501ff6..69a3be26504 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.containers
diff --git a/containers/simple-http/pom.xml b/containers/simple-http/pom.xml
index f9a3206461f..c458f6fe9df 100644
--- a/containers/simple-http/pom.xml
+++ b/containers/simple-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-container-simple-http
diff --git a/core-client/pom.xml b/core-client/pom.xml
index a50b9ab8508..95a4a047bc9 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.core
diff --git a/core-common/pom.xml b/core-common/pom.xml
index 6c4716cc5dd..135e8ea67e5 100644
--- a/core-common/pom.xml
+++ b/core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.core
diff --git a/core-server/pom.xml b/core-server/pom.xml
index b72ee2fc737..ce11650b63c 100644
--- a/core-server/pom.xml
+++ b/core-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.core
diff --git a/docs/pom.xml b/docs/pom.xml
index 85973ee587a..37b4c2d25b0 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-documentation
pom
diff --git a/examples/assemblies/pom.xml b/examples/assemblies/pom.xml
index 79586a98272..0041829a32b 100644
--- a/examples/assemblies/pom.xml
+++ b/examples/assemblies/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
assemblies
diff --git a/examples/bookmark-em/pom.xml b/examples/bookmark-em/pom.xml
index f37da947292..cb6828b8dac 100644
--- a/examples/bookmark-em/pom.xml
+++ b/examples/bookmark-em/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
bookmark-em
diff --git a/examples/bookmark/pom.xml b/examples/bookmark/pom.xml
index 1e2d0e6347e..9695b1e4b01 100644
--- a/examples/bookmark/pom.xml
+++ b/examples/bookmark/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
bookmark
diff --git a/examples/bookstore-webapp/pom.xml b/examples/bookstore-webapp/pom.xml
index 52d4199ca43..cb7e6850172 100644
--- a/examples/bookstore-webapp/pom.xml
+++ b/examples/bookstore-webapp/pom.xml
@@ -35,7 +35,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
bookstore-webapp
diff --git a/examples/cdi-webapp/pom.xml b/examples/cdi-webapp/pom.xml
index 3b60b6c3b6f..a20c06ddbc7 100644
--- a/examples/cdi-webapp/pom.xml
+++ b/examples/cdi-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-webapp
diff --git a/examples/clipboard-programmatic/pom.xml b/examples/clipboard-programmatic/pom.xml
index 88a81c0beaf..55aff5123b3 100644
--- a/examples/clipboard-programmatic/pom.xml
+++ b/examples/clipboard-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
clipboard-programmatic
diff --git a/examples/clipboard/pom.xml b/examples/clipboard/pom.xml
index 3e7b73f7bc0..26342a70486 100644
--- a/examples/clipboard/pom.xml
+++ b/examples/clipboard/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
clipboard
diff --git a/examples/declarative-linking/pom.xml b/examples/declarative-linking/pom.xml
index 1bf96de3b54..b40e2d643e8 100644
--- a/examples/declarative-linking/pom.xml
+++ b/examples/declarative-linking/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
declarative-linking
diff --git a/examples/entity-filtering-security/pom.xml b/examples/entity-filtering-security/pom.xml
index 0364ed79621..879ec16bd88 100644
--- a/examples/entity-filtering-security/pom.xml
+++ b/examples/entity-filtering-security/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
entity-filtering-security
diff --git a/examples/entity-filtering-selectable/pom.xml b/examples/entity-filtering-selectable/pom.xml
index 06ab0368e4c..99c3ac49de8 100644
--- a/examples/entity-filtering-selectable/pom.xml
+++ b/examples/entity-filtering-selectable/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
entity-filtering-selectable
diff --git a/examples/entity-filtering/pom.xml b/examples/entity-filtering/pom.xml
index 0174dc93c37..26d2f26e22c 100644
--- a/examples/entity-filtering/pom.xml
+++ b/examples/entity-filtering/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
entity-filtering
diff --git a/examples/exception-mapping/pom.xml b/examples/exception-mapping/pom.xml
index a7f3486b545..e5c5956d50a 100644
--- a/examples/exception-mapping/pom.xml
+++ b/examples/exception-mapping/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
exception-mapping
diff --git a/examples/extended-wadl-webapp/pom.xml b/examples/extended-wadl-webapp/pom.xml
index 1aefde365a7..10bef77d174 100644
--- a/examples/extended-wadl-webapp/pom.xml
+++ b/examples/extended-wadl-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
extended-wadl-webapp
diff --git a/examples/freemarker-webapp/pom.xml b/examples/freemarker-webapp/pom.xml
index cee0d386388..c1959f8bcbb 100644
--- a/examples/freemarker-webapp/pom.xml
+++ b/examples/freemarker-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
freemarker-webapp
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index 96db61836ab..5f8b198e8b7 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
groovy
jar
diff --git a/examples/helloworld-benchmark/pom.xml b/examples/helloworld-benchmark/pom.xml
index f8a99268e1c..06241badc01 100644
--- a/examples/helloworld-benchmark/pom.xml
+++ b/examples/helloworld-benchmark/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
helloworld-benchmark
diff --git a/examples/helloworld-cdi2-se/pom.xml b/examples/helloworld-cdi2-se/pom.xml
index bed881a9908..050107db038 100644
--- a/examples/helloworld-cdi2-se/pom.xml
+++ b/examples/helloworld-cdi2-se/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
helloworld-cdi2-se
diff --git a/examples/helloworld-netty/pom.xml b/examples/helloworld-netty/pom.xml
index 8c2475c8769..932065a4662 100644
--- a/examples/helloworld-netty/pom.xml
+++ b/examples/helloworld-netty/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
helloworld-netty
diff --git a/examples/helloworld-programmatic/pom.xml b/examples/helloworld-programmatic/pom.xml
index 82bc4fd609a..fc0ca1cd0dc 100644
--- a/examples/helloworld-programmatic/pom.xml
+++ b/examples/helloworld-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
helloworld-programmatic
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index 6a1aa08382e..fef937d96b4 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
helloworld-pure-jax-rs
diff --git a/examples/helloworld-spring-annotations/pom.xml b/examples/helloworld-spring-annotations/pom.xml
index df4093ab4d5..226901fee7a 100644
--- a/examples/helloworld-spring-annotations/pom.xml
+++ b/examples/helloworld-spring-annotations/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
helloworld-spring-annotations
diff --git a/examples/helloworld-spring-webapp/pom.xml b/examples/helloworld-spring-webapp/pom.xml
index b3e84c86a4a..79e2ed84211 100644
--- a/examples/helloworld-spring-webapp/pom.xml
+++ b/examples/helloworld-spring-webapp/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
helloworld-spring-webapp
diff --git a/examples/helloworld-webapp/pom.xml b/examples/helloworld-webapp/pom.xml
index aecb50d4507..9e391a67d19 100644
--- a/examples/helloworld-webapp/pom.xml
+++ b/examples/helloworld-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
helloworld-webapp
diff --git a/examples/helloworld-weld/pom.xml b/examples/helloworld-weld/pom.xml
index f26f9e5e686..4761ebd4d82 100644
--- a/examples/helloworld-weld/pom.xml
+++ b/examples/helloworld-weld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
helloworld-weld
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index aaf086e8615..8526081664b 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
helloworld
diff --git a/examples/http-patch/pom.xml b/examples/http-patch/pom.xml
index 5595f4b50e2..d2222cfda7b 100644
--- a/examples/http-patch/pom.xml
+++ b/examples/http-patch/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
http-patch
diff --git a/examples/http-trace/pom.xml b/examples/http-trace/pom.xml
index 0a035c6082c..aa1508e2b1a 100644
--- a/examples/http-trace/pom.xml
+++ b/examples/http-trace/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
http-trace
diff --git a/examples/https-clientserver-grizzly/pom.xml b/examples/https-clientserver-grizzly/pom.xml
index 14582e14ae5..188d3381faa 100644
--- a/examples/https-clientserver-grizzly/pom.xml
+++ b/examples/https-clientserver-grizzly/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
https-clientserver-grizzly
diff --git a/examples/https-server-glassfish/pom.xml b/examples/https-server-glassfish/pom.xml
index d261beecb25..b97fb513c62 100644
--- a/examples/https-server-glassfish/pom.xml
+++ b/examples/https-server-glassfish/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
https-server-glassfish
diff --git a/examples/java8-webapp/pom.xml b/examples/java8-webapp/pom.xml
index 6c45a33885c..694f17fd31c 100644
--- a/examples/java8-webapp/pom.xml
+++ b/examples/java8-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
java8-webapp
diff --git a/examples/jaxb/pom.xml b/examples/jaxb/pom.xml
index 067bf562d83..6b709d26bd9 100644
--- a/examples/jaxb/pom.xml
+++ b/examples/jaxb/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jaxb
diff --git a/examples/jaxrs-types-injection/pom.xml b/examples/jaxrs-types-injection/pom.xml
index b894ff6a5a7..ff1004ce8be 100644
--- a/examples/jaxrs-types-injection/pom.xml
+++ b/examples/jaxrs-types-injection/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jaxrs-types-injection
diff --git a/examples/jersey-ejb/pom.xml b/examples/jersey-ejb/pom.xml
index d503a987e96..89851af0d0d 100644
--- a/examples/jersey-ejb/pom.xml
+++ b/examples/jersey-ejb/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-ejb
diff --git a/examples/json-binding-webapp/pom.xml b/examples/json-binding-webapp/pom.xml
index 5a24b6c8280..b756ba925aa 100644
--- a/examples/json-binding-webapp/pom.xml
+++ b/examples/json-binding-webapp/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
json-binding-webapp
diff --git a/examples/json-jackson/pom.xml b/examples/json-jackson/pom.xml
index 8e497aabe26..e97d19e6e9a 100644
--- a/examples/json-jackson/pom.xml
+++ b/examples/json-jackson/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
json-jackson
diff --git a/examples/json-jettison/pom.xml b/examples/json-jettison/pom.xml
index 59a7ce9838a..94f639cd205 100644
--- a/examples/json-jettison/pom.xml
+++ b/examples/json-jettison/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
json-jettison
diff --git a/examples/json-moxy/pom.xml b/examples/json-moxy/pom.xml
index d0aabc6ef59..09fa19b6080 100644
--- a/examples/json-moxy/pom.xml
+++ b/examples/json-moxy/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
json-moxy
diff --git a/examples/json-processing-webapp/pom.xml b/examples/json-processing-webapp/pom.xml
index 053323f76fa..d1830d8f84b 100644
--- a/examples/json-processing-webapp/pom.xml
+++ b/examples/json-processing-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
json-processing-webapp
diff --git a/examples/json-with-padding/pom.xml b/examples/json-with-padding/pom.xml
index 7ed8acea4b3..39454b96b70 100644
--- a/examples/json-with-padding/pom.xml
+++ b/examples/json-with-padding/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
json-with-padding
diff --git a/examples/managed-beans-webapp/pom.xml b/examples/managed-beans-webapp/pom.xml
index 622dd30521b..0a5a42534b9 100644
--- a/examples/managed-beans-webapp/pom.xml
+++ b/examples/managed-beans-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
managed-beans-webapp
diff --git a/examples/managed-client-simple-webapp/pom.xml b/examples/managed-client-simple-webapp/pom.xml
index 2382e8aa9e1..5576182acaf 100644
--- a/examples/managed-client-simple-webapp/pom.xml
+++ b/examples/managed-client-simple-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
managed-client-simple-webapp
diff --git a/examples/managed-client-webapp/pom.xml b/examples/managed-client-webapp/pom.xml
index 06fdad5aa27..4f68db37d1b 100644
--- a/examples/managed-client-webapp/pom.xml
+++ b/examples/managed-client-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
managed-client-webapp
diff --git a/examples/managed-client/pom.xml b/examples/managed-client/pom.xml
index 9bbbb02098b..15716186f08 100644
--- a/examples/managed-client/pom.xml
+++ b/examples/managed-client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
managed-client
diff --git a/examples/multipart-webapp/pom.xml b/examples/multipart-webapp/pom.xml
index b507c8b63b1..bf40487b2f7 100644
--- a/examples/multipart-webapp/pom.xml
+++ b/examples/multipart-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
multipart-webapp
diff --git a/examples/oauth-client-twitter/pom.xml b/examples/oauth-client-twitter/pom.xml
index 608be823f7d..d8ea7243fa7 100644
--- a/examples/oauth-client-twitter/pom.xml
+++ b/examples/oauth-client-twitter/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index cc01f9962e1..ceb75e5b757 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
open-tracing
diff --git a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
index ec2697d452e..1c4b1ddf6c4 100644
--- a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
index c1f7a6f46ae..24ad2af4da4 100644
--- a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index 4b0a83cc1f1..9ae71ee594f 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
index 6966efcef5b..532296d32ec 100644
--- a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/pom.xml b/examples/osgi-helloworld-webapp/pom.xml
index 75874bf0550..db90fb1d056 100644
--- a/examples/osgi-helloworld-webapp/pom.xml
+++ b/examples/osgi-helloworld-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/war-bundle/pom.xml b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
index b789a5b8a69..18f13da9110 100644
--- a/examples/osgi-helloworld-webapp/war-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/pom.xml b/examples/pom.xml
index 08786e6bb2a..015f180753e 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
diff --git a/examples/reload/pom.xml b/examples/reload/pom.xml
index 2b35463e4a3..6bc7c614a93 100644
--- a/examples/reload/pom.xml
+++ b/examples/reload/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
reload
diff --git a/examples/rx-client-webapp/pom.xml b/examples/rx-client-webapp/pom.xml
index 61a1db54f16..46cdb6967ab 100644
--- a/examples/rx-client-webapp/pom.xml
+++ b/examples/rx-client-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
rx-client-webapp
diff --git a/examples/server-async-managed/pom.xml b/examples/server-async-managed/pom.xml
index 229c32c68c4..ac62f34a61f 100644
--- a/examples/server-async-managed/pom.xml
+++ b/examples/server-async-managed/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
server-async-managed
diff --git a/examples/server-async-standalone/client/pom.xml b/examples/server-async-standalone/client/pom.xml
index e1aa9c576fa..992f38fb402 100644
--- a/examples/server-async-standalone/client/pom.xml
+++ b/examples/server-async-standalone/client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.1.0-SNAPSHOT
+ 3.1.0
server-async-standalone-client
diff --git a/examples/server-async-standalone/pom.xml b/examples/server-async-standalone/pom.xml
index 11cf0bf8eec..16baf164f25 100644
--- a/examples/server-async-standalone/pom.xml
+++ b/examples/server-async-standalone/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
server-async-standalone
diff --git a/examples/server-async-standalone/webapp/pom.xml b/examples/server-async-standalone/webapp/pom.xml
index b38ff1cf16d..c4e697867ba 100644
--- a/examples/server-async-standalone/webapp/pom.xml
+++ b/examples/server-async-standalone/webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.1.0-SNAPSHOT
+ 3.1.0
server-async-standalone-webapp
diff --git a/examples/server-async/pom.xml b/examples/server-async/pom.xml
index 9b4ca355644..03ab713ae11 100644
--- a/examples/server-async/pom.xml
+++ b/examples/server-async/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
server-async
diff --git a/examples/server-sent-events-jaxrs/pom.xml b/examples/server-sent-events-jaxrs/pom.xml
index 0da67c32d77..897473a84c8 100644
--- a/examples/server-sent-events-jaxrs/pom.xml
+++ b/examples/server-sent-events-jaxrs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
server-sent-events-jaxrs
diff --git a/examples/server-sent-events-jersey/pom.xml b/examples/server-sent-events-jersey/pom.xml
index e41180e254f..6e70d58bca9 100644
--- a/examples/server-sent-events-jersey/pom.xml
+++ b/examples/server-sent-events-jersey/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
server-sent-events-jersey
diff --git a/examples/servlet3-webapp/pom.xml b/examples/servlet3-webapp/pom.xml
index d44fe5a0d6d..86a83f9e785 100644
--- a/examples/servlet3-webapp/pom.xml
+++ b/examples/servlet3-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet3-webapp
diff --git a/examples/simple-console/pom.xml b/examples/simple-console/pom.xml
index 0b2e73d0bb7..d524dd1098d 100644
--- a/examples/simple-console/pom.xml
+++ b/examples/simple-console/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
simple-console
diff --git a/examples/sse-item-store-jaxrs-webapp/pom.xml b/examples/sse-item-store-jaxrs-webapp/pom.xml
index 59682523e3b..fe0951f03fd 100644
--- a/examples/sse-item-store-jaxrs-webapp/pom.xml
+++ b/examples/sse-item-store-jaxrs-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
sse-item-store-jaxrs-webapp
diff --git a/examples/sse-item-store-jersey-webapp/pom.xml b/examples/sse-item-store-jersey-webapp/pom.xml
index d7e47e29329..9ac5a98beb8 100644
--- a/examples/sse-item-store-jersey-webapp/pom.xml
+++ b/examples/sse-item-store-jersey-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0-SNAPSHOT
+ 3.1.0
sse-item-store-jersey-webapp
diff --git a/examples/sse-twitter-aggregator/pom.xml b/examples/sse-twitter-aggregator/pom.xml
index e147d378161..17f2456ec5e 100644
--- a/examples/sse-twitter-aggregator/pom.xml
+++ b/examples/sse-twitter-aggregator/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
sse-twitter-aggregator
diff --git a/examples/system-properties-example/pom.xml b/examples/system-properties-example/pom.xml
index 3eda788e879..e1d27853f60 100644
--- a/examples/system-properties-example/pom.xml
+++ b/examples/system-properties-example/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
system-properties-example
diff --git a/examples/webapp-example-parent/pom.xml b/examples/webapp-example-parent/pom.xml
index fadf66aae07..dd9816accda 100644
--- a/examples/webapp-example-parent/pom.xml
+++ b/examples/webapp-example-parent/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
webapp-example-parent
diff --git a/examples/xml-moxy/pom.xml b/examples/xml-moxy/pom.xml
index 7ee7130c728..cf169b61c16 100644
--- a/examples/xml-moxy/pom.xml
+++ b/examples/xml-moxy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.1.0-SNAPSHOT
+ 3.1.0
xml-moxy
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index 95125e9a368..3aa230db212 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-bean-validation
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index af60eb2cbe8..e3a12f1dc53 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext.cdi
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
index 69c0f15d27f..33d415c90fc 100644
--- a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
+++ b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-cdi1x-ban-custom-hk2-binding
diff --git a/ext/cdi/jersey-cdi1x-servlet/pom.xml b/ext/cdi/jersey-cdi1x-servlet/pom.xml
index 76f6ca17bc6..3ccb69ca1fa 100644
--- a/ext/cdi/jersey-cdi1x-servlet/pom.xml
+++ b/ext/cdi/jersey-cdi1x-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-cdi1x-servlet
diff --git a/ext/cdi/jersey-cdi1x-transaction/pom.xml b/ext/cdi/jersey-cdi1x-transaction/pom.xml
index 54d5e12d9d1..93be5ecff09 100644
--- a/ext/cdi/jersey-cdi1x-transaction/pom.xml
+++ b/ext/cdi/jersey-cdi1x-transaction/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-cdi1x-transaction
diff --git a/ext/cdi/jersey-cdi1x-validation/pom.xml b/ext/cdi/jersey-cdi1x-validation/pom.xml
index 1e0300751b1..a48770aa703 100644
--- a/ext/cdi/jersey-cdi1x-validation/pom.xml
+++ b/ext/cdi/jersey-cdi1x-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-cdi1x-validation
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index 119f8cba690..5b66ec292db 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-cdi1x
diff --git a/ext/cdi/jersey-weld2-se/pom.xml b/ext/cdi/jersey-weld2-se/pom.xml
index 18eddfb97ec..c7cc4e0a0e5 100644
--- a/ext/cdi/jersey-weld2-se/pom.xml
+++ b/ext/cdi/jersey-weld2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-weld2-se
diff --git a/ext/cdi/pom.xml b/ext/cdi/pom.xml
index ef2abf451ac..f3aa50dbcfc 100644
--- a/ext/cdi/pom.xml
+++ b/ext/cdi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.ext.cdi
diff --git a/ext/entity-filtering/pom.xml b/ext/entity-filtering/pom.xml
index c3e322207c8..661902a5e4b 100644
--- a/ext/entity-filtering/pom.xml
+++ b/ext/entity-filtering/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-entity-filtering
diff --git a/ext/metainf-services/pom.xml b/ext/metainf-services/pom.xml
index 013934e000c..5942ee4f39c 100644
--- a/ext/metainf-services/pom.xml
+++ b/ext/metainf-services/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-metainf-services
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index 97451e71b7e..2e12b1b70e7 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index 61e9f0fdb76..77e5bb6d6dc 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/ext/microprofile/pom.xml b/ext/microprofile/pom.xml
index f75232d67ad..b9bcf332338 100644
--- a/ext/microprofile/pom.xml
+++ b/ext/microprofile/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/ext/mvc-bean-validation/pom.xml b/ext/mvc-bean-validation/pom.xml
index 8fe8ffe0fed..bc391255a9b 100644
--- a/ext/mvc-bean-validation/pom.xml
+++ b/ext/mvc-bean-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-mvc-bean-validation
diff --git a/ext/mvc-freemarker/pom.xml b/ext/mvc-freemarker/pom.xml
index 94776666752..d41824aa13e 100644
--- a/ext/mvc-freemarker/pom.xml
+++ b/ext/mvc-freemarker/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-mvc-freemarker
diff --git a/ext/mvc-jsp/pom.xml b/ext/mvc-jsp/pom.xml
index 6bf47a42c02..19adcd9512b 100644
--- a/ext/mvc-jsp/pom.xml
+++ b/ext/mvc-jsp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-mvc-jsp
diff --git a/ext/mvc-mustache/pom.xml b/ext/mvc-mustache/pom.xml
index c409a7c045e..c75fcff767f 100644
--- a/ext/mvc-mustache/pom.xml
+++ b/ext/mvc-mustache/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-mvc-mustache
diff --git a/ext/mvc/pom.xml b/ext/mvc/pom.xml
index 3d2f274de2f..fe4a39b45fc 100644
--- a/ext/mvc/pom.xml
+++ b/ext/mvc/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-mvc
diff --git a/ext/pom.xml b/ext/pom.xml
index fa7003a00b2..2a89a06be15 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.ext
diff --git a/ext/proxy-client/pom.xml b/ext/proxy-client/pom.xml
index 26526f6622b..32612a188c9 100644
--- a/ext/proxy-client/pom.xml
+++ b/ext/proxy-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-proxy-client
diff --git a/ext/rx/pom.xml b/ext/rx/pom.xml
index f20bbbdc533..c78449ccccb 100644
--- a/ext/rx/pom.xml
+++ b/ext/rx/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.ext.rx
diff --git a/ext/rx/rx-client-guava/pom.xml b/ext/rx/rx-client-guava/pom.xml
index 71fe9a9239e..6b6080ac5dd 100644
--- a/ext/rx/rx-client-guava/pom.xml
+++ b/ext/rx/rx-client-guava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-rx-client-guava
diff --git a/ext/rx/rx-client-rxjava/pom.xml b/ext/rx/rx-client-rxjava/pom.xml
index 39043ceace0..b43da9bd8f4 100644
--- a/ext/rx/rx-client-rxjava/pom.xml
+++ b/ext/rx/rx-client-rxjava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-rx-client-rxjava
diff --git a/ext/rx/rx-client-rxjava2/pom.xml b/ext/rx/rx-client-rxjava2/pom.xml
index f859654bd67..00089e4f71f 100644
--- a/ext/rx/rx-client-rxjava2/pom.xml
+++ b/ext/rx/rx-client-rxjava2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-rx-client-rxjava2
diff --git a/ext/spring6/pom.xml b/ext/spring6/pom.xml
index 4f28e9491c9..086c3d6b9d2 100644
--- a/ext/spring6/pom.xml
+++ b/ext/spring6/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-spring6
diff --git a/ext/wadl-doclet/pom.xml b/ext/wadl-doclet/pom.xml
index e4f43c38566..744ff9b23d7 100644
--- a/ext/wadl-doclet/pom.xml
+++ b/ext/wadl-doclet/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
jersey-wadl-doclet
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index c75400c1fa3..d4563e72fb3 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-cdi-inject-weld
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index 0138a0ab956..3a28599e7e4 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.ext
diff --git a/incubator/gae-integration/pom.xml b/incubator/gae-integration/pom.xml
index b8b51b601f5..78de2782eb2 100644
--- a/incubator/gae-integration/pom.xml
+++ b/incubator/gae-integration/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-gae-integration
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index 3ad5b9ebb00..0cd85c2fd1e 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.media
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index d1459862b68..511e29ace06 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.media
diff --git a/incubator/open-tracing/pom.xml b/incubator/open-tracing/pom.xml
index f9a3775af50..43241118d70 100644
--- a/incubator/open-tracing/pom.xml
+++ b/incubator/open-tracing/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.incubator
diff --git a/incubator/pom.xml b/incubator/pom.xml
index 9a9d6bc57d9..962dad728b6 100644
--- a/incubator/pom.xml
+++ b/incubator/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.incubator
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index af080ab7f81..a1009517c99 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-cdi2-se
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index 0f9eacbdcdf..336ed100aa2 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-hk2
diff --git a/inject/pom.xml b/inject/pom.xml
index 57a755dcc72..6990d260c0b 100644
--- a/inject/pom.xml
+++ b/inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.inject
diff --git a/media/jaxb/pom.xml b/media/jaxb/pom.xml
index 2eaf52df496..dba83c52c30 100644
--- a/media/jaxb/pom.xml
+++ b/media/jaxb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-media-jaxb
diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
index 3ae3b876b69..2d3b055eb12 100644
--- a/media/json-binding/pom.xml
+++ b/media/json-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-media-json-binding
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index 85b4de1522b..c4ddcf97dd0 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-media-json-gson
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index 9456ee6234b..621dafd1cd3 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-media-json-jackson
diff --git a/media/json-jettison/pom.xml b/media/json-jettison/pom.xml
index 6ff9a2160a9..e56a7eba435 100644
--- a/media/json-jettison/pom.xml
+++ b/media/json-jettison/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-media-json-jettison
diff --git a/media/json-processing/pom.xml b/media/json-processing/pom.xml
index 373b1749528..d0a9cc279cd 100644
--- a/media/json-processing/pom.xml
+++ b/media/json-processing/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-media-json-processing
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index f590550e8e3..c46a6dd8336 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-media-moxy
diff --git a/media/multipart/pom.xml b/media/multipart/pom.xml
index bb340e515dd..44aadab349c 100644
--- a/media/multipart/pom.xml
+++ b/media/multipart/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-media-multipart
diff --git a/media/pom.xml b/media/pom.xml
index e738eb1ac89..7e7439085ef 100644
--- a/media/pom.xml
+++ b/media/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.media
diff --git a/media/sse/pom.xml b/media/sse/pom.xml
index df3d62fcbdd..776d668d7ea 100644
--- a/media/sse/pom.xml
+++ b/media/sse/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-media-sse
diff --git a/pom.xml b/pom.xml
index a4741d30761..db296641595 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
org.glassfish.jersey
project
pom
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey
Eclipse Jersey is the open source (under dual EPL+GPL license) Jakarta RESTful WebServices 3.0
diff --git a/security/oauth1-client/pom.xml b/security/oauth1-client/pom.xml
index 11fd168ce3b..72f0b04270c 100644
--- a/security/oauth1-client/pom.xml
+++ b/security/oauth1-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.security
project
- 3.1.0-SNAPSHOT
+ 3.1.0
oauth1-client
diff --git a/security/oauth1-server/pom.xml b/security/oauth1-server/pom.xml
index 7af4fb9e572..39a34bc188f 100644
--- a/security/oauth1-server/pom.xml
+++ b/security/oauth1-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.security
project
- 3.1.0-SNAPSHOT
+ 3.1.0
oauth1-server
diff --git a/security/oauth1-signature/pom.xml b/security/oauth1-signature/pom.xml
index 22055bc726d..e8720d3e4c0 100644
--- a/security/oauth1-signature/pom.xml
+++ b/security/oauth1-signature/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/security/oauth2-client/pom.xml b/security/oauth2-client/pom.xml
index e55aca53ac2..edf92aa2e79 100644
--- a/security/oauth2-client/pom.xml
+++ b/security/oauth2-client/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/security/pom.xml b/security/pom.xml
index c457f1000c3..72e34249875 100644
--- a/security/pom.xml
+++ b/security/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.security
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index cf14a948ad4..69cb38f61a9 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-test-framework-core
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index 710dab3aaac..442ea68e22d 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.1.0-SNAPSHOT
+ 3.1.0
container-runner-maven-plugin
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index 454813d907e..e7f655388b8 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.1.0-SNAPSHOT
+ 3.1.0
custom-enforcer-rules
diff --git a/test-framework/maven/pom.xml b/test-framework/maven/pom.xml
index 495bf2028bd..b93405a501b 100644
--- a/test-framework/maven/pom.xml
+++ b/test-framework/maven/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.test-framework.maven
diff --git a/test-framework/memleak-test-common/pom.xml b/test-framework/memleak-test-common/pom.xml
index 08b0dacd366..1bb4724e13d 100644
--- a/test-framework/memleak-test-common/pom.xml
+++ b/test-framework/memleak-test-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0-SNAPSHOT
+ 3.1.0
memleak-test-common
diff --git a/test-framework/pom.xml b/test-framework/pom.xml
index c85640a995a..eb1ab02d8c4 100644
--- a/test-framework/pom.xml
+++ b/test-framework/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.test-framework
diff --git a/test-framework/providers/bundle/pom.xml b/test-framework/providers/bundle/pom.xml
index 0ede2389128..ee960b93403 100644
--- a/test-framework/providers/bundle/pom.xml
+++ b/test-framework/providers/bundle/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-test-framework-provider-bundle
diff --git a/test-framework/providers/external/pom.xml b/test-framework/providers/external/pom.xml
index e3979deec37..00cea8141b5 100644
--- a/test-framework/providers/external/pom.xml
+++ b/test-framework/providers/external/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-test-framework-provider-external
diff --git a/test-framework/providers/grizzly2/pom.xml b/test-framework/providers/grizzly2/pom.xml
index b610451ac81..bdcbfe2dd8e 100644
--- a/test-framework/providers/grizzly2/pom.xml
+++ b/test-framework/providers/grizzly2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-test-framework-provider-grizzly2
diff --git a/test-framework/providers/inmemory/pom.xml b/test-framework/providers/inmemory/pom.xml
index a7156f4ef59..97a7c170d4d 100644
--- a/test-framework/providers/inmemory/pom.xml
+++ b/test-framework/providers/inmemory/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-test-framework-provider-inmemory
diff --git a/test-framework/providers/jdk-http/pom.xml b/test-framework/providers/jdk-http/pom.xml
index 01bc066849f..6aae42a3f51 100644
--- a/test-framework/providers/jdk-http/pom.xml
+++ b/test-framework/providers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-test-framework-provider-jdk-http
diff --git a/test-framework/providers/jetty/pom.xml b/test-framework/providers/jetty/pom.xml
index e2c1af2a747..2d9ebafac9d 100644
--- a/test-framework/providers/jetty/pom.xml
+++ b/test-framework/providers/jetty/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/test-framework/providers/netty/pom.xml b/test-framework/providers/netty/pom.xml
index a95f15aa4f4..5357154c7df 100644
--- a/test-framework/providers/netty/pom.xml
+++ b/test-framework/providers/netty/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-test-framework-provider-netty
diff --git a/test-framework/providers/pom.xml b/test-framework/providers/pom.xml
index 724c29593a1..f47c0d1bfcb 100644
--- a/test-framework/providers/pom.xml
+++ b/test-framework/providers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.test-framework.providers
diff --git a/test-framework/providers/simple/pom.xml b/test-framework/providers/simple/pom.xml
index 69ba9fd4f36..fdc9779aa5a 100644
--- a/test-framework/providers/simple/pom.xml
+++ b/test-framework/providers/simple/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/test-framework/util/pom.xml b/test-framework/util/pom.xml
index 0bcd9b7b2ae..3722f098368 100644
--- a/test-framework/util/pom.xml
+++ b/test-framework/util/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-test-framework-util
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index 729a43353e5..9f42477478e 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.1.0
e2e-client
diff --git a/tests/e2e-core-common/pom.xml b/tests/e2e-core-common/pom.xml
index b0ff4ebf584..3dea23383ea 100644
--- a/tests/e2e-core-common/pom.xml
+++ b/tests/e2e-core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.1.0
e2e-core-common
diff --git a/tests/e2e-entity/pom.xml b/tests/e2e-entity/pom.xml
index 28d27472be7..04d3f39539e 100644
--- a/tests/e2e-entity/pom.xml
+++ b/tests/e2e-entity/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.1.0
e2e-entity
diff --git a/tests/e2e-inject/cdi-inject-weld/pom.xml b/tests/e2e-inject/cdi-inject-weld/pom.xml
index 97697b21f66..31da247f6a2 100644
--- a/tests/e2e-inject/cdi-inject-weld/pom.xml
+++ b/tests/e2e-inject/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.1.0-SNAPSHOT
+ 3.1.0
e2e-inject-cdi-inject-weld
diff --git a/tests/e2e-inject/cdi2-se/pom.xml b/tests/e2e-inject/cdi2-se/pom.xml
index ea644cd7809..4cf04093fad 100644
--- a/tests/e2e-inject/cdi2-se/pom.xml
+++ b/tests/e2e-inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.1.0-SNAPSHOT
+ 3.1.0
e2e-inject-cdi2-se
diff --git a/tests/e2e-inject/hk2/pom.xml b/tests/e2e-inject/hk2/pom.xml
index df35d73128e..ff269b0dfbc 100644
--- a/tests/e2e-inject/hk2/pom.xml
+++ b/tests/e2e-inject/hk2/pom.xml
@@ -23,7 +23,7 @@
e2e-inject
org.glassfish.jersey.tests
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/e2e-inject/pom.xml b/tests/e2e-inject/pom.xml
index cc393e7c050..0f905faec25 100644
--- a/tests/e2e-inject/pom.xml
+++ b/tests/e2e-inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.1.0
e2e-inject
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index 3500e1398b7..3f05fd71f9c 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.1.0
e2e-server
diff --git a/tests/e2e-testng/pom.xml b/tests/e2e-testng/pom.xml
index 9a7fc56ae86..9277820534e 100644
--- a/tests/e2e-testng/pom.xml
+++ b/tests/e2e-testng/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.1.0
e2e-testng
diff --git a/tests/e2e/pom.xml b/tests/e2e/pom.xml
index ec78efae8c5..fc59ec70fce 100644
--- a/tests/e2e/pom.xml
+++ b/tests/e2e/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.1.0
e2e
diff --git a/tests/integration/asm/pom.xml b/tests/integration/asm/pom.xml
index 9ee983acef7..c3c9ed08a00 100644
--- a/tests/integration/asm/pom.xml
+++ b/tests/integration/asm/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/async-jersey-filter/pom.xml b/tests/integration/async-jersey-filter/pom.xml
index 4db6da5675e..c939f0976ac 100644
--- a/tests/integration/async-jersey-filter/pom.xml
+++ b/tests/integration/async-jersey-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
async-jersey-filter
diff --git a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
index cda9a701550..abc471a5522 100644
--- a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-beanvalidation-webapp
diff --git a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
index f64e3091088..6cf50b94825 100644
--- a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-client-on-server
diff --git a/tests/integration/cdi-integration/cdi-client/pom.xml b/tests/integration/cdi-integration/cdi-client/pom.xml
index 548e446c338..749efda7e91 100644
--- a/tests/integration/cdi-integration/cdi-client/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-client
diff --git a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
index 77ed5518807..c84e69e9dbc 100644
--- a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-ejb-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
index a4e72f1ec0f..317b4d1220f 100644
--- a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-iface-with-non-jaxrs-impl-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-log-check/pom.xml b/tests/integration/cdi-integration/cdi-log-check/pom.xml
index c1aee4d8f55..02c40eaf753 100644
--- a/tests/integration/cdi-integration/cdi-log-check/pom.xml
+++ b/tests/integration/cdi-integration/cdi-log-check/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-log-check
diff --git a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
index c1925b89df7..585a28b1f2e 100644
--- a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
+++ b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
index 62ad425b7f7..9c075cbadab 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
index b89780385d6..cd55dc754eb 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
index 8bbd89ab7ab..4263b96e6f5 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-multimodule
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
index e4769b21748..3662ef7d885 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
index fd910a32d28..94d3028894c 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
index 041a1b5adcc..39303db13e1 100644
--- a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-multipart-webapp
diff --git a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
index 4ebaa214c7e..6a31d445af4 100644
--- a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
+++ b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-singleton/pom.xml b/tests/integration/cdi-integration/cdi-singleton/pom.xml
index 8a5395db181..4839ad07c0b 100644
--- a/tests/integration/cdi-integration/cdi-singleton/pom.xml
+++ b/tests/integration/cdi-integration/cdi-singleton/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
index 7bd1175cff3..3187270193a 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
index 670b8de7704..dff506b3b23 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-with-jersey-injection-custom-cfg-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
index 33514e670d3..c9f32d24f08 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-with-jersey-injection-custom-hk2-banned-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
index 39966aedaa5..338656f04cc 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
cdi-with-jersey-injection-webapp
diff --git a/tests/integration/cdi-integration/context-inject-on-server/pom.xml b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
index 5fd8561531d..b04f589e3cc 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/pom.xml
+++ b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
context-inject-on-server
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
index 95c5bd7a7af..bb0d8272419 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
+++ b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0-SNAPSHOT
+ 3.1.0
gf-cdi-inject-on-server
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index c332949f0f9..bc8958f0601 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
pom
diff --git a/tests/integration/client-connector-provider/pom.xml b/tests/integration/client-connector-provider/pom.xml
index 3207806040f..abfc0602ded 100644
--- a/tests/integration/client-connector-provider/pom.xml
+++ b/tests/integration/client-connector-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
client-connector-provider
diff --git a/tests/integration/ejb-multimodule-reload/ear/pom.xml b/tests/integration/ejb-multimodule-reload/ear/pom.xml
index 36e34e64839..07fe495dc62 100644
--- a/tests/integration/ejb-multimodule-reload/ear/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/lib/pom.xml b/tests/integration/ejb-multimodule-reload/lib/pom.xml
index e8f92151cc5..a7af9c477a3 100644
--- a/tests/integration/ejb-multimodule-reload/lib/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/pom.xml b/tests/integration/ejb-multimodule-reload/pom.xml
index 40c879fb96b..b21e58bd144 100644
--- a/tests/integration/ejb-multimodule-reload/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
ejb-multimodule-reload
diff --git a/tests/integration/ejb-multimodule-reload/war1/pom.xml b/tests/integration/ejb-multimodule-reload/war1/pom.xml
index 32ee1603d80..87b31119c38 100644
--- a/tests/integration/ejb-multimodule-reload/war1/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/war2/pom.xml b/tests/integration/ejb-multimodule-reload/war2/pom.xml
index 8c9dd4cfb15..dbfc6362419 100644
--- a/tests/integration/ejb-multimodule-reload/war2/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/ear/pom.xml b/tests/integration/ejb-multimodule/ear/pom.xml
index 22c8c1c989f..4cf0aa05549 100644
--- a/tests/integration/ejb-multimodule/ear/pom.xml
+++ b/tests/integration/ejb-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/lib/pom.xml b/tests/integration/ejb-multimodule/lib/pom.xml
index f08831d68e2..f747f5f1c8d 100644
--- a/tests/integration/ejb-multimodule/lib/pom.xml
+++ b/tests/integration/ejb-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/pom.xml b/tests/integration/ejb-multimodule/pom.xml
index 491874016d4..8c67f543cbb 100644
--- a/tests/integration/ejb-multimodule/pom.xml
+++ b/tests/integration/ejb-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
ejb-multimodule
diff --git a/tests/integration/ejb-multimodule/war/pom.xml b/tests/integration/ejb-multimodule/war/pom.xml
index 0e315af07b2..77b21a6ef99 100644
--- a/tests/integration/ejb-multimodule/war/pom.xml
+++ b/tests/integration/ejb-multimodule/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/ejb-test-webapp/pom.xml b/tests/integration/ejb-test-webapp/pom.xml
index cb1ca1c0704..1baeb2d9cad 100644
--- a/tests/integration/ejb-test-webapp/pom.xml
+++ b/tests/integration/ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
ejb-test-webapp
diff --git a/tests/integration/externalproperties/pom.xml b/tests/integration/externalproperties/pom.xml
index 1ca814ee8aa..57c6a74d9b8 100644
--- a/tests/integration/externalproperties/pom.xml
+++ b/tests/integration/externalproperties/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
externalproperties
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index 935cd8ffc1e..f16086ec4bc 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
j-376
diff --git a/tests/integration/j-441/ear/pom.xml b/tests/integration/j-441/ear/pom.xml
index 2e2d1459f9d..07edf13015c 100644
--- a/tests/integration/j-441/ear/pom.xml
+++ b/tests/integration/j-441/ear/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
j-441-ear
diff --git a/tests/integration/j-441/pom.xml b/tests/integration/j-441/pom.xml
index 8d97ce9ab9e..478ca0c83c0 100644
--- a/tests/integration/j-441/pom.xml
+++ b/tests/integration/j-441/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
j-441
diff --git a/tests/integration/j-441/war1/pom.xml b/tests/integration/j-441/war1/pom.xml
index 5a1ebb5e72e..743a6e91ea8 100644
--- a/tests/integration/j-441/war1/pom.xml
+++ b/tests/integration/j-441/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/j-441/war2/pom.xml b/tests/integration/j-441/war2/pom.xml
index fc0e19a7a6b..6db7677e9ad 100644
--- a/tests/integration/j-441/war2/pom.xml
+++ b/tests/integration/j-441/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/j-59/ear/pom.xml b/tests/integration/j-59/ear/pom.xml
index f211d2e1726..d5e631943d7 100644
--- a/tests/integration/j-59/ear/pom.xml
+++ b/tests/integration/j-59/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/j-59/lib/pom.xml b/tests/integration/j-59/lib/pom.xml
index 46fa64368ca..8986ce8dca5 100644
--- a/tests/integration/j-59/lib/pom.xml
+++ b/tests/integration/j-59/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/j-59/pom.xml b/tests/integration/j-59/pom.xml
index a222363e119..ddf62daf143 100644
--- a/tests/integration/j-59/pom.xml
+++ b/tests/integration/j-59/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
j-59
diff --git a/tests/integration/j-59/war/pom.xml b/tests/integration/j-59/war/pom.xml
index 08708517dc1..9bdf4afb98c 100644
--- a/tests/integration/j-59/war/pom.xml
+++ b/tests/integration/j-59/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
../../pom.xml
diff --git a/tests/integration/jaxrs-component-inject/pom.xml b/tests/integration/jaxrs-component-inject/pom.xml
index 9f31a725433..ec5296c6fae 100644
--- a/tests/integration/jaxrs-component-inject/pom.xml
+++ b/tests/integration/jaxrs-component-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jaxrs-component-inject
diff --git a/tests/integration/jersey-1107/pom.xml b/tests/integration/jersey-1107/pom.xml
index 625feb55d14..2523425f264 100644
--- a/tests/integration/jersey-1107/pom.xml
+++ b/tests/integration/jersey-1107/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-1107
diff --git a/tests/integration/jersey-1223/pom.xml b/tests/integration/jersey-1223/pom.xml
index c57b49704aa..b09d24b13f5 100644
--- a/tests/integration/jersey-1223/pom.xml
+++ b/tests/integration/jersey-1223/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
jersey-1223
diff --git a/tests/integration/jersey-1604/pom.xml b/tests/integration/jersey-1604/pom.xml
index 3b15586b284..6f717c0788f 100644
--- a/tests/integration/jersey-1604/pom.xml
+++ b/tests/integration/jersey-1604/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
jersey-1604
diff --git a/tests/integration/jersey-1667/pom.xml b/tests/integration/jersey-1667/pom.xml
index 218a99f761d..299da318956 100644
--- a/tests/integration/jersey-1667/pom.xml
+++ b/tests/integration/jersey-1667/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-1667
diff --git a/tests/integration/jersey-1883/pom.xml b/tests/integration/jersey-1883/pom.xml
index 940b08b2112..bad13368a38 100644
--- a/tests/integration/jersey-1883/pom.xml
+++ b/tests/integration/jersey-1883/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-1883
diff --git a/tests/integration/jersey-1928/pom.xml b/tests/integration/jersey-1928/pom.xml
index 5463ed664bf..1170ff6d37f 100644
--- a/tests/integration/jersey-1928/pom.xml
+++ b/tests/integration/jersey-1928/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
jersey-1928
diff --git a/tests/integration/jersey-1960/pom.xml b/tests/integration/jersey-1960/pom.xml
index 73c7cf21313..6cb905c33cd 100644
--- a/tests/integration/jersey-1960/pom.xml
+++ b/tests/integration/jersey-1960/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-1960
diff --git a/tests/integration/jersey-1964/pom.xml b/tests/integration/jersey-1964/pom.xml
index d54819dc911..4807150a694 100644
--- a/tests/integration/jersey-1964/pom.xml
+++ b/tests/integration/jersey-1964/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-1964
diff --git a/tests/integration/jersey-2031/pom.xml b/tests/integration/jersey-2031/pom.xml
index 17764682004..4beabff84ff 100644
--- a/tests/integration/jersey-2031/pom.xml
+++ b/tests/integration/jersey-2031/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2031
diff --git a/tests/integration/jersey-2136/pom.xml b/tests/integration/jersey-2136/pom.xml
index 634324dbe9f..4608bee1092 100644
--- a/tests/integration/jersey-2136/pom.xml
+++ b/tests/integration/jersey-2136/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2136
diff --git a/tests/integration/jersey-2137/pom.xml b/tests/integration/jersey-2137/pom.xml
index 2f4eafc5b8c..51c815b7ad0 100644
--- a/tests/integration/jersey-2137/pom.xml
+++ b/tests/integration/jersey-2137/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2137
diff --git a/tests/integration/jersey-2154/pom.xml b/tests/integration/jersey-2154/pom.xml
index 45f25d8488e..1452856ef06 100644
--- a/tests/integration/jersey-2154/pom.xml
+++ b/tests/integration/jersey-2154/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2154
diff --git a/tests/integration/jersey-2160/pom.xml b/tests/integration/jersey-2160/pom.xml
index 5d2cc162960..7570efe5bf7 100644
--- a/tests/integration/jersey-2160/pom.xml
+++ b/tests/integration/jersey-2160/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2160
diff --git a/tests/integration/jersey-2164/pom.xml b/tests/integration/jersey-2164/pom.xml
index 3e23d4cf436..a6eb23b0aff 100644
--- a/tests/integration/jersey-2164/pom.xml
+++ b/tests/integration/jersey-2164/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2164
diff --git a/tests/integration/jersey-2167/pom.xml b/tests/integration/jersey-2167/pom.xml
index dbbf21560da..8f3fb216cfe 100644
--- a/tests/integration/jersey-2167/pom.xml
+++ b/tests/integration/jersey-2167/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2167
diff --git a/tests/integration/jersey-2176/pom.xml b/tests/integration/jersey-2176/pom.xml
index ce80a2e71eb..c82c63bde9f 100644
--- a/tests/integration/jersey-2176/pom.xml
+++ b/tests/integration/jersey-2176/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2176
diff --git a/tests/integration/jersey-2184/pom.xml b/tests/integration/jersey-2184/pom.xml
index 0599984b6a9..35ce2ee7b8f 100644
--- a/tests/integration/jersey-2184/pom.xml
+++ b/tests/integration/jersey-2184/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2184
diff --git a/tests/integration/jersey-2255/pom.xml b/tests/integration/jersey-2255/pom.xml
index 31c51502f9b..e26a96add3d 100644
--- a/tests/integration/jersey-2255/pom.xml
+++ b/tests/integration/jersey-2255/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2255
diff --git a/tests/integration/jersey-2322/pom.xml b/tests/integration/jersey-2322/pom.xml
index 309f71fc8f7..c137480cb99 100644
--- a/tests/integration/jersey-2322/pom.xml
+++ b/tests/integration/jersey-2322/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2322
diff --git a/tests/integration/jersey-2335/pom.xml b/tests/integration/jersey-2335/pom.xml
index 81335ccc902..9e4edaafd8a 100644
--- a/tests/integration/jersey-2335/pom.xml
+++ b/tests/integration/jersey-2335/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2335
diff --git a/tests/integration/jersey-2421/pom.xml b/tests/integration/jersey-2421/pom.xml
index 55e2bc7e6aa..68aca8a592e 100644
--- a/tests/integration/jersey-2421/pom.xml
+++ b/tests/integration/jersey-2421/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2421
diff --git a/tests/integration/jersey-2551/pom.xml b/tests/integration/jersey-2551/pom.xml
index ce2c269422b..97f80dc4b1c 100644
--- a/tests/integration/jersey-2551/pom.xml
+++ b/tests/integration/jersey-2551/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2551
diff --git a/tests/integration/jersey-2612/pom.xml b/tests/integration/jersey-2612/pom.xml
index 294dc90473e..4eeff8838c3 100644
--- a/tests/integration/jersey-2612/pom.xml
+++ b/tests/integration/jersey-2612/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2612
diff --git a/tests/integration/jersey-2637/pom.xml b/tests/integration/jersey-2637/pom.xml
index 5d6d2b983b4..c3add91d2a1 100644
--- a/tests/integration/jersey-2637/pom.xml
+++ b/tests/integration/jersey-2637/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2637
diff --git a/tests/integration/jersey-2654/pom.xml b/tests/integration/jersey-2654/pom.xml
index f8277b1f5b2..9e03b7b385f 100644
--- a/tests/integration/jersey-2654/pom.xml
+++ b/tests/integration/jersey-2654/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2654
diff --git a/tests/integration/jersey-2673/pom.xml b/tests/integration/jersey-2673/pom.xml
index bcd11d5ab4c..12f19b83920 100644
--- a/tests/integration/jersey-2673/pom.xml
+++ b/tests/integration/jersey-2673/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2673
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index cf66de835d3..eb54f43ee2b 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2689
diff --git a/tests/integration/jersey-2704/pom.xml b/tests/integration/jersey-2704/pom.xml
index c804bee61d0..1550ca6d3f6 100644
--- a/tests/integration/jersey-2704/pom.xml
+++ b/tests/integration/jersey-2704/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2704
diff --git a/tests/integration/jersey-2776/pom.xml b/tests/integration/jersey-2776/pom.xml
index 00442751dd3..aed02ed88c4 100644
--- a/tests/integration/jersey-2776/pom.xml
+++ b/tests/integration/jersey-2776/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2776
diff --git a/tests/integration/jersey-2794/pom.xml b/tests/integration/jersey-2794/pom.xml
index 86a684442fa..8b9f5edfaf9 100644
--- a/tests/integration/jersey-2794/pom.xml
+++ b/tests/integration/jersey-2794/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2794
diff --git a/tests/integration/jersey-2846/pom.xml b/tests/integration/jersey-2846/pom.xml
index 44b6dc5f611..3073f2033dc 100644
--- a/tests/integration/jersey-2846/pom.xml
+++ b/tests/integration/jersey-2846/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2846
diff --git a/tests/integration/jersey-2878/pom.xml b/tests/integration/jersey-2878/pom.xml
index 61b1c9d35fd..a9f658d1a84 100644
--- a/tests/integration/jersey-2878/pom.xml
+++ b/tests/integration/jersey-2878/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2878
diff --git a/tests/integration/jersey-2892/pom.xml b/tests/integration/jersey-2892/pom.xml
index 5aea57a9f62..9ff08ef4757 100644
--- a/tests/integration/jersey-2892/pom.xml
+++ b/tests/integration/jersey-2892/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-2892
diff --git a/tests/integration/jersey-3662/pom.xml b/tests/integration/jersey-3662/pom.xml
index dd23d8e83d5..1295fdd95c1 100644
--- a/tests/integration/jersey-3662/pom.xml
+++ b/tests/integration/jersey-3662/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/jersey-3670/pom.xml b/tests/integration/jersey-3670/pom.xml
index 63e1b4449d6..e6cd6da86a6 100644
--- a/tests/integration/jersey-3670/pom.xml
+++ b/tests/integration/jersey-3670/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-3670
diff --git a/tests/integration/jersey-3796/pom.xml b/tests/integration/jersey-3796/pom.xml
index 5eca63fe282..ccc6c1e4b2c 100644
--- a/tests/integration/jersey-3796/pom.xml
+++ b/tests/integration/jersey-3796/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-3796
diff --git a/tests/integration/jersey-3992/pom.xml b/tests/integration/jersey-3992/pom.xml
index acbfbb9a93b..a8b23f7e44f 100644
--- a/tests/integration/jersey-3992/pom.xml
+++ b/tests/integration/jersey-3992/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-3992
diff --git a/tests/integration/jersey-4003/pom.xml b/tests/integration/jersey-4003/pom.xml
index 4c84ba5fdbf..4ba41513ca1 100644
--- a/tests/integration/jersey-4003/pom.xml
+++ b/tests/integration/jersey-4003/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/jersey-4099/pom.xml b/tests/integration/jersey-4099/pom.xml
index 488d9ac8979..5f89e27b7ab 100644
--- a/tests/integration/jersey-4099/pom.xml
+++ b/tests/integration/jersey-4099/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-4099
diff --git a/tests/integration/jersey-4321/pom.xml b/tests/integration/jersey-4321/pom.xml
index 6cea96bb681..00ffd74a017 100644
--- a/tests/integration/jersey-4321/pom.xml
+++ b/tests/integration/jersey-4321/pom.xml
@@ -24,7 +24,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/jersey-4507/pom.xml b/tests/integration/jersey-4507/pom.xml
index 1d8671b9071..f2854b61c60 100644
--- a/tests/integration/jersey-4507/pom.xml
+++ b/tests/integration/jersey-4507/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/jersey-4542/pom.xml b/tests/integration/jersey-4542/pom.xml
index dad386b37ae..f4552fb2da5 100644
--- a/tests/integration/jersey-4542/pom.xml
+++ b/tests/integration/jersey-4542/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/jersey-4697/pom.xml b/tests/integration/jersey-4697/pom.xml
index 1bf92830725..483fcb48ff0 100644
--- a/tests/integration/jersey-4697/pom.xml
+++ b/tests/integration/jersey-4697/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/jersey-4722/pom.xml b/tests/integration/jersey-4722/pom.xml
index 43fabebd762..42a6179ea37 100644
--- a/tests/integration/jersey-4722/pom.xml
+++ b/tests/integration/jersey-4722/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/jersey-4949/pom.xml b/tests/integration/jersey-4949/pom.xml
index 90b762815db..21109f01ec5 100644
--- a/tests/integration/jersey-4949/pom.xml
+++ b/tests/integration/jersey-4949/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-4949
diff --git a/tests/integration/jersey-5087/pom.xml b/tests/integration/jersey-5087/pom.xml
index efbfe3c2e16..3d3fc769744 100644
--- a/tests/integration/jersey-5087/pom.xml
+++ b/tests/integration/jersey-5087/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/jersey-780/pom.xml b/tests/integration/jersey-780/pom.xml
index 884540c680b..bf745a7243b 100644
--- a/tests/integration/jersey-780/pom.xml
+++ b/tests/integration/jersey-780/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-780
diff --git a/tests/integration/microprofile/config/helidon/pom.xml b/tests/integration/microprofile/config/helidon/pom.xml
index 4252efc714b..24523539121 100644
--- a/tests/integration/microprofile/config/helidon/pom.xml
+++ b/tests/integration/microprofile/config/helidon/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/microprofile/config/pom.xml b/tests/integration/microprofile/config/pom.xml
index 16f7cdfb63f..0e35bd3f379 100644
--- a/tests/integration/microprofile/config/pom.xml
+++ b/tests/integration/microprofile/config/pom.xml
@@ -22,7 +22,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
pom
diff --git a/tests/integration/microprofile/config/webapp/pom.xml b/tests/integration/microprofile/config/webapp/pom.xml
index ed1d5edd285..bfe1646ade8 100644
--- a/tests/integration/microprofile/config/webapp/pom.xml
+++ b/tests/integration/microprofile/config/webapp/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/microprofile/pom.xml b/tests/integration/microprofile/pom.xml
index ef81370e9db..1c40372d9de 100644
--- a/tests/integration/microprofile/pom.xml
+++ b/tests/integration/microprofile/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
pom
diff --git a/tests/integration/microprofile/rest-client-tck/pom.xml b/tests/integration/microprofile/rest-client-tck/pom.xml
index 14e233474af..7e8c542c0a0 100644
--- a/tests/integration/microprofile/rest-client-tck/pom.xml
+++ b/tests/integration/microprofile/rest-client-tck/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/microprofile/rest-client/pom.xml b/tests/integration/microprofile/rest-client/pom.xml
index bce2a0da56d..f171f6a14b6 100644
--- a/tests/integration/microprofile/rest-client/pom.xml
+++ b/tests/integration/microprofile/rest-client/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index c0289fbf4b2..fb6fce8c1e8 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.tests.integration
diff --git a/tests/integration/property-check/pom.xml b/tests/integration/property-check/pom.xml
index b52a704760b..6d835922838 100644
--- a/tests/integration/property-check/pom.xml
+++ b/tests/integration/property-check/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
property-check
diff --git a/tests/integration/reactive-streams/pom.xml b/tests/integration/reactive-streams/pom.xml
index a3bd18578a5..256f6ebfa35 100644
--- a/tests/integration/reactive-streams/pom.xml
+++ b/tests/integration/reactive-streams/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
pom
diff --git a/tests/integration/reactive-streams/sse/pom.xml b/tests/integration/reactive-streams/sse/pom.xml
index 92abfb29eb3..28db96f9d31 100644
--- a/tests/integration/reactive-streams/sse/pom.xml
+++ b/tests/integration/reactive-streams/sse/pom.xml
@@ -22,7 +22,7 @@
reactive-streams-integration-project
org.glassfish.jersey.tests.integration.reactive
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/security-digest/pom.xml b/tests/integration/security-digest/pom.xml
index a6dd8348609..9cb14b2b56c 100644
--- a/tests/integration/security-digest/pom.xml
+++ b/tests/integration/security-digest/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
security-digest
diff --git a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
index c2fb0bb0649..828b5a511c1 100644
--- a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-autodiscovery-1
diff --git a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
index 1e603bd1319..e87f1c330a2 100644
--- a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-autodiscovery-2
diff --git a/tests/integration/servlet-2.5-filter/pom.xml b/tests/integration/servlet-2.5-filter/pom.xml
index 96f96610f77..d226975ffc2 100644
--- a/tests/integration/servlet-2.5-filter/pom.xml
+++ b/tests/integration/servlet-2.5-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-filter
diff --git a/tests/integration/servlet-2.5-inflector-1/pom.xml b/tests/integration/servlet-2.5-inflector-1/pom.xml
index b8af7662a95..ee7aa1f98cb 100644
--- a/tests/integration/servlet-2.5-inflector-1/pom.xml
+++ b/tests/integration/servlet-2.5-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-inflector-1
diff --git a/tests/integration/servlet-2.5-init-1/pom.xml b/tests/integration/servlet-2.5-init-1/pom.xml
index 04e2cc9ef72..07072bb6719 100644
--- a/tests/integration/servlet-2.5-init-1/pom.xml
+++ b/tests/integration/servlet-2.5-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-init-1
diff --git a/tests/integration/servlet-2.5-init-2/pom.xml b/tests/integration/servlet-2.5-init-2/pom.xml
index dc45781a2ad..464f21713d3 100644
--- a/tests/integration/servlet-2.5-init-2/pom.xml
+++ b/tests/integration/servlet-2.5-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-init-2
diff --git a/tests/integration/servlet-2.5-init-3/pom.xml b/tests/integration/servlet-2.5-init-3/pom.xml
index 02ba933fba3..b4cc5b316a1 100644
--- a/tests/integration/servlet-2.5-init-3/pom.xml
+++ b/tests/integration/servlet-2.5-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-init-3
diff --git a/tests/integration/servlet-2.5-init-4/pom.xml b/tests/integration/servlet-2.5-init-4/pom.xml
index 0072028cb76..5a52ef75646 100644
--- a/tests/integration/servlet-2.5-init-4/pom.xml
+++ b/tests/integration/servlet-2.5-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-init-4
diff --git a/tests/integration/servlet-2.5-init-5/pom.xml b/tests/integration/servlet-2.5-init-5/pom.xml
index adc7d4946e9..1ecfbe5329f 100644
--- a/tests/integration/servlet-2.5-init-5/pom.xml
+++ b/tests/integration/servlet-2.5-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-init-5
diff --git a/tests/integration/servlet-2.5-init-6/pom.xml b/tests/integration/servlet-2.5-init-6/pom.xml
index 7f3ac5b7b3c..b0f42ce657d 100644
--- a/tests/integration/servlet-2.5-init-6/pom.xml
+++ b/tests/integration/servlet-2.5-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-init-6
diff --git a/tests/integration/servlet-2.5-init-7/pom.xml b/tests/integration/servlet-2.5-init-7/pom.xml
index 50fbc74d3e5..5ce4b86d803 100644
--- a/tests/integration/servlet-2.5-init-7/pom.xml
+++ b/tests/integration/servlet-2.5-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-init-7
diff --git a/tests/integration/servlet-2.5-init-8/pom.xml b/tests/integration/servlet-2.5-init-8/pom.xml
index e3973955f57..cf6da4e098f 100644
--- a/tests/integration/servlet-2.5-init-8/pom.xml
+++ b/tests/integration/servlet-2.5-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-init-8
diff --git a/tests/integration/servlet-2.5-mvc-1/pom.xml b/tests/integration/servlet-2.5-mvc-1/pom.xml
index 63892cdb20b..fdeef897c5e 100644
--- a/tests/integration/servlet-2.5-mvc-1/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-mvc-1
diff --git a/tests/integration/servlet-2.5-mvc-2/pom.xml b/tests/integration/servlet-2.5-mvc-2/pom.xml
index cf3515d7a11..70c6b7c2f05 100644
--- a/tests/integration/servlet-2.5-mvc-2/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-mvc-2
diff --git a/tests/integration/servlet-2.5-mvc-3/pom.xml b/tests/integration/servlet-2.5-mvc-3/pom.xml
index 32d989dda22..c9c9c30776f 100644
--- a/tests/integration/servlet-2.5-mvc-3/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-mvc-3
diff --git a/tests/integration/servlet-2.5-reload/pom.xml b/tests/integration/servlet-2.5-reload/pom.xml
index dbafe7fecab..838f0ddd201 100644
--- a/tests/integration/servlet-2.5-reload/pom.xml
+++ b/tests/integration/servlet-2.5-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-2.5-reload
diff --git a/tests/integration/servlet-3-async/pom.xml b/tests/integration/servlet-3-async/pom.xml
index 71619d6eaeb..f40fc294522 100644
--- a/tests/integration/servlet-3-async/pom.xml
+++ b/tests/integration/servlet-3-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-async
diff --git a/tests/integration/servlet-3-chunked-io/pom.xml b/tests/integration/servlet-3-chunked-io/pom.xml
index 70a99953d2e..130e201b685 100644
--- a/tests/integration/servlet-3-chunked-io/pom.xml
+++ b/tests/integration/servlet-3-chunked-io/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-chunked-io
diff --git a/tests/integration/servlet-3-filter/pom.xml b/tests/integration/servlet-3-filter/pom.xml
index c5511749d4d..69ce6a65b87 100644
--- a/tests/integration/servlet-3-filter/pom.xml
+++ b/tests/integration/servlet-3-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-filter
diff --git a/tests/integration/servlet-3-gf-async/pom.xml b/tests/integration/servlet-3-gf-async/pom.xml
index f741e8f51d3..2eb92a93ff0 100644
--- a/tests/integration/servlet-3-gf-async/pom.xml
+++ b/tests/integration/servlet-3-gf-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-gf-async
diff --git a/tests/integration/servlet-3-inflector-1/pom.xml b/tests/integration/servlet-3-inflector-1/pom.xml
index 95bb384d1f1..f7008d226ae 100644
--- a/tests/integration/servlet-3-inflector-1/pom.xml
+++ b/tests/integration/servlet-3-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-inflector-1
diff --git a/tests/integration/servlet-3-init-1/pom.xml b/tests/integration/servlet-3-init-1/pom.xml
index 7c66926099f..9c5a044f2e2 100644
--- a/tests/integration/servlet-3-init-1/pom.xml
+++ b/tests/integration/servlet-3-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-init-1
diff --git a/tests/integration/servlet-3-init-2/pom.xml b/tests/integration/servlet-3-init-2/pom.xml
index ca8d028ed39..196380fef86 100644
--- a/tests/integration/servlet-3-init-2/pom.xml
+++ b/tests/integration/servlet-3-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-init-2
diff --git a/tests/integration/servlet-3-init-3/pom.xml b/tests/integration/servlet-3-init-3/pom.xml
index 5a37057e5fd..b1bf2200801 100644
--- a/tests/integration/servlet-3-init-3/pom.xml
+++ b/tests/integration/servlet-3-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-init-3
diff --git a/tests/integration/servlet-3-init-4/pom.xml b/tests/integration/servlet-3-init-4/pom.xml
index dde891b39ed..a6488338f51 100644
--- a/tests/integration/servlet-3-init-4/pom.xml
+++ b/tests/integration/servlet-3-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-init-4
diff --git a/tests/integration/servlet-3-init-5/pom.xml b/tests/integration/servlet-3-init-5/pom.xml
index 8adf7f68b5d..f633aa617b9 100644
--- a/tests/integration/servlet-3-init-5/pom.xml
+++ b/tests/integration/servlet-3-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-init-5
diff --git a/tests/integration/servlet-3-init-6/pom.xml b/tests/integration/servlet-3-init-6/pom.xml
index 59ec309e1ce..8e34c9c6f76 100644
--- a/tests/integration/servlet-3-init-6/pom.xml
+++ b/tests/integration/servlet-3-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-init-6
diff --git a/tests/integration/servlet-3-init-7/pom.xml b/tests/integration/servlet-3-init-7/pom.xml
index 5fdb6023bd5..0cbda95c447 100644
--- a/tests/integration/servlet-3-init-7/pom.xml
+++ b/tests/integration/servlet-3-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-init-7
diff --git a/tests/integration/servlet-3-init-8/pom.xml b/tests/integration/servlet-3-init-8/pom.xml
index f65d7c0390b..a88ed6a020a 100644
--- a/tests/integration/servlet-3-init-8/pom.xml
+++ b/tests/integration/servlet-3-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-init-8
diff --git a/tests/integration/servlet-3-init-9/pom.xml b/tests/integration/servlet-3-init-9/pom.xml
index bddea9f108d..c00298579d5 100644
--- a/tests/integration/servlet-3-init-9/pom.xml
+++ b/tests/integration/servlet-3-init-9/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-init-9
diff --git a/tests/integration/servlet-3-init-provider/pom.xml b/tests/integration/servlet-3-init-provider/pom.xml
index 07459d7b757..3c440b93642 100644
--- a/tests/integration/servlet-3-init-provider/pom.xml
+++ b/tests/integration/servlet-3-init-provider/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-init-provider
diff --git a/tests/integration/servlet-3-params/pom.xml b/tests/integration/servlet-3-params/pom.xml
index 967c2d07ac2..7c8e591507f 100644
--- a/tests/integration/servlet-3-params/pom.xml
+++ b/tests/integration/servlet-3-params/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-params
diff --git a/tests/integration/servlet-3-sse-1/pom.xml b/tests/integration/servlet-3-sse-1/pom.xml
index d71dd3aef06..93b54afe851 100644
--- a/tests/integration/servlet-3-sse-1/pom.xml
+++ b/tests/integration/servlet-3-sse-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-3-sse-1
diff --git a/tests/integration/servlet-4.0-mvc-1/pom.xml b/tests/integration/servlet-4.0-mvc-1/pom.xml
index 2aa24919af2..54b6a2db90d 100644
--- a/tests/integration/servlet-4.0-mvc-1/pom.xml
+++ b/tests/integration/servlet-4.0-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-4.0-mvc-1
diff --git a/tests/integration/servlet-request-wrapper-binding-2/pom.xml b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
index 52761de8e26..a7fac76a4e1 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-request-wrappper-binding-2
diff --git a/tests/integration/servlet-request-wrapper-binding/pom.xml b/tests/integration/servlet-request-wrapper-binding/pom.xml
index 1d0a4838ef5..87a7da58c3e 100644
--- a/tests/integration/servlet-request-wrapper-binding/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-request-wrappper-binding
diff --git a/tests/integration/servlet-tests/pom.xml b/tests/integration/servlet-tests/pom.xml
index 329b1b57263..acdf0a907c3 100644
--- a/tests/integration/servlet-tests/pom.xml
+++ b/tests/integration/servlet-tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
servlet-tests
diff --git a/tests/integration/sonar-test/pom.xml b/tests/integration/sonar-test/pom.xml
index 9dfddc2c0ff..0a99bf85f41 100644
--- a/tests/integration/sonar-test/pom.xml
+++ b/tests/integration/sonar-test/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
sonar-test
diff --git a/tests/integration/spring6/pom.xml b/tests/integration/spring6/pom.xml
index 6da46c52547..3c0201adae6 100644
--- a/tests/integration/spring6/pom.xml
+++ b/tests/integration/spring6/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
spring6
diff --git a/tests/integration/thin-server/pom.xml b/tests/integration/thin-server/pom.xml
index 8f9f511e013..dee37153392 100644
--- a/tests/integration/thin-server/pom.xml
+++ b/tests/integration/thin-server/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/integration/tracing-support/pom.xml b/tests/integration/tracing-support/pom.xml
index 384de24405c..0e629bcb20f 100644
--- a/tests/integration/tracing-support/pom.xml
+++ b/tests/integration/tracing-support/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0-SNAPSHOT
+ 3.1.0
tracing-support
diff --git a/tests/jmockit/pom.xml b/tests/jmockit/pom.xml
index 74de78523e3..0b45449b6a2 100644
--- a/tests/jmockit/pom.xml
+++ b/tests/jmockit/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests
- 3.1.0-SNAPSHOT
+ 3.1.0
4.0.0
diff --git a/tests/mem-leaks/pom.xml b/tests/mem-leaks/pom.xml
index f18ef800814..3bf3bd5f921 100644
--- a/tests/mem-leaks/pom.xml
+++ b/tests/mem-leaks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.tests.memleaks
diff --git a/tests/mem-leaks/redeployment/pom.xml b/tests/mem-leaks/redeployment/pom.xml
index 19c0244b2e9..bd04c1644e9 100644
--- a/tests/mem-leaks/redeployment/pom.xml
+++ b/tests/mem-leaks/redeployment/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.tests.memleaks.redeployment
diff --git a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
index e56381d8bb0..89af4f0a52b 100644
--- a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.1.0-SNAPSHOT
+ 3.1.0
redeployment-hello-world-app-ref
@@ -132,7 +132,7 @@
org.glassfish.jersey.examples
helloworld-webapp
war
- 3.1.0-SNAPSHOT
+ 3.1.0
diff --git a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
index 294bd3cd5ac..27fa6a73c1b 100644
--- a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.1.0-SNAPSHOT
+ 3.1.0
redeployment-leaking-test-app
diff --git a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
index 77337b8ffc9..ab349080458 100644
--- a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.1.0-SNAPSHOT
+ 3.1.0
redeployment-no-jersey-app
diff --git a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
index 459badbace3..b92ec84cdef 100644
--- a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.1.0-SNAPSHOT
+ 3.1.0
redeployment-threadlocals-app
diff --git a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
index 51ab9701d8b..47adbd8cd19 100644
--- a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
bean-param-leak
diff --git a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
index 3be0eba0883..56422c61001 100644
--- a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
+++ b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
leaking-test-app
diff --git a/tests/mem-leaks/test-cases/pom.xml b/tests/mem-leaks/test-cases/pom.xml
index 29b013dfd15..8d6d655895a 100644
--- a/tests/mem-leaks/test-cases/pom.xml
+++ b/tests/mem-leaks/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.tests.memleaks.testcases
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
index faa55ad6ba5..da31354c716 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
shutdown-hook-leak-client
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
index f6548b61ed4..975e0201477 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
shutdown-hook-leak
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index 10fc8629e10..fd167cddfd2 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.osgi
project
- 3.1.0-SNAPSHOT
+ 3.1.0
jersey-tests-osgi-functional
diff --git a/tests/osgi/pom.xml b/tests/osgi/pom.xml
index 989185ab4ee..10db9b015e1 100644
--- a/tests/osgi/pom.xml
+++ b/tests/osgi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.tests.osgi
diff --git a/tests/performance/benchmarks/pom.xml b/tests/performance/benchmarks/pom.xml
index 07cbc44237b..2a92a4802e9 100644
--- a/tests/performance/benchmarks/pom.xml
+++ b/tests/performance/benchmarks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.1.0-SNAPSHOT
+ 3.1.0
performance-test-benchmarks
diff --git a/tests/performance/pom.xml b/tests/performance/pom.xml
index 05a862021ca..b12e7d2e2d1 100644
--- a/tests/performance/pom.xml
+++ b/tests/performance/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.tests.performance
diff --git a/tests/performance/runners/jersey-grizzly-runner/pom.xml b/tests/performance/runners/jersey-grizzly-runner/pom.xml
index 6868a036671..0190f83e31e 100644
--- a/tests/performance/runners/jersey-grizzly-runner/pom.xml
+++ b/tests/performance/runners/jersey-grizzly-runner/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.runners
project
- 3.1.0-SNAPSHOT
+ 3.1.0
diff --git a/tests/performance/runners/pom.xml b/tests/performance/runners/pom.xml
index 02b7c6dcd11..45419fba256 100644
--- a/tests/performance/runners/pom.xml
+++ b/tests/performance/runners/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.tests.performance.runners
diff --git a/tests/performance/test-cases/assemblies/pom.xml b/tests/performance/test-cases/assemblies/pom.xml
index ae8fe5f9ce2..ca375d4a5e1 100644
--- a/tests/performance/test-cases/assemblies/pom.xml
+++ b/tests/performance/test-cases/assemblies/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
assemblies
diff --git a/tests/performance/test-cases/filter-dynamic/pom.xml b/tests/performance/test-cases/filter-dynamic/pom.xml
index 003a2ce98ed..6bc1a89719d 100644
--- a/tests/performance/test-cases/filter-dynamic/pom.xml
+++ b/tests/performance/test-cases/filter-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
filter-dynamic
diff --git a/tests/performance/test-cases/filter-global/pom.xml b/tests/performance/test-cases/filter-global/pom.xml
index 8cdc81e9f58..e33a428882d 100644
--- a/tests/performance/test-cases/filter-global/pom.xml
+++ b/tests/performance/test-cases/filter-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
filter-global
diff --git a/tests/performance/test-cases/filter-name/pom.xml b/tests/performance/test-cases/filter-name/pom.xml
index 19c273115d2..b2c6bbd407a 100644
--- a/tests/performance/test-cases/filter-name/pom.xml
+++ b/tests/performance/test-cases/filter-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
filter-name
diff --git a/tests/performance/test-cases/interceptor-dynamic/pom.xml b/tests/performance/test-cases/interceptor-dynamic/pom.xml
index 57378ead789..79736426b5f 100644
--- a/tests/performance/test-cases/interceptor-dynamic/pom.xml
+++ b/tests/performance/test-cases/interceptor-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
interceptor-dynamic
diff --git a/tests/performance/test-cases/interceptor-global/pom.xml b/tests/performance/test-cases/interceptor-global/pom.xml
index 6afa505ab0a..ef08dd8ffdd 100644
--- a/tests/performance/test-cases/interceptor-global/pom.xml
+++ b/tests/performance/test-cases/interceptor-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
interceptor-global
diff --git a/tests/performance/test-cases/interceptor-name/pom.xml b/tests/performance/test-cases/interceptor-name/pom.xml
index 2ec1e087ccc..5104dfd2c19 100644
--- a/tests/performance/test-cases/interceptor-name/pom.xml
+++ b/tests/performance/test-cases/interceptor-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
interceptor-name
diff --git a/tests/performance/test-cases/mbw-custom-provider/pom.xml b/tests/performance/test-cases/mbw-custom-provider/pom.xml
index f340afd6a0a..fc4e3a3a59c 100644
--- a/tests/performance/test-cases/mbw-custom-provider/pom.xml
+++ b/tests/performance/test-cases/mbw-custom-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
custom-provider
diff --git a/tests/performance/test-cases/mbw-json-jackson/pom.xml b/tests/performance/test-cases/mbw-json-jackson/pom.xml
index e8b343b45e6..92d4373f782 100644
--- a/tests/performance/test-cases/mbw-json-jackson/pom.xml
+++ b/tests/performance/test-cases/mbw-json-jackson/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
json-jackson
diff --git a/tests/performance/test-cases/mbw-json-moxy/pom.xml b/tests/performance/test-cases/mbw-json-moxy/pom.xml
index ea3f2a11254..a4b085cacc8 100644
--- a/tests/performance/test-cases/mbw-json-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-json-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
json-moxy
diff --git a/tests/performance/test-cases/mbw-kryo/pom.xml b/tests/performance/test-cases/mbw-kryo/pom.xml
index fdada6df314..e1035a0640b 100644
--- a/tests/performance/test-cases/mbw-kryo/pom.xml
+++ b/tests/performance/test-cases/mbw-kryo/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
mbw-kryo
diff --git a/tests/performance/test-cases/mbw-text-plain/pom.xml b/tests/performance/test-cases/mbw-text-plain/pom.xml
index 6b62603041e..0bd7d98ff8e 100644
--- a/tests/performance/test-cases/mbw-text-plain/pom.xml
+++ b/tests/performance/test-cases/mbw-text-plain/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
text-plain
diff --git a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
index b046d5635bc..df556089b0e 100644
--- a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
xml-jaxb
diff --git a/tests/performance/test-cases/mbw-xml-moxy/pom.xml b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
index d8ed09428bf..d37c5b78f0a 100644
--- a/tests/performance/test-cases/mbw-xml-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
xml-moxy
diff --git a/tests/performance/test-cases/param-srl/pom.xml b/tests/performance/test-cases/param-srl/pom.xml
index 77734a37f70..3fe24677908 100644
--- a/tests/performance/test-cases/param-srl/pom.xml
+++ b/tests/performance/test-cases/param-srl/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
param-srl
diff --git a/tests/performance/test-cases/pom.xml b/tests/performance/test-cases/pom.xml
index 409b6c3eedd..7be22bf34a9 100644
--- a/tests/performance/test-cases/pom.xml
+++ b/tests/performance/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.tests.performance.testcases
diff --git a/tests/performance/test-cases/proxy-injection/pom.xml b/tests/performance/test-cases/proxy-injection/pom.xml
index b579a0bfc6e..c6d456b7f34 100644
--- a/tests/performance/test-cases/proxy-injection/pom.xml
+++ b/tests/performance/test-cases/proxy-injection/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0-SNAPSHOT
+ 3.1.0
proxy-injection
diff --git a/tests/performance/tools/pom.xml b/tests/performance/tools/pom.xml
index 98c2f34c436..d6289ce0022 100644
--- a/tests/performance/tools/pom.xml
+++ b/tests/performance/tools/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.tests.performance.tools
performance-test-tools
diff --git a/tests/pom.xml b/tests/pom.xml
index 700f42e00bd..d7de6c329f3 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0-SNAPSHOT
+ 3.1.0
org.glassfish.jersey.tests
diff --git a/tests/stress/pom.xml b/tests/stress/pom.xml
index 95a9b8876bf..7b28a8cfbc6 100644
--- a/tests/stress/pom.xml
+++ b/tests/stress/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0-SNAPSHOT
+ 3.1.0
stress
From aafe8c7e061ba2eb4707dc6feeac57d5b6c31ec9 Mon Sep 17 00:00:00 2001
From: jersey-bot
Date: Fri, 4 Nov 2022 07:23:35 +0000
Subject: [PATCH 119/305] 3.1.99-SNAPSHOT
---
archetypes/jersey-example-java8-webapp/pom.xml | 2 +-
archetypes/jersey-heroku-webapp/pom.xml | 2 +-
archetypes/jersey-quickstart-grizzly2/pom.xml | 2 +-
archetypes/jersey-quickstart-webapp/pom.xml | 2 +-
archetypes/pom.xml | 2 +-
bom/pom.xml | 2 +-
bundles/apidocs/pom.xml | 2 +-
bundles/examples/pom.xml | 2 +-
bundles/jaxrs-ri/pom.xml | 2 +-
bundles/pom.xml | 2 +-
connectors/apache-connector/pom.xml | 2 +-
connectors/apache5-connector/pom.xml | 2 +-
connectors/grizzly-connector/pom.xml | 2 +-
connectors/helidon-connector/pom.xml | 2 +-
connectors/jdk-connector/pom.xml | 2 +-
connectors/jetty-connector/pom.xml | 2 +-
connectors/jnh-connector/pom.xml | 2 +-
connectors/netty-connector/pom.xml | 2 +-
connectors/pom.xml | 2 +-
containers/glassfish/jersey-gf-ejb/pom.xml | 2 +-
containers/glassfish/pom.xml | 2 +-
containers/grizzly2-http/pom.xml | 2 +-
containers/grizzly2-servlet/pom.xml | 2 +-
containers/jdk-http/pom.xml | 2 +-
containers/jersey-servlet-core/pom.xml | 2 +-
containers/jersey-servlet/pom.xml | 2 +-
containers/jetty-http/pom.xml | 2 +-
containers/jetty-servlet/pom.xml | 2 +-
containers/netty-http/pom.xml | 2 +-
containers/pom.xml | 2 +-
containers/simple-http/pom.xml | 2 +-
core-client/pom.xml | 2 +-
core-common/pom.xml | 2 +-
core-server/pom.xml | 2 +-
docs/pom.xml | 2 +-
examples/assemblies/pom.xml | 2 +-
examples/bookmark-em/pom.xml | 2 +-
examples/bookmark/pom.xml | 2 +-
examples/bookstore-webapp/pom.xml | 2 +-
examples/cdi-webapp/pom.xml | 2 +-
examples/clipboard-programmatic/pom.xml | 2 +-
examples/clipboard/pom.xml | 2 +-
examples/declarative-linking/pom.xml | 2 +-
examples/entity-filtering-security/pom.xml | 2 +-
examples/entity-filtering-selectable/pom.xml | 2 +-
examples/entity-filtering/pom.xml | 2 +-
examples/exception-mapping/pom.xml | 2 +-
examples/extended-wadl-webapp/pom.xml | 2 +-
examples/freemarker-webapp/pom.xml | 2 +-
examples/groovy/pom.xml | 2 +-
examples/helloworld-benchmark/pom.xml | 2 +-
examples/helloworld-cdi2-se/pom.xml | 2 +-
examples/helloworld-netty/pom.xml | 2 +-
examples/helloworld-programmatic/pom.xml | 2 +-
examples/helloworld-pure-jax-rs/pom.xml | 2 +-
examples/helloworld-spring-annotations/pom.xml | 2 +-
examples/helloworld-spring-webapp/pom.xml | 2 +-
examples/helloworld-webapp/pom.xml | 2 +-
examples/helloworld-weld/pom.xml | 2 +-
examples/helloworld/pom.xml | 2 +-
examples/http-patch/pom.xml | 2 +-
examples/http-trace/pom.xml | 2 +-
examples/https-clientserver-grizzly/pom.xml | 2 +-
examples/https-server-glassfish/pom.xml | 2 +-
examples/java8-webapp/pom.xml | 2 +-
examples/jaxb/pom.xml | 2 +-
examples/jaxrs-types-injection/pom.xml | 2 +-
examples/jersey-ejb/pom.xml | 2 +-
examples/json-binding-webapp/pom.xml | 2 +-
examples/json-jackson/pom.xml | 2 +-
examples/json-jettison/pom.xml | 2 +-
examples/json-moxy/pom.xml | 2 +-
examples/json-processing-webapp/pom.xml | 2 +-
examples/json-with-padding/pom.xml | 2 +-
examples/managed-beans-webapp/pom.xml | 2 +-
examples/managed-client-simple-webapp/pom.xml | 2 +-
examples/managed-client-webapp/pom.xml | 2 +-
examples/managed-client/pom.xml | 2 +-
examples/multipart-webapp/pom.xml | 2 +-
examples/oauth-client-twitter/pom.xml | 2 +-
examples/open-tracing/pom.xml | 2 +-
examples/osgi-helloworld-webapp/additional-bundle/pom.xml | 2 +-
.../osgi-helloworld-webapp/alternate-version-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/functional-test/pom.xml | 2 +-
examples/osgi-helloworld-webapp/lib-bundle/pom.xml | 2 +-
examples/osgi-helloworld-webapp/pom.xml | 2 +-
examples/osgi-helloworld-webapp/war-bundle/pom.xml | 2 +-
examples/pom.xml | 2 +-
examples/reload/pom.xml | 2 +-
examples/rx-client-webapp/pom.xml | 2 +-
examples/server-async-managed/pom.xml | 2 +-
examples/server-async-standalone/client/pom.xml | 2 +-
examples/server-async-standalone/pom.xml | 2 +-
examples/server-async-standalone/webapp/pom.xml | 2 +-
examples/server-async/pom.xml | 2 +-
examples/server-sent-events-jaxrs/pom.xml | 2 +-
examples/server-sent-events-jersey/pom.xml | 2 +-
examples/servlet3-webapp/pom.xml | 2 +-
examples/simple-console/pom.xml | 2 +-
examples/sse-item-store-jaxrs-webapp/pom.xml | 2 +-
examples/sse-item-store-jersey-webapp/pom.xml | 2 +-
examples/sse-twitter-aggregator/pom.xml | 2 +-
examples/system-properties-example/pom.xml | 2 +-
examples/webapp-example-parent/pom.xml | 2 +-
examples/xml-moxy/pom.xml | 2 +-
ext/bean-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi-rs-inject/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-servlet/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-transaction/pom.xml | 2 +-
ext/cdi/jersey-cdi1x-validation/pom.xml | 2 +-
ext/cdi/jersey-cdi1x/pom.xml | 2 +-
ext/cdi/jersey-weld2-se/pom.xml | 2 +-
ext/cdi/pom.xml | 2 +-
ext/entity-filtering/pom.xml | 2 +-
ext/metainf-services/pom.xml | 2 +-
ext/microprofile/mp-config/pom.xml | 2 +-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/microprofile/pom.xml | 2 +-
ext/mvc-bean-validation/pom.xml | 2 +-
ext/mvc-freemarker/pom.xml | 2 +-
ext/mvc-jsp/pom.xml | 2 +-
ext/mvc-mustache/pom.xml | 2 +-
ext/mvc/pom.xml | 2 +-
ext/pom.xml | 2 +-
ext/proxy-client/pom.xml | 2 +-
ext/rx/pom.xml | 2 +-
ext/rx/rx-client-guava/pom.xml | 2 +-
ext/rx/rx-client-rxjava/pom.xml | 2 +-
ext/rx/rx-client-rxjava2/pom.xml | 2 +-
ext/spring6/pom.xml | 2 +-
ext/wadl-doclet/pom.xml | 2 +-
incubator/cdi-inject-weld/pom.xml | 2 +-
incubator/declarative-linking/pom.xml | 2 +-
incubator/gae-integration/pom.xml | 2 +-
incubator/html-json/pom.xml | 2 +-
incubator/kryo/pom.xml | 2 +-
incubator/open-tracing/pom.xml | 2 +-
incubator/pom.xml | 2 +-
inject/cdi2-se/pom.xml | 2 +-
inject/hk2/pom.xml | 2 +-
inject/pom.xml | 2 +-
media/jaxb/pom.xml | 2 +-
media/json-binding/pom.xml | 2 +-
media/json-gson/pom.xml | 2 +-
media/json-jackson/pom.xml | 2 +-
media/json-jettison/pom.xml | 2 +-
media/json-processing/pom.xml | 2 +-
media/moxy/pom.xml | 2 +-
media/multipart/pom.xml | 2 +-
media/pom.xml | 2 +-
media/sse/pom.xml | 2 +-
pom.xml | 2 +-
security/oauth1-client/pom.xml | 2 +-
security/oauth1-server/pom.xml | 2 +-
security/oauth1-signature/pom.xml | 2 +-
security/oauth2-client/pom.xml | 2 +-
security/pom.xml | 2 +-
test-framework/core/pom.xml | 2 +-
test-framework/maven/container-runner-maven-plugin/pom.xml | 2 +-
test-framework/maven/custom-enforcer-rules/pom.xml | 2 +-
test-framework/maven/pom.xml | 2 +-
test-framework/memleak-test-common/pom.xml | 2 +-
test-framework/pom.xml | 2 +-
test-framework/providers/bundle/pom.xml | 2 +-
test-framework/providers/external/pom.xml | 2 +-
test-framework/providers/grizzly2/pom.xml | 2 +-
test-framework/providers/inmemory/pom.xml | 2 +-
test-framework/providers/jdk-http/pom.xml | 2 +-
test-framework/providers/jetty/pom.xml | 2 +-
test-framework/providers/netty/pom.xml | 2 +-
test-framework/providers/pom.xml | 2 +-
test-framework/providers/simple/pom.xml | 2 +-
test-framework/util/pom.xml | 2 +-
tests/e2e-client/pom.xml | 2 +-
tests/e2e-core-common/pom.xml | 2 +-
tests/e2e-entity/pom.xml | 2 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 2 +-
tests/e2e-inject/cdi2-se/pom.xml | 2 +-
tests/e2e-inject/hk2/pom.xml | 2 +-
tests/e2e-inject/pom.xml | 2 +-
tests/e2e-server/pom.xml | 2 +-
tests/e2e-testng/pom.xml | 2 +-
tests/e2e/pom.xml | 2 +-
tests/integration/asm/pom.xml | 2 +-
tests/integration/async-jersey-filter/pom.xml | 2 +-
.../cdi-integration/cdi-beanvalidation-webapp/pom.xml | 2 +-
.../integration/cdi-integration/cdi-client-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-client/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml | 2 +-
.../cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-log-check/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-manually-bound/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-multimodule/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war1/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multimodule/war2/pom.xml | 2 +-
.../integration/cdi-integration/cdi-multipart-webapp/pom.xml | 2 +-
.../cdi-integration/cdi-resource-with-at-context/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-singleton/pom.xml | 2 +-
tests/integration/cdi-integration/cdi-test-webapp/pom.xml | 2 +-
.../cdi-with-jersey-injection-custom-cfg-webapp/pom.xml | 2 +-
.../pom.xml | 2 +-
.../cdi-integration/cdi-with-jersey-injection-webapp/pom.xml | 2 +-
.../cdi-integration/context-inject-on-server/pom.xml | 2 +-
tests/integration/cdi-integration/gf-cdi-inject/pom.xml | 2 +-
tests/integration/cdi-integration/pom.xml | 2 +-
tests/integration/client-connector-provider/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war1/pom.xml | 2 +-
tests/integration/ejb-multimodule-reload/war2/pom.xml | 2 +-
tests/integration/ejb-multimodule/ear/pom.xml | 2 +-
tests/integration/ejb-multimodule/lib/pom.xml | 2 +-
tests/integration/ejb-multimodule/pom.xml | 2 +-
tests/integration/ejb-multimodule/war/pom.xml | 2 +-
tests/integration/ejb-test-webapp/pom.xml | 2 +-
tests/integration/externalproperties/pom.xml | 2 +-
tests/integration/j-376/pom.xml | 2 +-
tests/integration/j-441/ear/pom.xml | 2 +-
tests/integration/j-441/pom.xml | 2 +-
tests/integration/j-441/war1/pom.xml | 2 +-
tests/integration/j-441/war2/pom.xml | 2 +-
tests/integration/j-59/ear/pom.xml | 2 +-
tests/integration/j-59/lib/pom.xml | 2 +-
tests/integration/j-59/pom.xml | 2 +-
tests/integration/j-59/war/pom.xml | 2 +-
tests/integration/jaxrs-component-inject/pom.xml | 2 +-
tests/integration/jersey-1107/pom.xml | 2 +-
tests/integration/jersey-1223/pom.xml | 2 +-
tests/integration/jersey-1604/pom.xml | 2 +-
tests/integration/jersey-1667/pom.xml | 2 +-
tests/integration/jersey-1883/pom.xml | 2 +-
tests/integration/jersey-1928/pom.xml | 2 +-
tests/integration/jersey-1960/pom.xml | 2 +-
tests/integration/jersey-1964/pom.xml | 2 +-
tests/integration/jersey-2031/pom.xml | 2 +-
tests/integration/jersey-2136/pom.xml | 2 +-
tests/integration/jersey-2137/pom.xml | 2 +-
tests/integration/jersey-2154/pom.xml | 2 +-
tests/integration/jersey-2160/pom.xml | 2 +-
tests/integration/jersey-2164/pom.xml | 2 +-
tests/integration/jersey-2167/pom.xml | 2 +-
tests/integration/jersey-2176/pom.xml | 2 +-
tests/integration/jersey-2184/pom.xml | 2 +-
tests/integration/jersey-2255/pom.xml | 2 +-
tests/integration/jersey-2322/pom.xml | 2 +-
tests/integration/jersey-2335/pom.xml | 2 +-
tests/integration/jersey-2421/pom.xml | 2 +-
tests/integration/jersey-2551/pom.xml | 2 +-
tests/integration/jersey-2612/pom.xml | 2 +-
tests/integration/jersey-2637/pom.xml | 2 +-
tests/integration/jersey-2654/pom.xml | 2 +-
tests/integration/jersey-2673/pom.xml | 2 +-
tests/integration/jersey-2689/pom.xml | 2 +-
tests/integration/jersey-2704/pom.xml | 2 +-
tests/integration/jersey-2776/pom.xml | 2 +-
tests/integration/jersey-2794/pom.xml | 2 +-
tests/integration/jersey-2846/pom.xml | 2 +-
tests/integration/jersey-2878/pom.xml | 2 +-
tests/integration/jersey-2892/pom.xml | 2 +-
tests/integration/jersey-3662/pom.xml | 2 +-
tests/integration/jersey-3670/pom.xml | 2 +-
tests/integration/jersey-3796/pom.xml | 2 +-
tests/integration/jersey-3992/pom.xml | 2 +-
tests/integration/jersey-4003/pom.xml | 2 +-
tests/integration/jersey-4099/pom.xml | 2 +-
tests/integration/jersey-4321/pom.xml | 2 +-
tests/integration/jersey-4507/pom.xml | 2 +-
tests/integration/jersey-4542/pom.xml | 2 +-
tests/integration/jersey-4697/pom.xml | 2 +-
tests/integration/jersey-4722/pom.xml | 2 +-
tests/integration/jersey-4949/pom.xml | 2 +-
tests/integration/jersey-5087/pom.xml | 2 +-
tests/integration/jersey-780/pom.xml | 2 +-
tests/integration/microprofile/config/helidon/pom.xml | 2 +-
tests/integration/microprofile/config/pom.xml | 2 +-
tests/integration/microprofile/config/webapp/pom.xml | 2 +-
tests/integration/microprofile/pom.xml | 2 +-
tests/integration/microprofile/rest-client-tck/pom.xml | 2 +-
tests/integration/microprofile/rest-client/pom.xml | 2 +-
tests/integration/pom.xml | 2 +-
tests/integration/property-check/pom.xml | 2 +-
tests/integration/reactive-streams/pom.xml | 2 +-
tests/integration/reactive-streams/sse/pom.xml | 2 +-
tests/integration/security-digest/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-1/pom.xml | 2 +-
tests/integration/servlet-2.5-autodiscovery-2/pom.xml | 2 +-
tests/integration/servlet-2.5-filter/pom.xml | 2 +-
tests/integration/servlet-2.5-inflector-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-1/pom.xml | 2 +-
tests/integration/servlet-2.5-init-2/pom.xml | 2 +-
tests/integration/servlet-2.5-init-3/pom.xml | 2 +-
tests/integration/servlet-2.5-init-4/pom.xml | 2 +-
tests/integration/servlet-2.5-init-5/pom.xml | 2 +-
tests/integration/servlet-2.5-init-6/pom.xml | 2 +-
tests/integration/servlet-2.5-init-7/pom.xml | 2 +-
tests/integration/servlet-2.5-init-8/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-1/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-2/pom.xml | 2 +-
tests/integration/servlet-2.5-mvc-3/pom.xml | 2 +-
tests/integration/servlet-2.5-reload/pom.xml | 2 +-
tests/integration/servlet-3-async/pom.xml | 2 +-
tests/integration/servlet-3-chunked-io/pom.xml | 2 +-
tests/integration/servlet-3-filter/pom.xml | 2 +-
tests/integration/servlet-3-gf-async/pom.xml | 2 +-
tests/integration/servlet-3-inflector-1/pom.xml | 2 +-
tests/integration/servlet-3-init-1/pom.xml | 2 +-
tests/integration/servlet-3-init-2/pom.xml | 2 +-
tests/integration/servlet-3-init-3/pom.xml | 2 +-
tests/integration/servlet-3-init-4/pom.xml | 2 +-
tests/integration/servlet-3-init-5/pom.xml | 2 +-
tests/integration/servlet-3-init-6/pom.xml | 2 +-
tests/integration/servlet-3-init-7/pom.xml | 2 +-
tests/integration/servlet-3-init-8/pom.xml | 2 +-
tests/integration/servlet-3-init-9/pom.xml | 2 +-
tests/integration/servlet-3-init-provider/pom.xml | 2 +-
tests/integration/servlet-3-params/pom.xml | 2 +-
tests/integration/servlet-3-sse-1/pom.xml | 2 +-
tests/integration/servlet-4.0-mvc-1/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding-2/pom.xml | 2 +-
tests/integration/servlet-request-wrapper-binding/pom.xml | 2 +-
tests/integration/servlet-tests/pom.xml | 2 +-
tests/integration/sonar-test/pom.xml | 2 +-
tests/integration/spring6/pom.xml | 2 +-
tests/integration/thin-server/pom.xml | 2 +-
tests/integration/tracing-support/pom.xml | 2 +-
tests/jmockit/pom.xml | 2 +-
tests/mem-leaks/pom.xml | 2 +-
tests/mem-leaks/redeployment/pom.xml | 2 +-
.../redeployment/redeployment-hello-world-app-ref/pom.xml | 4 ++--
.../redeployment/redeployment-leaking-test-app/pom.xml | 2 +-
.../mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml | 2 +-
.../redeployment/redeployment-threadlocals-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/bean-param-leak/pom.xml | 2 +-
tests/mem-leaks/test-cases/leaking-test-app/pom.xml | 2 +-
tests/mem-leaks/test-cases/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml | 2 +-
tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml | 2 +-
tests/osgi/functional/pom.xml | 2 +-
tests/osgi/pom.xml | 2 +-
tests/performance/benchmarks/pom.xml | 2 +-
tests/performance/pom.xml | 2 +-
tests/performance/runners/jersey-grizzly-runner/pom.xml | 2 +-
tests/performance/runners/pom.xml | 2 +-
tests/performance/test-cases/assemblies/pom.xml | 2 +-
tests/performance/test-cases/filter-dynamic/pom.xml | 2 +-
tests/performance/test-cases/filter-global/pom.xml | 2 +-
tests/performance/test-cases/filter-name/pom.xml | 2 +-
tests/performance/test-cases/interceptor-dynamic/pom.xml | 2 +-
tests/performance/test-cases/interceptor-global/pom.xml | 2 +-
tests/performance/test-cases/interceptor-name/pom.xml | 2 +-
tests/performance/test-cases/mbw-custom-provider/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-jackson/pom.xml | 2 +-
tests/performance/test-cases/mbw-json-moxy/pom.xml | 2 +-
tests/performance/test-cases/mbw-kryo/pom.xml | 2 +-
tests/performance/test-cases/mbw-text-plain/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-jaxb/pom.xml | 2 +-
tests/performance/test-cases/mbw-xml-moxy/pom.xml | 2 +-
tests/performance/test-cases/param-srl/pom.xml | 2 +-
tests/performance/test-cases/pom.xml | 2 +-
tests/performance/test-cases/proxy-injection/pom.xml | 2 +-
tests/performance/tools/pom.xml | 2 +-
tests/pom.xml | 2 +-
tests/stress/pom.xml | 2 +-
367 files changed, 368 insertions(+), 368 deletions(-)
diff --git a/archetypes/jersey-example-java8-webapp/pom.xml b/archetypes/jersey-example-java8-webapp/pom.xml
index 48eda1e667a..e7b272622b9 100644
--- a/archetypes/jersey-example-java8-webapp/pom.xml
+++ b/archetypes/jersey-example-java8-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-example-java8-webapp
diff --git a/archetypes/jersey-heroku-webapp/pom.xml b/archetypes/jersey-heroku-webapp/pom.xml
index 1b1f377986b..ae5c66eaa30 100644
--- a/archetypes/jersey-heroku-webapp/pom.xml
+++ b/archetypes/jersey-heroku-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0
+ 3.1.99-SNAPSHOT
maven-archetype
diff --git a/archetypes/jersey-quickstart-grizzly2/pom.xml b/archetypes/jersey-quickstart-grizzly2/pom.xml
index 17923f1a2a7..177caa18f19 100644
--- a/archetypes/jersey-quickstart-grizzly2/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-quickstart-grizzly2
maven-archetype
diff --git a/archetypes/jersey-quickstart-webapp/pom.xml b/archetypes/jersey-quickstart-webapp/pom.xml
index 42432d47079..89046381971 100644
--- a/archetypes/jersey-quickstart-webapp/pom.xml
+++ b/archetypes/jersey-quickstart-webapp/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.archetypes
project
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
maven-archetype
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index c97fc1644f4..e43e6779992 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.archetypes
diff --git a/bom/pom.xml b/bom/pom.xml
index f6e4c09053e..e7e0b97d614 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -30,7 +30,7 @@
org.glassfish.jersey
jersey-bom
- 3.1.0
+ 3.1.99-SNAPSHOT
pom
jersey-bom
diff --git a/bundles/apidocs/pom.xml b/bundles/apidocs/pom.xml
index 85d7c5764a5..0d4c0882231 100644
--- a/bundles/apidocs/pom.xml
+++ b/bundles/apidocs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.1.0
+ 3.1.99-SNAPSHOT
apidocs
diff --git a/bundles/examples/pom.xml b/bundles/examples/pom.xml
index a9a126d7bc1..54ef0c7bd59 100644
--- a/bundles/examples/pom.xml
+++ b/bundles/examples/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.bundles
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-examples
diff --git a/bundles/jaxrs-ri/pom.xml b/bundles/jaxrs-ri/pom.xml
index 9691d6478d3..20fc154da48 100644
--- a/bundles/jaxrs-ri/pom.xml
+++ b/bundles/jaxrs-ri/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.bundles
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jaxrs-ri
diff --git a/bundles/pom.xml b/bundles/pom.xml
index 7f8ebb00ffd..06b7c7d56cc 100644
--- a/bundles/pom.xml
+++ b/bundles/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.bundles
diff --git a/connectors/apache-connector/pom.xml b/connectors/apache-connector/pom.xml
index de0072ad7ee..24e927ed91e 100644
--- a/connectors/apache-connector/pom.xml
+++ b/connectors/apache-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-apache-connector
diff --git a/connectors/apache5-connector/pom.xml b/connectors/apache5-connector/pom.xml
index 9163fb39c63..2915b6ef10e 100644
--- a/connectors/apache5-connector/pom.xml
+++ b/connectors/apache5-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-apache5-connector
diff --git a/connectors/grizzly-connector/pom.xml b/connectors/grizzly-connector/pom.xml
index 4858726ca0a..cc3302f39d6 100644
--- a/connectors/grizzly-connector/pom.xml
+++ b/connectors/grizzly-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-grizzly-connector
diff --git a/connectors/helidon-connector/pom.xml b/connectors/helidon-connector/pom.xml
index 0fc1a885657..e222516ccae 100644
--- a/connectors/helidon-connector/pom.xml
+++ b/connectors/helidon-connector/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.connectors
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/connectors/jdk-connector/pom.xml b/connectors/jdk-connector/pom.xml
index 951a3687531..35d28db08d2 100644
--- a/connectors/jdk-connector/pom.xml
+++ b/connectors/jdk-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-jdk-connector
diff --git a/connectors/jetty-connector/pom.xml b/connectors/jetty-connector/pom.xml
index 5c5103a5c13..9da3ba98aac 100644
--- a/connectors/jetty-connector/pom.xml
+++ b/connectors/jetty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-jetty-connector
diff --git a/connectors/jnh-connector/pom.xml b/connectors/jnh-connector/pom.xml
index cc56166da7b..45b7af4ce27 100644
--- a/connectors/jnh-connector/pom.xml
+++ b/connectors/jnh-connector/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.connectors
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/connectors/netty-connector/pom.xml b/connectors/netty-connector/pom.xml
index 83235dae5c9..8478ce014bb 100644
--- a/connectors/netty-connector/pom.xml
+++ b/connectors/netty-connector/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.connectors
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-netty-connector
diff --git a/connectors/pom.xml b/connectors/pom.xml
index 174e81686b3..75a2d948d34 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.connectors
diff --git a/containers/glassfish/jersey-gf-ejb/pom.xml b/containers/glassfish/jersey-gf-ejb/pom.xml
index 510ab78d692..2323509592a 100644
--- a/containers/glassfish/jersey-gf-ejb/pom.xml
+++ b/containers/glassfish/jersey-gf-ejb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers.glassfish
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-gf-ejb
diff --git a/containers/glassfish/pom.xml b/containers/glassfish/pom.xml
index 13c8856e348..7f45d69fb69 100644
--- a/containers/glassfish/pom.xml
+++ b/containers/glassfish/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.containers.glassfish
diff --git a/containers/grizzly2-http/pom.xml b/containers/grizzly2-http/pom.xml
index f339055065a..2b1bb14df4d 100644
--- a/containers/grizzly2-http/pom.xml
+++ b/containers/grizzly2-http/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.containers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-container-grizzly2-http
diff --git a/containers/grizzly2-servlet/pom.xml b/containers/grizzly2-servlet/pom.xml
index a2aa91f2956..b5e0b47afe3 100644
--- a/containers/grizzly2-servlet/pom.xml
+++ b/containers/grizzly2-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-container-grizzly2-servlet
diff --git a/containers/jdk-http/pom.xml b/containers/jdk-http/pom.xml
index a8b04f5d73d..94c0ac16d08 100644
--- a/containers/jdk-http/pom.xml
+++ b/containers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-container-jdk-http
diff --git a/containers/jersey-servlet-core/pom.xml b/containers/jersey-servlet-core/pom.xml
index f53f265d7e9..379e391e9a0 100644
--- a/containers/jersey-servlet-core/pom.xml
+++ b/containers/jersey-servlet-core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-container-servlet-core
diff --git a/containers/jersey-servlet/pom.xml b/containers/jersey-servlet/pom.xml
index 4f2869cf5d4..63c7eb91ace 100644
--- a/containers/jersey-servlet/pom.xml
+++ b/containers/jersey-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-container-servlet
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index 1223ef86053..f458bf4792e 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.containers
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-container-jetty-http
diff --git a/containers/jetty-servlet/pom.xml b/containers/jetty-servlet/pom.xml
index 8d1241a2788..d874707ddc4 100644
--- a/containers/jetty-servlet/pom.xml
+++ b/containers/jetty-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-container-jetty-servlet
diff --git a/containers/netty-http/pom.xml b/containers/netty-http/pom.xml
index fba8ca54866..46a4e4c8526 100644
--- a/containers/netty-http/pom.xml
+++ b/containers/netty-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-container-netty-http
diff --git a/containers/pom.xml b/containers/pom.xml
index 69a3be26504..0731f454ed7 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.containers
diff --git a/containers/simple-http/pom.xml b/containers/simple-http/pom.xml
index c458f6fe9df..572268d39b3 100644
--- a/containers/simple-http/pom.xml
+++ b/containers/simple-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.containers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-container-simple-http
diff --git a/core-client/pom.xml b/core-client/pom.xml
index 95a4a047bc9..8675372007a 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.core
diff --git a/core-common/pom.xml b/core-common/pom.xml
index 135e8ea67e5..5ff3e7fa12b 100644
--- a/core-common/pom.xml
+++ b/core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.core
diff --git a/core-server/pom.xml b/core-server/pom.xml
index ce11650b63c..a5f1d9f2f08 100644
--- a/core-server/pom.xml
+++ b/core-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.core
diff --git a/docs/pom.xml b/docs/pom.xml
index 37b4c2d25b0..ea2fe34aaac 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-documentation
pom
diff --git a/examples/assemblies/pom.xml b/examples/assemblies/pom.xml
index 0041829a32b..117ace39510 100644
--- a/examples/assemblies/pom.xml
+++ b/examples/assemblies/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
assemblies
diff --git a/examples/bookmark-em/pom.xml b/examples/bookmark-em/pom.xml
index cb6828b8dac..9b1206b5b96 100644
--- a/examples/bookmark-em/pom.xml
+++ b/examples/bookmark-em/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
bookmark-em
diff --git a/examples/bookmark/pom.xml b/examples/bookmark/pom.xml
index 9695b1e4b01..60349c01dcf 100644
--- a/examples/bookmark/pom.xml
+++ b/examples/bookmark/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
bookmark
diff --git a/examples/bookstore-webapp/pom.xml b/examples/bookstore-webapp/pom.xml
index cb7e6850172..9975a3c05b0 100644
--- a/examples/bookstore-webapp/pom.xml
+++ b/examples/bookstore-webapp/pom.xml
@@ -35,7 +35,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
bookstore-webapp
diff --git a/examples/cdi-webapp/pom.xml b/examples/cdi-webapp/pom.xml
index a20c06ddbc7..499fe57f9b4 100644
--- a/examples/cdi-webapp/pom.xml
+++ b/examples/cdi-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-webapp
diff --git a/examples/clipboard-programmatic/pom.xml b/examples/clipboard-programmatic/pom.xml
index 55aff5123b3..61208aaa786 100644
--- a/examples/clipboard-programmatic/pom.xml
+++ b/examples/clipboard-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
clipboard-programmatic
diff --git a/examples/clipboard/pom.xml b/examples/clipboard/pom.xml
index 26342a70486..ae765c246d8 100644
--- a/examples/clipboard/pom.xml
+++ b/examples/clipboard/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
clipboard
diff --git a/examples/declarative-linking/pom.xml b/examples/declarative-linking/pom.xml
index b40e2d643e8..078edb1808c 100644
--- a/examples/declarative-linking/pom.xml
+++ b/examples/declarative-linking/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
declarative-linking
diff --git a/examples/entity-filtering-security/pom.xml b/examples/entity-filtering-security/pom.xml
index 879ec16bd88..fa5a7b394dc 100644
--- a/examples/entity-filtering-security/pom.xml
+++ b/examples/entity-filtering-security/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
entity-filtering-security
diff --git a/examples/entity-filtering-selectable/pom.xml b/examples/entity-filtering-selectable/pom.xml
index 99c3ac49de8..1574653ab95 100644
--- a/examples/entity-filtering-selectable/pom.xml
+++ b/examples/entity-filtering-selectable/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
entity-filtering-selectable
diff --git a/examples/entity-filtering/pom.xml b/examples/entity-filtering/pom.xml
index 26d2f26e22c..da63aa668df 100644
--- a/examples/entity-filtering/pom.xml
+++ b/examples/entity-filtering/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
entity-filtering
diff --git a/examples/exception-mapping/pom.xml b/examples/exception-mapping/pom.xml
index e5c5956d50a..647c8153361 100644
--- a/examples/exception-mapping/pom.xml
+++ b/examples/exception-mapping/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
exception-mapping
diff --git a/examples/extended-wadl-webapp/pom.xml b/examples/extended-wadl-webapp/pom.xml
index 10bef77d174..19d0cb13cab 100644
--- a/examples/extended-wadl-webapp/pom.xml
+++ b/examples/extended-wadl-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
extended-wadl-webapp
diff --git a/examples/freemarker-webapp/pom.xml b/examples/freemarker-webapp/pom.xml
index c1959f8bcbb..8931c4c5a12 100644
--- a/examples/freemarker-webapp/pom.xml
+++ b/examples/freemarker-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
freemarker-webapp
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index 5f8b198e8b7..85e6199a300 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
groovy
jar
diff --git a/examples/helloworld-benchmark/pom.xml b/examples/helloworld-benchmark/pom.xml
index 06241badc01..635aae45174 100644
--- a/examples/helloworld-benchmark/pom.xml
+++ b/examples/helloworld-benchmark/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
helloworld-benchmark
diff --git a/examples/helloworld-cdi2-se/pom.xml b/examples/helloworld-cdi2-se/pom.xml
index 050107db038..c6f20085381 100644
--- a/examples/helloworld-cdi2-se/pom.xml
+++ b/examples/helloworld-cdi2-se/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
helloworld-cdi2-se
diff --git a/examples/helloworld-netty/pom.xml b/examples/helloworld-netty/pom.xml
index 932065a4662..2c50c807bc6 100644
--- a/examples/helloworld-netty/pom.xml
+++ b/examples/helloworld-netty/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
helloworld-netty
diff --git a/examples/helloworld-programmatic/pom.xml b/examples/helloworld-programmatic/pom.xml
index fc0ca1cd0dc..d177ecb2984 100644
--- a/examples/helloworld-programmatic/pom.xml
+++ b/examples/helloworld-programmatic/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
helloworld-programmatic
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index fef937d96b4..e5560d5fb78 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
helloworld-pure-jax-rs
diff --git a/examples/helloworld-spring-annotations/pom.xml b/examples/helloworld-spring-annotations/pom.xml
index 226901fee7a..c5e24a37123 100644
--- a/examples/helloworld-spring-annotations/pom.xml
+++ b/examples/helloworld-spring-annotations/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
helloworld-spring-annotations
diff --git a/examples/helloworld-spring-webapp/pom.xml b/examples/helloworld-spring-webapp/pom.xml
index 79e2ed84211..9556ff30697 100644
--- a/examples/helloworld-spring-webapp/pom.xml
+++ b/examples/helloworld-spring-webapp/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
helloworld-spring-webapp
diff --git a/examples/helloworld-webapp/pom.xml b/examples/helloworld-webapp/pom.xml
index 9e391a67d19..f17a0d9b12c 100644
--- a/examples/helloworld-webapp/pom.xml
+++ b/examples/helloworld-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
helloworld-webapp
diff --git a/examples/helloworld-weld/pom.xml b/examples/helloworld-weld/pom.xml
index 4761ebd4d82..1f53561da31 100644
--- a/examples/helloworld-weld/pom.xml
+++ b/examples/helloworld-weld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
helloworld-weld
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index 8526081664b..501b9493ca4 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
helloworld
diff --git a/examples/http-patch/pom.xml b/examples/http-patch/pom.xml
index d2222cfda7b..1d8c8b77f1f 100644
--- a/examples/http-patch/pom.xml
+++ b/examples/http-patch/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
http-patch
diff --git a/examples/http-trace/pom.xml b/examples/http-trace/pom.xml
index aa1508e2b1a..c5a803a2871 100644
--- a/examples/http-trace/pom.xml
+++ b/examples/http-trace/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
http-trace
diff --git a/examples/https-clientserver-grizzly/pom.xml b/examples/https-clientserver-grizzly/pom.xml
index 188d3381faa..2e3b3a3872f 100644
--- a/examples/https-clientserver-grizzly/pom.xml
+++ b/examples/https-clientserver-grizzly/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
https-clientserver-grizzly
diff --git a/examples/https-server-glassfish/pom.xml b/examples/https-server-glassfish/pom.xml
index b97fb513c62..10ebcc06486 100644
--- a/examples/https-server-glassfish/pom.xml
+++ b/examples/https-server-glassfish/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
https-server-glassfish
diff --git a/examples/java8-webapp/pom.xml b/examples/java8-webapp/pom.xml
index 694f17fd31c..5c12b2f02c7 100644
--- a/examples/java8-webapp/pom.xml
+++ b/examples/java8-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
java8-webapp
diff --git a/examples/jaxb/pom.xml b/examples/jaxb/pom.xml
index 6b709d26bd9..a0d0794436a 100644
--- a/examples/jaxb/pom.xml
+++ b/examples/jaxb/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jaxb
diff --git a/examples/jaxrs-types-injection/pom.xml b/examples/jaxrs-types-injection/pom.xml
index ff1004ce8be..8e1c1a33481 100644
--- a/examples/jaxrs-types-injection/pom.xml
+++ b/examples/jaxrs-types-injection/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jaxrs-types-injection
diff --git a/examples/jersey-ejb/pom.xml b/examples/jersey-ejb/pom.xml
index 89851af0d0d..e9f73aece6f 100644
--- a/examples/jersey-ejb/pom.xml
+++ b/examples/jersey-ejb/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-ejb
diff --git a/examples/json-binding-webapp/pom.xml b/examples/json-binding-webapp/pom.xml
index b756ba925aa..91deb36f305 100644
--- a/examples/json-binding-webapp/pom.xml
+++ b/examples/json-binding-webapp/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
json-binding-webapp
diff --git a/examples/json-jackson/pom.xml b/examples/json-jackson/pom.xml
index e97d19e6e9a..5c3a6e9e35b 100644
--- a/examples/json-jackson/pom.xml
+++ b/examples/json-jackson/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
json-jackson
diff --git a/examples/json-jettison/pom.xml b/examples/json-jettison/pom.xml
index 94f639cd205..fb7055f5057 100644
--- a/examples/json-jettison/pom.xml
+++ b/examples/json-jettison/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
json-jettison
diff --git a/examples/json-moxy/pom.xml b/examples/json-moxy/pom.xml
index 09fa19b6080..71359562b4e 100644
--- a/examples/json-moxy/pom.xml
+++ b/examples/json-moxy/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
json-moxy
diff --git a/examples/json-processing-webapp/pom.xml b/examples/json-processing-webapp/pom.xml
index d1830d8f84b..f38656165f1 100644
--- a/examples/json-processing-webapp/pom.xml
+++ b/examples/json-processing-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
json-processing-webapp
diff --git a/examples/json-with-padding/pom.xml b/examples/json-with-padding/pom.xml
index 39454b96b70..c0cfd5321bb 100644
--- a/examples/json-with-padding/pom.xml
+++ b/examples/json-with-padding/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
json-with-padding
diff --git a/examples/managed-beans-webapp/pom.xml b/examples/managed-beans-webapp/pom.xml
index 0a5a42534b9..74d4dedd14d 100644
--- a/examples/managed-beans-webapp/pom.xml
+++ b/examples/managed-beans-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
managed-beans-webapp
diff --git a/examples/managed-client-simple-webapp/pom.xml b/examples/managed-client-simple-webapp/pom.xml
index 5576182acaf..ff354073780 100644
--- a/examples/managed-client-simple-webapp/pom.xml
+++ b/examples/managed-client-simple-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
managed-client-simple-webapp
diff --git a/examples/managed-client-webapp/pom.xml b/examples/managed-client-webapp/pom.xml
index 4f68db37d1b..4d7b61e9338 100644
--- a/examples/managed-client-webapp/pom.xml
+++ b/examples/managed-client-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
managed-client-webapp
diff --git a/examples/managed-client/pom.xml b/examples/managed-client/pom.xml
index 15716186f08..a7c7331f502 100644
--- a/examples/managed-client/pom.xml
+++ b/examples/managed-client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
managed-client
diff --git a/examples/multipart-webapp/pom.xml b/examples/multipart-webapp/pom.xml
index bf40487b2f7..aac6d5b5eab 100644
--- a/examples/multipart-webapp/pom.xml
+++ b/examples/multipart-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
multipart-webapp
diff --git a/examples/oauth-client-twitter/pom.xml b/examples/oauth-client-twitter/pom.xml
index d8ea7243fa7..e5134d12a15 100644
--- a/examples/oauth-client-twitter/pom.xml
+++ b/examples/oauth-client-twitter/pom.xml
@@ -15,7 +15,7 @@
project
org.glassfish.jersey.examples
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index ceb75e5b757..cf62b10e398 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
open-tracing
diff --git a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
index 1c4b1ddf6c4..6f38620945b 100644
--- a/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/additional-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
index 24ad2af4da4..93a2dfe0647 100644
--- a/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/alternate-version-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index 9ae71ee594f..71f2b39134c 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
index 532296d32ec..96ebba5f346 100644
--- a/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/lib-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/pom.xml b/examples/osgi-helloworld-webapp/pom.xml
index db90fb1d056..1836ea52d83 100644
--- a/examples/osgi-helloworld-webapp/pom.xml
+++ b/examples/osgi-helloworld-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
osgi-helloworld-webapp
diff --git a/examples/osgi-helloworld-webapp/war-bundle/pom.xml b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
index 18f13da9110..5f08acb1ac4 100644
--- a/examples/osgi-helloworld-webapp/war-bundle/pom.xml
+++ b/examples/osgi-helloworld-webapp/war-bundle/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
osgi-helloworld-webapp
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.examples.osgi-helloworld-webapp
diff --git a/examples/pom.xml b/examples/pom.xml
index 015f180753e..73a7c1da040 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
diff --git a/examples/reload/pom.xml b/examples/reload/pom.xml
index 6bc7c614a93..85b934f3faf 100644
--- a/examples/reload/pom.xml
+++ b/examples/reload/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
reload
diff --git a/examples/rx-client-webapp/pom.xml b/examples/rx-client-webapp/pom.xml
index 46cdb6967ab..b8c466798f0 100644
--- a/examples/rx-client-webapp/pom.xml
+++ b/examples/rx-client-webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
rx-client-webapp
diff --git a/examples/server-async-managed/pom.xml b/examples/server-async-managed/pom.xml
index ac62f34a61f..843a85e73b4 100644
--- a/examples/server-async-managed/pom.xml
+++ b/examples/server-async-managed/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
server-async-managed
diff --git a/examples/server-async-standalone/client/pom.xml b/examples/server-async-standalone/client/pom.xml
index 992f38fb402..8c8fc91fd60 100644
--- a/examples/server-async-standalone/client/pom.xml
+++ b/examples/server-async-standalone/client/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.1.0
+ 3.1.99-SNAPSHOT
server-async-standalone-client
diff --git a/examples/server-async-standalone/pom.xml b/examples/server-async-standalone/pom.xml
index 16baf164f25..e4f2dac684a 100644
--- a/examples/server-async-standalone/pom.xml
+++ b/examples/server-async-standalone/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
server-async-standalone
diff --git a/examples/server-async-standalone/webapp/pom.xml b/examples/server-async-standalone/webapp/pom.xml
index c4e697867ba..55846d57647 100644
--- a/examples/server-async-standalone/webapp/pom.xml
+++ b/examples/server-async-standalone/webapp/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
server-async-standalone
- 3.1.0
+ 3.1.99-SNAPSHOT
server-async-standalone-webapp
diff --git a/examples/server-async/pom.xml b/examples/server-async/pom.xml
index 03ab713ae11..2cd803d9305 100644
--- a/examples/server-async/pom.xml
+++ b/examples/server-async/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
server-async
diff --git a/examples/server-sent-events-jaxrs/pom.xml b/examples/server-sent-events-jaxrs/pom.xml
index 897473a84c8..99be35d3e98 100644
--- a/examples/server-sent-events-jaxrs/pom.xml
+++ b/examples/server-sent-events-jaxrs/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
server-sent-events-jaxrs
diff --git a/examples/server-sent-events-jersey/pom.xml b/examples/server-sent-events-jersey/pom.xml
index 6e70d58bca9..8103f201c49 100644
--- a/examples/server-sent-events-jersey/pom.xml
+++ b/examples/server-sent-events-jersey/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
server-sent-events-jersey
diff --git a/examples/servlet3-webapp/pom.xml b/examples/servlet3-webapp/pom.xml
index 86a83f9e785..e87ea4d88c0 100644
--- a/examples/servlet3-webapp/pom.xml
+++ b/examples/servlet3-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet3-webapp
diff --git a/examples/simple-console/pom.xml b/examples/simple-console/pom.xml
index d524dd1098d..e987e65c634 100644
--- a/examples/simple-console/pom.xml
+++ b/examples/simple-console/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
simple-console
diff --git a/examples/sse-item-store-jaxrs-webapp/pom.xml b/examples/sse-item-store-jaxrs-webapp/pom.xml
index fe0951f03fd..a2c7fee2378 100644
--- a/examples/sse-item-store-jaxrs-webapp/pom.xml
+++ b/examples/sse-item-store-jaxrs-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
sse-item-store-jaxrs-webapp
diff --git a/examples/sse-item-store-jersey-webapp/pom.xml b/examples/sse-item-store-jersey-webapp/pom.xml
index 9ac5a98beb8..aba41e62275 100644
--- a/examples/sse-item-store-jersey-webapp/pom.xml
+++ b/examples/sse-item-store-jersey-webapp/pom.xml
@@ -19,7 +19,7 @@
org.glassfish.jersey.examples
webapp-example-parent
../webapp-example-parent/pom.xml
- 3.1.0
+ 3.1.99-SNAPSHOT
sse-item-store-jersey-webapp
diff --git a/examples/sse-twitter-aggregator/pom.xml b/examples/sse-twitter-aggregator/pom.xml
index 17f2456ec5e..8571d9a92b1 100644
--- a/examples/sse-twitter-aggregator/pom.xml
+++ b/examples/sse-twitter-aggregator/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
sse-twitter-aggregator
diff --git a/examples/system-properties-example/pom.xml b/examples/system-properties-example/pom.xml
index e1d27853f60..14f39e19c80 100644
--- a/examples/system-properties-example/pom.xml
+++ b/examples/system-properties-example/pom.xml
@@ -17,7 +17,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
system-properties-example
diff --git a/examples/webapp-example-parent/pom.xml b/examples/webapp-example-parent/pom.xml
index dd9816accda..031cd4782aa 100644
--- a/examples/webapp-example-parent/pom.xml
+++ b/examples/webapp-example-parent/pom.xml
@@ -18,7 +18,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
webapp-example-parent
diff --git a/examples/xml-moxy/pom.xml b/examples/xml-moxy/pom.xml
index cf169b61c16..c37b68685fd 100644
--- a/examples/xml-moxy/pom.xml
+++ b/examples/xml-moxy/pom.xml
@@ -16,7 +16,7 @@
org.glassfish.jersey.examples
project
- 3.1.0
+ 3.1.99-SNAPSHOT
xml-moxy
diff --git a/ext/bean-validation/pom.xml b/ext/bean-validation/pom.xml
index 3aa230db212..8d613d9f68f 100644
--- a/ext/bean-validation/pom.xml
+++ b/ext/bean-validation/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-bean-validation
diff --git a/ext/cdi/jersey-cdi-rs-inject/pom.xml b/ext/cdi/jersey-cdi-rs-inject/pom.xml
index e3a12f1dc53..87f4eb9081c 100644
--- a/ext/cdi/jersey-cdi-rs-inject/pom.xml
+++ b/ext/cdi/jersey-cdi-rs-inject/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext.cdi
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
index 33d415c90fc..6069dceccc8 100644
--- a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
+++ b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-cdi1x-ban-custom-hk2-binding
diff --git a/ext/cdi/jersey-cdi1x-servlet/pom.xml b/ext/cdi/jersey-cdi1x-servlet/pom.xml
index 3ccb69ca1fa..f6641a9283f 100644
--- a/ext/cdi/jersey-cdi1x-servlet/pom.xml
+++ b/ext/cdi/jersey-cdi1x-servlet/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-cdi1x-servlet
diff --git a/ext/cdi/jersey-cdi1x-transaction/pom.xml b/ext/cdi/jersey-cdi1x-transaction/pom.xml
index 93be5ecff09..bae7b56822e 100644
--- a/ext/cdi/jersey-cdi1x-transaction/pom.xml
+++ b/ext/cdi/jersey-cdi1x-transaction/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-cdi1x-transaction
diff --git a/ext/cdi/jersey-cdi1x-validation/pom.xml b/ext/cdi/jersey-cdi1x-validation/pom.xml
index a48770aa703..33ddee23062 100644
--- a/ext/cdi/jersey-cdi1x-validation/pom.xml
+++ b/ext/cdi/jersey-cdi1x-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-cdi1x-validation
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index 5b66ec292db..a836844e5c7 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-cdi1x
diff --git a/ext/cdi/jersey-weld2-se/pom.xml b/ext/cdi/jersey-weld2-se/pom.xml
index c7cc4e0a0e5..a0b5910e7f4 100644
--- a/ext/cdi/jersey-weld2-se/pom.xml
+++ b/ext/cdi/jersey-weld2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.cdi
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-weld2-se
diff --git a/ext/cdi/pom.xml b/ext/cdi/pom.xml
index f3aa50dbcfc..0d1b1c0d4b2 100644
--- a/ext/cdi/pom.xml
+++ b/ext/cdi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.ext.cdi
diff --git a/ext/entity-filtering/pom.xml b/ext/entity-filtering/pom.xml
index 661902a5e4b..0762730c812 100644
--- a/ext/entity-filtering/pom.xml
+++ b/ext/entity-filtering/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-entity-filtering
diff --git a/ext/metainf-services/pom.xml b/ext/metainf-services/pom.xml
index 5942ee4f39c..69727f5abc2 100644
--- a/ext/metainf-services/pom.xml
+++ b/ext/metainf-services/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-metainf-services
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index 2e12b1b70e7..258137f20b4 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index 77e5bb6d6dc..b55328fe6ba 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.ext.microprofile
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/ext/microprofile/pom.xml b/ext/microprofile/pom.xml
index b9bcf332338..380a01190e0 100644
--- a/ext/microprofile/pom.xml
+++ b/ext/microprofile/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.ext
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/ext/mvc-bean-validation/pom.xml b/ext/mvc-bean-validation/pom.xml
index bc391255a9b..daf2af681dd 100644
--- a/ext/mvc-bean-validation/pom.xml
+++ b/ext/mvc-bean-validation/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-mvc-bean-validation
diff --git a/ext/mvc-freemarker/pom.xml b/ext/mvc-freemarker/pom.xml
index d41824aa13e..e27449bb9d5 100644
--- a/ext/mvc-freemarker/pom.xml
+++ b/ext/mvc-freemarker/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-mvc-freemarker
diff --git a/ext/mvc-jsp/pom.xml b/ext/mvc-jsp/pom.xml
index 19adcd9512b..7b3fbb89fa4 100644
--- a/ext/mvc-jsp/pom.xml
+++ b/ext/mvc-jsp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-mvc-jsp
diff --git a/ext/mvc-mustache/pom.xml b/ext/mvc-mustache/pom.xml
index c75fcff767f..78e4fc88d9a 100644
--- a/ext/mvc-mustache/pom.xml
+++ b/ext/mvc-mustache/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-mvc-mustache
diff --git a/ext/mvc/pom.xml b/ext/mvc/pom.xml
index fe4a39b45fc..cdb00a6005b 100644
--- a/ext/mvc/pom.xml
+++ b/ext/mvc/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-mvc
diff --git a/ext/pom.xml b/ext/pom.xml
index 2a89a06be15..3d4aea8826a 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.ext
diff --git a/ext/proxy-client/pom.xml b/ext/proxy-client/pom.xml
index 32612a188c9..d8b22c03b3f 100644
--- a/ext/proxy-client/pom.xml
+++ b/ext/proxy-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-proxy-client
diff --git a/ext/rx/pom.xml b/ext/rx/pom.xml
index c78449ccccb..67a4b924d7c 100644
--- a/ext/rx/pom.xml
+++ b/ext/rx/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.ext.rx
diff --git a/ext/rx/rx-client-guava/pom.xml b/ext/rx/rx-client-guava/pom.xml
index 6b6080ac5dd..0e3db20feba 100644
--- a/ext/rx/rx-client-guava/pom.xml
+++ b/ext/rx/rx-client-guava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-rx-client-guava
diff --git a/ext/rx/rx-client-rxjava/pom.xml b/ext/rx/rx-client-rxjava/pom.xml
index b43da9bd8f4..3c5c3b0bc3a 100644
--- a/ext/rx/rx-client-rxjava/pom.xml
+++ b/ext/rx/rx-client-rxjava/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-rx-client-rxjava
diff --git a/ext/rx/rx-client-rxjava2/pom.xml b/ext/rx/rx-client-rxjava2/pom.xml
index 00089e4f71f..c2e4c88e92b 100644
--- a/ext/rx/rx-client-rxjava2/pom.xml
+++ b/ext/rx/rx-client-rxjava2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.ext.rx
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-rx-client-rxjava2
diff --git a/ext/spring6/pom.xml b/ext/spring6/pom.xml
index 086c3d6b9d2..3566d36af47 100644
--- a/ext/spring6/pom.xml
+++ b/ext/spring6/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.ext
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-spring6
diff --git a/ext/wadl-doclet/pom.xml b/ext/wadl-doclet/pom.xml
index 744ff9b23d7..0907fa58efc 100644
--- a/ext/wadl-doclet/pom.xml
+++ b/ext/wadl-doclet/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.ext
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
jersey-wadl-doclet
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index d4563e72fb3..c4a0980ace7 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-cdi-inject-weld
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index 3a28599e7e4..5c77ec9148f 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.ext
diff --git a/incubator/gae-integration/pom.xml b/incubator/gae-integration/pom.xml
index 78de2782eb2..da3efa6afe8 100644
--- a/incubator/gae-integration/pom.xml
+++ b/incubator/gae-integration/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-gae-integration
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index 0cd85c2fd1e..60adb8959fa 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.media
diff --git a/incubator/kryo/pom.xml b/incubator/kryo/pom.xml
index 511e29ace06..1f40b4bda3a 100644
--- a/incubator/kryo/pom.xml
+++ b/incubator/kryo/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.media
diff --git a/incubator/open-tracing/pom.xml b/incubator/open-tracing/pom.xml
index 43241118d70..9af1e54e169 100644
--- a/incubator/open-tracing/pom.xml
+++ b/incubator/open-tracing/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.incubator
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.incubator
diff --git a/incubator/pom.xml b/incubator/pom.xml
index 962dad728b6..810a76e5add 100644
--- a/incubator/pom.xml
+++ b/incubator/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.incubator
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index a1009517c99..2a92d7e1070 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-cdi2-se
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index 336ed100aa2..d6d82deb105 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.inject
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-hk2
diff --git a/inject/pom.xml b/inject/pom.xml
index 6990d260c0b..3df876fdd5f 100644
--- a/inject/pom.xml
+++ b/inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.inject
diff --git a/media/jaxb/pom.xml b/media/jaxb/pom.xml
index dba83c52c30..20e902880de 100644
--- a/media/jaxb/pom.xml
+++ b/media/jaxb/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-media-jaxb
diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
index 2d3b055eb12..8b569e8b343 100644
--- a/media/json-binding/pom.xml
+++ b/media/json-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-media-json-binding
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index c4ddcf97dd0..339fd3c8646 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-media-json-gson
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index 621dafd1cd3..b81a9a55752 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-media-json-jackson
diff --git a/media/json-jettison/pom.xml b/media/json-jettison/pom.xml
index e56a7eba435..5472442711b 100644
--- a/media/json-jettison/pom.xml
+++ b/media/json-jettison/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-media-json-jettison
diff --git a/media/json-processing/pom.xml b/media/json-processing/pom.xml
index d0a9cc279cd..6fd6a6c3619 100644
--- a/media/json-processing/pom.xml
+++ b/media/json-processing/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-media-json-processing
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index c46a6dd8336..14ed5c72fbb 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-media-moxy
diff --git a/media/multipart/pom.xml b/media/multipart/pom.xml
index 44aadab349c..6eb106793a2 100644
--- a/media/multipart/pom.xml
+++ b/media/multipart/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-media-multipart
diff --git a/media/pom.xml b/media/pom.xml
index 7e7439085ef..707df1f9777 100644
--- a/media/pom.xml
+++ b/media/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.media
diff --git a/media/sse/pom.xml b/media/sse/pom.xml
index 776d668d7ea..3fefe012bce 100644
--- a/media/sse/pom.xml
+++ b/media/sse/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.media
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-media-sse
diff --git a/pom.xml b/pom.xml
index db296641595..e90b3c7f55d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
org.glassfish.jersey
project
pom
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey
Eclipse Jersey is the open source (under dual EPL+GPL license) Jakarta RESTful WebServices 3.0
diff --git a/security/oauth1-client/pom.xml b/security/oauth1-client/pom.xml
index 72f0b04270c..d03693b5d6b 100644
--- a/security/oauth1-client/pom.xml
+++ b/security/oauth1-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.security
project
- 3.1.0
+ 3.1.99-SNAPSHOT
oauth1-client
diff --git a/security/oauth1-server/pom.xml b/security/oauth1-server/pom.xml
index 39a34bc188f..7668e18de23 100644
--- a/security/oauth1-server/pom.xml
+++ b/security/oauth1-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.security
project
- 3.1.0
+ 3.1.99-SNAPSHOT
oauth1-server
diff --git a/security/oauth1-signature/pom.xml b/security/oauth1-signature/pom.xml
index e8720d3e4c0..e53a21dc6f6 100644
--- a/security/oauth1-signature/pom.xml
+++ b/security/oauth1-signature/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/security/oauth2-client/pom.xml b/security/oauth2-client/pom.xml
index edf92aa2e79..fd017d9ad11 100644
--- a/security/oauth2-client/pom.xml
+++ b/security/oauth2-client/pom.xml
@@ -21,7 +21,7 @@
org.glassfish.jersey.security
project
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/security/pom.xml b/security/pom.xml
index 72e34249875..7a0a49939d8 100644
--- a/security/pom.xml
+++ b/security/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.security
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index 69cb38f61a9..4728ff7861b 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-test-framework-core
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index 442ea68e22d..2e17e74fba8 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.1.0
+ 3.1.99-SNAPSHOT
container-runner-maven-plugin
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index e7f655388b8..620a742fa4c 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.maven
project
- 3.1.0
+ 3.1.99-SNAPSHOT
custom-enforcer-rules
diff --git a/test-framework/maven/pom.xml b/test-framework/maven/pom.xml
index b93405a501b..4d4f2d1a6ac 100644
--- a/test-framework/maven/pom.xml
+++ b/test-framework/maven/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.test-framework.maven
diff --git a/test-framework/memleak-test-common/pom.xml b/test-framework/memleak-test-common/pom.xml
index 1bb4724e13d..21152509d12 100644
--- a/test-framework/memleak-test-common/pom.xml
+++ b/test-framework/memleak-test-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0
+ 3.1.99-SNAPSHOT
memleak-test-common
diff --git a/test-framework/pom.xml b/test-framework/pom.xml
index eb1ab02d8c4..3ab6343bcd7 100644
--- a/test-framework/pom.xml
+++ b/test-framework/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.test-framework
diff --git a/test-framework/providers/bundle/pom.xml b/test-framework/providers/bundle/pom.xml
index ee960b93403..0403a672a6e 100644
--- a/test-framework/providers/bundle/pom.xml
+++ b/test-framework/providers/bundle/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-test-framework-provider-bundle
diff --git a/test-framework/providers/external/pom.xml b/test-framework/providers/external/pom.xml
index 00cea8141b5..f40f75831c3 100644
--- a/test-framework/providers/external/pom.xml
+++ b/test-framework/providers/external/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-test-framework-provider-external
diff --git a/test-framework/providers/grizzly2/pom.xml b/test-framework/providers/grizzly2/pom.xml
index bdcbfe2dd8e..db3d7d72fbd 100644
--- a/test-framework/providers/grizzly2/pom.xml
+++ b/test-framework/providers/grizzly2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-test-framework-provider-grizzly2
diff --git a/test-framework/providers/inmemory/pom.xml b/test-framework/providers/inmemory/pom.xml
index 97a7c170d4d..70dd1b627c6 100644
--- a/test-framework/providers/inmemory/pom.xml
+++ b/test-framework/providers/inmemory/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-test-framework-provider-inmemory
diff --git a/test-framework/providers/jdk-http/pom.xml b/test-framework/providers/jdk-http/pom.xml
index 6aae42a3f51..ab26b9d293c 100644
--- a/test-framework/providers/jdk-http/pom.xml
+++ b/test-framework/providers/jdk-http/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-test-framework-provider-jdk-http
diff --git a/test-framework/providers/jetty/pom.xml b/test-framework/providers/jetty/pom.xml
index 2d9ebafac9d..e36740c07d8 100644
--- a/test-framework/providers/jetty/pom.xml
+++ b/test-framework/providers/jetty/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/test-framework/providers/netty/pom.xml b/test-framework/providers/netty/pom.xml
index 5357154c7df..ceef7d650ad 100644
--- a/test-framework/providers/netty/pom.xml
+++ b/test-framework/providers/netty/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework.providers
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-test-framework-provider-netty
diff --git a/test-framework/providers/pom.xml b/test-framework/providers/pom.xml
index f47c0d1bfcb..d11b3c43dc2 100644
--- a/test-framework/providers/pom.xml
+++ b/test-framework/providers/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.test-framework.providers
diff --git a/test-framework/providers/simple/pom.xml b/test-framework/providers/simple/pom.xml
index fdc9779aa5a..9a837580aa6 100644
--- a/test-framework/providers/simple/pom.xml
+++ b/test-framework/providers/simple/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.test-framework.providers
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/test-framework/util/pom.xml b/test-framework/util/pom.xml
index 3722f098368..5f595d7c637 100644
--- a/test-framework/util/pom.xml
+++ b/test-framework/util/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.test-framework
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-test-framework-util
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index 9f42477478e..dd634b83252 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0
+ 3.1.99-SNAPSHOT
e2e-client
diff --git a/tests/e2e-core-common/pom.xml b/tests/e2e-core-common/pom.xml
index 3dea23383ea..0bdbd099eab 100644
--- a/tests/e2e-core-common/pom.xml
+++ b/tests/e2e-core-common/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0
+ 3.1.99-SNAPSHOT
e2e-core-common
diff --git a/tests/e2e-entity/pom.xml b/tests/e2e-entity/pom.xml
index 04d3f39539e..e7034e3c867 100644
--- a/tests/e2e-entity/pom.xml
+++ b/tests/e2e-entity/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0
+ 3.1.99-SNAPSHOT
e2e-entity
diff --git a/tests/e2e-inject/cdi-inject-weld/pom.xml b/tests/e2e-inject/cdi-inject-weld/pom.xml
index 31da247f6a2..27ac7c8fa94 100644
--- a/tests/e2e-inject/cdi-inject-weld/pom.xml
+++ b/tests/e2e-inject/cdi-inject-weld/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.1.0
+ 3.1.99-SNAPSHOT
e2e-inject-cdi-inject-weld
diff --git a/tests/e2e-inject/cdi2-se/pom.xml b/tests/e2e-inject/cdi2-se/pom.xml
index 4cf04093fad..240fa5f3a60 100644
--- a/tests/e2e-inject/cdi2-se/pom.xml
+++ b/tests/e2e-inject/cdi2-se/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
e2e-inject
- 3.1.0
+ 3.1.99-SNAPSHOT
e2e-inject-cdi2-se
diff --git a/tests/e2e-inject/hk2/pom.xml b/tests/e2e-inject/hk2/pom.xml
index ff269b0dfbc..8b3000c1b7f 100644
--- a/tests/e2e-inject/hk2/pom.xml
+++ b/tests/e2e-inject/hk2/pom.xml
@@ -23,7 +23,7 @@
e2e-inject
org.glassfish.jersey.tests
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/e2e-inject/pom.xml b/tests/e2e-inject/pom.xml
index 0f905faec25..c33bf9ef71a 100644
--- a/tests/e2e-inject/pom.xml
+++ b/tests/e2e-inject/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0
+ 3.1.99-SNAPSHOT
e2e-inject
diff --git a/tests/e2e-server/pom.xml b/tests/e2e-server/pom.xml
index 3f05fd71f9c..fc0e14ca9ab 100644
--- a/tests/e2e-server/pom.xml
+++ b/tests/e2e-server/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0
+ 3.1.99-SNAPSHOT
e2e-server
diff --git a/tests/e2e-testng/pom.xml b/tests/e2e-testng/pom.xml
index 9277820534e..3e6299029f2 100644
--- a/tests/e2e-testng/pom.xml
+++ b/tests/e2e-testng/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.1.0
+ 3.1.99-SNAPSHOT
e2e-testng
diff --git a/tests/e2e/pom.xml b/tests/e2e/pom.xml
index fc59ec70fce..f6bd148a652 100644
--- a/tests/e2e/pom.xml
+++ b/tests/e2e/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0
+ 3.1.99-SNAPSHOT
e2e
diff --git a/tests/integration/asm/pom.xml b/tests/integration/asm/pom.xml
index c3c9ed08a00..02b8a6f6f1e 100644
--- a/tests/integration/asm/pom.xml
+++ b/tests/integration/asm/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/async-jersey-filter/pom.xml b/tests/integration/async-jersey-filter/pom.xml
index c939f0976ac..f0b1b36732b 100644
--- a/tests/integration/async-jersey-filter/pom.xml
+++ b/tests/integration/async-jersey-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
async-jersey-filter
diff --git a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
index abc471a5522..0ad3e0ebb88 100644
--- a/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-beanvalidation-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-beanvalidation-webapp
diff --git a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
index 6cf50b94825..0ef6429cbd6 100644
--- a/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-client-on-server
diff --git a/tests/integration/cdi-integration/cdi-client/pom.xml b/tests/integration/cdi-integration/cdi-client/pom.xml
index 749efda7e91..5092aa1201c 100644
--- a/tests/integration/cdi-integration/cdi-client/pom.xml
+++ b/tests/integration/cdi-integration/cdi-client/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-client
diff --git a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
index c84e69e9dbc..5d82c34e6e4 100644
--- a/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-ejb-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
index 317b4d1220f..7575c6c3762 100644
--- a/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-iface-with-non-jaxrs-impl-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-iface-with-non-jaxrs-impl-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-log-check/pom.xml b/tests/integration/cdi-integration/cdi-log-check/pom.xml
index 02c40eaf753..dac890b303b 100644
--- a/tests/integration/cdi-integration/cdi-log-check/pom.xml
+++ b/tests/integration/cdi-integration/cdi-log-check/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-log-check
diff --git a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
index 585a28b1f2e..be2e6c3e888 100644
--- a/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
+++ b/tests/integration/cdi-integration/cdi-manually-bound/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
index 9c075cbadab..f64f1eadaf8 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
index cd55dc754eb..b99a98fbc6b 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
index 4263b96e6f5..9fee6a32416 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-multimodule
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
index 3662ef7d885..afba4e09576 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
index 94d3028894c..36937b97596 100644
--- a/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multimodule/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
index 39303db13e1..9d9f99fc9d3 100644
--- a/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-multipart-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-multipart-webapp
diff --git a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
index 6a31d445af4..56669fa3890 100644
--- a/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
+++ b/tests/integration/cdi-integration/cdi-resource-with-at-context/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-singleton/pom.xml b/tests/integration/cdi-integration/cdi-singleton/pom.xml
index 4839ad07c0b..c594886f84f 100644
--- a/tests/integration/cdi-integration/cdi-singleton/pom.xml
+++ b/tests/integration/cdi-integration/cdi-singleton/pom.xml
@@ -23,7 +23,7 @@
cdi-integration-project
org.glassfish.jersey.tests.integration.cdi
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
index 3187270193a..1c685ccd034 100644
--- a/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-test-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
index dff506b3b23..512e4af5123 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-cfg-webapp/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-with-jersey-injection-custom-cfg-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
index c9f32d24f08..190790e8980 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-custom-hk2-banned-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-with-jersey-injection-custom-hk2-banned-webapp
diff --git a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
index 338656f04cc..c1fbe3cca84 100644
--- a/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
+++ b/tests/integration/cdi-integration/cdi-with-jersey-injection-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
cdi-with-jersey-injection-webapp
diff --git a/tests/integration/cdi-integration/context-inject-on-server/pom.xml b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
index b04f589e3cc..939321b4fe4 100644
--- a/tests/integration/cdi-integration/context-inject-on-server/pom.xml
+++ b/tests/integration/cdi-integration/context-inject-on-server/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
context-inject-on-server
diff --git a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
index bb0d8272419..c9bc2570f63 100644
--- a/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
+++ b/tests/integration/cdi-integration/gf-cdi-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration.cdi
cdi-integration-project
- 3.1.0
+ 3.1.99-SNAPSHOT
gf-cdi-inject-on-server
diff --git a/tests/integration/cdi-integration/pom.xml b/tests/integration/cdi-integration/pom.xml
index bc8958f0601..99f44dfea11 100644
--- a/tests/integration/cdi-integration/pom.xml
+++ b/tests/integration/cdi-integration/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/client-connector-provider/pom.xml b/tests/integration/client-connector-provider/pom.xml
index abfc0602ded..745e8d639c4 100644
--- a/tests/integration/client-connector-provider/pom.xml
+++ b/tests/integration/client-connector-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
client-connector-provider
diff --git a/tests/integration/ejb-multimodule-reload/ear/pom.xml b/tests/integration/ejb-multimodule-reload/ear/pom.xml
index 07fe495dc62..acffb74a602 100644
--- a/tests/integration/ejb-multimodule-reload/ear/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/lib/pom.xml b/tests/integration/ejb-multimodule-reload/lib/pom.xml
index a7af9c477a3..31d09e83c97 100644
--- a/tests/integration/ejb-multimodule-reload/lib/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/pom.xml b/tests/integration/ejb-multimodule-reload/pom.xml
index b21e58bd144..44e8e64c956 100644
--- a/tests/integration/ejb-multimodule-reload/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
ejb-multimodule-reload
diff --git a/tests/integration/ejb-multimodule-reload/war1/pom.xml b/tests/integration/ejb-multimodule-reload/war1/pom.xml
index 87b31119c38..c4266d5236e 100644
--- a/tests/integration/ejb-multimodule-reload/war1/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule-reload/war2/pom.xml b/tests/integration/ejb-multimodule-reload/war2/pom.xml
index dbfc6362419..05638384911 100644
--- a/tests/integration/ejb-multimodule-reload/war2/pom.xml
+++ b/tests/integration/ejb-multimodule-reload/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/ear/pom.xml b/tests/integration/ejb-multimodule/ear/pom.xml
index 4cf0aa05549..8dc0fdee1f7 100644
--- a/tests/integration/ejb-multimodule/ear/pom.xml
+++ b/tests/integration/ejb-multimodule/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/lib/pom.xml b/tests/integration/ejb-multimodule/lib/pom.xml
index f747f5f1c8d..1c1a9a738e1 100644
--- a/tests/integration/ejb-multimodule/lib/pom.xml
+++ b/tests/integration/ejb-multimodule/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-multimodule/pom.xml b/tests/integration/ejb-multimodule/pom.xml
index 8c67f543cbb..80d0a9394e3 100644
--- a/tests/integration/ejb-multimodule/pom.xml
+++ b/tests/integration/ejb-multimodule/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
ejb-multimodule
diff --git a/tests/integration/ejb-multimodule/war/pom.xml b/tests/integration/ejb-multimodule/war/pom.xml
index 77b21a6ef99..ab7cf609052 100644
--- a/tests/integration/ejb-multimodule/war/pom.xml
+++ b/tests/integration/ejb-multimodule/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/ejb-test-webapp/pom.xml b/tests/integration/ejb-test-webapp/pom.xml
index 1baeb2d9cad..dd3904d713d 100644
--- a/tests/integration/ejb-test-webapp/pom.xml
+++ b/tests/integration/ejb-test-webapp/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
ejb-test-webapp
diff --git a/tests/integration/externalproperties/pom.xml b/tests/integration/externalproperties/pom.xml
index 57c6a74d9b8..60a1760eb0c 100644
--- a/tests/integration/externalproperties/pom.xml
+++ b/tests/integration/externalproperties/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
externalproperties
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index f16086ec4bc..3b786e5fb17 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
j-376
diff --git a/tests/integration/j-441/ear/pom.xml b/tests/integration/j-441/ear/pom.xml
index 07edf13015c..6f9287be1b8 100644
--- a/tests/integration/j-441/ear/pom.xml
+++ b/tests/integration/j-441/ear/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
j-441-ear
diff --git a/tests/integration/j-441/pom.xml b/tests/integration/j-441/pom.xml
index 478ca0c83c0..33483a1b1ed 100644
--- a/tests/integration/j-441/pom.xml
+++ b/tests/integration/j-441/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
j-441
diff --git a/tests/integration/j-441/war1/pom.xml b/tests/integration/j-441/war1/pom.xml
index 743a6e91ea8..72a6b6d2593 100644
--- a/tests/integration/j-441/war1/pom.xml
+++ b/tests/integration/j-441/war1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-441/war2/pom.xml b/tests/integration/j-441/war2/pom.xml
index 6db7677e9ad..3fba9af82a6 100644
--- a/tests/integration/j-441/war2/pom.xml
+++ b/tests/integration/j-441/war2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/ear/pom.xml b/tests/integration/j-59/ear/pom.xml
index d5e631943d7..338205aaec6 100644
--- a/tests/integration/j-59/ear/pom.xml
+++ b/tests/integration/j-59/ear/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/lib/pom.xml b/tests/integration/j-59/lib/pom.xml
index 8986ce8dca5..ada84236ddb 100644
--- a/tests/integration/j-59/lib/pom.xml
+++ b/tests/integration/j-59/lib/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/j-59/pom.xml b/tests/integration/j-59/pom.xml
index ddf62daf143..a531509d3aa 100644
--- a/tests/integration/j-59/pom.xml
+++ b/tests/integration/j-59/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
j-59
diff --git a/tests/integration/j-59/war/pom.xml b/tests/integration/j-59/war/pom.xml
index 9bdf4afb98c..f068de77097 100644
--- a/tests/integration/j-59/war/pom.xml
+++ b/tests/integration/j-59/war/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
../../pom.xml
diff --git a/tests/integration/jaxrs-component-inject/pom.xml b/tests/integration/jaxrs-component-inject/pom.xml
index ec5296c6fae..3f32fbfa446 100644
--- a/tests/integration/jaxrs-component-inject/pom.xml
+++ b/tests/integration/jaxrs-component-inject/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jaxrs-component-inject
diff --git a/tests/integration/jersey-1107/pom.xml b/tests/integration/jersey-1107/pom.xml
index 2523425f264..5d76f560f5f 100644
--- a/tests/integration/jersey-1107/pom.xml
+++ b/tests/integration/jersey-1107/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-1107
diff --git a/tests/integration/jersey-1223/pom.xml b/tests/integration/jersey-1223/pom.xml
index b09d24b13f5..4767bfa30a8 100644
--- a/tests/integration/jersey-1223/pom.xml
+++ b/tests/integration/jersey-1223/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
jersey-1223
diff --git a/tests/integration/jersey-1604/pom.xml b/tests/integration/jersey-1604/pom.xml
index 6f717c0788f..926f4a1f784 100644
--- a/tests/integration/jersey-1604/pom.xml
+++ b/tests/integration/jersey-1604/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
jersey-1604
diff --git a/tests/integration/jersey-1667/pom.xml b/tests/integration/jersey-1667/pom.xml
index 299da318956..9597ce96a0b 100644
--- a/tests/integration/jersey-1667/pom.xml
+++ b/tests/integration/jersey-1667/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-1667
diff --git a/tests/integration/jersey-1883/pom.xml b/tests/integration/jersey-1883/pom.xml
index bad13368a38..30c8bfda976 100644
--- a/tests/integration/jersey-1883/pom.xml
+++ b/tests/integration/jersey-1883/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-1883
diff --git a/tests/integration/jersey-1928/pom.xml b/tests/integration/jersey-1928/pom.xml
index 1170ff6d37f..3bf4df0b811 100644
--- a/tests/integration/jersey-1928/pom.xml
+++ b/tests/integration/jersey-1928/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
jersey-1928
diff --git a/tests/integration/jersey-1960/pom.xml b/tests/integration/jersey-1960/pom.xml
index 6cb905c33cd..f080d81eb87 100644
--- a/tests/integration/jersey-1960/pom.xml
+++ b/tests/integration/jersey-1960/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-1960
diff --git a/tests/integration/jersey-1964/pom.xml b/tests/integration/jersey-1964/pom.xml
index 4807150a694..b17f6b3830b 100644
--- a/tests/integration/jersey-1964/pom.xml
+++ b/tests/integration/jersey-1964/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-1964
diff --git a/tests/integration/jersey-2031/pom.xml b/tests/integration/jersey-2031/pom.xml
index 4beabff84ff..cdeff2a9b36 100644
--- a/tests/integration/jersey-2031/pom.xml
+++ b/tests/integration/jersey-2031/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2031
diff --git a/tests/integration/jersey-2136/pom.xml b/tests/integration/jersey-2136/pom.xml
index 4608bee1092..0e3e3957336 100644
--- a/tests/integration/jersey-2136/pom.xml
+++ b/tests/integration/jersey-2136/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2136
diff --git a/tests/integration/jersey-2137/pom.xml b/tests/integration/jersey-2137/pom.xml
index 51c815b7ad0..5b52320706f 100644
--- a/tests/integration/jersey-2137/pom.xml
+++ b/tests/integration/jersey-2137/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2137
diff --git a/tests/integration/jersey-2154/pom.xml b/tests/integration/jersey-2154/pom.xml
index 1452856ef06..270794a89eb 100644
--- a/tests/integration/jersey-2154/pom.xml
+++ b/tests/integration/jersey-2154/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2154
diff --git a/tests/integration/jersey-2160/pom.xml b/tests/integration/jersey-2160/pom.xml
index 7570efe5bf7..e34070c503c 100644
--- a/tests/integration/jersey-2160/pom.xml
+++ b/tests/integration/jersey-2160/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2160
diff --git a/tests/integration/jersey-2164/pom.xml b/tests/integration/jersey-2164/pom.xml
index a6eb23b0aff..14fb8eac68a 100644
--- a/tests/integration/jersey-2164/pom.xml
+++ b/tests/integration/jersey-2164/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2164
diff --git a/tests/integration/jersey-2167/pom.xml b/tests/integration/jersey-2167/pom.xml
index 8f3fb216cfe..ca086bfab62 100644
--- a/tests/integration/jersey-2167/pom.xml
+++ b/tests/integration/jersey-2167/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2167
diff --git a/tests/integration/jersey-2176/pom.xml b/tests/integration/jersey-2176/pom.xml
index c82c63bde9f..5ecdf8a8a7b 100644
--- a/tests/integration/jersey-2176/pom.xml
+++ b/tests/integration/jersey-2176/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2176
diff --git a/tests/integration/jersey-2184/pom.xml b/tests/integration/jersey-2184/pom.xml
index 35ce2ee7b8f..451d78e8193 100644
--- a/tests/integration/jersey-2184/pom.xml
+++ b/tests/integration/jersey-2184/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2184
diff --git a/tests/integration/jersey-2255/pom.xml b/tests/integration/jersey-2255/pom.xml
index e26a96add3d..e5b3775a8bc 100644
--- a/tests/integration/jersey-2255/pom.xml
+++ b/tests/integration/jersey-2255/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2255
diff --git a/tests/integration/jersey-2322/pom.xml b/tests/integration/jersey-2322/pom.xml
index c137480cb99..83d34e92e8b 100644
--- a/tests/integration/jersey-2322/pom.xml
+++ b/tests/integration/jersey-2322/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2322
diff --git a/tests/integration/jersey-2335/pom.xml b/tests/integration/jersey-2335/pom.xml
index 9e4edaafd8a..9d26519de7f 100644
--- a/tests/integration/jersey-2335/pom.xml
+++ b/tests/integration/jersey-2335/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2335
diff --git a/tests/integration/jersey-2421/pom.xml b/tests/integration/jersey-2421/pom.xml
index 68aca8a592e..1d47fc922ba 100644
--- a/tests/integration/jersey-2421/pom.xml
+++ b/tests/integration/jersey-2421/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2421
diff --git a/tests/integration/jersey-2551/pom.xml b/tests/integration/jersey-2551/pom.xml
index 97f80dc4b1c..9f04dc7ff43 100644
--- a/tests/integration/jersey-2551/pom.xml
+++ b/tests/integration/jersey-2551/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2551
diff --git a/tests/integration/jersey-2612/pom.xml b/tests/integration/jersey-2612/pom.xml
index 4eeff8838c3..2becbab225a 100644
--- a/tests/integration/jersey-2612/pom.xml
+++ b/tests/integration/jersey-2612/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2612
diff --git a/tests/integration/jersey-2637/pom.xml b/tests/integration/jersey-2637/pom.xml
index c3add91d2a1..1e164e155f3 100644
--- a/tests/integration/jersey-2637/pom.xml
+++ b/tests/integration/jersey-2637/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2637
diff --git a/tests/integration/jersey-2654/pom.xml b/tests/integration/jersey-2654/pom.xml
index 9e03b7b385f..d1d81ba4201 100644
--- a/tests/integration/jersey-2654/pom.xml
+++ b/tests/integration/jersey-2654/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2654
diff --git a/tests/integration/jersey-2673/pom.xml b/tests/integration/jersey-2673/pom.xml
index 12f19b83920..0ed2698dd2d 100644
--- a/tests/integration/jersey-2673/pom.xml
+++ b/tests/integration/jersey-2673/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2673
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index eb54f43ee2b..c2af9c5fbf9 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2689
diff --git a/tests/integration/jersey-2704/pom.xml b/tests/integration/jersey-2704/pom.xml
index 1550ca6d3f6..8d2a9df1764 100644
--- a/tests/integration/jersey-2704/pom.xml
+++ b/tests/integration/jersey-2704/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2704
diff --git a/tests/integration/jersey-2776/pom.xml b/tests/integration/jersey-2776/pom.xml
index aed02ed88c4..81658115e6c 100644
--- a/tests/integration/jersey-2776/pom.xml
+++ b/tests/integration/jersey-2776/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2776
diff --git a/tests/integration/jersey-2794/pom.xml b/tests/integration/jersey-2794/pom.xml
index 8b9f5edfaf9..71f22732765 100644
--- a/tests/integration/jersey-2794/pom.xml
+++ b/tests/integration/jersey-2794/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2794
diff --git a/tests/integration/jersey-2846/pom.xml b/tests/integration/jersey-2846/pom.xml
index 3073f2033dc..e9c80d862c0 100644
--- a/tests/integration/jersey-2846/pom.xml
+++ b/tests/integration/jersey-2846/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2846
diff --git a/tests/integration/jersey-2878/pom.xml b/tests/integration/jersey-2878/pom.xml
index a9f658d1a84..a5cedf5055c 100644
--- a/tests/integration/jersey-2878/pom.xml
+++ b/tests/integration/jersey-2878/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2878
diff --git a/tests/integration/jersey-2892/pom.xml b/tests/integration/jersey-2892/pom.xml
index 9ff08ef4757..a4bd8541f3f 100644
--- a/tests/integration/jersey-2892/pom.xml
+++ b/tests/integration/jersey-2892/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-2892
diff --git a/tests/integration/jersey-3662/pom.xml b/tests/integration/jersey-3662/pom.xml
index 1295fdd95c1..e213a16db6f 100644
--- a/tests/integration/jersey-3662/pom.xml
+++ b/tests/integration/jersey-3662/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-3670/pom.xml b/tests/integration/jersey-3670/pom.xml
index e6cd6da86a6..430a020932b 100644
--- a/tests/integration/jersey-3670/pom.xml
+++ b/tests/integration/jersey-3670/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-3670
diff --git a/tests/integration/jersey-3796/pom.xml b/tests/integration/jersey-3796/pom.xml
index ccc6c1e4b2c..feed0d43e4c 100644
--- a/tests/integration/jersey-3796/pom.xml
+++ b/tests/integration/jersey-3796/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-3796
diff --git a/tests/integration/jersey-3992/pom.xml b/tests/integration/jersey-3992/pom.xml
index a8b23f7e44f..03945cb27d2 100644
--- a/tests/integration/jersey-3992/pom.xml
+++ b/tests/integration/jersey-3992/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-3992
diff --git a/tests/integration/jersey-4003/pom.xml b/tests/integration/jersey-4003/pom.xml
index 4ba41513ca1..39086798ccf 100644
--- a/tests/integration/jersey-4003/pom.xml
+++ b/tests/integration/jersey-4003/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4099/pom.xml b/tests/integration/jersey-4099/pom.xml
index 5f89e27b7ab..34ed71e944e 100644
--- a/tests/integration/jersey-4099/pom.xml
+++ b/tests/integration/jersey-4099/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-4099
diff --git a/tests/integration/jersey-4321/pom.xml b/tests/integration/jersey-4321/pom.xml
index 00ffd74a017..6753c2985d7 100644
--- a/tests/integration/jersey-4321/pom.xml
+++ b/tests/integration/jersey-4321/pom.xml
@@ -24,7 +24,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4507/pom.xml b/tests/integration/jersey-4507/pom.xml
index f2854b61c60..94af58dd4c7 100644
--- a/tests/integration/jersey-4507/pom.xml
+++ b/tests/integration/jersey-4507/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4542/pom.xml b/tests/integration/jersey-4542/pom.xml
index f4552fb2da5..63c31a086fc 100644
--- a/tests/integration/jersey-4542/pom.xml
+++ b/tests/integration/jersey-4542/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4697/pom.xml b/tests/integration/jersey-4697/pom.xml
index 483fcb48ff0..40a077424c8 100644
--- a/tests/integration/jersey-4697/pom.xml
+++ b/tests/integration/jersey-4697/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4722/pom.xml b/tests/integration/jersey-4722/pom.xml
index 42a6179ea37..a5cb5dd9505 100644
--- a/tests/integration/jersey-4722/pom.xml
+++ b/tests/integration/jersey-4722/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-4949/pom.xml b/tests/integration/jersey-4949/pom.xml
index 21109f01ec5..9c1dc17b041 100644
--- a/tests/integration/jersey-4949/pom.xml
+++ b/tests/integration/jersey-4949/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-4949
diff --git a/tests/integration/jersey-5087/pom.xml b/tests/integration/jersey-5087/pom.xml
index 3d3fc769744..b9ad43d9d05 100644
--- a/tests/integration/jersey-5087/pom.xml
+++ b/tests/integration/jersey-5087/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/jersey-780/pom.xml b/tests/integration/jersey-780/pom.xml
index bf745a7243b..11da1b9dd37 100644
--- a/tests/integration/jersey-780/pom.xml
+++ b/tests/integration/jersey-780/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-780
diff --git a/tests/integration/microprofile/config/helidon/pom.xml b/tests/integration/microprofile/config/helidon/pom.xml
index 24523539121..b7fbd9f8b5a 100644
--- a/tests/integration/microprofile/config/helidon/pom.xml
+++ b/tests/integration/microprofile/config/helidon/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/config/pom.xml b/tests/integration/microprofile/config/pom.xml
index 0e35bd3f379..72a19f360bb 100644
--- a/tests/integration/microprofile/config/pom.xml
+++ b/tests/integration/microprofile/config/pom.xml
@@ -22,7 +22,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/microprofile/config/webapp/pom.xml b/tests/integration/microprofile/config/webapp/pom.xml
index bfe1646ade8..c8a037f6f2b 100644
--- a/tests/integration/microprofile/config/webapp/pom.xml
+++ b/tests/integration/microprofile/config/webapp/pom.xml
@@ -22,7 +22,7 @@
microprofile-config-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/pom.xml b/tests/integration/microprofile/pom.xml
index 1c40372d9de..78920cb3c9c 100644
--- a/tests/integration/microprofile/pom.xml
+++ b/tests/integration/microprofile/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/microprofile/rest-client-tck/pom.xml b/tests/integration/microprofile/rest-client-tck/pom.xml
index 7e8c542c0a0..3bfcb8b1657 100644
--- a/tests/integration/microprofile/rest-client-tck/pom.xml
+++ b/tests/integration/microprofile/rest-client-tck/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/microprofile/rest-client/pom.xml b/tests/integration/microprofile/rest-client/pom.xml
index f171f6a14b6..3861b71933c 100644
--- a/tests/integration/microprofile/rest-client/pom.xml
+++ b/tests/integration/microprofile/rest-client/pom.xml
@@ -23,7 +23,7 @@
microprofile-integration-project
org.glassfish.jersey.tests.integration.microprofile
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml
index fb6fce8c1e8..3446bbd6498 100644
--- a/tests/integration/pom.xml
+++ b/tests/integration/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.tests.integration
diff --git a/tests/integration/property-check/pom.xml b/tests/integration/property-check/pom.xml
index 6d835922838..0034a1e9e05 100644
--- a/tests/integration/property-check/pom.xml
+++ b/tests/integration/property-check/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
property-check
diff --git a/tests/integration/reactive-streams/pom.xml b/tests/integration/reactive-streams/pom.xml
index 256f6ebfa35..2839516e971 100644
--- a/tests/integration/reactive-streams/pom.xml
+++ b/tests/integration/reactive-streams/pom.xml
@@ -22,7 +22,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
pom
diff --git a/tests/integration/reactive-streams/sse/pom.xml b/tests/integration/reactive-streams/sse/pom.xml
index 28db96f9d31..693f3a604d4 100644
--- a/tests/integration/reactive-streams/sse/pom.xml
+++ b/tests/integration/reactive-streams/sse/pom.xml
@@ -22,7 +22,7 @@
reactive-streams-integration-project
org.glassfish.jersey.tests.integration.reactive
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/security-digest/pom.xml b/tests/integration/security-digest/pom.xml
index 9cb14b2b56c..edab44910a7 100644
--- a/tests/integration/security-digest/pom.xml
+++ b/tests/integration/security-digest/pom.xml
@@ -21,7 +21,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
security-digest
diff --git a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
index 828b5a511c1..87e004c6996 100644
--- a/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-autodiscovery-1
diff --git a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
index e87f1c330a2..636a589e1e9 100644
--- a/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
+++ b/tests/integration/servlet-2.5-autodiscovery-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-autodiscovery-2
diff --git a/tests/integration/servlet-2.5-filter/pom.xml b/tests/integration/servlet-2.5-filter/pom.xml
index d226975ffc2..ea84b164f88 100644
--- a/tests/integration/servlet-2.5-filter/pom.xml
+++ b/tests/integration/servlet-2.5-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-filter
diff --git a/tests/integration/servlet-2.5-inflector-1/pom.xml b/tests/integration/servlet-2.5-inflector-1/pom.xml
index ee7aa1f98cb..3f274dd445d 100644
--- a/tests/integration/servlet-2.5-inflector-1/pom.xml
+++ b/tests/integration/servlet-2.5-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-inflector-1
diff --git a/tests/integration/servlet-2.5-init-1/pom.xml b/tests/integration/servlet-2.5-init-1/pom.xml
index 07072bb6719..c62f6d63b69 100644
--- a/tests/integration/servlet-2.5-init-1/pom.xml
+++ b/tests/integration/servlet-2.5-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-init-1
diff --git a/tests/integration/servlet-2.5-init-2/pom.xml b/tests/integration/servlet-2.5-init-2/pom.xml
index 464f21713d3..a86eb798e99 100644
--- a/tests/integration/servlet-2.5-init-2/pom.xml
+++ b/tests/integration/servlet-2.5-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-init-2
diff --git a/tests/integration/servlet-2.5-init-3/pom.xml b/tests/integration/servlet-2.5-init-3/pom.xml
index b4cc5b316a1..e0c0c1dab71 100644
--- a/tests/integration/servlet-2.5-init-3/pom.xml
+++ b/tests/integration/servlet-2.5-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-init-3
diff --git a/tests/integration/servlet-2.5-init-4/pom.xml b/tests/integration/servlet-2.5-init-4/pom.xml
index 5a52ef75646..e2727c5a5bb 100644
--- a/tests/integration/servlet-2.5-init-4/pom.xml
+++ b/tests/integration/servlet-2.5-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-init-4
diff --git a/tests/integration/servlet-2.5-init-5/pom.xml b/tests/integration/servlet-2.5-init-5/pom.xml
index 1ecfbe5329f..13854d01a38 100644
--- a/tests/integration/servlet-2.5-init-5/pom.xml
+++ b/tests/integration/servlet-2.5-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-init-5
diff --git a/tests/integration/servlet-2.5-init-6/pom.xml b/tests/integration/servlet-2.5-init-6/pom.xml
index b0f42ce657d..909f12476d6 100644
--- a/tests/integration/servlet-2.5-init-6/pom.xml
+++ b/tests/integration/servlet-2.5-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-init-6
diff --git a/tests/integration/servlet-2.5-init-7/pom.xml b/tests/integration/servlet-2.5-init-7/pom.xml
index 5ce4b86d803..fc38cfb5cbd 100644
--- a/tests/integration/servlet-2.5-init-7/pom.xml
+++ b/tests/integration/servlet-2.5-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-init-7
diff --git a/tests/integration/servlet-2.5-init-8/pom.xml b/tests/integration/servlet-2.5-init-8/pom.xml
index cf6da4e098f..a6ccec0e72f 100644
--- a/tests/integration/servlet-2.5-init-8/pom.xml
+++ b/tests/integration/servlet-2.5-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-init-8
diff --git a/tests/integration/servlet-2.5-mvc-1/pom.xml b/tests/integration/servlet-2.5-mvc-1/pom.xml
index fdeef897c5e..cd0bd204436 100644
--- a/tests/integration/servlet-2.5-mvc-1/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-mvc-1
diff --git a/tests/integration/servlet-2.5-mvc-2/pom.xml b/tests/integration/servlet-2.5-mvc-2/pom.xml
index 70c6b7c2f05..edda8c9fbd1 100644
--- a/tests/integration/servlet-2.5-mvc-2/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-mvc-2
diff --git a/tests/integration/servlet-2.5-mvc-3/pom.xml b/tests/integration/servlet-2.5-mvc-3/pom.xml
index c9c9c30776f..dc25c223889 100644
--- a/tests/integration/servlet-2.5-mvc-3/pom.xml
+++ b/tests/integration/servlet-2.5-mvc-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-mvc-3
diff --git a/tests/integration/servlet-2.5-reload/pom.xml b/tests/integration/servlet-2.5-reload/pom.xml
index 838f0ddd201..b2ad37b81e3 100644
--- a/tests/integration/servlet-2.5-reload/pom.xml
+++ b/tests/integration/servlet-2.5-reload/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-2.5-reload
diff --git a/tests/integration/servlet-3-async/pom.xml b/tests/integration/servlet-3-async/pom.xml
index f40fc294522..6d31ae57052 100644
--- a/tests/integration/servlet-3-async/pom.xml
+++ b/tests/integration/servlet-3-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-async
diff --git a/tests/integration/servlet-3-chunked-io/pom.xml b/tests/integration/servlet-3-chunked-io/pom.xml
index 130e201b685..f90d6534d55 100644
--- a/tests/integration/servlet-3-chunked-io/pom.xml
+++ b/tests/integration/servlet-3-chunked-io/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-chunked-io
diff --git a/tests/integration/servlet-3-filter/pom.xml b/tests/integration/servlet-3-filter/pom.xml
index 69ce6a65b87..48d14b26ad2 100644
--- a/tests/integration/servlet-3-filter/pom.xml
+++ b/tests/integration/servlet-3-filter/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-filter
diff --git a/tests/integration/servlet-3-gf-async/pom.xml b/tests/integration/servlet-3-gf-async/pom.xml
index 2eb92a93ff0..f6faa8662a0 100644
--- a/tests/integration/servlet-3-gf-async/pom.xml
+++ b/tests/integration/servlet-3-gf-async/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-gf-async
diff --git a/tests/integration/servlet-3-inflector-1/pom.xml b/tests/integration/servlet-3-inflector-1/pom.xml
index f7008d226ae..6e4b94c1f53 100644
--- a/tests/integration/servlet-3-inflector-1/pom.xml
+++ b/tests/integration/servlet-3-inflector-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-inflector-1
diff --git a/tests/integration/servlet-3-init-1/pom.xml b/tests/integration/servlet-3-init-1/pom.xml
index 9c5a044f2e2..f64b23e8aea 100644
--- a/tests/integration/servlet-3-init-1/pom.xml
+++ b/tests/integration/servlet-3-init-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-init-1
diff --git a/tests/integration/servlet-3-init-2/pom.xml b/tests/integration/servlet-3-init-2/pom.xml
index 196380fef86..4433e052cd9 100644
--- a/tests/integration/servlet-3-init-2/pom.xml
+++ b/tests/integration/servlet-3-init-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-init-2
diff --git a/tests/integration/servlet-3-init-3/pom.xml b/tests/integration/servlet-3-init-3/pom.xml
index b1bf2200801..b37adc01561 100644
--- a/tests/integration/servlet-3-init-3/pom.xml
+++ b/tests/integration/servlet-3-init-3/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-init-3
diff --git a/tests/integration/servlet-3-init-4/pom.xml b/tests/integration/servlet-3-init-4/pom.xml
index a6488338f51..5406a1e1141 100644
--- a/tests/integration/servlet-3-init-4/pom.xml
+++ b/tests/integration/servlet-3-init-4/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-init-4
diff --git a/tests/integration/servlet-3-init-5/pom.xml b/tests/integration/servlet-3-init-5/pom.xml
index f633aa617b9..575b96d468f 100644
--- a/tests/integration/servlet-3-init-5/pom.xml
+++ b/tests/integration/servlet-3-init-5/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-init-5
diff --git a/tests/integration/servlet-3-init-6/pom.xml b/tests/integration/servlet-3-init-6/pom.xml
index 8e34c9c6f76..e5b6f63a5f8 100644
--- a/tests/integration/servlet-3-init-6/pom.xml
+++ b/tests/integration/servlet-3-init-6/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-init-6
diff --git a/tests/integration/servlet-3-init-7/pom.xml b/tests/integration/servlet-3-init-7/pom.xml
index 0cbda95c447..83dfe233aa2 100644
--- a/tests/integration/servlet-3-init-7/pom.xml
+++ b/tests/integration/servlet-3-init-7/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-init-7
diff --git a/tests/integration/servlet-3-init-8/pom.xml b/tests/integration/servlet-3-init-8/pom.xml
index a88ed6a020a..0a3b34ac6ee 100644
--- a/tests/integration/servlet-3-init-8/pom.xml
+++ b/tests/integration/servlet-3-init-8/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-init-8
diff --git a/tests/integration/servlet-3-init-9/pom.xml b/tests/integration/servlet-3-init-9/pom.xml
index c00298579d5..b82f7639e2b 100644
--- a/tests/integration/servlet-3-init-9/pom.xml
+++ b/tests/integration/servlet-3-init-9/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-init-9
diff --git a/tests/integration/servlet-3-init-provider/pom.xml b/tests/integration/servlet-3-init-provider/pom.xml
index 3c440b93642..b51f4d4f5f5 100644
--- a/tests/integration/servlet-3-init-provider/pom.xml
+++ b/tests/integration/servlet-3-init-provider/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-init-provider
diff --git a/tests/integration/servlet-3-params/pom.xml b/tests/integration/servlet-3-params/pom.xml
index 7c8e591507f..17df5c7d0fc 100644
--- a/tests/integration/servlet-3-params/pom.xml
+++ b/tests/integration/servlet-3-params/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-params
diff --git a/tests/integration/servlet-3-sse-1/pom.xml b/tests/integration/servlet-3-sse-1/pom.xml
index 93b54afe851..7fbb9fb7c1d 100644
--- a/tests/integration/servlet-3-sse-1/pom.xml
+++ b/tests/integration/servlet-3-sse-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-3-sse-1
diff --git a/tests/integration/servlet-4.0-mvc-1/pom.xml b/tests/integration/servlet-4.0-mvc-1/pom.xml
index 54b6a2db90d..285ac6e2476 100644
--- a/tests/integration/servlet-4.0-mvc-1/pom.xml
+++ b/tests/integration/servlet-4.0-mvc-1/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-4.0-mvc-1
diff --git a/tests/integration/servlet-request-wrapper-binding-2/pom.xml b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
index a7fac76a4e1..f3d8a5081ab 100644
--- a/tests/integration/servlet-request-wrapper-binding-2/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding-2/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-request-wrappper-binding-2
diff --git a/tests/integration/servlet-request-wrapper-binding/pom.xml b/tests/integration/servlet-request-wrapper-binding/pom.xml
index 87a7da58c3e..2653572d969 100644
--- a/tests/integration/servlet-request-wrapper-binding/pom.xml
+++ b/tests/integration/servlet-request-wrapper-binding/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-request-wrappper-binding
diff --git a/tests/integration/servlet-tests/pom.xml b/tests/integration/servlet-tests/pom.xml
index acdf0a907c3..4bc8fccbca8 100644
--- a/tests/integration/servlet-tests/pom.xml
+++ b/tests/integration/servlet-tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
servlet-tests
diff --git a/tests/integration/sonar-test/pom.xml b/tests/integration/sonar-test/pom.xml
index 0a99bf85f41..ab6fa38b24d 100644
--- a/tests/integration/sonar-test/pom.xml
+++ b/tests/integration/sonar-test/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
sonar-test
diff --git a/tests/integration/spring6/pom.xml b/tests/integration/spring6/pom.xml
index 3c0201adae6..c973940bf69 100644
--- a/tests/integration/spring6/pom.xml
+++ b/tests/integration/spring6/pom.xml
@@ -25,7 +25,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
spring6
diff --git a/tests/integration/thin-server/pom.xml b/tests/integration/thin-server/pom.xml
index dee37153392..a0fa66a1d97 100644
--- a/tests/integration/thin-server/pom.xml
+++ b/tests/integration/thin-server/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests.integration
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/integration/tracing-support/pom.xml b/tests/integration/tracing-support/pom.xml
index 0e629bcb20f..477ef1e2c8a 100644
--- a/tests/integration/tracing-support/pom.xml
+++ b/tests/integration/tracing-support/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.integration
project
- 3.1.0
+ 3.1.99-SNAPSHOT
tracing-support
diff --git a/tests/jmockit/pom.xml b/tests/jmockit/pom.xml
index 0b45449b6a2..02dea8dd7ed 100644
--- a/tests/jmockit/pom.xml
+++ b/tests/jmockit/pom.xml
@@ -23,7 +23,7 @@
project
org.glassfish.jersey.tests
- 3.1.0
+ 3.1.99-SNAPSHOT
4.0.0
diff --git a/tests/mem-leaks/pom.xml b/tests/mem-leaks/pom.xml
index 3bf3bd5f921..eab9a699515 100644
--- a/tests/mem-leaks/pom.xml
+++ b/tests/mem-leaks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.tests.memleaks
diff --git a/tests/mem-leaks/redeployment/pom.xml b/tests/mem-leaks/redeployment/pom.xml
index bd04c1644e9..41159b2de12 100644
--- a/tests/mem-leaks/redeployment/pom.xml
+++ b/tests/mem-leaks/redeployment/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.tests.memleaks.redeployment
diff --git a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
index 89af4f0a52b..5922acb560a 100644
--- a/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-hello-world-app-ref/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.1.0
+ 3.1.99-SNAPSHOT
redeployment-hello-world-app-ref
@@ -132,7 +132,7 @@
org.glassfish.jersey.examples
helloworld-webapp
war
- 3.1.0
+ 3.1.99-SNAPSHOT
diff --git a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
index 27fa6a73c1b..334ddecdfdd 100644
--- a/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.1.0
+ 3.1.99-SNAPSHOT
redeployment-leaking-test-app
diff --git a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
index ab349080458..1fb99dbcf57 100644
--- a/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-no-jersey-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.1.0
+ 3.1.99-SNAPSHOT
redeployment-no-jersey-app
diff --git a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
index b92ec84cdef..4a8b230bd17 100644
--- a/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
+++ b/tests/mem-leaks/redeployment/redeployment-threadlocals-app/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.memleaks.redeployment
project
- 3.1.0
+ 3.1.99-SNAPSHOT
redeployment-threadlocals-app
diff --git a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
index 47adbd8cd19..9622c315606 100644
--- a/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/bean-param-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
bean-param-leak
diff --git a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
index 56422c61001..6bb21f3cc04 100644
--- a/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
+++ b/tests/mem-leaks/test-cases/leaking-test-app/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
leaking-test-app
diff --git a/tests/mem-leaks/test-cases/pom.xml b/tests/mem-leaks/test-cases/pom.xml
index 8d6d655895a..0e32f6548f6 100644
--- a/tests/mem-leaks/test-cases/pom.xml
+++ b/tests/mem-leaks/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.tests.memleaks.testcases
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
index da31354c716..0b31820c377 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak-client/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
shutdown-hook-leak-client
diff --git a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
index 975e0201477..bf8f6eecace 100644
--- a/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
+++ b/tests/mem-leaks/test-cases/shutdown-hook-leak/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.memleaks.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
shutdown-hook-leak
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index fd167cddfd2..ab0a2eb5bde 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -24,7 +24,7 @@
org.glassfish.jersey.tests.osgi
project
- 3.1.0
+ 3.1.99-SNAPSHOT
jersey-tests-osgi-functional
diff --git a/tests/osgi/pom.xml b/tests/osgi/pom.xml
index 10db9b015e1..c359c9eaf0e 100644
--- a/tests/osgi/pom.xml
+++ b/tests/osgi/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.tests.osgi
diff --git a/tests/performance/benchmarks/pom.xml b/tests/performance/benchmarks/pom.xml
index 2a92a4802e9..21a6d4306c0 100644
--- a/tests/performance/benchmarks/pom.xml
+++ b/tests/performance/benchmarks/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.1.0
+ 3.1.99-SNAPSHOT
performance-test-benchmarks
diff --git a/tests/performance/pom.xml b/tests/performance/pom.xml
index b12e7d2e2d1..3419ecba1aa 100644
--- a/tests/performance/pom.xml
+++ b/tests/performance/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.tests.performance
diff --git a/tests/performance/runners/jersey-grizzly-runner/pom.xml b/tests/performance/runners/jersey-grizzly-runner/pom.xml
index 0190f83e31e..e15c48fe20c 100644
--- a/tests/performance/runners/jersey-grizzly-runner/pom.xml
+++ b/tests/performance/runners/jersey-grizzly-runner/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.runners
project
- 3.1.0
+ 3.1.99-SNAPSHOT
diff --git a/tests/performance/runners/pom.xml b/tests/performance/runners/pom.xml
index 45419fba256..d88396ff2aa 100644
--- a/tests/performance/runners/pom.xml
+++ b/tests/performance/runners/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.tests.performance.runners
diff --git a/tests/performance/test-cases/assemblies/pom.xml b/tests/performance/test-cases/assemblies/pom.xml
index ca375d4a5e1..400487ac870 100644
--- a/tests/performance/test-cases/assemblies/pom.xml
+++ b/tests/performance/test-cases/assemblies/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
assemblies
diff --git a/tests/performance/test-cases/filter-dynamic/pom.xml b/tests/performance/test-cases/filter-dynamic/pom.xml
index 6bc1a89719d..adcf7e2d810 100644
--- a/tests/performance/test-cases/filter-dynamic/pom.xml
+++ b/tests/performance/test-cases/filter-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
filter-dynamic
diff --git a/tests/performance/test-cases/filter-global/pom.xml b/tests/performance/test-cases/filter-global/pom.xml
index e33a428882d..346b3425e9d 100644
--- a/tests/performance/test-cases/filter-global/pom.xml
+++ b/tests/performance/test-cases/filter-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
filter-global
diff --git a/tests/performance/test-cases/filter-name/pom.xml b/tests/performance/test-cases/filter-name/pom.xml
index b2c6bbd407a..8396481d6dd 100644
--- a/tests/performance/test-cases/filter-name/pom.xml
+++ b/tests/performance/test-cases/filter-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
filter-name
diff --git a/tests/performance/test-cases/interceptor-dynamic/pom.xml b/tests/performance/test-cases/interceptor-dynamic/pom.xml
index 79736426b5f..e7aecfe14e0 100644
--- a/tests/performance/test-cases/interceptor-dynamic/pom.xml
+++ b/tests/performance/test-cases/interceptor-dynamic/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
interceptor-dynamic
diff --git a/tests/performance/test-cases/interceptor-global/pom.xml b/tests/performance/test-cases/interceptor-global/pom.xml
index ef08dd8ffdd..1a65ee6d3e5 100644
--- a/tests/performance/test-cases/interceptor-global/pom.xml
+++ b/tests/performance/test-cases/interceptor-global/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
interceptor-global
diff --git a/tests/performance/test-cases/interceptor-name/pom.xml b/tests/performance/test-cases/interceptor-name/pom.xml
index 5104dfd2c19..5c4dceb7398 100644
--- a/tests/performance/test-cases/interceptor-name/pom.xml
+++ b/tests/performance/test-cases/interceptor-name/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
interceptor-name
diff --git a/tests/performance/test-cases/mbw-custom-provider/pom.xml b/tests/performance/test-cases/mbw-custom-provider/pom.xml
index fc4e3a3a59c..d2dde4847fd 100644
--- a/tests/performance/test-cases/mbw-custom-provider/pom.xml
+++ b/tests/performance/test-cases/mbw-custom-provider/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
custom-provider
diff --git a/tests/performance/test-cases/mbw-json-jackson/pom.xml b/tests/performance/test-cases/mbw-json-jackson/pom.xml
index 92d4373f782..be790fdf6d2 100644
--- a/tests/performance/test-cases/mbw-json-jackson/pom.xml
+++ b/tests/performance/test-cases/mbw-json-jackson/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
json-jackson
diff --git a/tests/performance/test-cases/mbw-json-moxy/pom.xml b/tests/performance/test-cases/mbw-json-moxy/pom.xml
index a4b085cacc8..9720052129d 100644
--- a/tests/performance/test-cases/mbw-json-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-json-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
json-moxy
diff --git a/tests/performance/test-cases/mbw-kryo/pom.xml b/tests/performance/test-cases/mbw-kryo/pom.xml
index e1035a0640b..6597f90f7fb 100644
--- a/tests/performance/test-cases/mbw-kryo/pom.xml
+++ b/tests/performance/test-cases/mbw-kryo/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
mbw-kryo
diff --git a/tests/performance/test-cases/mbw-text-plain/pom.xml b/tests/performance/test-cases/mbw-text-plain/pom.xml
index 0bd7d98ff8e..59c6c09dd94 100644
--- a/tests/performance/test-cases/mbw-text-plain/pom.xml
+++ b/tests/performance/test-cases/mbw-text-plain/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
text-plain
diff --git a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
index df556089b0e..b951acfb18c 100644
--- a/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-jaxb/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
xml-jaxb
diff --git a/tests/performance/test-cases/mbw-xml-moxy/pom.xml b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
index d37c5b78f0a..58cabf89ee6 100644
--- a/tests/performance/test-cases/mbw-xml-moxy/pom.xml
+++ b/tests/performance/test-cases/mbw-xml-moxy/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
xml-moxy
diff --git a/tests/performance/test-cases/param-srl/pom.xml b/tests/performance/test-cases/param-srl/pom.xml
index 3fe24677908..727ab5169f7 100644
--- a/tests/performance/test-cases/param-srl/pom.xml
+++ b/tests/performance/test-cases/param-srl/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
param-srl
diff --git a/tests/performance/test-cases/pom.xml b/tests/performance/test-cases/pom.xml
index 7be22bf34a9..5da53b89867 100644
--- a/tests/performance/test-cases/pom.xml
+++ b/tests/performance/test-cases/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.tests.performance.testcases
diff --git a/tests/performance/test-cases/proxy-injection/pom.xml b/tests/performance/test-cases/proxy-injection/pom.xml
index c6d456b7f34..b22e2713271 100644
--- a/tests/performance/test-cases/proxy-injection/pom.xml
+++ b/tests/performance/test-cases/proxy-injection/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests.performance.testcases
project
- 3.1.0
+ 3.1.99-SNAPSHOT
proxy-injection
diff --git a/tests/performance/tools/pom.xml b/tests/performance/tools/pom.xml
index d6289ce0022..09f3cee8370 100644
--- a/tests/performance/tools/pom.xml
+++ b/tests/performance/tools/pom.xml
@@ -22,7 +22,7 @@
org.glassfish.jersey.tests.performance
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.tests.performance.tools
performance-test-tools
diff --git a/tests/pom.xml b/tests/pom.xml
index d7de6c329f3..71a988d67f0 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey
project
- 3.1.0
+ 3.1.99-SNAPSHOT
org.glassfish.jersey.tests
diff --git a/tests/stress/pom.xml b/tests/stress/pom.xml
index 7b28a8cfbc6..ef4b5a19399 100644
--- a/tests/stress/pom.xml
+++ b/tests/stress/pom.xml
@@ -23,7 +23,7 @@
org.glassfish.jersey.tests
project
- 3.1.0
+ 3.1.99-SNAPSHOT
stress
From 7e7d33928141437fc0448e3f352d513dc2a0ea6d Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Fri, 4 Nov 2022 10:23:10 +0100
Subject: [PATCH 120/305] add dependencyConvergence rule to the
maven-enforcer-plugin
Signed-off-by: Maxim Nesen
---
containers/pom.xml | 6 ++
examples/entity-filtering-security/pom.xml | 6 ++
examples/entity-filtering-selectable/pom.xml | 6 ++
examples/entity-filtering/pom.xml | 6 ++
examples/open-tracing/pom.xml | 12 ++-
ext/microprofile/mp-rest-client/pom.xml | 2 +-
ext/spring4/pom.xml | 12 +++
incubator/html-json/pom.xml | 1 +
media/json-jackson/pom.xml | 12 +++
pom.xml | 9 ++-
security/oauth2-client/pom.xml | 6 ++
.../container-runner-maven-plugin/pom.xml | 78 ++++++++++++++++++-
.../maven/custom-enforcer-rules/pom.xml | 22 +++++-
test-framework/providers/bundle/pom.xml | 6 ++
tests/integration/j-376/pom.xml | 1 -
tests/integration/jersey-2689/pom.xml | 6 ++
.../microprofile/config/webapp/pom.xml | 6 ++
tests/osgi/functional/pom.xml | 4 +
tests/performance/benchmarks/pom.xml | 6 ++
19 files changed, 196 insertions(+), 11 deletions(-)
diff --git a/containers/pom.xml b/containers/pom.xml
index 5e9e98fd720..00ee924f3e1 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -61,6 +61,12 @@
jakarta.ws.rs
jakarta.ws.rs-api
+
+
+ jakarta.activation
+ jakarta.activation-api
+
+
diff --git a/examples/entity-filtering-security/pom.xml b/examples/entity-filtering-security/pom.xml
index 79ba621b0c6..36427c25326 100644
--- a/examples/entity-filtering-security/pom.xml
+++ b/examples/entity-filtering-security/pom.xml
@@ -30,6 +30,12 @@
org.glassfish.jersey.core
jersey-server
+
+
+ jakarta.activation
+ jakarta.activation-api
+
+
org.glassfish.jersey.containers
diff --git a/examples/entity-filtering-selectable/pom.xml b/examples/entity-filtering-selectable/pom.xml
index 463b10f9f6b..564e0778329 100644
--- a/examples/entity-filtering-selectable/pom.xml
+++ b/examples/entity-filtering-selectable/pom.xml
@@ -30,6 +30,12 @@
org.glassfish.jersey.core
jersey-server
+
+
+ jakarta.activation
+ jakarta.activation-api
+
+
org.glassfish.jersey.containers
diff --git a/examples/entity-filtering/pom.xml b/examples/entity-filtering/pom.xml
index 6c15e19bb5c..e7a44843c9a 100644
--- a/examples/entity-filtering/pom.xml
+++ b/examples/entity-filtering/pom.xml
@@ -30,6 +30,12 @@
org.glassfish.jersey.core
jersey-server
+
+
+ jakarta.activation
+ jakarta.activation-api
+
+
org.glassfish.jersey.containers
diff --git a/examples/open-tracing/pom.xml b/examples/open-tracing/pom.xml
index 1bf2dc13afb..7c404ba8b95 100644
--- a/examples/open-tracing/pom.xml
+++ b/examples/open-tracing/pom.xml
@@ -52,7 +52,17 @@
com.uber.jaeger
jaeger-core
- 0.20.0
+ 0.27.0
+
+
+ org.slf4j
+ slf4j-api
+
+
+ org.apache.httpcomponents
+ httpcore
+
+
diff --git a/ext/microprofile/mp-rest-client/pom.xml b/ext/microprofile/mp-rest-client/pom.xml
index a07cb3012e1..730b9465c8e 100644
--- a/ext/microprofile/mp-rest-client/pom.xml
+++ b/ext/microprofile/mp-rest-client/pom.xml
@@ -37,7 +37,7 @@
org.eclipse.microprofile.config
microprofile-config-api
- 1.3
+ 1.4
org.glassfish.jersey.core
diff --git a/ext/spring4/pom.xml b/ext/spring4/pom.xml
index 4ac0dc65136..70ff79839da 100644
--- a/ext/spring4/pom.xml
+++ b/ext/spring4/pom.xml
@@ -88,6 +88,18 @@
org.glassfish.hk2
hk2-api
+
+ org.springframework
+ spring-aop
+
+
+ org.springframework
+ spring-context
+
+
+ org.springframework
+ spring-beans
+
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index 16026364da8..1714b3401fa 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -40,6 +40,7 @@
1.5.1
+ true
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index ccfb15ac64a..d99b90067ed 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -95,6 +95,12 @@
org.glassfish.jersey.core
jersey-common
${project.version}
+
+
+ jakarta.activation
+ jakarta.activation-api
+
+
org.glassfish.jersey.ext
@@ -121,6 +127,12 @@
com.fasterxml.jackson.module
jackson-module-jaxb-annotations
+
+
+ jakarta.activation
+ jakarta.activation-api
+
+
junit
diff --git a/pom.xml b/pom.xml
index 5d47d1b85ef..2ed2d538e5f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -236,7 +236,7 @@
org.apache.maven.plugins
maven-enforcer-plugin
- 3.0.0-M2
+ 3.1.0
enforce-versions
@@ -248,6 +248,7 @@
${java.version}
+
@@ -2192,7 +2193,7 @@
2.0.4
6.0.1
false
- 1.7.21
+ 2.0.3
4.3.20.RELEASE
5.3.18
3.0.0-M5
@@ -2216,7 +2217,7 @@
org.glassfish.hk2.*;version="[2.5,4)"
org.jvnet.hk2.*;version="[2.5,4)"
5.1.0
- 3.0.8
+ 3.0.12
1.2.2
3.0.3
3.0.4
@@ -2231,7 +2232,7 @@
2.1.6
6.1.26
org.eclipse.jetty.*;version="[9.4,11)"
- 9.4.46.v20220331
+ 9.4.49.v20220914
6.1.14
1.0.2
1.1.6
diff --git a/security/oauth2-client/pom.xml b/security/oauth2-client/pom.xml
index e9f8c7fe0cd..84afcd6354f 100644
--- a/security/oauth2-client/pom.xml
+++ b/security/oauth2-client/pom.xml
@@ -57,6 +57,12 @@
org.glassfish.jersey.core
jersey-client
${project.version}
+
+
+ jakarta.activation
+ jakarta.activation-api
+
+
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index 4b98928027e..c7571c35b7f 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -39,8 +39,8 @@
3.0.2
3.6.0-03
3.0.2-02
- 3.6.0
- 3.6.0
+ 3.8.6
+ 3.6.4
@@ -49,16 +49,37 @@
org.apache.maven
maven-core
${maven.version}
+ provided
+
+
+ org.codehaus.plexus
+ plexus-component-annotations
+
+
+ org.codehaus.plexus
+ plexus-utils
+
+
+ org.codehaus.plexus
+ plexus-classworlds
+
+
+ org.slf4j
+ slf4j-api
+
+
org.apache.maven
maven-model
${maven.version}
+ provided
org.apache.maven
maven-plugin-api
${maven.version}
+ provided
org.apache.maven
@@ -71,6 +92,7 @@
org.apache.maven
maven-artifact
${maven.version}
+ provided
@@ -98,7 +120,41 @@
org.codehaus.gmavenplus
gmavenplus-plugin
- 1.7.0
+ 1.13.1
+
+
+ org.apache.maven.shared
+ maven-shared-utils
+
+
+ org.codehaus.plexus
+ plexus-utils
+
+
+ org.codehaus.plexus
+ plexus-interpolation
+
+
+ commons-io
+ commons-io
+
+
+ org.apache.maven
+ maven-model
+
+
+ org.apache.maven
+ maven-artifact
+
+
+ org.apache.maven
+ maven-core
+
+
+ org.apache.maven
+ maven-plugin-api
+
+
@@ -106,11 +162,27 @@
junit
+
+ org.slf4j
+ slf4j-api
+ ${slf4j.version}
+
+
org.codehaus.groovy
groovy-all
pom
${groovy.version}
+
+
+ org.apache.ant
+ ant-launcher
+
+
+ org.apache.ant
+ ant
+
+
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index ad2c6fe1927..46b9a43524c 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -34,12 +34,32 @@
org.apache.maven.plugins
maven-enforcer-plugin
- 1.4.1
+ 3.1.0
junit
junit
+
+ org.codehaus.plexus
+ plexus-classworlds
+
+
+ org.codehaus.plexus
+ plexus-utils
+
+
+ commons-io
+ commons-io
+
+
+ org.apache.maven
+ maven-core
+
+
+ org.eclipse.aether
+ aether-util
+
diff --git a/test-framework/providers/bundle/pom.xml b/test-framework/providers/bundle/pom.xml
index 057f0b64703..467b4dbcc02 100644
--- a/test-framework/providers/bundle/pom.xml
+++ b/test-framework/providers/bundle/pom.xml
@@ -62,6 +62,12 @@
org.glassfish.jersey.test-framework.providers
jersey-test-framework-provider-jetty
${project.version}
+
+
+ javax.servlet
+ javax.servlet-api
+
+
org.glassfish.jersey.test-framework.providers
diff --git a/tests/integration/j-376/pom.xml b/tests/integration/j-376/pom.xml
index 0e49f70cc1a..d6453e74bc0 100644
--- a/tests/integration/j-376/pom.xml
+++ b/tests/integration/j-376/pom.xml
@@ -86,7 +86,6 @@
org.glassfish.grizzly
grizzly-http-server
- 2.3.16
compile
diff --git a/tests/integration/jersey-2689/pom.xml b/tests/integration/jersey-2689/pom.xml
index b6409a5f6ec..07de126e744 100644
--- a/tests/integration/jersey-2689/pom.xml
+++ b/tests/integration/jersey-2689/pom.xml
@@ -61,6 +61,12 @@
com.fasterxml.jackson.jaxrs
jackson-jaxrs-json-provider
${jackson.version}
+
+
+ jakarta.activation
+ jakarta.activation-api
+
+
diff --git a/tests/integration/microprofile/config/webapp/pom.xml b/tests/integration/microprofile/config/webapp/pom.xml
index b58f9435759..3e21f2edd3d 100644
--- a/tests/integration/microprofile/config/webapp/pom.xml
+++ b/tests/integration/microprofile/config/webapp/pom.xml
@@ -33,6 +33,12 @@
org.glassfish.jersey.core
jersey-server
+
+
+ jakarta.activation
+ jakarta.activation-api
+
+
org.glassfish.jersey.bundles
diff --git a/tests/osgi/functional/pom.xml b/tests/osgi/functional/pom.xml
index 681e8fdd892..5b0a8893d60 100644
--- a/tests/osgi/functional/pom.xml
+++ b/tests/osgi/functional/pom.xml
@@ -426,4 +426,8 @@
+
+ true
+
+
diff --git a/tests/performance/benchmarks/pom.xml b/tests/performance/benchmarks/pom.xml
index b8b6a67744f..b977edc447f 100644
--- a/tests/performance/benchmarks/pom.xml
+++ b/tests/performance/benchmarks/pom.xml
@@ -37,6 +37,12 @@
org.glassfish.jersey.core
jersey-server
${project.version}
+
+
+ jakarta.activation
+ jakarta.activation-api
+
+
org.glassfish.jersey.media
From b46e89fa89b46a540cd52d19dafb14ce101997d0 Mon Sep 17 00:00:00 2001
From: Maxim Nesen
Date: Fri, 4 Nov 2022 11:38:47 +0100
Subject: [PATCH 121/305] Timeout extended to 30 HOURS
Signed-off-by: Maxim Nesen
---
etc/jenkins/Jenkinsfile_ci_build | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/etc/jenkins/Jenkinsfile_ci_build b/etc/jenkins/Jenkinsfile_ci_build
index 5cf0b4681c3..3a0298b14af 100644
--- a/etc/jenkins/Jenkinsfile_ci_build
+++ b/etc/jenkins/Jenkinsfile_ci_build
@@ -2,7 +2,7 @@ pipeline {
agent none
options {
- timeout(time: 30, activity: true, unit: 'MINUTES')
+ timeout(time: 30, activity: true, unit: 'HOURS')
}
stages {
@@ -53,4 +53,4 @@ pipeline {
}
}
}
-}
\ No newline at end of file
+}
From f03e351c9f481aa5c81cf674b9709d1d8d7446f3 Mon Sep 17 00:00:00 2001
From: "Vladimir V. Bychkov"
Date: Fri, 28 Oct 2022 12:30:37 +0200
Subject: [PATCH 122/305] JUnit tests actualized: 4 -> 5
---
.../src/test/java/MyResourceTest.java | 4 +-
.../resources/archetype-resources/pom.xml | 7 +-
.../src/test/java/MyResourceTest.java | 12 +-
.../jersey/apache/connector/AsyncTest.java | 12 +-
.../jersey/apache/connector/AuthTest.java | 18 +-
.../jersey/apache/connector/CookieTest.java | 12 +-
.../apache/connector/CustomLoggingFilter.java | 12 +-
.../connector/DisableContentEncodingTest.java | 6 +-
.../apache/connector/FollowRedirectsTest.java | 6 +-
.../connector/GZIPContentEncodingTest.java | 6 +-
.../apache/connector/HelloWorldTest.java | 20 +-
.../apache/connector/HttpEntityTest.java | 14 +-
.../apache/connector/HttpHeadersTest.java | 8 +-
.../apache/connector/HttpMethodTest.java | 11 +-
.../apache/connector/LargeDataTest.java | 11 +-
.../apache/connector/ManagedClientTest.java | 6 +-
.../jersey/apache/connector/NoEntityTest.java | 4 +-
.../apache/connector/RetryHandlerTest.java | 6 +-
.../apache/connector/SpecialHeaderTest.java | 30 +-
.../apache/connector/StreamingTest.java | 6 +-
.../jersey/apache/connector/TimeoutTest.java | 10 +-
.../apache/connector/TraceSupportTest.java | 22 +-
.../UnderlyingCookieStoreAccessTest.java | 16 +-
.../UnderlyingHttpClientAccessTest.java | 18 +-
.../jersey/apache5/connector/AsyncTest.java | 10 +-
.../jersey/apache5/connector/AuthTest.java | 16 +-
.../jersey/apache5/connector/CookieTest.java | 10 +-
.../connector/CustomLoggingFilter.java | 10 +-
.../connector/DisableContentEncodingTest.java | 4 +-
.../connector/FollowRedirectsTest.java | 4 +-
.../connector/GZIPContentEncodingTest.java | 4 +-
.../apache5/connector/HelloWorldTest.java | 18 +-
.../apache5/connector/HttpEntityTest.java | 12 +-
.../apache5/connector/HttpHeadersTest.java | 6 +-
.../apache5/connector/HttpMethodTest.java | 8 +-
.../apache5/connector/LargeDataTest.java | 9 +-
.../apache5/connector/ManagedClientTest.java | 4 +-
.../apache5/connector/NoEntityTest.java | 2 +-
.../apache5/connector/RetryStrategyTest.java | 4 +-
.../apache5/connector/SpecialHeaderTest.java | 28 +-
.../apache5/connector/StreamingTest.java | 4 +-
.../jersey/apache5/connector/TimeoutTest.java | 8 +-
.../apache5/connector/TraceSupportTest.java | 20 +-
.../UnderlyingCookieStoreAccessTest.java | 14 +-
.../UnderlyingHttpClientAccessTest.java | 16 +-
.../jersey/grizzly/connector/AsyncTest.java | 8 +-
.../grizzly/connector/CustomizersTest.java | 6 +-
.../connector/FollowRedirectsTest.java | 6 +-
.../grizzly/connector/HttpHeadersTest.java | 8 +-
.../grizzly/connector/HttpMethodTest.java | 8 +-
.../grizzly/connector/NoEntityTest.java | 4 +-
.../grizzly/connector/ParallelTest.java | 20 +-
.../jersey/grizzly/connector/TimeoutTest.java | 10 +-
.../grizzly/connector/TraceSupportTest.java | 22 +-
.../UnderlyingHttpClientAccessTest.java | 18 +-
.../jersey/helidon/connector/AsyncTest.java | 8 +-
.../connector/BasicHelidonConnectorTest.java | 320 +++++------
.../connector/FollowRedirectsTest.java | 6 +-
.../helidon/connector/LargeDataTest.java | 11 +-
.../helidon/connector/ParallelTest.java | 20 +-
.../jersey/helidon/connector/TimeoutTest.java | 12 +-
.../connector/sse/EventOutputTest.java | 28 +-
.../jersey/helidon/connector/sse/SseTest.java | 22 +-
.../jersey/jdk/connector/HttpMethodTest.java | 8 +-
.../AsynchronousBodyInputStreamTest.java | 17 +-
.../AsynchronousBodyOutputStreamTest.java | 15 +-
.../internal/ChunkedBodyOutputStreamTest.java | 10 +-
.../internal/ConnectionPoolTest.java | 8 +-
.../jdk/connector/internal/CookieTest.java | 8 +-
.../connector/internal/EntityWriteTest.java | 6 +-
.../internal/HttpConnectionTest.java | 12 +-
.../connector/internal/HttpParserTest.java | 20 +-
.../ModifyHeaderInBodyWriterTest.java | 6 +-
.../internal/MultiValueHeaderTest.java | 10 +-
.../jdk/connector/internal/ProxyTest.java | 10 +-
.../connector/internal/PublicSitesTest.java | 12 +-
.../connector/internal/ReadChunkedEntity.java | 6 +-
.../jdk/connector/internal/RedirectTest.java | 10 +-
.../jdk/connector/internal/SslFilterTest.java | 10 +-
.../jersey/jetty/connector/AsyncTest.java | 8 +-
.../jetty/connector/AuthFilterTest.java | 6 +-
.../jersey/jetty/connector/AuthTest.java | 8 +-
.../jersey/jetty/connector/CookieTest.java | 12 +-
.../jetty/connector/CustomLoggingFilter.java | 12 +-
.../jersey/jetty/connector/EntityTest.java | 6 +-
.../jersey/jetty/connector/ErrorTest.java | 6 +-
.../jetty/connector/FollowRedirectsTest.java | 6 +-
.../connector/GZIPContentEncodingTest.java | 6 +-
.../jetty/connector/HelloWorldTest.java | 8 +-
.../jetty/connector/HttpHeadersTest.java | 10 +-
.../jetty/connector/ManagedClientTest.java | 6 +-
.../jersey/jetty/connector/MethodTest.java | 6 +-
.../jersey/jetty/connector/NoEntityTest.java | 4 +-
.../jetty/connector/SyncResponseSizeTest.java | 12 +-
.../jersey/jetty/connector/TimeoutTest.java | 16 +-
.../jetty/connector/TraceSupportTest.java | 22 +-
.../UnderlyingHttpClientAccessTest.java | 20 +-
.../jersey/netty/connector/AsyncTest.java | 8 +-
.../netty/connector/CustomLoggingFilter.java | 12 +-
.../netty/connector/FollowRedirectsTest.java | 6 +-
.../netty/connector/HelloWorldTest.java | 8 +-
.../netty/connector/HttpHeadersTest.java | 8 +-
.../netty/connector/HugeEntityTest.java | 4 +-
.../jersey/netty/connector/MethodTest.java | 6 +-
.../jersey/netty/connector/NoEntityTest.java | 4 +-
.../jersey/netty/connector/ParallelTest.java | 20 +-
.../jersey/netty/connector/TimeoutTest.java | 10 +-
.../netty/connector/TraceSupportTest.java | 22 +-
connectors/pom.xml | 4 +-
containers/jdk-http/pom.xml | 5 +
.../jdkhttp/AbstractJdkHttpServerTester.java | 6 +-
.../jdkhttp/BasicJdkHttpServerTest.java | 8 +-
.../jersey/jdkhttp/JdkHttpPackageTest.java | 6 +-
.../jersey/jdkhttp/JdkHttpsServerTest.java | 74 +--
.../jersey/jdkhttp/LifecycleListenerTest.java | 14 +-
.../jersey/jdkhttp/RuntimeDelegateTest.java | 6 +-
.../internal/ContextPathEncodingTest.java | 8 +-
.../internal/ThreadLocalInvokerTest.java | 8 +-
containers/jetty-http/pom.xml | 5 +
.../jetty/AbstractJettyServerTester.java | 6 +-
.../org/glassfish/jersey/jetty/AsyncTest.java | 16 +-
.../glassfish/jersey/jetty/ExceptionTest.java | 6 +-
.../jersey/jetty/LifecycleListenerTest.java | 14 +-
.../glassfish/jersey/jetty/OptionsTest.java | 8 +-
containers/pom.xml | 4 +-
containers/simple-http/pom.xml | 5 +
.../simple/AbstractSimpleServerTester.java | 6 +-
.../glassfish/jersey/simple/AsyncTest.java | 16 +-
.../jersey/simple/ExceptionTest.java | 6 +-
.../jersey/simple/LifecycleListenerTest.java | 14 +-
.../glassfish/jersey/simple/OptionsTest.java | 16 +-
.../glassfish/jersey/simple/ParallelTest.java | 6 +-
.../glassfish/jersey/simple/TraceTest.java | 16 +-
core-client/pom.xml | 4 +-
.../client/AutoDiscoverableClientTest.java | 21 +-
.../jersey/client/ClientConfigTest.java | 51 +-
.../jersey/client/ClientRequestTest.java | 31 +-
.../jersey/client/ClientResponseTest.java | 20 +-
.../glassfish/jersey/client/ClientRxTest.java | 68 +--
.../jersey/client/CustomConnectorTest.java | 8 +-
.../client/DefaultSslContextProviderTest.java | 10 +-
.../client/FixedBoundaryParserTest.java | 8 +-
.../client/FixedMultiBoundaryParserTest.java | 8 +-
.../jersey/client/HttpUrlConnectorTest.java | 26 +-
.../JaxRsFeatureRegistrationClientTest.java | 8 +-
.../client/JerseyClientBuilderTest.java | 45 +-
.../jersey/client/JerseyClientTest.java | 27 +-
.../JerseyCompletionStageRxInvokerTest.java | 83 +--
.../jersey/client/JerseyInvocationTest.java | 18 +-
.../jersey/client/JerseyWebTargetTest.java | 63 ++-
.../org/glassfish/jersey/client/LinkTest.java | 12 +-
.../jersey/client/ShutdownHookLeakTest.java | 6 +-
.../client/WebTargetPropertiesTest.java | 8 +-
.../HttpDigestAuthFilterTest.java | 36 +-
.../ClientProviderInstanceInjectionTest.java | 6 +-
.../filter/CsrfProtectionFilterTest.java | 12 +-
.../client/filter/EncodingFilterTest.java | 17 +-
.../filter/HttpBasicAuthFilterTest.java | 6 +-
.../spi/CachingConnectorProviderTest.java | 6 +-
.../client/spi/ClientBuilderListenerTest.java | 8 +-
.../spi/InvocationBuilderListenerTest.java | 43 +-
.../spi/PostInvocationInterceptorTest.java | 68 +--
.../spi/PreInvocationInterceptorTest.java | 52 +-
core-common/pom.xml | 27 +-
.../jersey/SecurityManagerConfiguredTest.java | 9 +-
.../jersey/internal/TestRuntimeDelegate.java | 16 +-
.../AdditionalSystemPropertiesTest.java | 22 +-
.../config/DisabledProvidersTest.java | 26 +-
...nalPropertiesConfigurationFactoryTest.java | 35 +-
.../jersey/internal/inject/ProvidersTest.java | 6 +-
.../routing/CombinedMediaTypeTest.java | 6 +-
.../internal/sonar/SonarJerseyCommonTest.java | 8 +-
.../jersey/internal/util/Base64Test.java | 20 +-
.../internal/util/JdkVersionCompareTest.java | 6 +-
.../internal/util/JdkVersionParseTest.java | 50 +-
.../internal/util/JerseyPublisherTest.java | 10 +-
.../internal/util/OsgiRegistryTest.java | 52 +-
.../internal/util/PropertiesHelperTest.java | 6 +-
.../internal/util/ReflectionHelperTest.java | 40 +-
.../jersey/internal/util/TokenizerTest.java | 6 +-
.../AbstractKeyComparatorHashMapTest.java | 8 +-
.../collection/ByteBufferInputStreamTest.java | 64 +--
.../collection/KeyComparatorHashMapTest.java | 4 +-
.../KeyComparatorLinkedHashMapTest.java | 4 +-
.../internal/util/collection/ViewsTest.java | 10 +-
.../jersey/logging/HasEntityTimeoutTest.java | 2 +-
.../logging/LoggingInterceptorTest.java | 10 +-
.../jersey/message/AbstractEncodingTest.java | 6 +-
.../jersey/message/DeflateEncodingTest.java | 4 +-
.../jersey/message/GZipEncodingTest.java | 4 +-
.../message/internal/DateProviderTest.java | 6 +-
.../FormMultivaluedMapProviderTest.java | 8 +-
.../message/internal/FormProviderTest.java | 8 +-
.../message/internal/LanguageTagTest.java | 13 +-
.../internal/MessageBodyFactoryTest.java | 16 +-
.../jersey/message/internal/QualityTest.java | 104 ++--
.../jersey/message/internal/ResponseTest.java | 10 +-
.../internal/StringBuilderUtilsTest.java | 14 +-
.../jersey/message/internal/UtilsTest.java | 8 +-
.../internal/VariantListBuilderTest.java | 8 +-
.../internal/RankedComparatorTest.java | 6 +-
.../glassfish/jersey/uri/PathPatternTest.java | 27 +-
.../jersey/uri/UriComponentTest.java | 8 +-
.../glassfish/jersey/uri/UriTemplateTest.java | 84 +--
.../jersey/uri/internal/PathTemplateTest.java | 14 +-
.../src/test/resources/surefire-jdk17.policy | 20 +
core-server/pom.xml | 4 +-
.../jersey/server/AnnotatedEntityTest.java | 10 +-
.../jersey/server/ApplicationHandlerTest.java | 24 +-
.../jersey/server/ApplicationTest.java | 4 +-
.../server/AsyncApplicationBuildingTest.java | 10 +-
.../server/AsyncCallbackServerTest.java | 24 +-
.../server/AutoDiscoverableServerTest.java | 6 +-
.../jersey/server/ContainerRequestTest.java | 37 +-
.../server/ExtendedResourceContextTest.java | 8 +-
.../server/JaxRsFeatureRegistrationTest.java | 14 +-
.../server/ModelProcessorScopeTest.java | 6 +-
.../server/ResourceConfigBuilderTest.java | 8 +-
.../jersey/server/ResourceConfigTest.java | 17 +-
.../jersey/server/ResourceMergeTest.java | 10 +-
.../jersey/server/SecurityContextTest.java | 10 +-
.../server/SecurityManagerConfiguredTest.java | 10 +-
.../server/UriInfoMatchedResourcesTest.java | 6 +-
.../jersey/server/UriInfoMatchedUrisTest.java | 6 +-
.../server/filter/ApplicationFilterTest.java | 18 +-
.../ContainerResponseFilterOrderingTest.java | 10 +-
.../filter/CsrfProtectionFilterTest.java | 10 +-
.../server/filter/EncodingFilterTest.java | 14 +-
.../server/filter/EntityTypeFilterTest.java | 8 +-
.../server/filter/FilterSetMethodTest.java | 8 +-
.../filter/HttpMethodOverrideFilterTest.java | 8 +-
.../server/filter/LayeredFiltersTest.java | 22 +-
.../server/filter/UriConnegFilterTest.java | 10 +-
.../filter/UriModificationFilterTest.java | 6 +-
.../BackgroundSchedulerProviderTest.java | 8 +-
.../server/internal/ContainerUtilsTest.java | 9 +-
.../server/internal/ResourceContextTest.java | 6 +-
.../internal/RuntimeDelegateImplTest.java | 8 +-
.../server/internal/ServiceFinderTest.java | 8 +-
.../server/internal/inject/AbstractTest.java | 4 +-
.../inject/ActiveBindingBindingTest.java | 4 +-
.../inject/BeanParamMemoryLeakTest.java | 6 +-
.../ConstructorParameterInjectionTest.java | 8 +-
.../inject/ContextBasedInjectionTest.java | 42 +-
.../inject/CookieParamAsCookieTest.java | 6 +-
.../inject/CookieParamAsPrimitiveTest.java | 6 +-
.../inject/CookieParamAsStringTest.java | 6 +-
.../CookieParamStringConstructorTest.java | 6 +-
.../internal/inject/EncodedParamsTest.java | 8 +-
.../server/internal/inject/FormParamTest.java | 8 +-
.../inject/HeaderParamAsPrimitiveTest.java | 6 +-
.../inject/HeaderParamAsStringTest.java | 6 +-
.../HeaderParamStringConstructorTest.java | 6 +-
.../internal/inject/InvalidParamsTest.java | 6 +-
.../internal/inject/JaxRsInjectablesTest.java | 10 +-
.../inject/MatrixParamAsPrimitiveTest.java | 6 +-
.../inject/MatrixParamAsStringTest.java | 6 +-
.../MatrixParamStringConstructorTest.java | 6 +-
.../inject/ParamConverterDateTest.java | 6 +-
.../inject/ParamConverterInternalTest.java | 14 +-
.../inject/ParamExceptionMappingTest.java | 8 +-
.../inject/PathParamAsPathSegmentTest.java | 6 +-
.../inject/PathParamAsPrimitiveTest.java | 6 +-
.../inject/PathParamAsStringTest.java | 6 +-
.../inject/PathParamDefaultValueTest.java | 6 +-
.../PathParamStringConstructorTest.java | 6 +-
.../inject/QueryParamAsPrimitiveTest.java | 6 +-
.../inject/QueryParamAsSetPrimitiveTest.java | 8 +-
.../inject/QueryParamAsSetStringTest.java | 8 +-
.../QueryParamAsSortedSetPrimitiveTest.java | 8 +-
.../QueryParamAsSortedSetStringTest.java | 8 +-
.../inject/QueryParamAsStringTest.java | 6 +-
.../internal/inject/QueryParamEnumTest.java | 6 +-
.../inject/QueryParamFromStringTest.java | 6 +-
.../QueryParamSetStringConstructorTest.java | 8 +-
...ryParamSortedSetStringConstructorTest.java | 8 +-
.../QueryParamStringConstructorTest.java | 6 +-
.../server/internal/inject/UriTest.java | 8 +-
.../AbstractNanosReservoirTest.java | 14 +-
.../monitoring/AggregatingTrimmerTest.java | 16 +-
.../monitoring/MonitoringStatisticsTest.java | 36 +-
.../monitoring/MonitoringUtilsTest.java | 14 +-
.../ResponseStatisticsImplTest.java | 43 +-
...owTimeReservoirAggregatingTrimmerTest.java | 4 +-
.../SlidingWindowTimeReservoirTest.java | 6 +-
.../TimeWindowStatisticsImplTest.java | 18 +-
.../process/ProxyInjectablesTest.java | 8 +-
.../internal/routing/ExtendedUriInfoTest.java | 10 +-
.../ResponseMediaTypeFromProvidersTest.java | 6 +-
.../SubResourceLocatorCachingTest.java | 10 +-
.../routing/SubResourceValidationTest.java | 10 +-
.../routing/UriRoutingContextTest.java | 24 +-
.../scanning/BundleSchemeScannerTest.java | 32 +-
.../scanning/CompositeResourceFinderTest.java | 8 +-
.../internal/scanning/JarFileScannerTest.java | 36 +-
.../scanning/VFSSchemeResourceFinderTest.java | 12 +-
.../internal/sonar/SonarJerseyServerTest.java | 8 +-
.../AcceptAnnotatedReaderWriterTest.java | 8 +-
.../jersey/server/model/AcceptQsTest.java | 68 +--
.../jersey/server/model/AcceptTest.java | 44 +-
.../jersey/server/model/AcceptWriterTest.java | 6 +-
.../server/model/AmbiguousTemplateTest.java | 58 +-
.../jersey/server/model/AncestorsTest.java | 6 +-
.../model/AsyncContentAndEntityTypeTest.java | 10 +-
.../server/model/ConstrainedToServerTest.java | 8 +-
.../model/ConsumeProduceSimpleTest.java | 6 +-
.../model/ConsumeProduceWildcardTest.java | 6 +-
.../server/model/DynamicFeatureTest.java | 16 +-
.../server/model/GenericMethodListTest.java | 6 +-
.../model/HeadSubResourceMethodTest.java | 8 +-
.../jersey/server/model/HeadTest.java | 10 +-
.../model/InnerClassWithGenericTypeTest.java | 6 +-
.../jersey/server/model/MethodListTest.java | 6 +-
.../model/MixedResourceConfigurationTest.java | 6 +-
.../model/OptionsSubResourceMethodTest.java | 10 +-
.../jersey/server/model/OptionsTest.java | 36 +-
.../jersey/server/model/ParameterTest.java | 8 +-
.../ParameterWithMultipleAnnotationsTest.java | 12 +-
.../PathAndResourceMethodErrorsTest.java | 18 +-
.../ProgrammaticResourceMethodsTest.java | 8 +-
.../jersey/server/model/RMBuilderTest.java | 6 +-
.../jersey/server/model/ResourceInfoTest.java | 8 +-
.../server/model/ResourceModelTest.java | 10 +-
.../server/model/ResourceNotFoundTest.java | 6 +-
.../model/ResourcePathOverrideTest.java | 6 +-
.../server/model/ResourceTestUtils.java | 6 +-
.../model/SubResourceClassDynamicTest.java | 6 +-
.../server/model/SubResourceDynamicTest.java | 6 +-
...DynamicWithDuplicateTemplateNamesTest.java | 6 +-
.../SubResourceDynamicWithParametersTest.java | 6 +-
.../model/SubResourceHttpMethodsTest.java | 6 +-
.../server/model/SubResourceNullTest.java | 6 +-
.../model/SubResourceProgrammaticTest.java | 8 +-
.../jersey/server/model/ValidatorTest.java | 20 +-
.../model/internal/ChildResourceTest.java | 6 +-
.../model/internal/ModelHelperTest.java | 14 +-
.../ResourceMethodDispatcherFactoryTest.java | 14 +-
.../annotation/IntrospectionModellerTest.java | 60 +--
.../monitoring/MonitoringFeatureTest.java | 108 ++--
.../wadl/config/WadlGeneratorConfigTest.java | 38 +-
.../WadlGeneratorConfigurationLoaderTest.java | 10 +-
.../wadl/config/WadlGeneratorLoaderTest.java | 22 +-
.../WadlGeneratorResourceDocSupportTest.java | 4 +-
docs/src/main/docbook/getting-started.xml | 4 +-
.../examples/bookmark_em/BookmarkTest.java | 20 +-
.../examples/bookmark/BookmarkTest.java | 17 +-
.../webapp/resource/BookstoreTest.java | 12 +-
.../bookstore/webapp/resource/ItemTest.java | 12 +-
.../webapp/resource/TestSupport.java | 10 +-
.../examples/cdi/resources/CdiTest.java | 13 +-
.../cdi/resources/EchoParamBeanTest.java | 47 +-
.../cdi/resources/EchoResourceTest.java | 45 +-
.../cdi/resources/HelloworldTest.java | 6 +-
.../cdi/resources/PerApplicationBeanTest.java | 4 +-
.../cdi/resources/PerRequestBeanTest.java | 47 +-
.../resources/ProxyScopeAlignmentTest.java | 38 +-
.../examples/clipboard/ClipboardTest.java | 6 +-
.../examples/clipboard/ClipboardTest.java | 10 +-
.../examples/linking/LinkWebAppTest.java | 10 +-
.../security/RestrictedResourceTest.java | 222 ++++----
.../security/UnrestrictedResourceTest.java | 67 +--
.../selectable/PersonResourceTest.java | 298 +++++------
.../entityfiltering/ProjectsResourceTest.java | 102 ++--
.../entityfiltering/TaskResourceTest.java | 99 ++--
.../entityfiltering/UsersResourceTest.java | 109 ++--
.../exception/ExceptionMappingFilterTest.java | 8 +-
.../exception/ExceptionMappingTest.java | 8 +-
examples/extended-wadl-webapp/pom.xml | 6 +
.../ExtendedWadlWebappOsgiTest.java | 4 +-
.../extendedwadl/ExtendedWadlWebappTest.java | 4 +-
.../examples/freemarker/FreemarkerTest.java | 6 +-
examples/groovy/pom.xml | 6 +
.../examples/groovy/GroovyResourceTest.groovy | 6 +-
.../examples/helloworld/HelloWorldTest.java | 6 +-
.../helloworld/cdi2se/CounterTest.java | 6 +-
.../helloworld/cdi2se/HelloWorldTest.java | 6 +-
examples/helloworld-netty/pom.xml | 3 +
.../helloworld/netty/CustomLoggingFilter.java | 12 +-
.../helloworld/netty/HelloWorldTest.java | 55 +-
.../examples/helloworld/HelloWorldTest.java | 10 +-
examples/helloworld-pure-jax-rs/pom.xml | 4 +-
.../helloworld/jaxrs/HelloWorldTest.java | 6 +-
.../SpringRequestResourceTest.java | 14 +-
examples/helloworld-spring-webapp/pom.xml | 4 +-
.../helloworld/webapp/HelloWorldTest.java | 6 +-
examples/helloworld-weld/pom.xml | 3 +
.../helloworld/AppScopedResourceTest.java | 13 +-
.../examples/helloworld/HelloWorldTest.java | 16 +-
.../helloworld/RequestScopeAlignmentTest.java | 20 +-
.../helloworld/RequestScopedResourceTest.java | 60 +--
examples/helloworld/pom.xml | 3 +
.../helloworld/CustomLoggingFilter.java | 12 +-
.../examples/helloworld/HelloWorldTest.java | 48 +-
.../examples/httppatch/HttpPatchTest.java | 6 +-
.../examples/httptrace/TraceSupportTest.java | 22 +-
examples/https-clientserver-grizzly/pom.xml | 4 +-
.../httpsclientservergrizzly/MainTest.java | 16 +-
.../java8/DefaultMethodResourceTest.java | 6 +-
.../examples/java8/LambdaResourceTest.java | 6 +-
.../jersey/examples/jaxb/JaxbTest.java | 11 +-
.../JaxrsTypeInjectionTest.java | 24 +-
.../jersey_ejb/test/MessageBoardTest.java | 27 +-
.../jersey/examples/jackson/JacksonTest.java | 30 +-
.../examples/jackson1/Jackson1Test.java | 14 +-
.../examples/jettison/JsonJettisonTest.java | 36 +-
.../examples/jsonmoxy/JsonResourceTest.java | 6 +-
.../jsonp/JsonProcessingResourceTest.java | 8 +-
.../examples/jsonp/JsonWithPaddingTest.java | 12 +-
.../managedbeans/ManagedBeanWebAppTest.java | 4 +-
.../ManagedClientSimpleTest.java | 6 +-
.../managedclient/ManagedClientTest.java | 6 +-
.../managedclient/ManagedClientTest.java | 6 +-
.../multipart/webapp/MultiPartWebAppTest.java | 6 +-
.../functional-test/pom.xml | 1 +
.../osgi-http-service/functional-test/pom.xml | 3 +-
.../jersey/examples/reload/ReloadTest.java | 12 +-
.../jersey/examples/rx/RxClientsTest.java | 4 +-
.../managed/ManagedAsyncResourceTest.java | 20 +-
.../server-async-standalone/client/pom.xml | 4 +-
.../examples/server/async/MainTest.java | 6 +-
.../server/async/AsyncResourceTest.java | 18 +-
.../sse/jaxrs/ServerSentEventsTest.java | 15 +-
.../sse/jersey/ServerSentEventsTest.java | 16 +-
.../src/test/java/Servlet3WebappITCase.java | 6 +-
.../jersey/examples/console/MainTest.java | 35 +-
.../jaxrs/JaxrsItemStoreResourceTest.java | 36 +-
.../jersey/JerseyItemStoreResourceTest.java | 34 +-
.../examples/sysprops/SysPropsTest.java | 6 +-
.../jersey/examples/xmlmoxy/MoxyAppTest.java | 6 +-
...ptyHk2CustomInjectionTypeProviderTest.java | 4 +-
ext/cdi/jersey-cdi1x/pom.xml | 6 +
.../internal/CdiComponentProviderTest.java | 8 +-
.../ext/cdi1x/internal/CdiUtilTest.java | 6 +-
.../filtering/SecurityAnnotationsTest.java | 4 +-
.../SecurityEntityProcessorTest.java | 8 +-
.../message/filtering/SecurityHelperTest.java | 4 +-
.../jersey/message/MetaInfServicesTest.java | 10 +-
ext/microprofile/mp-config/pom.xml | 4 +-
.../config/ConfigurationProviderTest.java | 12 +-
...nalPropertiesConfigurationFactoryTest.java | 12 +-
.../restclient/RestClientBuilderImplTest.java | 14 +-
ext/pom.xml | 4 +-
.../client/proxy/WebResourceFactoryTest.java | 47 +-
ext/rx/pom.xml | 4 +-
.../rx/guava/RxListenableFutureTest.java | 91 ++--
.../client/rx/rxjava/RxObservableTest.java | 91 ++--
.../client/rx/rxjava2/RxFlowableTest.java | 63 ++-
.../server/spring/aspect4j/Aspect4JTest.java | 10 +-
.../SpringFieldInjectionTest.java | 6 +-
.../server/spring/filter/FilterTest.java | 6 +-
.../SpringMethodInjectionTest.java | 6 +-
.../SpringParameterInjectionTest.java | 6 +-
.../SpringDefaultProfileResourceTest.java | 8 +-
.../SpringDevProfileResourceTest.java | 8 +-
.../spring/profiles/SpringProfilesTest.java | 6 +-
.../server/spring/aspect4j/Aspect4JTest.java | 10 +-
.../SpringFieldInjectionTest.java | 6 +-
.../server/spring/filter/FilterTest.java | 6 +-
.../SpringMethodInjectionTest.java | 6 +-
.../SpringParameterInjectionTest.java | 6 +-
.../SpringDefaultProfileResourceTest.java | 8 +-
.../SpringDevProfileResourceTest.java | 8 +-
.../spring/profiles/SpringProfilesTest.java | 6 +-
incubator/cdi-inject-weld/pom.xml | 9 +-
.../CachedConstructorAnalyzerTest.java | 18 +-
.../injector/JerseyProxyResolverTest.java | 12 +-
.../managed/ClientInstanceInjectionTest.java | 38 +-
.../managed/DisposableSupplierTest.java | 18 +-
.../managed/InjectionManagerTest.java | 14 +-
.../managed/ProviderInjectionTest.java | 14 +-
.../managed/SupplierClassBindingTest.java | 14 +-
.../managed/SupplierContractsTest.java | 81 +--
.../managed/SupplierInstanceBindingTest.java | 20 +-
.../weld/internal/managed/TestParent.java | 14 +-
.../internal/managed/ThreadScopeTest.java | 18 +-
incubator/declarative-linking/pom.xml | 4 +-
.../jersey/linking/EntityDescriptorTest.java | 6 +-
.../jersey/linking/FieldProcessorTest.java | 8 +-
.../jersey/linking/HeaderProcessorTest.java | 8 +-
.../jersey/linking/LinkELContextTest.java | 8 +-
.../integration/LinkingManualTest.java | 4 +-
.../linking/integration/LinkingTest.java | 4 +-
incubator/html-json/pom.xml | 4 +-
.../media/htmljson/AbstractTypeTester.java | 6 +-
.../media/htmljson/ComputedPropertyTest.java | 6 +-
.../htmljson/ModelEntityOnArrayTest.java | 14 +-
.../media/htmljson/ModelEntityOnListTest.java | 10 +-
.../media/htmljson/ModelEntityTest.java | 8 +-
.../jersey/kryo/PersonResourceBaseTest.java | 6 +-
.../jersey/kryo/PersonResourceTest.java | 6 +-
incubator/open-tracing/pom.xml | 4 +-
inject/cdi2-se/pom.xml | 9 +-
.../inject/cdi/se/DisposableSupplierTest.java | 22 +-
.../inject/cdi/se/ProviderInjectionTest.java | 14 +-
.../cdi/se/SupplierClassBindingTest.java | 18 +-
.../inject/cdi/se/SupplierContractsTest.java | 61 ++-
.../cdi/se/SupplierInstanceBindingTest.java | 20 +-
.../jersey/inject/cdi/se/ThreadScopeTest.java | 14 +-
.../CachedConstructorAnalyzerTest.java | 17 +-
.../se/injector/JerseyProxyResolverTest.java | 12 +-
inject/hk2/pom.xml | 4 +-
.../inject/hk2/DisposableSupplierTest.java | 22 +-
.../inject/hk2/InjectionManagerTest.java | 25 +-
.../inject/hk2/SupplierClassBindingTest.java | 18 +-
.../inject/hk2/SupplierContractsTest.java | 61 ++-
.../hk2/SupplierInstanceBindingTest.java | 18 +-
.../jersey/inject/hk2/SupplierProxyTest.java | 16 +-
media/jaxb/pom.xml | 9 +-
.../internal/AbstractJaxbProviderTest.java | 8 +-
.../FeatureAndPropertySupplierTest.java | 30 +-
.../JaxbStringReaderProviderTest.java | 4 +-
...SaxParserFactoryInjectionProviderTest.java | 14 +-
.../jaxb/internal/SourceProviderTest.java | 8 +-
media/json-binding/pom.xml | 4 +-
.../internal/JsonBindingProviderTest.java | 29 +-
media/json-gson/pom.xml | 4 +-
.../gson/internal/JsonGsonProviderTest.java | 15 +-
media/json-jackson/pom.xml | 4 +-
.../DefaultJacksonJaxbJsonProviderTest.java | 6 +-
...JsonJacksonProviderForBothModulesTest.java | 4 +-
...JacksonProviderForDisabledModulesTest.java | 6 +-
...nJacksonProviderForEnabledModulesTest.java | 4 +-
media/json-jackson1/pom.xml | 4 +-
media/json-jettison/pom.xml | 4 +-
media/json-processing/pom.xml | 4 +-
...nProcessingAutoDiscoverableClientTest.java | 6 +-
...nProcessingAutoDiscoverableServerTest.java | 6 +-
media/moxy/pom.xml | 4 +-
media/multipart/pom.xml | 4 +-
.../jersey/media/multipart/BodyPartTest.java | 20 +-
.../media/multipart/FormDataBodyPartTest.java | 22 +-
.../multipart/FormDataMultiPartTest.java | 16 +-
.../multipart/MultiPartMediaTypesTest.java | 8 +-
.../jersey/media/multipart/MultiPartTest.java | 16 +-
.../MultipartMixedWithApacheClientTest.java | 6 +-
.../ParameterizedHeadersMapTest.java | 22 +-
...oreCaseMultivaluedMapAsHeadersMapTest.java | 22 +-
.../multipart/file/FileDataBodyPartTest.java | 18 +-
.../file/StreamDataBodyPartTest.java | 20 +-
.../internal/FormDataMultiPartBufferTest.java | 10 +-
.../FormDataMultiPartReaderWriterTest.java | 24 +-
.../MultiPartHeaderModificationTest.java | 152 +++---
.../internal/MultiPartReaderWriterTest.java | 40 +-
media/sse/pom.xml | 4 +-
.../jersey/media/sse/ClientCloseTest.java | 8 +-
.../jersey/media/sse/EmptyEventsTest.java | 6 +-
.../jersey/media/sse/EventSourceTest.java | 8 +-
.../media/sse/InboundEventReaderTest.java | 10 +-
.../jersey/media/sse/OutboundEventTest.java | 12 +-
.../media/sse/SseEventSinkCloseTest.java | 14 +-
.../jersey/media/sse/SseEventSinkTest.java | 6 +-
.../sse/internal/JerseyEventSinkTest.java | 19 +-
.../internal/JerseySseBroadcasterTest.java | 33 +-
.../internal/JerseySseEventSourceTest.java | 13 +-
pom.xml | 34 +-
security/oauth1-client/pom.xml | 4 +-
security/oauth1-server/pom.xml | 4 +-
.../server/oauth1/NonceManagerTest.java | 12 +-
.../server/oauth1/OAuth1ExceptionTest.java | 8 +-
security/oauth1-signature/pom.xml | 4 +-
.../oauth1/signature/OAuth1SignatureTest.java | 6 +-
.../oauth1/signature/OAuthBase64Test.java | 18 +-
.../oauth1/signature/SignatureTest.java | 10 +-
test-framework/core/pom.xml | 5 +-
.../org/glassfish/jersey/test/JerseyTest.java | 48 +-
.../glassfish/jersey/test/package-info.java | 6 +-
.../glassfish/jersey/test/spi/TestHelper.java | 37 +-
.../glassfish/jersey/test/JerseyTestTest.java | 6 +-
.../container-runner-maven-plugin/pom.xml | 2 +
.../maven/custom-enforcer-rules/pom.xml | 4 +-
.../rule/FilePatternDoesNotExistRuleTest.java | 23 +-
.../rule/PatternNotMatchedInFileRuleTest.java | 9 +-
test-framework/memleak-test-common/pom.xml | 9 +-
.../common/AbstractMemoryLeakSimpleTest.java | 6 +-
.../common/AbstractMemoryLeakWebAppTest.java | 6 +-
.../common/MemoryLeakSucceedingTimeout.java | 117 ++---
test-framework/pom.xml | 9 +-
.../grizzly/AvailablePortGrizzlyTest.java | 6 +-
.../jersey/test/grizzly/BaseUriTest.java | 10 +-
.../test/grizzly/pckg/GrizzlyPackageTest.java | 6 +-
.../web/AvailablePortGrizzlyWebTest.java | 4 +-
.../web/GrizzlyRequestDispatchFilterTest.java | 16 +-
.../web/GrizzlyWebFixedRequestSizeTest.java | 6 +-
.../grizzly/web/GrizzlyWebInjectionTest.java | 6 +-
.../web/GrizzlyWebServletAndFilterTest.java | 14 +-
.../test/grizzly/web/GrizzlyWebTest.java | 10 +-
.../context/GrizzlyWebContextPathTest.java | 6 +-
.../web/ssl/GrizzlyOneWaySslWebTest.java | 39 +-
.../web/ssl/GrizzlyTwoWaySslWebTest.java | 55 +-
.../InMemoryContainerPackageTest.java | 8 +-
.../test/inmemory/InMemoryContainerTest.java | 12 +-
.../internal/FollowRedirectsTest.java | 6 +-
.../AvailablePortJdkHttpServerTest.java | 4 +-
.../jdkhttp/JdkHttpServerContainerTest.java | 10 +-
.../test/jetty/AvailablePortJettyTest.java | 4 +-
.../jersey/test/jetty/JettyContainerTest.java | 16 +-
.../test/simple/AvailablePortSimpleTest.java | 4 +-
.../test/simple/SimpleContainerTest.java | 10 +-
test-framework/util/pom.xml | 10 +
.../runner/ConcurrentParameterizedRunner.java | 7 +-
.../test/util/runner/ConcurrentRunner.java | 7 +-
.../test/util/runner/RunSeparately.java | 7 +-
.../util/client/LoopBackConnectorTest.java | 28 +-
tests/e2e-client/pom.xml | 6 -
.../e2e/client/AbortResponseClientTest.java | 10 +-
.../tests/e2e/client/BasicClientTest.java | 12 +-
.../tests/e2e/client/BufferingTest.java | 16 +-
.../e2e/client/CancelFutureClientTest.java | 8 +-
...unkedInputStreamClosedPrematurelyTest.java | 55 +-
.../client/ClientBufferingDisabledTest.java | 35 +-
.../tests/e2e/client/ClientDestroyTest.java | 32 +-
.../client/ClientEntityAnnotationTest.java | 14 +-
.../e2e/client/ClientExecutorCloseTest.java | 26 +-
.../tests/e2e/client/ClientExecutorTest.java | 8 +-
.../tests/e2e/client/ClientFilterTest.java | 10 +-
.../tests/e2e/client/ClientPathTest.java | 6 +-
.../tests/e2e/client/ClientPreInitTest.java | 14 +-
.../e2e/client/FollowRedirectHeadTest.java | 22 +-
.../tests/e2e/client/FollowRedirectsTest.java | 6 +-
.../tests/e2e/client/GenericResponseTest.java | 24 +-
.../e2e/client/HttpAuthorizationTest.java | 42 +-
.../e2e/client/HttpDigestAuthFilterTest.java | 18 +-
.../e2e/client/HttpHeadersInjectionTest.java | 4 +-
.../e2e/client/HttpMethodEntityTest.java | 10 +-
.../client/IgnoreExceptionResponseTest.java | 18 +-
.../e2e/client/InjectedClientBodyWorker.java | 4 +-
.../client/InjectionManagerProviderTest.java | 6 +-
.../e2e/client/InvocationBuilderRxTest.java | 22 +-
.../tests/e2e/client/JaxRsTimeoutTest.java | 8 +-
.../e2e/client/NonSuccessfulResponseTest.java | 14 +-
.../client/RequestScopedReadEntityTest.java | 6 +-
.../tests/e2e/client/ResponseCloseTest.java | 6 +-
.../ResponseReadAndBufferEntityTest.java | 18 +-
.../client/ShutdownHookMemoryLeakTest.java | 159 +++---
.../jersey/tests/e2e/client/TimeoutTest.java | 8 +-
.../e2e/client/connector/HttpPatchTest.java | 180 ++++---
.../RequestHeaderModificationsTest.java | 188 ++++---
.../connector/proxy/ProxySelectorTest.java | 48 +-
.../e2e/client/connector/proxy/ProxyTest.java | 188 ++++---
.../ssl/AbstractConnectorServerTest.java | 32 +-
.../ssl/SslConnectorConfigurationTest.java | 31 +-
.../ssl/SslConnectorHostnameVerifierTest.java | 21 +-
.../ssl/SslHttpUrlConnectorTest.java | 24 +-
.../grizzlyconnector/NonBlockingTest.java | 16 +-
.../client/httpurlconnector/AsyncTest.java | 16 +-
.../Expect100ContinueTest.java | 20 +-
tests/e2e-core-common/pom.xml | 4 +-
.../tests/e2e/common/TestRuntimeDelegate.java | 16 +-
.../config/ServiceFinderBinderTest.java | 16 +-
.../internal/ContextResolverFactoryTest.java | 12 +-
.../internal/ExceptionMapperFactoryTest.java | 15 +-
.../common/internal/JaxrsProvidersTest.java | 8 +-
.../internal/LocalizationMessagesTest.java | 8 +-
.../common/internal/ProviderBinderTest.java | 8 +-
.../inject/ReferencingFactoryTest.java | 6 +-
...ableMediaTypeStringRepresentationTest.java | 49 +-
.../internal/AcceptableMediaTypeTest.java | 60 +--
.../internal/CommittingOutputStreamTest.java | 14 +-
.../message/internal/CookiesParserTest.java | 4 +-
.../message/internal/HeaderUtilsTest.java | 18 +-
.../internal/InboundMessageContextTest.java | 12 +-
.../message/internal/JerseyLinkTest.java | 16 +-
.../message/internal/LinkProviderTest.java | 14 +-
.../internal/MatchingEntityTagTest.java | 10 +-
.../message/internal/MediaTypesTest.java | 16 +-
.../OutboundJaxrsResponseBuilderTest.java | 6 +-
.../internal/OutboundJaxrsResponseTest.java | 34 +-
.../internal/OutboundMessageContextTest.java | 16 +-
.../internal/QualitySourceMediaTypeTest.java | 59 +--
.../model/internal/CommonConfigTest.java | 60 +--
.../internal/ExecutorProvidersTest.java | 16 +-
.../process/internal/RequestScopeTest.java | 10 +-
.../uri/internal/JerseyUriBuilderTest.java | 396 +++++++-------
tests/e2e-entity/pom.xml | 10 +-
.../tests/e2e/entity/AbstractTypeTester.java | 6 +-
.../tests/e2e/entity/BeanStreamingTest.java | 10 +-
.../jersey/tests/e2e/entity/CharsetTest.java | 5 +-
.../entity/ContextResolverMediaTypeTest.java | 28 +-
.../tests/e2e/entity/EmptyEntityTest.java | 12 +-
.../entity/EmptyRequestToEntityParamTest.java | 10 +-
.../e2e/entity/EmptyRequestWithJaxbTest.java | 19 +-
.../tests/e2e/entity/EntityTypesTest.java | 86 ++-
.../tests/e2e/entity/EnumEntityTest.java | 37 +-
.../e2e/entity/GenericTypeAndEntityTest.java | 9 +-
.../e2e/entity/InjectedProviderTest.java | 6 +-
.../entity/InterceptedStreamCloseTest.java | 6 +-
.../tests/e2e/entity/InvalidEntityTest.java | 6 +-
.../tests/e2e/entity/InvalidFormTest.java | 6 +-
.../e2e/entity/JAXBContextResolverTest.java | 59 ++-
.../jersey/tests/e2e/entity/JsonMoxyTest.java | 43 +-
.../e2e/entity/MediaTypeSelectionTest.java | 10 +-
.../MessageBodyProviderAnnotationsTest.java | 6 +-
.../tests/e2e/entity/MultipartTest.java | 4 +-
.../e2e/entity/NoMessageBodyWorkerTest.java | 6 +-
.../ParameterTypeArgumentOrderTest.java | 6 +-
...ArgumentResourceReaderWriterOrderTest.java | 6 +-
...arameterTypeArgumentReversedOrderTest.java | 6 +-
.../e2e/entity/RenderedImageTypeTest.java | 6 +-
.../tests/e2e/entity/StreamingOutputTest.java | 6 +-
.../entity/SubResourceDynamicProxyTest.java | 6 +-
.../jersey/tests/e2e/entity/XXETest.java | 10 +-
.../entity/XmlJaxBElementProviderTest.java | 6 +-
.../jersey/tests/e2e/entity/XmlMoxyTest.java | 39 +-
.../e2e/entity/filtering/EmptyEntityTest.java | 4 +-
.../filtering/EntityFilteringClientTest.java | 20 +-
.../filtering/EntityFilteringOnClassTest.java | 4 +-
.../EntityFilteringOnPropertiesTest.java | 4 +-
.../filtering/EntityFilteringScopesTest.java | 4 +-
.../filtering/EntityFilteringServerTest.java | 12 +-
.../filtering/json/JsonEmptyEntityTest.java | 78 +--
.../json/JsonEntityFilteringClientTest.java | 398 +++++++-------
.../json/JsonEntityFilteringOnClassTest.java | 496 +++++++++---------
.../JsonEntityFilteringOnPropertiesTest.java | 478 ++++++++---------
.../json/JsonEntityFilteringScopesTest.java | 85 +--
.../json/JsonEntityFilteringServerTest.java | 87 ++-
.../json/MoxyEntityFilteringTest.java | 4 +-
.../header/HeaderDelegateProviderTest.java | 18 +-
.../RuntimeDelegateProviderDisabledTest.java | 16 +-
.../RuntimeDelegateProviderEnabledTest.java | 16 +-
.../jersey/tests/e2e/json/GenericTest.java | 38 +-
.../tests/e2e/json/InheritanceTest.java | 33 +-
.../tests/e2e/json/Jackson1JsonViewTest.java | 4 +-
.../tests/e2e/json/JacksonJsonViewTest.java | 4 +-
.../jersey/tests/e2e/json/JaxbTest.java | 31 +-
.../jersey/tests/e2e/json/Jersey1199Test.java | 31 +-
.../jersey/tests/e2e/json/Jersey1835Test.java | 32 +-
.../e2e/json/JsonProcessingDisabledTest.java | 6 +-
.../tests/e2e/json/JsonProcessingTest.java | 10 +-
.../{AbstractJsonTest.java => JsonTest.java} | 17 +-
.../JsonWithPaddingEncodingFilterTest.java | 8 +-
.../tests/e2e/json/JsonWithPaddingTest.java | 260 +++++----
.../json/JsonWithoutExceptionMapperTest.java | 10 +-
.../jersey/tests/e2e/json/PojoTest.java | 34 +-
.../tests/e2e/sse/BroadcasterCloseTest.java | 18 +-
.../e2e/sse/BroadcasterExecutorTest.java | 18 +-
.../jersey/tests/e2e/sse/BroadcasterTest.java | 68 +--
.../jersey/tests/e2e/sse/EventOutputTest.java | 28 +-
.../sse/EventSourceWithNamedEventsTest.java | 14 +-
.../tests/e2e/sse/GenericEntityTest.java | 17 +-
.../tests/e2e/sse/SseCustomEventImplTest.java | 28 +-
.../sse/SseEventSinkToEventSourceTest.java | 28 +-
tests/e2e-inject/cdi-inject-weld/pom.xml | 4 +-
.../tests/e2e/inject/cdi/weld/EventsTest.java | 17 +-
.../cdi/weld/InterceptorDecoratorTest.java | 17 +-
.../inject/cdi/weld/scopes/ScopesTest.java | 12 +-
.../subresources/ModelProcessorScopeTest.java | 15 +-
tests/e2e-inject/cdi2-se/pom.xml | 4 +-
.../tests/e2e/inject/cdi/se/EventsTest.java | 6 +-
.../cdi/se/InterceptorDecoratorTest.java | 6 +-
.../e2e/inject/cdi/se/scopes/ScopesTest.java | 8 +-
.../subresources/ModelProcessorScopeTest.java | 6 +-
.../hk2/HK2AbstractBinderClassTest.java | 4 +-
.../hk2/HK2AbstractBinderInFeaturesTest.java | 4 +-
.../hk2/HK2AbstractBinderInstanceTest.java | 4 +-
.../e2e/inject/hk2/HK2AbstractBinderTest.java | 4 +-
.../inject/hk2/JerseyAbstractBinderTest.java | 4 +-
tests/e2e-server/pom.xml | 10 +-
...tractDisableMetainfServicesLookupTest.java | 12 +-
.../tests/e2e/server/AllInjectablesTest.java | 8 +-
.../server/AmbigousResourceMethodTest.java | 6 +-
.../tests/e2e/server/AppNameBindingTest.java | 6 +-
.../tests/e2e/server/AppNameBindingTest2.java | 6 +-
.../e2e/server/ArrayParamConverterTest.java | 6 +-
.../tests/e2e/server/AsyncCallbackTest.java | 17 +-
.../tests/e2e/server/AsyncResponseTest.java | 8 +-
.../e2e/server/BeanParamExceptionTest.java | 6 +-
.../tests/e2e/server/BeanParamTest.java | 34 +-
.../tests/e2e/server/BroadcasterTest.java | 8 +-
.../e2e/server/ChunkedInputOutputTest.java | 18 +-
.../server/ClientResponseOnServerTest.java | 6 +-
.../tests/e2e/server/CloseableTest.java | 6 +-
.../tests/e2e/server/CompletionStageTest.java | 8 +-
...erListenerRegistrationAsProvidersTest.java | 8 +-
.../e2e/server/ContentNegotiationTest.java | 42 +-
.../CustomInjectablesApplicationTest.java | 18 +-
.../CustomInjectablesResourceConfigTest.java | 6 +-
.../CustomMultivaluedMapProviderTest.java | 6 +-
.../e2e/server/EncodedFormParamTest.java | 6 +-
.../server/EncodedSlashInPathSegmentTest.java | 6 +-
.../tests/e2e/server/EntityExpansionTest.java | 22 +-
.../e2e/server/ExceptionLoggingTest.java | 6 +-
.../server/ExceptionMapperPriorityTest.java | 6 +-
.../ExceptionMapperPropagationTest.java | 50 +-
.../tests/e2e/server/ExceptionMapperTest.java | 6 +-
.../server/ExtendedExceptionMapperTest.java | 14 +-
.../tests/e2e/server/ExtendedUriInfoTest.java | 6 +-
.../FormParamMultivaluedInjectionTest.java | 6 +-
.../GlobalNameBoundInterceptorTest.java | 39 +-
.../GloballyNameBoundResourceFilterTest.java | 8 +-
.../e2e/server/GrizzlyInjectionTest.java | 8 +-
.../tests/e2e/server/GsonCustomTest.java | 4 +-
.../tests/e2e/server/GsonDefaultTest.java | 4 +-
.../server/IllegalArgumentExceptionTest.java | 6 +-
.../e2e/server/InitializationLoggingTest.java | 6 +-
.../InjectionManagerServerProviderTest.java | 6 +-
.../tests/e2e/server/InjectionTest.java | 28 +-
.../e2e/server/InputStreamResponseTest.java | 6 +-
.../InterceptorHttpHeadersInjectionTest.java | 6 +-
.../InterceptorNameAndDynamicBindingTest.java | 6 +-
.../tests/e2e/server/Issue4097Test.java | 4 +-
.../e2e/server/ManagedClientExecutorTest.java | 10 +-
.../MessageBodyProvidersExceptionsTest.java | 6 +-
.../MetainfServicesLookupDisabledTest.java | 4 +-
.../MetainfServicesLookupEnabledTest.java | 4 +-
.../tests/e2e/server/ModelProcessorTest.java | 27 +-
.../tests/e2e/server/NameBindingTest.java | 42 +-
.../OptionalParamConverterNoProviderTest.java | 6 +-
.../server/OptionalParamConverterTest.java | 8 +-
.../server/ParamConverterPriorityTest.java | 4 +-
.../tests/e2e/server/ParamConverterTest.java | 12 +-
.../tests/e2e/server/PathEncodingTest.java | 6 +-
.../e2e/server/PerRequestLifecycleTest.java | 8 +-
.../tests/e2e/server/PostConstructTest.java | 16 +-
.../tests/e2e/server/PrimitiveTypesTest.java | 43 +-
.../jersey/tests/e2e/server/ReloadTest.java | 6 +-
.../e2e/server/RequestScopedAndAsyncTest.java | 10 +-
.../tests/e2e/server/ResourceConfigTest.java | 10 +-
.../tests/e2e/server/ResourceFilterTest.java | 18 +-
.../tests/e2e/server/ResourceRoutingTest.java | 16 +-
.../e2e/server/ResponseStatusTypeTest.java | 34 +-
.../tests/e2e/server/RuntimeConfigTest.java | 12 +-
...heduledThreadPoolExecutorProviderTest.java | 8 +-
.../e2e/server/SecurityContextFilterTest.java | 16 +-
.../tests/e2e/server/ServerDestroyTest.java | 10 +-
.../e2e/server/SingletonProviderTest.java | 8 +-
.../SingletonProvidersResourcesTest.java | 14 +-
.../e2e/server/SingletonResourceTest.java | 6 +-
.../e2e/server/StreamMethodCallTest.java | 14 +-
.../tests/e2e/server/SubResourceTest.java | 52 +-
.../server/SubjectSecurityContextTest.java | 4 +-
.../e2e/server/UriBuilderTemplateTest.java | 21 +-
.../WebApplicationExceptionLoggingTest.java | 12 +-
.../server/filter/PostToPutDeleteTest.java | 6 +-
.../e2e/server/filter/RolesAllowedTest.java | 8 +-
...riConnegLanguageMediaTypeNegativeTest.java | 6 +-
.../UriConnegLanguageMediaTypeTest.java | 6 +-
.../server/filter/UriConnegLanguageTest.java | 6 +-
.../server/filter/UriConnegMediaTypeTest.java | 6 +-
.../monitoring/ApplicationInfoTest.java | 139 +++--
.../server/monitoring/EventListenerTest.java | 18 +-
.../e2e/server/monitoring/MBeansTest.java | 20 +-
.../MonitoringStatisticsLocatorTest.java | 10 +-
.../ReloadApplicationEventTest.java | 29 +-
.../monitoring/StatisticsDestroyTest.java | 35 +-
.../mvc/BeanValidationErrorTemplateTest.java | 12 +-
.../server/mvc/CustomViewableContextTest.java | 6 +-
.../e2e/server/mvc/ErrorTemplateTest.java | 12 +-
.../mvc/ExceptionViewProcessorTest.java | 10 +-
.../mvc/ExplicitProduceTemplateTest.java | 8 +-
.../e2e/server/mvc/ExplicitTemplateTest.java | 6 +-
.../mvc/FlatInheritedViewProcessorTest.java | 6 +-
.../e2e/server/mvc/FlatViewProcessorTest.java | 6 +-
.../ImplicitProducesViewProcessorTest.java | 6 +-
.../mvc/ImplicitTemplateProgrammaticTest.java | 6 +-
.../e2e/server/mvc/ImplicitTemplateTest.java | 6 +-
.../ImplicitViewWithResourceFilterTest.java | 8 +-
.../mvc/InheritedViewProcessorTest.java | 6 +-
.../tests/e2e/server/mvc/MvcEncodingTest.java | 167 +++---
.../mvc/TemplateMethodSelectionTest.java | 10 +-
.../e2e/server/mvc/ViewProcessorTest.java | 6 +-
.../spi/AbstractTemplateProcessorTest.java | 23 +-
.../e2e/server/routing/InheritanceTest.java | 6 +-
.../routing/RegularExpressionsTest.java | 4 +-
.../ResponseMediaTypeFromProvidersTest.java | 6 +-
.../scanning/RankedProviderScanningTest.java | 6 +-
.../tests/e2e/server/scanning/Resource.java | 4 +-
.../validation/BasicValidationTest.java | 10 +-
.../e2e/server/validation/ContactBean.java | 7 +-
.../CustomConfigValidationTest.java | 10 +-
.../EntityInheritanceValidationTest.java | 6 +-
.../FieldPropertyValidationTest.java | 6 +-
.../validation/InheritanceValidationTest.java | 6 +-
.../ProgrammaticValidationTest.java | 6 +-
.../validation/PropertyValidationTest.java | 6 +-
.../AnotherContactBean.java | 7 +-
.../ValidateOnExecutionAbstractTest.java | 13 +-
.../ValidateOnExecutionBasicTest.java | 12 +-
...ateOnExecutionInheritanceGenericsTest.java | 7 +-
.../ValidateOnExecutionInheritanceTest.java | 5 +-
.../ValidateOnExecutionOverrideTest.java | 6 +-
.../server/wadl/OverrideWadlResourceTest.java | 6 +-
.../server/wadl/ResourceExtendedFlagTest.java | 6 +-
.../e2e/server/wadl/WadlBeanParamTest.java | 71 +--
.../server/wadl/WadlEmptyMediaTypeTest.java | 6 +-
.../e2e/server/wadl/WadlResourceTest.java | 45 +-
.../tests/e2e/BeforeClassParallelTest.java | 10 +-
tests/e2e/pom.xml | 12 +-
.../jersey/tests/api/AbortingFilterTest.java | 27 +-
.../api/AcceptMediaTypeProviderTest.java | 8 +-
.../tests/api/AnnotationInheritanceTest.java | 24 +-
.../tests/api/ApplicationCachingTest.java | 10 +-
.../tests/api/CacheControlImplTest.java | 6 +-
.../tests/api/ClientInvocationTest.java | 6 +-
.../tests/api/ConstructorSelectionTest.java | 14 +-
.../jersey/tests/api/ConsumeProduceTest.java | 6 +-
.../tests/api/ContentDispositionTest.java | 10 +-
.../jersey/tests/api/CookieImplTest.java | 8 +-
.../tests/api/EntityTagProviderTest.java | 6 +-
.../jersey/tests/api/ExceptionTest.java | 15 +-
.../api/FormDataContentDispositionTest.java | 8 +-
.../jersey/tests/api/HttpHeaderTest.java | 6 +-
.../jersey/tests/api/LocaleProviderTest.java | 6 +-
.../tests/api/LocationHeaderAsyncTest.java | 31 +-
.../tests/api/LocationHeaderBasicTest.java | 29 +-
.../tests/api/LocationHeaderFiltersTest.java | 26 +-
...nHeaderWithAbsolutizationDisabledTest.java | 8 +-
...ocationHeaderWithIncompatibleFlagTest.java | 8 +-
.../tests/api/MediaTypeProviderTest.java | 8 +-
.../tests/api/MessageBodyReaderTest.java | 6 +-
.../tests/api/MessageBodyWriterTest.java | 8 +-
.../jersey/tests/api/OptionsTest.java | 8 +-
.../QualitySourceMediaTypeProviderTest.java | 8 +-
.../jersey/tests/api/ResourceContextTest.java | 14 +-
.../jersey/tests/api/ResponseE2ETest.java | 46 +-
.../tests/api/ResponseIntegrationTest.java | 6 +-
.../jersey/tests/api/ResponseTest.java | 12 +-
.../tests/api/RestrictedHeaderTest.java | 14 +-
.../tests/api/SourceEntityProviderTest.java | 16 +-
.../tests/api/UnsafeCharsInUriTest.java | 10 +-
.../jersey/tests/api/VariantsTest.java | 10 +-
.../jersey/tests/e2e/ClientTest.java | 24 +-
.../e2e/ExecutorServiceProviderTest.java | 65 +--
.../tests/e2e/InterceptorCustomTest.java | 10 +-
.../jersey/tests/e2e/InterceptorGzipTest.java | 6 +-
.../glassfish/jersey/tests/e2e/LinkTest.java | 8 +-
.../e2e/MessageBodyExceptionWrappingTest.java | 8 +-
.../e2e/client/connector/HugeEntityTest.java | 125 ++---
.../e2e/client/connector/MethodTest.java | 91 ++--
.../e2e/common/AutoDiscoverableTest.java | 6 +-
.../tests/e2e/common/ConstrainedToTest.java | 16 +-
.../tests/e2e/common/ContentLengthTest.java | 10 +-
.../tests/e2e/common/ContentTypeTest.java | 8 +-
.../common/DetermineContentLengthTest.java | 6 +-
.../jersey/tests/e2e/common/EncodingTest.java | 8 +-
.../e2e/common/FeatureConstraintTest.java | 6 +-
.../common/ForcedAutoDiscoverableTest.java | 6 +-
.../tests/e2e/common/HeaderParamTest.java | 4 +-
.../e2e/common/HeaderValueExceptionTest.java | 12 +-
.../e2e/common/Hk2BinderSupportTest.java | 6 +-
.../tests/e2e/common/LoggingFeatureTest.java | 17 +-
.../MessageBodyReaderUnsupportedTest.java | 10 +-
.../MessageBodyWorkerInheritanceTest.java | 6 +-
.../MessageBodyWriterObjectDistanceTest.java | 6 +-
.../jersey/tests/e2e/common/NoEntityTest.java | 12 +-
.../e2e/common/NonPublicNonStaticTest.java | 72 +--
.../common/ProvidersLegacyOrderingTest.java | 16 +-
.../e2e/common/ProvidersOrderingTest.java | 20 +-
.../e2e/common/QueryParamEncodingTest.java | 14 +-
.../tests/e2e/common/ReaderProviderTest.java | 8 +-
.../tests/e2e/common/RequestScopeTest.java | 10 +-
.../tests/e2e/common/ResponseLinksTest.java | 24 +-
.../tests/e2e/common/UriComponentTest.java | 10 +-
.../tests/e2e/container/EscapedUriTest.java | 56 +-
.../GrizzlySlashesWithContextPathTest.java | 6 +-
.../container/GzipContentEncodingTest.java | 83 +--
.../jersey/tests/e2e/container/HeadTest.java | 36 +-
.../JdkSlashesWithContextPathTest.java | 10 +-
.../tests/e2e/container/Jersey2462Test.java | 15 +-
.../e2e/container/JerseyContainerTest.java | 23 +-
.../container/JettyEmptyHeaderParamTest.java | 6 +-
.../e2e/container/LeadingSlashesTest.java | 130 +++--
.../tests/e2e/container/MatrixParamTest.java | 51 +-
.../tests/e2e/container/QueryParamTest.java | 50 +-
.../container/ResponseWriterMetadataTest.java | 59 ++-
.../ResponseWriterOutputStreamTest.java | 93 ++--
.../e2e/container/TrailingSlashTest.java | 62 ++-
.../tests/e2e/oauth/AccessTokenResource.java | 8 +-
.../jersey/tests/e2e/oauth/OAuth2Test.java | 8 +-
.../e2e/oauth/OAuthClientServerTest.java | 6 +-
.../OauthClientAuthorizationFlowTest.java | 8 +-
.../tests/e2e/oauth/PhotosResource.java | 8 +-
.../tests/e2e/oauth/RequestTokenResource.java | 8 +-
.../e2e/server/wadl/NoJAXBNoWadlTest.java | 21 +-
.../tests/e2e/sonar/SonarJerseyE2ETest.java | 10 +-
.../jersey2988/Jersey2988ITCase.java | 6 +-
tests/integration/asm/pom.xml | 4 +-
.../asm/AnnotatedClassVisitorTest.java | 27 +-
.../jersey2730/Jersey2730ITCase.java | 13 +-
.../jersey2812/Jersey2812ITCase.java | 34 +-
.../tests/cdi/bv/BaseValidationTest.java | 6 +-
.../jersey/tests/cdi/bv/CombinedTest.java | 39 +-
.../jersey/tests/cdi/bv/RawCdiTest.java | 15 +-
.../jersey/tests/cdi/bv/RawHk2Test.java | 6 +-
.../BeanManagerInjectedOnClientTest.java | 19 +-
.../tests/cdi/resources/CdiIntoEjbTest.java | 10 +-
.../tests/cdi/resources/EjbIntoCdiTest.java | 6 +-
.../jersey/tests/cdi/resources/TestBase.java | 4 +-
.../tests/cdi/resources/EchoResourceTest.java | 6 +-
.../CdiComponentProviderWarningTest.java | 21 +-
.../manuallybound/CdiServiceInjectTest.java | 19 +-
.../manuallybound/HK2ServiceInjectTest.java | 19 +-
.../cdi/web1/JaxRsCdiIntegrationTest.java | 4 +-
.../cdi/web2/JaxRsCdiIntegrationTest.java | 8 +-
.../cdi/resources/MultipartFeatureTest.java | 34 +-
.../ResourceWithConstructorTest.java | 19 +-
.../tests/cdi/singleton/SingletonTest.java | 23 +-
.../resources/CdiComponentProviderTest.java | 8 +-
.../jersey/tests/cdi/resources/CdiTest.java | 6 +-
.../resources/ConstructorInjectionTest.java | 6 +-
.../tests/cdi/resources/CounterTest.java | 10 +-
.../resources/JaxRsInjectedCdiBeanTest.java | 8 +-
.../NonJaxRsBeanJaxRsInjectionTest.java | 19 +-
.../cdi/resources/PerRequestBeanTest.java | 52 +-
.../PerRequestDependentBeanTest.java | 39 +-
.../tests/cdi/resources/ProducerTest.java | 6 +-
.../QualifiedInjectionSetGetTest.java | 6 +-
.../tests/cdi/resources/ReverseEchoTest.java | 45 +-
.../SecondJaxRsInjectedCdiBeanTest.java | 11 +-
.../cdi/resources/SingletonBeanTest.java | 53 +-
.../resources/SingletonDependentBeanTest.java | 53 +-
.../tests/cdi/resources/StutterEchoTest.java | 45 +-
.../jersey/tests/cdi/resources/TimerTest.java | 10 +-
.../cdi/resources/CustomInjectionTest.java | 43 +-
.../cdi/resources/ExceptionMappersTest.java | 39 +-
.../tests/cdi/resources/MonitoringTest.java | 39 +-
.../cdi/resources/RequestSensitiveTest.java | 70 +--
.../jersey/tests/cdi/resources/CdiTest.java | 4 +-
.../cdi/resources/CustomInjectionTest.java | 95 ++--
.../cdi/resources/ExceptionMappersTest.java | 75 +--
.../tests/cdi/resources/MonitoringTest.java | 79 +--
.../cdi/resources/RequestSensitiveTest.java | 100 ++--
.../cdi/resources/CustomInjectionTest.java | 39 +-
.../cdi/resources/ExceptionMappersTest.java | 39 +-
.../tests/cdi/resources/MonitoringTest.java | 28 +-
.../cdi/resources/RequestSensitiveTest.java | 70 +--
.../NonScopedApplicationInjectTest.java | 21 +-
.../cdi/inject/NonScopedInjectionTest.java | 29 +-
.../inject/ScopedApplicationInjectTest.java | 21 +-
.../tests/cdi/inject/ScopedInjectionTest.java | 29 +-
.../jersey/tests/cdi/inject/SseTest.java | 25 +-
.../cdi-integration/gf-cdi-inject/pom.xml | 4 +-
.../provider/CustomConnectorProviderTest.java | 10 +-
.../ejb/reload/web1/ReloadTest.java | 4 +-
.../reload/web2/JaxRsFromEjbLibraryTest.java | 4 +-
.../ejb/web1/JaxRsFromEjbLibraryTest.java | 4 +-
.../jersey/tests/ejb/resources/EjbTest.java | 4 +-
tests/integration/externalproperties/pom.xml | 4 +-
.../externalproperties/HttpProxyTest.java | 16 +-
.../tests/integration/j376/J376Test.java | 14 +-
.../integration/j441/one/ContextPathTest.java | 4 +-
.../integration/j441/two/ContextPathTest.java | 4 +-
.../integration/j59/cdi/web/NameBeanTest.java | 4 +-
.../jaxrs/inject/ApplicationInjectITCase.java | 6 +-
.../jersey1107/ApplicationHandlerITCase.java | 8 +-
.../jersey1223/ApplicationHandlerITCase.java | 6 +-
.../jersey1604/ConnectionCloseITCase.java | 4 +-
.../jersey1667/Jersey1667ITCase.java | 4 +-
.../jersey1829/ApplicationHandlerITCase.java | 14 +-
.../jersey1883/Jersey1883ITCase.java | 12 +-
.../jersey1928/Jersey1928ITCase.java | 4 +-
.../jersey1960/Jersey1960ITCase.java | 6 +-
.../jersey1964/Jersey1964ITCase.java | 51 +-
.../jersey2031/Jersey2031ITCase.java | 4 +-
.../jersey2136/Jersey2136ITCase.java | 8 +-
.../jersey2137/WaeExceptionMappingTest.java | 6 +-
.../jersey2154/EjbExceptionMappingTest.java | 6 +-
.../jersey2160/Jersey2160ITCase.java | 6 +-
.../jersey2164/Jersey2164ITCase.java | 4 +-
.../jersey2167/Jersey2167ITCase.java | 10 +-
.../jersey2176/Jersey2176ITCaseBase.java | 38 +-
.../jersey2184/Jersey2184ITCase.java | 14 +-
.../jersey2255/Jersey2255ITCase.java | 6 +-
.../jersey2322/Jersey2322ITCase.java | 4 +-
.../jersey2335/Jersey2335ITCase.java | 6 +-
tests/integration/jersey-2421/pom.xml | 10 +-
.../jersey2421/Jersey2421Test.java | 9 +-
.../jersey2551/Jersey2551ITCase.java | 4 +-
.../jersey2612/Jersey2612ITCase.java | 4 +-
.../jersey2637/Jersey2637DisabledITCase.java | 4 +-
.../jersey2637/Jersey2637EnabledITCase.java | 44 +-
.../jersey2654/Jersey2654ITCase.java | 6 +-
.../jersey2673/Jersey2673ITCase.java | 6 +-
.../jersey2689/Jersey2689ITCase.java | 8 +-
.../jersey2704/Jersey2704ITCase.java | 10 +-
.../jersey2776/Jersey2776ITCase.java | 10 +-
.../jersey2794/Jersey2794ITCase.java | 6 +-
.../jersey2846/Jersey2846ITCase.java | 6 +-
.../jersey2878/Jersey2878ITCase.java | 6 +-
.../AbstractJerseyEntityFilteringITCase.java | 16 +-
tests/integration/jersey-3662/pom.xml | 4 +-
...ExternalApplicationParamConverterTest.java | 6 +-
.../jersey3796/Jersey3796ITCase.java | 16 +-
.../jersey/tests/cdi/resources/CdiTest.java | 6 +-
.../tests/cdi/resources/InheritanceTest.java | 6 +-
.../jersey4003/LostResponseTest.java | 60 +--
...orityAnnotationOnExceptionMappersTest.java | 10 +-
.../integration/jersey4321/StreamingTest.java | 6 +-
.../tests/integration/jersey4507/SSETest.java | 17 +-
.../ProgrammaticValidationTest.java | 17 +-
.../MonitoringEventListenerTest.java | 9 +-
.../jersey4722/Jersey4722Test.java | 10 +-
.../jersey4949/Jersey4949ITCase.java | 10 +-
.../jersey780/HelloWorldResourceITCase.java | 14 +-
.../integration/jetty-response-close/pom.xml | 10 +
.../config/HelidonConfigApplicationTest.java | 8 +-
.../microprofile/rest-client/pom.xml | 6 +-
.../jersey/restclient/ConnectorTest.java | 4 +-
.../restclient/ConsumesAndProducesTest.java | 21 +-
.../InboundHeadersProviderTest.java | 10 +-
.../restclient/RestClientModelTest.java | 6 +-
.../rest-client14-compatibility/pom.xml | 4 +-
.../compatibility/Compatibility14Test.java | 21 +-
.../portability/PortabilityITCase.java | 6 +-
tests/integration/property-check/pom.xml | 5 +-
...ystemPropertiesConfigurationModelTest.java | 12 +-
.../PropertyOverlappingCheckTest.java | 6 +-
.../integration/reactive-streams/sse/pom.xml | 4 +-
.../media/sse/internal/SseSubscriberTest.java | 8 +-
.../SecurityDigestAuthenticationITCase.java | 44 +-
.../LanguageVariantResourceITCase.java | 6 +-
.../ValidationResourceITCase.java | 6 +-
.../servlet_2_5_filter/MyResourceITCase.java | 8 +-
.../InflectorInjectionTestITCase.java | 6 +-
.../Servlet25Init1ITCase.java | 19 +-
.../HelloWorldResourceITCase.java | 6 +-
.../HelloWorldResourceITCase.java | 6 +-
.../HelloWorldResourceITCase.java | 6 +-
.../HelloWorldResourceITCase.java | 21 +-
.../HelloWorldResourceITCase.java | 6 +-
.../HelloWorldResourceITCase.java | 6 +-
.../HelloWorldResourceITCase.java | 6 +-
.../servlet_25_mvc_1/BookstoreITCase.java | 26 +-
.../servlet_25_mvc_1/ItemITCase.java | 12 +-
.../servlet_25_mvc_1/TestSupport.java | 10 +-
.../servlet_25_mvc_2/BookstoreITCase.java | 12 +-
.../servlet_25_mvc_2/ItemITCase.java | 12 +-
.../servlet_25_mvc_3/BookstoreITCase.java | 12 +-
.../servlet_25_mvc_3/ItemITCase.java | 22 +-
.../servlet_25_mvc_3/TestSupport.java | 10 +-
.../ReloadTestIT.java | 8 +-
.../AsyncServletResourceITCase.java | 39 +-
.../AsyncTimeoutResourceITCase.java | 6 +-
.../ChunkedInputOutputITCase.java | 27 +-
.../servlet_3_filter/MyResourceITCase.java | 8 +-
.../AsyncCancelTimeoutResourceTest.java | 6 +-
.../AsyncResumeTimeoutResourceTest.java | 6 +-
.../AsyncServletResourceTest.java | 35 +-
.../InflectorInjectionTestITCase.java | 6 +-
.../HelloWorldResourceITCase.java | 8 +-
tests/integration/servlet-3-init-2/pom.xml | 5 +-
.../HelloWorldResourceITCase.java | 6 +-
.../EmptyApplicationTestITCase.java | 6 +-
.../EmptyApplicationTestITCase.java | 6 +-
.../HelloWorldResourceITCase.java | 6 +-
.../EmptyApplicationITCase.java | 6 +-
.../HelloWorldResourceITCase.java | 6 +-
.../HelloWorldResourceITCase.java | 57 +-
.../HelloWorldResourceUnreachableITCase.java | 45 +-
.../HelloWorldResourceITCase.java | 6 +-
.../AbstractHelloWorldResourceTest.java | 14 +-
.../HelloWorld1ResourceITCase.java | 12 +-
.../HelloWorld3ResourceITCase.java | 8 +-
.../HelloWorld4ResourceITCase.java | 8 +-
.../HelloWorld5ResourceITCase.java | 8 +-
.../servlet_3_params/ParamsTestITCase.java | 6 +-
.../ItemStoreResourceITCase.java | 38 +-
.../servlet_40_mvc_1/GzipITCase.java | 8 +-
.../servlet_40_mvc_1/TestSupport.java | 10 +-
.../AbstractRequestResponseTypeTest.java | 4 +-
.../AbstractRequestResponseTypeTest.java | 4 +-
.../servlettests/CacheControlOn404ITCase.java | 6 +-
.../Custom404MediaTypeITCase.java | 18 +-
.../servlettests/DuplicateHeaderITCase.java | 8 +-
.../servlettests/FilterContextPathITCase.java | 6 +-
.../servlettests/FormConsumptionITCase.java | 6 +-
.../servlettests/ForwardOn404ITCase.java | 6 +-
.../servlettests/InvalidRequestUriITCase.java | 6 +-
.../RolesAllowedFilterITCase.java | 6 +-
.../StaticContentRegexITCase.java | 6 +-
.../integration/sonar/JerseySonarITCase.java | 10 +-
.../spring/test/AccountResourceITCase.java | 6 +-
.../spring/test/AccountResourceTestBase.java | 8 +-
.../spring/test/JerseyManagedITCase.java | 6 +-
.../test/SpringManagedControllerITCase.java | 6 +-
.../test/SpringManagedEndpointITCase.java | 6 +-
.../spring/test/SpringManagedITCase.java | 6 +-
.../test/SpringManagedRepositoryITCase.java | 6 +-
.../test/SpringManagedServiceITCase.java | 6 +-
.../spring/test/AccountResourceITCase.java | 6 +-
.../spring/test/AccountResourceTestBase.java | 8 +-
.../spring/test/JerseyManagedITCase.java | 6 +-
.../test/SpringManagedControllerITCase.java | 6 +-
.../test/SpringManagedEndpointITCase.java | 6 +-
.../spring/test/SpringManagedITCase.java | 6 +-
.../test/SpringManagedRepositoryITCase.java | 6 +-
.../test/SpringManagedServiceITCase.java | 6 +-
.../tracing/AllTracingSupportITCase.java | 99 ++--
.../tracing/OnDemandTracingSupportITCase.java | 10 +-
tests/jmockit/pom.xml | 4 +-
.../FormDataMultiPartReaderWriterTest.java | 8 +-
.../jmockit/server/ResourceConfigTest.java | 6 +-
.../scanning/PackageNamesScannerTest.java | 40 +-
.../BeanParamLeakResourceITCase.java | 20 +-
.../testleak/MemoryLeakingResourceITCase.java | 18 +-
.../client/EndlessShutdownHookLeakTest.java | 13 +-
.../ShutdownLeakResourceITCase.java | 18 +-
tests/osgi/functional/pom.xml | 6 +
.../AbstractJsonOsgiIntegrationTest.java | 4 +-
.../benchmark/server/JacksonTest.java | 6 +-
.../benchmark/server/LocatorTest.java | 6 +-
.../filter/dynamic/FilterTest.java | 6 +-
.../performance/filter/global/FilterTest.java | 6 +-
.../performance/filter/name/FilterTest.java | 6 +-
.../interceptor/dynamic/InterceptorTest.java | 6 +-
.../interceptor/global/InterceptorTest.java | 6 +-
.../interceptor/name/InterceptorTest.java | 6 +-
.../mbw/custom/PersonEntityTest.java | 6 +-
.../performance/mbw/json/JsonEntityTest.java | 6 +-
.../performance/mbw/json/JsonEntityTest.java | 6 +-
.../mbw/kryo/PersonResourceTest.java | 6 +-
.../performance/mbw/text/TextEntityTest.java | 6 +-
.../performance/mbw/xml/XmlEntityTest.java | 6 +-
.../performance/mbw/xml/XmlEntityTest.java | 6 +-
.../performance/test-cases/monitoring/pom.xml | 8 +-
.../performance/param/srl/SrlSrmTest.java | 6 +-
.../injection/InjectedResourcesTest.java | 6 +-
...MultiThreadingAggregatedReservoirTest.java | 32 +-
.../jersey-release-notes-maven-plugin/pom.xml | 2 +-
1218 files changed, 11479 insertions(+), 10916 deletions(-)
create mode 100644 core-common/src/test/resources/surefire-jdk17.policy
rename tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/json/{AbstractJsonTest.java => JsonTest.java} (96%)
diff --git a/archetypes/jersey-heroku-webapp/src/main/resources/archetype-resources/src/test/java/MyResourceTest.java b/archetypes/jersey-heroku-webapp/src/main/resources/archetype-resources/src/test/java/MyResourceTest.java
index f0c141c0cbd..1212f6f9faf 100644
--- a/archetypes/jersey-heroku-webapp/src/main/resources/archetype-resources/src/test/java/MyResourceTest.java
+++ b/archetypes/jersey-heroku-webapp/src/main/resources/archetype-resources/src/test/java/MyResourceTest.java
@@ -5,8 +5,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import ${package}.MyResource;
diff --git a/archetypes/jersey-quickstart-grizzly2/src/main/resources/archetype-resources/pom.xml b/archetypes/jersey-quickstart-grizzly2/src/main/resources/archetype-resources/pom.xml
index 42416bbd128..9dcb68bb617 100644
--- a/archetypes/jersey-quickstart-grizzly2/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/jersey-quickstart-grizzly2/src/main/resources/archetype-resources/pom.xml
@@ -38,9 +38,9 @@
-->
- junit
- junit
- 4.12
+ org.junit.jupiter
+ junit-jupiter
+ \${junit-jupiter.version}
test
@@ -77,6 +77,7 @@
${project.version}
+ 5.9.1
UTF-8
diff --git a/archetypes/jersey-quickstart-grizzly2/src/main/resources/archetype-resources/src/test/java/MyResourceTest.java b/archetypes/jersey-quickstart-grizzly2/src/main/resources/archetype-resources/src/test/java/MyResourceTest.java
index 6986107bcb9..901bc192833 100644
--- a/archetypes/jersey-quickstart-grizzly2/src/main/resources/archetype-resources/src/test/java/MyResourceTest.java
+++ b/archetypes/jersey-quickstart-grizzly2/src/main/resources/archetype-resources/src/test/java/MyResourceTest.java
@@ -6,17 +6,17 @@
import org.glassfish.grizzly.http.server.HttpServer;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class MyResourceTest {
private HttpServer server;
private WebTarget target;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
// start the server
server = Main.startServer();
@@ -32,7 +32,7 @@ public void setUp() throws Exception {
target = c.target(Main.BASE_URI);
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
server.stop();
}
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/AsyncTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/AsyncTest.java
index 82e2d5d49d6..4c6702b04ae 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/AsyncTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/AsyncTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -40,10 +40,10 @@
import org.glassfish.jersey.test.JerseyTest;
import org.hamcrest.Matchers;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Asynchronous connector test.
@@ -210,7 +210,7 @@ public String call() throws Exception {
}
});
- assertTrue("Waiting for results has timed out.", latch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS));
+ assertTrue(latch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS), "Waiting for results has timed out.");
final long toc = System.currentTimeMillis();
assertEquals("DONE-1", r1.get());
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/AuthTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/AuthTest.java
index dceb272c629..9bced7a7f49 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/AuthTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/AuthTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -44,12 +44,12 @@
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.CredentialsProvider;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Paul Sandoz
@@ -398,7 +398,7 @@ public void testAuthGetWithDigestFilter() {
}
@Test
- @Ignore("JERSEY-1750: Cannot retry request with a non-repeatable request entity. How to buffer the entity?"
+ @Disabled("JERSEY-1750: Cannot retry request with a non-repeatable request entity. How to buffer the entity?"
+ " Allow repeatable write in jersey?")
public void testAuthPost() {
CredentialsProvider credentialsProvider = new org.apache.http.impl.client.BasicCredentialsProvider();
@@ -474,7 +474,7 @@ public void testAuthInteractiveGet() {
}
@Test
- @Ignore("JERSEY-1750: Cannot retry request with a non-repeatable request entity. How to buffer the entity?"
+ @Disabled("JERSEY-1750: Cannot retry request with a non-repeatable request entity. How to buffer the entity?"
+ " Allow repeatable write in jersey?")
public void testAuthInteractivePost() {
CredentialsProvider credentialsProvider = new org.apache.http.impl.client.BasicCredentialsProvider();
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/CookieTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/CookieTest.java
index c387fcecf3b..5e2c66bb6a5 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/CookieTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/CookieTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,11 +34,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/CustomLoggingFilter.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/CustomLoggingFilter.java
index d6c4259576f..a26aea8f547 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/CustomLoggingFilter.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/CustomLoggingFilter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,7 +27,7 @@
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Custom logging filter.
@@ -43,28 +43,28 @@ public class CustomLoggingFilter implements ContainerRequestFilter, ContainerRes
@Override
public void filter(ClientRequestContext context) throws IOException {
System.out.println("CustomLoggingFilter.preFilter called");
- assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ assertEquals("bar", context.getConfiguration().getProperty("foo"));
preFilterCalled++;
}
@Override
public void filter(ClientRequestContext context, ClientResponseContext clientResponseContext) throws IOException {
System.out.println("CustomLoggingFilter.postFilter called");
- assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ assertEquals("bar", context.getConfiguration().getProperty("foo"));
postFilterCalled++;
}
@Override
public void filter(ContainerRequestContext context) throws IOException {
System.out.println("CustomLoggingFilter.preFilter called");
- assertEquals(context.getProperty("foo"), "bar");
+ assertEquals("bar", context.getProperty("foo"));
preFilterCalled++;
}
@Override
public void filter(ContainerRequestContext context, ContainerResponseContext containerResponseContext) throws IOException {
System.out.println("CustomLoggingFilter.postFilter called");
- assertEquals(context.getProperty("foo"), "bar");
+ assertEquals("bar", context.getProperty("foo"));
postFilterCalled++;
}
}
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/DisableContentEncodingTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/DisableContentEncodingTest.java
index 4e2681feb5e..dfd5b17cd9b 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/DisableContentEncodingTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/DisableContentEncodingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,8 +30,8 @@
import org.glassfish.jersey.test.JerseyTest;
import org.apache.http.client.config.RequestConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Ondrej Kosatka
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/FollowRedirectsTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/FollowRedirectsTest.java
index f55bf78f661..c789a1a9051 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/FollowRedirectsTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/FollowRedirectsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,8 +36,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Apache connector follow redirect tests.
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/GZIPContentEncodingTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/GZIPContentEncodingTest.java
index fb2503e78f6..bfa86988d56 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/GZIPContentEncodingTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/GZIPContentEncodingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,8 +34,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HelloWorldTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HelloWorldTest.java
index e6a29e5be98..dab72b32328 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HelloWorldTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HelloWorldTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -63,11 +63,11 @@
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.apache.http.params.HttpParams;
import org.apache.http.protocol.HttpContext;
-import org.junit.Assert;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Jakub Podlesak
@@ -160,11 +160,11 @@ public void _testConnectionPoolSharing(final boolean sharingEnabled) throws Exce
try {
target.request().get();
if (exceptionExpected) {
- Assert.fail("Exception expected");
+ Assertions.fail("Exception expected");
}
} catch (Exception e) {
if (!exceptionExpected) {
- Assert.fail("Exception not expected");
+ Assertions.fail("Exception not expected");
}
} finally {
clientTwo.close();
@@ -603,10 +603,10 @@ public void shutdown() {
final String response = rootTarget.path("error2").request().get(String.class);
fail("Exception expected. Received: " + response);
} catch (InternalServerErrorException isee) {
- assertEquals("Received unexpected data.", "Error2.", isee.getResponse().readEntity(String.class));
+ assertEquals("Error2.", isee.getResponse().readEntity(String.class), "Received unexpected data.");
// Test buffering:
// second read would fail if entity was not buffered
- assertEquals("Unexpected data in the entity buffer.", "Error2.", isee.getResponse().readEntity(String.class));
+ assertEquals("Error2.", isee.getResponse().readEntity(String.class), "Unexpected data in the entity buffer.");
}
assertEquals(0, connectionCounter.get());
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HttpEntityTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HttpEntityTest.java
index f7d2b161c34..19d97842796 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HttpEntityTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HttpEntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,8 +22,8 @@
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
@@ -65,8 +65,8 @@ public void testInputStreamEntity() {
InputStreamEntity entity = new InputStreamEntity(bais);
try (Response response = target().request().post(Entity.entity(entity, MediaType.APPLICATION_OCTET_STREAM))) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals(ECHO_MESSAGE, response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(ECHO_MESSAGE, response.readEntity(String.class));
}
}
@@ -75,8 +75,8 @@ public void testByteArrayEntity() {
ByteArrayEntity entity = new ByteArrayEntity(ECHO_MESSAGE.getBytes());
try (Response response = target().request().post(Entity.entity(entity, MediaType.APPLICATION_OCTET_STREAM))) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals(ECHO_MESSAGE, response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(ECHO_MESSAGE, response.readEntity(String.class));
}
}
}
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HttpHeadersTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HttpHeadersTest.java
index 5302beff774..c4d5ed71773 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HttpHeadersTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HttpHeadersTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -43,9 +43,9 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HttpMethodTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HttpMethodTest.java
index f507504348c..b21940d6585 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HttpMethodTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/HttpMethodTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -39,13 +39,12 @@
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/LargeDataTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/LargeDataTest.java
index 938096c7df1..059a3c05970 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/LargeDataTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/LargeDataTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -37,8 +37,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* The LargeDataTest reproduces a problem when bytes of large data sent are incorrectly sent.
@@ -107,9 +107,8 @@ public void postWithLargeData() throws Throwable {
throw exception;
}
- Assert.assertEquals("Unexpected error: " + response.getStatus(),
- Status.Family.SUCCESSFUL,
- response.getStatusInfo().getFamily());
+ Assertions.assertEquals(Status.Family.SUCCESSFUL, response.getStatusInfo().getFamily(),
+ "Unexpected error: " + response.getStatus());
} finally {
response.close();
}
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/ManagedClientTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/ManagedClientTest.java
index a263177d22a..d3c56441564 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/ManagedClientTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/ManagedClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -46,8 +46,8 @@
import org.glassfish.jersey.server.Uri;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Jersey programmatic managed client test
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/NoEntityTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/NoEntityTest.java
index a162e146481..27ba0ca5f35 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/NoEntityTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/NoEntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,7 +31,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
* @author Paul Sandoz
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/RetryHandlerTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/RetryHandlerTest.java
index f779d126985..7a135af18ca 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/RetryHandlerTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/RetryHandlerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,8 +36,8 @@
import org.glassfish.jersey.test.JerseyTest;
import org.apache.http.client.HttpRequestRetryHandler;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class RetryHandlerTest extends JerseyTest {
private static final int READ_TIMEOUT_MS = 100;
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/SpecialHeaderTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/SpecialHeaderTest.java
index 25bfadb4e24..0d17af5f06a 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/SpecialHeaderTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/SpecialHeaderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,9 +29,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
/**
*
@@ -67,23 +67,23 @@ protected void configureClient(ClientConfig config) {
@Test
- @Ignore("Apache connector does not provide information about encoding for gzip and deflate encoding")
+ @Disabled("Apache connector does not provide information about encoding for gzip and deflate encoding")
public void testEncoded() {
final Response response = target().path("resource/encoded").request("text/plain").get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("get", response.readEntity(String.class));
- Assert.assertEquals("gzip", response.getHeaderString(HttpHeaders.CONTENT_ENCODING));
- Assert.assertEquals("text/plain", response.getHeaderString(HttpHeaders.CONTENT_TYPE));
- Assert.assertEquals(3, response.getHeaderString(HttpHeaders.CONTENT_LENGTH));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("get", response.readEntity(String.class));
+ Assertions.assertEquals("gzip", response.getHeaderString(HttpHeaders.CONTENT_ENCODING));
+ Assertions.assertEquals("text/plain", response.getHeaderString(HttpHeaders.CONTENT_TYPE));
+ Assertions.assertEquals(3, response.getHeaderString(HttpHeaders.CONTENT_LENGTH));
}
@Test
public void testNonEncoded() {
final Response response = target().path("resource/non-encoded").request("text/plain").get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("get", response.readEntity(String.class));
- Assert.assertNull(response.getHeaderString(HttpHeaders.CONTENT_ENCODING));
- Assert.assertEquals("text/plain", response.getHeaderString(HttpHeaders.CONTENT_TYPE));
- Assert.assertEquals("3", response.getHeaderString(HttpHeaders.CONTENT_LENGTH));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("get", response.readEntity(String.class));
+ Assertions.assertNull(response.getHeaderString(HttpHeaders.CONTENT_ENCODING));
+ Assertions.assertEquals("text/plain", response.getHeaderString(HttpHeaders.CONTENT_TYPE));
+ Assertions.assertEquals("3", response.getHeaderString(HttpHeaders.CONTENT_LENGTH));
}
}
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/StreamingTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/StreamingTest.java
index c5ef31e4b0e..10dcbcf0b90 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/StreamingTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/StreamingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -38,8 +38,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Petr Janouch
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/TimeoutTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/TimeoutTest.java
index 66860cf5179..6947b6666ea 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/TimeoutTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/TimeoutTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,11 +31,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Martin Matula
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/TraceSupportTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/TraceSupportTest.java
index c0442f2d44e..e6c593bafb7 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/TraceSupportTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/TraceSupportTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -45,10 +45,10 @@
import org.glassfish.jersey.server.model.Resource;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* This very basic resource showcases support of a HTTP TRACE method,
@@ -129,9 +129,9 @@ public void testProgrammaticApp() throws Exception {
String responseEntity = response.readEntity(String.class);
for (String expectedFragment : expectedFragmentsProgrammatic) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // toLowerCase - http header field names are case insensitive
- responseEntity.contains(expectedFragment));
+ assertTrue(// toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
@@ -143,9 +143,9 @@ public void testAnnotatedApp() throws Exception {
String responseEntity = response.readEntity(String.class);
for (String expectedFragment : expectedFragmentsAnnotated) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // toLowerCase - http header field names are case insensitive
- responseEntity.contains(expectedFragment));
+ assertTrue(// toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/UnderlyingCookieStoreAccessTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/UnderlyingCookieStoreAccessTest.java
index 3238c8162f0..808fef960bc 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/UnderlyingCookieStoreAccessTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/UnderlyingCookieStoreAccessTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,9 +23,9 @@
import org.glassfish.jersey.client.ClientConfig;
import org.apache.http.client.CookieStore;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**
* Test of access to the underlying CookieStore instance used by the connector.
@@ -44,9 +44,9 @@ public void testCookieStoreInstanceAccess() {
final WebTarget target = client.target("http://localhost/");
final CookieStore csOnTarget = ApacheConnectorProvider.getCookieStore(target);
- assertNotNull("CookieStore instance set on JerseyClient should not be null.", csOnClient);
- assertNotNull("CookieStore instance set on JerseyWebTarget should not be null.", csOnTarget);
- assertSame("CookieStore instance set on JerseyClient should be the same instance as the one set on JerseyWebTarget"
- + "(provided the target instance has not been further configured).", csOnClient, csOnTarget);
+ assertNotNull(csOnClient, "CookieStore instance set on JerseyClient should not be null.");
+ assertNotNull(csOnTarget, "CookieStore instance set on JerseyWebTarget should not be null.");
+ assertSame(csOnClient, csOnTarget, "CookieStore instance set on JerseyClient should be the same instance as the one "
+ + "set on JerseyWebTarget (provided the target instance has not been further configured).");
}
}
diff --git a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/UnderlyingHttpClientAccessTest.java b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/UnderlyingHttpClientAccessTest.java
index 61b9bd0225d..18b3eee118e 100644
--- a/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/UnderlyingHttpClientAccessTest.java
+++ b/connectors/apache-connector/src/test/java/org/glassfish/jersey/apache/connector/UnderlyingHttpClientAccessTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,9 +23,9 @@
import org.glassfish.jersey.client.ClientConfig;
import org.apache.http.client.HttpClient;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**
* Test of access to the underlying HTTP client instance used by the connector.
@@ -47,11 +47,9 @@ public void testHttpClientInstanceAccess() {
final WebTarget target = client.target("http://localhost/");
final HttpClient hcOnTarget = ApacheConnectorProvider.getHttpClient(target);
- assertNotNull("HTTP client instance set on JerseyClient should not be null.", hcOnClient);
- assertNotNull("HTTP client instance set on JerseyWebTarget should not be null.", hcOnTarget);
- assertSame("HTTP client instance set on JerseyClient should be the same instance as the one set on JerseyWebTarget"
- + "(provided the target instance has not been further configured).",
- hcOnClient, hcOnTarget
- );
+ assertNotNull(hcOnClient, "HTTP client instance set on JerseyClient should not be null.");
+ assertNotNull(hcOnTarget, "HTTP client instance set on JerseyWebTarget should not be null.");
+ assertSame(hcOnClient, hcOnTarget, "HTTP client instance set on JerseyClient should be the same instance as the one "
+ + "set on JerseyWebTarget (provided the target instance has not been further configured).");
}
}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AsyncTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AsyncTest.java
index 50e8f6571ff..6ac74e50498 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AsyncTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AsyncTest.java
@@ -40,10 +40,10 @@
import org.glassfish.jersey.test.JerseyTest;
import org.hamcrest.Matchers;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Asynchronous connector test.
@@ -210,7 +210,7 @@ public String call() throws Exception {
}
});
- assertTrue("Waiting for results has timed out.", latch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS));
+ assertTrue(latch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS), "Waiting for results has timed out.");
final long toc = System.currentTimeMillis();
assertEquals("DONE-1", r1.get());
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AuthTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AuthTest.java
index f59c0cf9bf9..c16e4855d89 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AuthTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/AuthTest.java
@@ -44,12 +44,12 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Paul Sandoz
@@ -398,7 +398,7 @@ public void testAuthGetWithDigestFilter() {
}
@Test
- @Ignore("JERSEY-1750: Cannot retry request with a non-repeatable request entity. How to buffer the entity?"
+ @Disabled("JERSEY-1750: Cannot retry request with a non-repeatable request entity. How to buffer the entity?"
+ " Allow repeatable write in jersey?")
public void testAuthPost() {
CredentialsStore credentialsProvider = new BasicCredentialsProvider();
@@ -474,7 +474,7 @@ public void testAuthInteractiveGet() {
}
@Test
- @Ignore("JERSEY-1750: Cannot retry request with a non-repeatable request entity. How to buffer the entity?"
+ @Disabled("JERSEY-1750: Cannot retry request with a non-repeatable request entity. How to buffer the entity?"
+ " Allow repeatable write in jersey?")
public void testAuthInteractivePost() {
CredentialsStore credentialsProvider = new BasicCredentialsProvider();
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CookieTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CookieTest.java
index 0e619a661a3..1ff230006f7 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CookieTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CookieTest.java
@@ -34,11 +34,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CustomLoggingFilter.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CustomLoggingFilter.java
index 27caedad533..60e4cc8d343 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CustomLoggingFilter.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/CustomLoggingFilter.java
@@ -27,7 +27,7 @@
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Custom logging filter.
@@ -43,28 +43,28 @@ public class CustomLoggingFilter implements ContainerRequestFilter, ContainerRes
@Override
public void filter(ClientRequestContext context) throws IOException {
System.out.println("CustomLoggingFilter.preFilter called");
- assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ assertEquals("bar", context.getConfiguration().getProperty("foo"));
preFilterCalled++;
}
@Override
public void filter(ClientRequestContext context, ClientResponseContext clientResponseContext) throws IOException {
System.out.println("CustomLoggingFilter.postFilter called");
- assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ assertEquals("bar", context.getConfiguration().getProperty("foo"));
postFilterCalled++;
}
@Override
public void filter(ContainerRequestContext context) throws IOException {
System.out.println("CustomLoggingFilter.preFilter called");
- assertEquals(context.getProperty("foo"), "bar");
+ assertEquals("bar", context.getProperty("foo"));
preFilterCalled++;
}
@Override
public void filter(ContainerRequestContext context, ContainerResponseContext containerResponseContext) throws IOException {
System.out.println("CustomLoggingFilter.postFilter called");
- assertEquals(context.getProperty("foo"), "bar");
+ assertEquals("bar", context.getProperty("foo"));
postFilterCalled++;
}
}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/DisableContentEncodingTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/DisableContentEncodingTest.java
index 51bc6a007c1..9bd1572c310 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/DisableContentEncodingTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/DisableContentEncodingTest.java
@@ -30,8 +30,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Ondrej Kosatka
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/FollowRedirectsTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/FollowRedirectsTest.java
index 9377a0a7412..27a54c94e9a 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/FollowRedirectsTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/FollowRedirectsTest.java
@@ -36,8 +36,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Apache connector follow redirect tests.
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/GZIPContentEncodingTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/GZIPContentEncodingTest.java
index 0230ba14e0b..298ca42dbf3 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/GZIPContentEncodingTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/GZIPContentEncodingTest.java
@@ -34,8 +34,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HelloWorldTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HelloWorldTest.java
index e0f66121776..2dc697c23b7 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HelloWorldTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HelloWorldTest.java
@@ -52,11 +52,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Jakub Podlesak
@@ -149,11 +149,11 @@ public void _testConnectionPoolSharing(final boolean sharingEnabled) throws Exce
try {
target.request().get();
if (exceptionExpected) {
- Assert.fail("Exception expected");
+ Assertions.fail("Exception expected");
}
} catch (Exception e) {
if (!exceptionExpected) {
- Assert.fail("Exception not expected");
+ Assertions.fail("Exception not expected");
}
} finally {
clientTwo.close();
@@ -389,10 +389,10 @@ public void close() throws IOException {
final String response = rootTarget.path("error2").request().get(String.class);
fail("Exception expected. Received: " + response);
} catch (InternalServerErrorException isee) {
- assertEquals("Received unexpected data.", "Error2.", isee.getResponse().readEntity(String.class));
+ assertEquals("Error2.", isee.getResponse().readEntity(String.class), "Received unexpected data.");
// Test buffering:
// second read would fail if entity was not buffered
- assertEquals("Unexpected data in the entity buffer.", "Error2.", isee.getResponse().readEntity(String.class));
+ assertEquals("Error2.", isee.getResponse().readEntity(String.class), "Unexpected data in the entity buffer.");
}
assertEquals(0, connectionCounter.get());
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpEntityTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpEntityTest.java
index cad5ea84949..5581fc92a6b 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpEntityTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpEntityTest.java
@@ -23,8 +23,8 @@
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
@@ -66,8 +66,8 @@ public void testInputStreamEntity() {
InputStreamEntity entity = new InputStreamEntity(bais, ContentType.TEXT_PLAIN);
try (Response response = target().request().post(Entity.entity(entity, MediaType.APPLICATION_OCTET_STREAM))) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals(ECHO_MESSAGE, response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(ECHO_MESSAGE, response.readEntity(String.class));
}
}
@@ -76,8 +76,8 @@ public void testByteArrayEntity() {
ByteArrayEntity entity = new ByteArrayEntity(ECHO_MESSAGE.getBytes(), ContentType.TEXT_PLAIN);
try (Response response = target().request().post(Entity.entity(entity, MediaType.APPLICATION_OCTET_STREAM))) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals(ECHO_MESSAGE, response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(ECHO_MESSAGE, response.readEntity(String.class));
}
}
}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpHeadersTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpHeadersTest.java
index c63b7a87ee9..cea6db2a09f 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpHeadersTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpHeadersTest.java
@@ -43,9 +43,9 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpMethodTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpMethodTest.java
index 00a45a15b6d..1f4830378c2 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpMethodTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/HttpMethodTest.java
@@ -41,11 +41,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/LargeDataTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/LargeDataTest.java
index 40f1b4136d5..fc67712c3ff 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/LargeDataTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/LargeDataTest.java
@@ -37,8 +37,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* The LargeDataTest reproduces a problem when bytes of large data sent are incorrectly sent.
@@ -107,9 +107,8 @@ public void postWithLargeData() throws Throwable {
throw exception;
}
- Assert.assertEquals("Unexpected error: " + response.getStatus(),
- Status.Family.SUCCESSFUL,
- response.getStatusInfo().getFamily());
+ Assertions.assertEquals(Status.Family.SUCCESSFUL, response.getStatusInfo().getFamily(),
+ "Unexpected error: " + response.getStatus());
} finally {
response.close();
}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/ManagedClientTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/ManagedClientTest.java
index 46ba4ee0182..cd3468252f8 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/ManagedClientTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/ManagedClientTest.java
@@ -46,8 +46,8 @@
import org.glassfish.jersey.server.Uri;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Jersey programmatic managed client test
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/NoEntityTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/NoEntityTest.java
index cdea49be4cc..e00ded91e0c 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/NoEntityTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/NoEntityTest.java
@@ -31,7 +31,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
* @author Paul Sandoz
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/RetryStrategyTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/RetryStrategyTest.java
index 6254c430fcf..cdfc30fbd22 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/RetryStrategyTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/RetryStrategyTest.java
@@ -40,8 +40,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class RetryStrategyTest extends JerseyTest {
private static final int READ_TIMEOUT_MS = 100;
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/SpecialHeaderTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/SpecialHeaderTest.java
index ce6a3778834..8803ac43d8c 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/SpecialHeaderTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/SpecialHeaderTest.java
@@ -29,9 +29,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
/**
*
@@ -67,23 +67,23 @@ protected void configureClient(ClientConfig config) {
@Test
- @Ignore("Apache connector does not provide information about encoding for gzip and deflate encoding")
+ @Disabled("Apache connector does not provide information about encoding for gzip and deflate encoding")
public void testEncoded() {
final Response response = target().path("resource/encoded").request("text/plain").get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("get", response.readEntity(String.class));
- Assert.assertEquals("gzip", response.getHeaderString(HttpHeaders.CONTENT_ENCODING));
- Assert.assertEquals("text/plain", response.getHeaderString(HttpHeaders.CONTENT_TYPE));
- Assert.assertEquals(3, response.getHeaderString(HttpHeaders.CONTENT_LENGTH));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("get", response.readEntity(String.class));
+ Assertions.assertEquals("gzip", response.getHeaderString(HttpHeaders.CONTENT_ENCODING));
+ Assertions.assertEquals("text/plain", response.getHeaderString(HttpHeaders.CONTENT_TYPE));
+ Assertions.assertEquals(3, response.getHeaderString(HttpHeaders.CONTENT_LENGTH));
}
@Test
public void testNonEncoded() {
final Response response = target().path("resource/non-encoded").request("text/plain").get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("get", response.readEntity(String.class));
- Assert.assertNull(response.getHeaderString(HttpHeaders.CONTENT_ENCODING));
- Assert.assertEquals("text/plain", response.getHeaderString(HttpHeaders.CONTENT_TYPE));
- Assert.assertEquals("3", response.getHeaderString(HttpHeaders.CONTENT_LENGTH));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("get", response.readEntity(String.class));
+ Assertions.assertNull(response.getHeaderString(HttpHeaders.CONTENT_ENCODING));
+ Assertions.assertEquals("text/plain", response.getHeaderString(HttpHeaders.CONTENT_TYPE));
+ Assertions.assertEquals("3", response.getHeaderString(HttpHeaders.CONTENT_LENGTH));
}
}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/StreamingTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/StreamingTest.java
index ea90e798790..7a05f61c53d 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/StreamingTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/StreamingTest.java
@@ -37,8 +37,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Petr Janouch
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TimeoutTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TimeoutTest.java
index 7eab1b30b60..0d694571059 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TimeoutTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TimeoutTest.java
@@ -31,11 +31,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Martin Matula
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TraceSupportTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TraceSupportTest.java
index d95c2f21c81..c4c2d3a0370 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TraceSupportTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/TraceSupportTest.java
@@ -45,10 +45,10 @@
import org.glassfish.jersey.server.model.Resource;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* This very basic resource showcases support of a HTTP TRACE method,
@@ -129,9 +129,9 @@ public void testProgrammaticApp() throws Exception {
String responseEntity = response.readEntity(String.class);
for (String expectedFragment : expectedFragmentsProgrammatic) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // toLowerCase - http header field names are case insensitive
- responseEntity.contains(expectedFragment));
+ assertTrue(// toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
@@ -143,9 +143,9 @@ public void testAnnotatedApp() throws Exception {
String responseEntity = response.readEntity(String.class);
for (String expectedFragment : expectedFragmentsAnnotated) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // toLowerCase - http header field names are case insensitive
- responseEntity.contains(expectedFragment));
+ assertTrue(// toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingCookieStoreAccessTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingCookieStoreAccessTest.java
index 8248fdd7d83..1250637ac71 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingCookieStoreAccessTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingCookieStoreAccessTest.java
@@ -23,9 +23,9 @@
import org.apache.hc.client5.http.cookie.CookieStore;
import org.glassfish.jersey.client.ClientConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**
* Test of access to the underlying CookieStore instance used by the connector.
@@ -44,9 +44,9 @@ public void testCookieStoreInstanceAccess() {
final WebTarget target = client.target("http://localhost/");
final CookieStore csOnTarget = Apache5ConnectorProvider.getCookieStore(target);
- assertNotNull("CookieStore instance set on JerseyClient should not be null.", csOnClient);
- assertNotNull("CookieStore instance set on JerseyWebTarget should not be null.", csOnTarget);
- assertSame("CookieStore instance set on JerseyClient should be the same instance as the one set on JerseyWebTarget"
- + "(provided the target instance has not been further configured).", csOnClient, csOnTarget);
+ assertNotNull(csOnClient, "CookieStore instance set on JerseyClient should not be null.");
+ assertNotNull(csOnTarget, "CookieStore instance set on JerseyWebTarget should not be null.");
+ assertSame(csOnClient, csOnTarget, "CookieStore instance set on JerseyClient should be the same instance as the one "
+ + "set on JerseyWebTarget (provided the target instance has not been further configured).");
}
}
diff --git a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingHttpClientAccessTest.java b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingHttpClientAccessTest.java
index 0c2e320b624..d8aec2ca3ba 100644
--- a/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingHttpClientAccessTest.java
+++ b/connectors/apache5-connector/src/test/java/org/glassfish/jersey/apache5/connector/UnderlyingHttpClientAccessTest.java
@@ -23,9 +23,9 @@
import org.apache.hc.client5.http.classic.HttpClient;
import org.glassfish.jersey.client.ClientConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**
* Test of access to the underlying HTTP client instance used by the connector.
@@ -47,11 +47,9 @@ public void testHttpClientInstanceAccess() {
final WebTarget target = client.target("http://localhost/");
final HttpClient hcOnTarget = Apache5ConnectorProvider.getHttpClient(target);
- assertNotNull("HTTP client instance set on JerseyClient should not be null.", hcOnClient);
- assertNotNull("HTTP client instance set on JerseyWebTarget should not be null.", hcOnTarget);
- assertSame("HTTP client instance set on JerseyClient should be the same instance as the one set on JerseyWebTarget"
- + "(provided the target instance has not been further configured).",
- hcOnClient, hcOnTarget
- );
+ assertNotNull(hcOnClient, "HTTP client instance set on JerseyClient should not be null.");
+ assertNotNull(hcOnTarget, "HTTP client instance set on JerseyWebTarget should not be null.");
+ assertSame(hcOnClient, hcOnTarget, "HTTP client instance set on JerseyClient should be the same instance as the one"
+ + " set on JerseyWebTarget (provided the target instance has not been further configured).");
}
}
diff --git a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/AsyncTest.java b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/AsyncTest.java
index 754c371a443..bc970c7329a 100644
--- a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/AsyncTest.java
+++ b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/AsyncTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,9 +36,9 @@
import org.glassfish.jersey.test.JerseyTest;
import org.hamcrest.Matchers;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Asynchronous connector test.
diff --git a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/CustomizersTest.java b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/CustomizersTest.java
index 75e0ca0f9f5..23a82880c9f 100644
--- a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/CustomizersTest.java
+++ b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/CustomizersTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,9 +32,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import com.ning.http.client.AsyncHttpClientConfig;
import com.ning.http.client.RequestBuilder;
diff --git a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/FollowRedirectsTest.java b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/FollowRedirectsTest.java
index 21f8879f3d7..2d86199ea0a 100644
--- a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/FollowRedirectsTest.java
+++ b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/FollowRedirectsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,8 +34,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Grizzly connector follow redirect tests.
diff --git a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/HttpHeadersTest.java b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/HttpHeadersTest.java
index 27728644508..81576091daa 100644
--- a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/HttpHeadersTest.java
+++ b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/HttpHeadersTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,9 +26,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests the headers.
diff --git a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/HttpMethodTest.java b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/HttpMethodTest.java
index 3f905042e22..67528704711 100644
--- a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/HttpMethodTest.java
+++ b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/HttpMethodTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,7 +19,7 @@
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@@ -30,8 +30,8 @@
import javax.ws.rs.core.Application;
import javax.ws.rs.core.Response;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests the Http methods.
diff --git a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/NoEntityTest.java b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/NoEntityTest.java
index a6db9eef1d0..8e7cfe5b7fe 100644
--- a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/NoEntityTest.java
+++ b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/NoEntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,7 +31,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
* @author Paul Sandoz
diff --git a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/ParallelTest.java b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/ParallelTest.java
index 8cd48ba650d..2016b583e2c 100644
--- a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/ParallelTest.java
+++ b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/ParallelTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -37,10 +37,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests the parallel execution of multiple requests.
@@ -120,15 +120,15 @@ public void run() {
startBarrier.await(1, TimeUnit.SECONDS);
- assertTrue("Waiting for clients to finish has timed out.", doneLatch.await(5 * getAsyncTimeoutMultiplier(),
- TimeUnit.SECONDS));
+ assertTrue(doneLatch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS),
+ "Waiting for clients to finish has timed out.");
- assertEquals("Resource counter", PARALLEL_CLIENTS, resourceCounter.get());
+ assertEquals(PARALLEL_CLIENTS, resourceCounter.get(), "Resource counter");
- assertEquals("Received counter", PARALLEL_CLIENTS, receivedCounter.get());
+ assertEquals(PARALLEL_CLIENTS, receivedCounter.get(), "Received counter");
} finally {
executor.shutdownNow();
- Assert.assertTrue("Executor termination", executor.awaitTermination(5, TimeUnit.SECONDS));
+ Assertions.assertTrue(executor.awaitTermination(5, TimeUnit.SECONDS), "Executor termination");
}
}
}
diff --git a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/TimeoutTest.java b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/TimeoutTest.java
index f920bd7802d..0d771af14e9 100644
--- a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/TimeoutTest.java
+++ b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/TimeoutTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,11 +29,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Martin Matula
diff --git a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/TraceSupportTest.java b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/TraceSupportTest.java
index d5b2cf5c46d..d11646bd231 100644
--- a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/TraceSupportTest.java
+++ b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/TraceSupportTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -45,10 +45,10 @@
import org.glassfish.jersey.server.model.Resource;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* This very basic resource showcases support of a HTTP TRACE method,
@@ -129,9 +129,9 @@ public void testProgrammaticApp() throws Exception {
String responseEntity = response.readEntity(String.class);
for (String expectedFragment : expectedFragmentsProgrammatic) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // toLowerCase - http header field names are case insensitive
- responseEntity.contains(expectedFragment));
+ assertTrue(// toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
@@ -143,9 +143,9 @@ public void testAnnotatedApp() throws Exception {
String responseEntity = response.readEntity(String.class);
for (String expectedFragment : expectedFragmentsAnnotated) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // toLowerCase - http header field names are case insensitive
- responseEntity.contains(expectedFragment));
+ assertTrue(// toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
diff --git a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/UnderlyingHttpClientAccessTest.java b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/UnderlyingHttpClientAccessTest.java
index eee7992a49e..2edae611435 100644
--- a/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/UnderlyingHttpClientAccessTest.java
+++ b/connectors/grizzly-connector/src/test/java/org/glassfish/jersey/grizzly/connector/UnderlyingHttpClientAccessTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,9 +22,9 @@
import org.glassfish.jersey.client.ClientConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
import com.ning.http.client.AsyncHttpClient;
@@ -48,11 +48,9 @@ public void testHttpClientInstanceAccess() {
final WebTarget target = client.target("http://localhost/");
final AsyncHttpClient hcOnTarget = GrizzlyConnectorProvider.getHttpClient(target);
- assertNotNull("HTTP client instance set on JerseyClient should not be null.", hcOnClient);
- assertNotNull("HTTP client instance set on JerseyWebTarget should not be null.", hcOnTarget);
- assertSame("HTTP client instance set on JerseyClient should be the same instance as the one set on JerseyWebTarget"
- + "(provided the target instance has not been further configured).",
- hcOnClient, hcOnTarget
- );
+ assertNotNull(hcOnClient, "HTTP client instance set on JerseyClient should not be null.");
+ assertNotNull(hcOnTarget, "HTTP client instance set on JerseyWebTarget should not be null.");
+ assertSame(hcOnClient, hcOnTarget, "HTTP client instance set on JerseyClient should be the same instance as the one "
+ + "set on JerseyWebTarget (provided the target instance has not been further configured).");
}
}
diff --git a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/AsyncTest.java b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/AsyncTest.java
index b6189db57ad..4d6c9b3b30d 100644
--- a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/AsyncTest.java
+++ b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/AsyncTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,7 +21,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.hamcrest.Matchers;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
@@ -36,8 +36,8 @@
import java.util.concurrent.TimeUnit;
import java.util.logging.Logger;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Asynchronous connector test.
diff --git a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/BasicHelidonConnectorTest.java b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/BasicHelidonConnectorTest.java
index 4af0ebec99d..48d7db5506d 100644
--- a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/BasicHelidonConnectorTest.java
+++ b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/BasicHelidonConnectorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,10 +21,11 @@
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.glassfish.jersey.test.spi.TestHelper;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.DynamicContainer;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestFactory;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
@@ -45,7 +46,9 @@
import javax.ws.rs.core.Response;
import java.io.IOException;
import java.io.InputStream;
+import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collection;
import java.util.List;
import java.util.Locale;
import java.util.Map;
@@ -55,21 +58,9 @@
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
-@RunWith(Parameterized.class)
-public class BasicHelidonConnectorTest extends JerseyTest {
-
- private final String entityType;
-
- public BasicHelidonConnectorTest(String entityType) {
- this.entityType = entityType;
- }
-
- @Parameterized.Parameters
- public static Object[] data() {
- return new Object[]{"BYTE_ARRAY_OUTPUT_STREAM", "READABLE_BYTE_CHANNEL", "OUTPUT_STREAM_PUBLISHER"};
- }
+public class BasicHelidonConnectorTest {
@Path("basic")
public static class BasicResource {
@@ -112,6 +103,10 @@ public String putConsumesProduces(String content) {
}
}
+ public static List data() {
+ return Arrays.asList("BYTE_ARRAY_OUTPUT_STREAM", "READABLE_BYTE_CHANNEL", "OUTPUT_STREAM_PUBLISHER");
+ }
+
@Path("async")
public static class AsyncResource {
private static CountDownLatch shortLong = null;
@@ -137,181 +132,200 @@ public String shortGet() {
}
}
- @Override
- protected Application configure() {
- return new ResourceConfig(BasicResource.class, AsyncResource.class)
- .property(LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL_SERVER, "WARNING");
+ @TestFactory
+ public Collection generateTests() {
+ Collection tests = new ArrayList<>();
+ data().forEach(entityType -> {
+ BasicHelidonConnectorTemplateTest test = new BasicHelidonConnectorTemplateTest(entityType) {};
+ tests.add(TestHelper.toTestContainer(test, entityType));
+ });
+ return tests;
}
- @Override
- protected void configureClient(ClientConfig config) {
- super.configureClient(config);
- config.connectorProvider(new HelidonConnectorProvider());
- config.property("jersey.config.helidon.client.entity.type", entityType);
- }
+ public abstract static class BasicHelidonConnectorTemplateTest extends JerseyTest {
+
+ private final String entityType;
- @Test
- public void testBasicGet() {
- try (Response response = target("basic").path("get").request().get()) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("ok", response.readEntity(String.class));
+ public BasicHelidonConnectorTemplateTest(String entityType) {
+ this.entityType = entityType;
}
- }
- @Test
- public void testBasicPost() {
- try (Response response = target("basic").path("post").request()
- .buildPost(Entity.entity("ok", MediaType.TEXT_PLAIN_TYPE)).invoke()) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("okok", response.readEntity(String.class));
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(BasicResource.class, AsyncResource.class)
+ .property(LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL_SERVER, "WARNING");
}
- }
- @Test
- public void queryGetTest() {
- try (Response response = target("basic").path("getquery")
- .queryParam("first", "hello")
- .queryParam("second", "world")
- .request().get()) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("helloworld", response.readEntity(String.class));
+ @Override
+ protected void configureClient(ClientConfig config) {
+ super.configureClient(config);
+ config.connectorProvider(new HelidonConnectorProvider());
+ config.property("jersey.config.helidon.client.entity.type", entityType);
}
- }
- @Test
- public void testHeaders() {
- String[][] headers = new String[][]{{"X-TEST-ONE", "ONE"}, {"X-TEST-TWO", "TWO"}, {"X-TEST-THREE", "THREE"}};
- MultivaluedHashMap map = new MultivaluedHashMap<>();
- Arrays.stream(headers).forEach(a -> map.add(a[0], a[1]));
- try (Response response = target("basic").path("headers").request().headers(map).get()) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("ok", response.readEntity(String.class));
- for (int i = 0; i != headers.length; i++) {
- Assert.assertTrue(response.getHeaders().containsKey(headers[i][0]));
- Assert.assertEquals(headers[i][1], response.getStringHeaders().getFirst(headers[i][0]));
+ @Test
+ public void testBasicGet() {
+ try (Response response = target("basic").path("get").request().get()) {
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("ok", response.readEntity(String.class));
}
}
- }
- @Test
- public void testProduces() {
- try (Response response = target("basic").path("produces/consumes").request("test/z-test")
- .put(Entity.entity("ok", new MediaType("test", "x-test")))) {
- Assert.assertEquals(406, response.getStatus());
+ @Test
+ public void testBasicPost() {
+ try (Response response = target("basic").path("post").request()
+ .buildPost(Entity.entity("ok", MediaType.TEXT_PLAIN_TYPE)).invoke()) {
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("okok", response.readEntity(String.class));
+ }
}
- try (Response response = target("basic").path("produces/consumes").request()
- .put(Entity.entity("ok", new MediaType("test", "x-test")))) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("okok", response.readEntity(String.class));
- Assert.assertEquals("test/y-test", response.getStringHeaders().getFirst(HttpHeaders.CONTENT_TYPE));
+ @Test
+ public void queryGetTest() {
+ try (Response response = target("basic").path("getquery")
+ .queryParam("first", "hello")
+ .queryParam("second", "world")
+ .request().get()) {
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("helloworld", response.readEntity(String.class));
+ }
}
- }
- @Test
- public void testAsyncGet() throws ExecutionException, InterruptedException {
- Future futureResponse = target("basic").path("get").request().async().get();
- try (Response response = futureResponse.get()) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("ok", response.readEntity(String.class));
+ @Test
+ public void testHeaders() {
+ String[][] headers = new String[][]{{"X-TEST-ONE", "ONE"}, {"X-TEST-TWO", "TWO"}, {"X-TEST-THREE", "THREE"}};
+ MultivaluedHashMap map = new MultivaluedHashMap<>();
+ Arrays.stream(headers).forEach(a -> map.add(a[0], a[1]));
+ try (Response response = target("basic").path("headers").request().headers(map).get()) {
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("ok", response.readEntity(String.class));
+ for (int i = 0; i != headers.length; i++) {
+ Assertions.assertTrue(response.getHeaders().containsKey(headers[i][0]));
+ Assertions.assertEquals(headers[i][1], response.getStringHeaders().getFirst(headers[i][0]));
+ }
+ }
+ }
+
+ @Test
+ public void testProduces() {
+ try (Response response = target("basic").path("produces/consumes").request("test/z-test")
+ .put(Entity.entity("ok", new MediaType("test", "x-test")))) {
+ Assertions.assertEquals(406, response.getStatus());
+ }
+
+ try (Response response = target("basic").path("produces/consumes").request()
+ .put(Entity.entity("ok", new MediaType("test", "x-test")))) {
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("okok", response.readEntity(String.class));
+ Assertions.assertEquals("test/y-test", response.getStringHeaders().getFirst(HttpHeaders.CONTENT_TYPE));
+ }
}
- }
- @Test
- public void testConsumes() {
- try (Response response = target("basic").path("produces/consumes").request("test/y-test")
- .put(Entity.entity("ok", new MediaType("test", "z-test")))) {
- Assert.assertEquals(415, response.getStatus());
+ @Test
+ public void testAsyncGet() throws ExecutionException, InterruptedException {
+ Future futureResponse = target("basic").path("get").request().async().get();
+ try (Response response = futureResponse.get()) {
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("ok", response.readEntity(String.class));
+ }
}
- try (Response response = target("basic").path("produces/consumes").request("test/y-test")
- .put(Entity.entity("ok", MediaType.WILDCARD_TYPE))) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("okok", response.readEntity(String.class));
- Assert.assertEquals("test/y-test", response.getStringHeaders().getFirst(HttpHeaders.CONTENT_TYPE));
+ @Test
+ public void testConsumes() {
+ try (Response response = target("basic").path("produces/consumes").request("test/y-test")
+ .put(Entity.entity("ok", new MediaType("test", "z-test")))) {
+ Assertions.assertEquals(415, response.getStatus());
+ }
+
+ try (Response response = target("basic").path("produces/consumes").request("test/y-test")
+ .put(Entity.entity("ok", MediaType.WILDCARD_TYPE))) {
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("okok", response.readEntity(String.class));
+ Assertions.assertEquals("test/y-test", response.getStringHeaders().getFirst(HttpHeaders.CONTENT_TYPE));
+ }
}
- }
- @Test
- public void testRxGet() throws ExecutionException, InterruptedException {
- CompletableFuture futureResponse =
- target("basic").path("get").request().rx(JerseyCompletionStageRxInvoker.class).get();
+ @Test
+ public void testRxGet() throws ExecutionException, InterruptedException {
+ CompletableFuture futureResponse =
+ target("basic").path("get").request().rx(JerseyCompletionStageRxInvoker.class).get();
- try (Response response = futureResponse.get()) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("ok", response.readEntity(String.class));
+ try (Response response = futureResponse.get()) {
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("ok", response.readEntity(String.class));
+ }
}
- }
- @Test
- public void testInputStreamEntity() throws IOException {
- try (Response response = target("basic").path("get").request().get()) {
- Assert.assertEquals(200, response.getStatus());
- InputStream is = response.readEntity(InputStream.class);
- Assert.assertEquals('o', is.read());
- Assert.assertEquals('k', is.read());
- is.close();
+ @Test
+ public void testInputStreamEntity() throws IOException {
+ try (Response response = target("basic").path("get").request().get()) {
+ Assertions.assertEquals(200, response.getStatus());
+ InputStream is = response.readEntity(InputStream.class);
+ Assertions.assertEquals('o', is.read());
+ Assertions.assertEquals('k', is.read());
+ is.close();
+ }
}
- }
- // -----------Async
+ // -----------Async
- @Test
- public void testTwoClientsAsync() throws ExecutionException, InterruptedException {
- try (Response resetResponse = target("async").path("reset").request().get()) {
- Assert.assertEquals(204, resetResponse.getStatus());
- }
+ @Test
+ public void testTwoClientsAsync() throws ExecutionException, InterruptedException {
+ try (Response resetResponse = target("async").path("reset").request().get()) {
+ Assertions.assertEquals(204, resetResponse.getStatus());
+ }
- ClientConfig config = new ClientConfig();
- config.connectorProvider(new HelidonConnectorProvider());
+ ClientConfig config = new ClientConfig();
+ config.connectorProvider(new HelidonConnectorProvider());
- Client longClient = ClientBuilder.newClient(config);
- Invocation.Builder longRequest = longClient.target(getBaseUri()).path("async/long").request();
+ Client longClient = ClientBuilder.newClient(config);
+ Invocation.Builder longRequest = longClient.target(getBaseUri()).path("async/long").request();
- Client shortClient = ClientBuilder.newClient(config);
- Invocation.Builder shortRequest = shortClient.target(getBaseUri()).path("async/short").request();
+ Client shortClient = ClientBuilder.newClient(config);
+ Invocation.Builder shortRequest = shortClient.target(getBaseUri()).path("async/short").request();
- Future futureLongResponse = longRequest.async().get();
- Future futureShortResponse = shortRequest.async().get();
+ Future futureLongResponse = longRequest.async().get();
+ Future futureShortResponse = shortRequest.async().get();
- try (Response shortResponse = futureShortResponse.get()) {
- Assert.assertEquals(200, shortResponse.getStatus());
- Assert.assertEquals("short", shortResponse.readEntity(String.class));
- }
+ try (Response shortResponse = futureShortResponse.get()) {
+ Assertions.assertEquals(200, shortResponse.getStatus());
+ Assertions.assertEquals("short", shortResponse.readEntity(String.class));
+ }
- try (Response longResponse = futureLongResponse.get()) {
- Assert.assertEquals(200, longResponse.getStatus());
- Assert.assertEquals("long", longResponse.readEntity(String.class));
+ try (Response longResponse = futureLongResponse.get()) {
+ Assertions.assertEquals(200, longResponse.getStatus());
+ Assertions.assertEquals("long", longResponse.readEntity(String.class));
+ }
}
- }
- @Test
- public void testOneClientsTwoReqestsAsync() throws ExecutionException, InterruptedException {
- try (Response resetResponse = target("async").path("reset").request().get()) {
- Assert.assertEquals(204, resetResponse.getStatus());
- }
+ @Test
+ public void testOneClientsTwoReqestsAsync() throws ExecutionException, InterruptedException {
+ try (Response resetResponse = target("async").path("reset").request().get()) {
+ Assertions.assertEquals(204, resetResponse.getStatus());
+ }
- Invocation.Builder longRequest = target().path("async/long").request();
- Invocation.Builder shortRequest = target().path("async/short").request();
+ Invocation.Builder longRequest = target().path("async/long").request();
+ Invocation.Builder shortRequest = target().path("async/short").request();
- Future futureLongResponse = longRequest.async().get();
- Future futureShortResponse = shortRequest.async().get();
+ Future futureLongResponse = longRequest.async().get();
+ Future futureShortResponse = shortRequest.async().get();
- try (Response shortResponse = futureShortResponse.get()) {
- Assert.assertEquals(200, shortResponse.getStatus());
- Assert.assertEquals("short", shortResponse.readEntity(String.class));
- }
+ try (Response shortResponse = futureShortResponse.get()) {
+ Assertions.assertEquals(200, shortResponse.getStatus());
+ Assertions.assertEquals("short", shortResponse.readEntity(String.class));
+ }
- try (Response longResponse = futureLongResponse.get()) {
- Assert.assertEquals(200, longResponse.getStatus());
- Assert.assertEquals("long", longResponse.readEntity(String.class));
+ try (Response longResponse = futureLongResponse.get()) {
+ Assertions.assertEquals(200, longResponse.getStatus());
+ Assertions.assertEquals("long", longResponse.readEntity(String.class));
+ }
}
- }
- @Test
- public void testOptionsWithEntity() {
- Response response = target("basic").path("get").request().build("OPTIONS", Entity.text("OPTIONS")).invoke();
- assertEquals(200, response.getStatus());
- response.close();
+ @Test
+ public void testOptionsWithEntity() {
+ Response response = target("basic").path("get").request().build("OPTIONS", Entity.text("OPTIONS")).invoke();
+ assertEquals(200, response.getStatus());
+ response.close();
+ }
}
}
diff --git a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/FollowRedirectsTest.java b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/FollowRedirectsTest.java
index 87105d666a8..60a2826bae7 100644
--- a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/FollowRedirectsTest.java
+++ b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/FollowRedirectsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,7 +22,7 @@
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@@ -36,7 +36,7 @@
import java.io.IOException;
import java.util.logging.Logger;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Helidon connector follow redirect tests.
diff --git a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/LargeDataTest.java b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/LargeDataTest.java
index 8a7a6907df0..8b6792eadb4 100644
--- a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/LargeDataTest.java
+++ b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/LargeDataTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,8 +20,8 @@
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
@@ -106,9 +106,8 @@ public void postWithLargeData() throws Throwable {
throw exception;
}
- Assert.assertEquals("Unexpected error: " + response.getStatus(),
- Status.Family.SUCCESSFUL,
- response.getStatusInfo().getFamily());
+ Assertions.assertEquals(Status.Family.SUCCESSFUL, response.getStatusInfo().getFamily(),
+ "Unexpected error: " + response.getStatus());
} finally {
response.close();
}
diff --git a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/ParallelTest.java b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/ParallelTest.java
index 94a1d26a41c..6ef37cd3b68 100644
--- a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/ParallelTest.java
+++ b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/ParallelTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,8 +19,8 @@
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@@ -38,8 +38,8 @@
import java.util.logging.Level;
import java.util.logging.Logger;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests the parallel execution of multiple requests.
@@ -119,15 +119,15 @@ public void run() {
startBarrier.await(1, TimeUnit.SECONDS);
- assertTrue("Waiting for clients to finish has timed out.", doneLatch.await(5 * getAsyncTimeoutMultiplier(),
- TimeUnit.SECONDS));
+ assertTrue(doneLatch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS),
+ "Waiting for clients to finish has timed out.");
- assertEquals("Resource counter", PARALLEL_CLIENTS, resourceCounter.get());
+ assertEquals(PARALLEL_CLIENTS, resourceCounter.get(), "Resource counter");
- assertEquals("Received counter", PARALLEL_CLIENTS, receivedCounter.get());
+ assertEquals(PARALLEL_CLIENTS, receivedCounter.get(), "Received counter");
} finally {
executor.shutdownNow();
- Assert.assertTrue("Executor termination", executor.awaitTermination(5, TimeUnit.SECONDS));
+ Assertions.assertTrue(executor.awaitTermination(5, TimeUnit.SECONDS), "Executor termination");
}
}
}
diff --git a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/TimeoutTest.java b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/TimeoutTest.java
index 1fe63741773..3ae1470e41a 100644
--- a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/TimeoutTest.java
+++ b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/TimeoutTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,8 +20,8 @@
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@@ -29,8 +29,8 @@
import javax.ws.rs.core.Application;
import javax.ws.rs.core.Response;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Martin Matula
@@ -82,7 +82,7 @@ public void testSlow() {
}
}
- @Ignore
+ @Disabled
// TODO - WebClient change request
public void testTimeoutInRequest() {
try {
diff --git a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/sse/EventOutputTest.java b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/sse/EventOutputTest.java
index 5eb76e8e503..cd98a6d4306 100644
--- a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/sse/EventOutputTest.java
+++ b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/sse/EventOutputTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.media.sse.SseFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@@ -48,10 +48,10 @@
import java.util.concurrent.atomic.AtomicReference;
import static org.hamcrest.Matchers.containsString;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Event output tests.
@@ -179,12 +179,12 @@ public void onEvent(InboundEvent inboundEvent) {
closeTimedOut = es.close(5, TimeUnit.SECONDS);
}
- assertEquals("Unexpected event count", 2, eventComments.size());
+ assertEquals(2, eventComments.size(), "Unexpected event count");
for (int i = 1; i <= 2; i++) {
- assertEquals("Unexpected comment data on event #" + i, "No comment #" + i, eventComments.poll());
+ assertEquals("No comment #" + i, eventComments.poll(), "Unexpected comment data on event #" + i);
}
- assertTrue("Event latch has timed out", latchTimedOut);
- assertTrue("EventSource.close() has timed out", closeTimedOut);
+ assertTrue(latchTimedOut, "Event latch has timed out");
+ assertTrue(closeTimedOut, "EventSource.close() has timed out");
}
@Test
@@ -265,8 +265,8 @@ public void onEvent(InboundEvent inboundEvent) {
}
// 2.0.0.-M3 assertEquals("Unexpected event count", 1, counter.get());
- assertEquals("Unexpected event data", "single", eventData.get());
- assertTrue("Event latch has timed out", latchTimedOut);
- assertTrue("EventSource.close() has timed out", closeTimedOut);
+ assertEquals("single", eventData.get(), "Unexpected event data");
+ assertTrue(latchTimedOut, "Event latch has timed out");
+ assertTrue(closeTimedOut, "EventSource.close() has timed out");
}
}
diff --git a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/sse/SseTest.java b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/sse/SseTest.java
index cba0763f2d1..a102d9bc2ba 100644
--- a/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/sse/SseTest.java
+++ b/connectors/helidon-connector/src/test/java/org/glassfish/jersey/helidon/connector/sse/SseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,8 +20,8 @@
import org.glassfish.jersey.helidon.connector.HelidonConnectorProvider;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.annotation.PostConstruct;
import javax.inject.Singleton;
@@ -119,8 +119,8 @@ public void testSend() throws InterruptedException {
latch.await(WAIT_TIME, TimeUnit.MILLISECONDS);
}
- Assert.assertEquals("AAAAAAAAAA", sb.toString());
- Assert.assertEquals(0, latch.getCount());
+ Assertions.assertEquals("AAAAAAAAAA", sb.toString());
+ Assertions.assertEquals(0, latch.getCount());
}
@Test
@@ -137,11 +137,11 @@ public void testBroadcast() throws InterruptedException {
clientOne.messageLatch.await(WAIT_TIME, TimeUnit.MILLISECONDS);
clientTwo.messageLatch.await(WAIT_TIME, TimeUnit.MILLISECONDS);
- Assert.assertEquals(0, clientOne.messageLatch.getCount());
- Assert.assertEquals(0, clientTwo.messageLatch.getCount());
+ Assertions.assertEquals(0, clientOne.messageLatch.getCount());
+ Assertions.assertEquals(0, clientTwo.messageLatch.getCount());
- Assert.assertEquals(BroadcasterResource.WELCOME + PALINDROME + PALINDROME, clientOne.message.toString());
- Assert.assertEquals(BroadcasterResource.WELCOME + PALINDROME + PALINDROME, clientTwo.message.toString());
+ Assertions.assertEquals(BroadcasterResource.WELCOME + PALINDROME + PALINDROME, clientOne.message.toString());
+ Assertions.assertEquals(BroadcasterResource.WELCOME + PALINDROME + PALINDROME, clientTwo.message.toString());
clientOne.close();
clientTwo.close();
@@ -168,13 +168,13 @@ private void register() throws InterruptedException {
source.open();
latch.await(WAIT_TIME, TimeUnit.MILLISECONDS);
- Assert.assertEquals(0, latch.getCount());
+ Assertions.assertEquals(0, latch.getCount());
}
private void broadcast() {
try (Response r = target.path("broadcast/broadcast")
.request().buildPost(Entity.entity(PALINDROME, MediaType.TEXT_PLAIN)).invoke()) {
- Assert.assertEquals(204, r.getStatus());
+ Assertions.assertEquals(204, r.getStatus());
}
}
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/HttpMethodTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/HttpMethodTest.java
index 60f5f1bc6dd..0f68e2050ce 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/HttpMethodTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/HttpMethodTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,7 +19,7 @@
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@@ -30,8 +30,8 @@
import javax.ws.rs.core.Application;
import javax.ws.rs.core.Response;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests the Http methods.
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/AsynchronousBodyInputStreamTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/AsynchronousBodyInputStreamTest.java
index 3d64abeeb92..f67aa01b6cf 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/AsynchronousBodyInputStreamTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/AsynchronousBodyInputStreamTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,14 +26,13 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-
-import static junit.framework.TestCase.assertNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Petr Janouch
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/AsynchronousBodyOutputStreamTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/AsynchronousBodyOutputStreamTest.java
index 2feea43eccf..e936df75c44 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/AsynchronousBodyOutputStreamTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/AsynchronousBodyOutputStreamTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,13 +31,12 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-
-import static junit.framework.Assert.assertNotNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* @author Petr Janouch
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ChunkedBodyOutputStreamTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ChunkedBodyOutputStreamTest.java
index 474e9e9c850..a54345b33e5 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ChunkedBodyOutputStreamTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ChunkedBodyOutputStreamTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,11 +19,11 @@
import java.io.IOException;
import java.nio.ByteBuffer;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.assertFalse;
-import static junit.framework.TestCase.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Petr Janouch
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ConnectionPoolTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ConnectionPoolTest.java
index 9585c54af1f..2c5be92a6b2 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ConnectionPoolTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ConnectionPoolTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -44,9 +44,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Petr Janouch
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/CookieTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/CookieTest.java
index 82fee74e792..33ccc8534a1 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/CookieTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/CookieTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,9 +34,9 @@
import org.glassfish.jersey.jdk.connector.JdkConnectorProvider;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Paul Sandoz
@@ -102,7 +102,7 @@ public void testIssue4678() {
.get();
// Issue 4678 happens here. HttpParser splits the headers value by comma.
List setCookies = response.getHeaders().get(HttpHeaders.SET_COOKIE);
- assertEquals("Expected 1 cookie, but it received: " + setCookies, 1, setCookies.size());
+ assertEquals(1, setCookies.size(), "Expected 1 cookie, but it received: " + setCookies);
NewCookie newCookie = response.getCookies().get("foo2");
assertEquals("bar", newCookie.getValue());
}
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/EntityWriteTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/EntityWriteTest.java
index 65ce246b32a..0024fb852d7 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/EntityWriteTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/EntityWriteTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,8 +30,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Petr Janouch
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/HttpConnectionTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/HttpConnectionTest.java
index d2af8744578..44b5dcf765a 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/HttpConnectionTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/HttpConnectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -40,8 +40,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.AfterClass;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Test;
import static org.glassfish.jersey.jdk.connector.internal.HttpConnection.State.CLOSED;
import static org.glassfish.jersey.jdk.connector.internal.HttpConnection.State.CONNECTING;
import static org.glassfish.jersey.jdk.connector.internal.HttpConnection.State.CONNECT_TIMEOUT;
@@ -53,8 +53,8 @@
import static org.glassfish.jersey.jdk.connector.internal.HttpConnection.State.RECEIVING_HEADER;
import static org.glassfish.jersey.jdk.connector.internal.HttpConnection.State.RESPONSE_TIMEOUT;
import static org.glassfish.jersey.jdk.connector.internal.HttpConnection.State.SENDING_REQUEST;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Petr Janouch
@@ -64,7 +64,7 @@ public class HttpConnectionTest extends JerseyTest {
private static final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();
private static final Throwable testError = new Throwable();
- @AfterClass
+ @AfterAll
public static void cleanUp() {
scheduler.shutdownNow();
}
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/HttpParserTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/HttpParserTest.java
index 3dccc763c01..f3ed35adcc3 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/HttpParserTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/HttpParserTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,13 +25,13 @@
import java.util.List;
import java.util.Map;
-import org.junit.Before;
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Petr Janouch
@@ -42,7 +42,7 @@ public class HttpParserTest {
private HttpParser httpParser;
- @Before
+ @BeforeEach
public void prepare() {
httpParser = new HttpParser(1000, 1000);
}
@@ -350,7 +350,7 @@ public void testSpacesInChunkSizeHeader() throws Exception {
/**
* This seems to be broken in Grizzly parser
*/
- @Ignore
+ @Disabled
@Test
public void testChunkExtension() throws ParseException, IOException {
httpParser.reset(true);
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ModifyHeaderInBodyWriterTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ModifyHeaderInBodyWriterTest.java
index f35cba79f4e..6032eef4fcf 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ModifyHeaderInBodyWriterTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ModifyHeaderInBodyWriterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -41,8 +41,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Petr Janouch
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/MultiValueHeaderTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/MultiValueHeaderTest.java
index 89348300be6..b606a909e20 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/MultiValueHeaderTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/MultiValueHeaderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* @author Adam Lindenthal
@@ -74,10 +74,10 @@ public void testCookieResource() {
.header("tools", "drill")
.get();
- Assert.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(200, response.getStatus());
final String values = response.getHeaderString("animals");
- Assert.assertEquals("mole,hedgehog,bat,rabbit", values);
+ Assertions.assertEquals("mole,hedgehog,bat,rabbit", values);
}
}
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ProxyTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ProxyTest.java
index 266646cf0a8..73d0f33beb4 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ProxyTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ProxyTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -42,10 +42,10 @@
import org.glassfish.grizzly.http.server.Request;
import org.glassfish.grizzly.http.server.Response;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Petr Janouch
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/PublicSitesTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/PublicSitesTest.java
index 40f01813712..03cb5dcc2ed 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/PublicSitesTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/PublicSitesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,16 +24,16 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Petr Janouch
*/
-@Ignore
+@Disabled
public class PublicSitesTest extends JerseyTest {
@Test
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ReadChunkedEntity.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ReadChunkedEntity.java
index 49dc28df931..6853c06762a 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ReadChunkedEntity.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/ReadChunkedEntity.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,8 +33,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Petr Janouch
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/RedirectTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/RedirectTest.java
index 52722ec25b2..966e1fcd0a2 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/RedirectTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/RedirectTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,11 +33,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Petr Janouch
diff --git a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/SslFilterTest.java b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/SslFilterTest.java
index 0a9dc13098a..7cef70b14ca 100644
--- a/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/SslFilterTest.java
+++ b/connectors/jdk-connector/src/test/java/org/glassfish/jersey/jdk/connector/internal/SslFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -39,11 +39,11 @@
import javax.net.ssl.SSLSocket;
import org.glassfish.jersey.SslConfigurator;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Petr Janouch
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/AsyncTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/AsyncTest.java
index 53f98f39f29..6934a6007ee 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/AsyncTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/AsyncTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,9 +36,9 @@
import org.glassfish.jersey.test.JerseyTest;
import org.hamcrest.Matchers;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Asynchronous connector test.
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/AuthFilterTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/AuthFilterTest.java
index a3c90f75b95..e6b8636b5e1 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/AuthFilterTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/AuthFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Paul Sandoz
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/AuthTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/AuthTest.java
index 9008d9b0252..f74656b1428 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/AuthTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/AuthTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -39,9 +39,9 @@
import org.glassfish.jersey.test.JerseyTest;
import org.eclipse.jetty.client.util.BasicAuthentication;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/CookieTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/CookieTest.java
index d6cb6f1d276..31b9898bb7b 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/CookieTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/CookieTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -37,11 +37,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/CustomLoggingFilter.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/CustomLoggingFilter.java
index 8ab646bf8ce..c2ffba7e3dd 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/CustomLoggingFilter.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/CustomLoggingFilter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,7 +27,7 @@
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Custom logging filter.
@@ -43,28 +43,28 @@ public class CustomLoggingFilter implements ContainerRequestFilter, ContainerRes
@Override
public void filter(ClientRequestContext context) throws IOException {
System.out.println("CustomLoggingFilter.preFilter called");
- assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ assertEquals("bar", context.getConfiguration().getProperty("foo"));
preFilterCalled++;
}
@Override
public void filter(ClientRequestContext context, ClientResponseContext clientResponseContext) throws IOException {
System.out.println("CustomLoggingFilter.postFilter called");
- assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ assertEquals("bar", context.getConfiguration().getProperty("foo"));
postFilterCalled++;
}
@Override
public void filter(ContainerRequestContext context) throws IOException {
System.out.println("CustomLoggingFilter.preFilter called");
- assertEquals(context.getProperty("foo"), "bar");
+ assertEquals("bar", context.getProperty("foo"));
preFilterCalled++;
}
@Override
public void filter(ContainerRequestContext context, ContainerResponseContext containerResponseContext) throws IOException {
System.out.println("CustomLoggingFilter.postFilter called");
- assertEquals(context.getProperty("foo"), "bar");
+ assertEquals("bar", context.getProperty("foo"));
postFilterCalled++;
}
}
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/EntityTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/EntityTest.java
index eaaa126f18f..7a8b3d2a740 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/EntityTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/EntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,8 +36,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests the Http content negotiation.
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/ErrorTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/ErrorTest.java
index 3425f63b02b..128807aa7c2 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/ErrorTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/ErrorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,8 +31,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Paul Sandoz
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/FollowRedirectsTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/FollowRedirectsTest.java
index b6182416798..448494c8b20 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/FollowRedirectsTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/FollowRedirectsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -39,8 +39,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Jetty connector follow redirect tests.
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/GZIPContentEncodingTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/GZIPContentEncodingTest.java
index 9ecb0aaa5ce..57697663177 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/GZIPContentEncodingTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/GZIPContentEncodingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,8 +36,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/HelloWorldTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/HelloWorldTest.java
index 73743ebe674..e2e36ac0a8e 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/HelloWorldTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/HelloWorldTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -37,9 +37,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
*
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/HttpHeadersTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/HttpHeadersTest.java
index b6e3ec81425..73a327ff959 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/HttpHeadersTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/HttpHeadersTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,10 +33,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
@@ -96,6 +96,6 @@ public void testPost() {
@Test
public void testUserAgent() {
String response = target().path("test").request().get(String.class);
- assertTrue("User-agent header should start with 'Jersey', but was " + response, response.startsWith("Jersey"));
+ assertTrue(response.startsWith("Jersey"), "User-agent header should start with 'Jersey', but was " + response);
}
}
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/ManagedClientTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/ManagedClientTest.java
index 4c2606760b2..9cb39841c60 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/ManagedClientTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/ManagedClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -46,8 +46,8 @@
import org.glassfish.jersey.server.Uri;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Jersey programmatic managed client test
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/MethodTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/MethodTest.java
index 6ce7a9198f5..2e25101e3a3 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/MethodTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/MethodTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -35,8 +35,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests the Http methods.
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/NoEntityTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/NoEntityTest.java
index 35ca43645db..8b64d10b50e 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/NoEntityTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/NoEntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,7 +31,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
* @author Paul Sandoz
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/SyncResponseSizeTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/SyncResponseSizeTest.java
index 423cc7e1cb0..21816cf2762 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/SyncResponseSizeTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/SyncResponseSizeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,7 +21,7 @@
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@@ -37,10 +37,10 @@
import java.util.logging.Logger;
import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Default synchronous jetty client implementation has a hard response size limit of 2MiB.
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TimeoutTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TimeoutTest.java
index 48c5bed5c12..ec7944294c3 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TimeoutTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TimeoutTest.java
@@ -16,12 +16,6 @@
package org.glassfish.jersey.jetty.connector;
-import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-
import java.net.URI;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.TimeUnit;
@@ -46,7 +40,13 @@
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+
+import org.junit.jupiter.api.Test;
+import static org.hamcrest.CoreMatchers.instanceOf;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Martin Matula
@@ -200,7 +200,7 @@ public void testSlowlyStreamedContentDoesTotalTimeout() throws Exception {
int pauseMillis = 50;
try {
- target("test")
+ target("test")
.property(JettyClientProperties.TOTAL_TIMEOUT, 100L)
.property(CommonProperties.OUTBOUND_CONTENT_LENGTH_BUFFER_SERVER, "-1")
.path("stream")
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TraceSupportTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TraceSupportTest.java
index f2642eb27bb..022667a2627 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TraceSupportTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TraceSupportTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -45,10 +45,10 @@
import org.glassfish.jersey.server.model.Resource;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* This very basic resource showcases support of a HTTP TRACE method,
@@ -129,9 +129,9 @@ public void testProgrammaticApp() throws Exception {
String responseEntity = response.readEntity(String.class);
for (String expectedFragment : expectedFragmentsProgrammatic) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // toLowerCase - http header field names are case insensitive
- responseEntity.contains(expectedFragment));
+ assertTrue(// toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
@@ -143,9 +143,9 @@ public void testAnnotatedApp() throws Exception {
String responseEntity = response.readEntity(String.class);
for (String expectedFragment : expectedFragmentsAnnotated) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // toLowerCase - http header field names are case insensitive
- responseEntity.contains(expectedFragment));
+ assertTrue(// toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
diff --git a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/UnderlyingHttpClientAccessTest.java b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/UnderlyingHttpClientAccessTest.java
index ff64489f971..e5d9ec6691f 100644
--- a/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/UnderlyingHttpClientAccessTest.java
+++ b/connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/UnderlyingHttpClientAccessTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,12 +23,12 @@
import org.glassfish.jersey.client.ClientConfig;
import org.eclipse.jetty.client.HttpClient;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Test of access to the underlying HTTP client instance used by the connector.
@@ -50,12 +50,10 @@ public void testHttpClientInstanceAccess() {
final WebTarget target = client.target("http://localhost/");
final HttpClient hcOnTarget = JettyConnectorProvider.getHttpClient(target);
- assertNotNull("HTTP client instance set on JerseyClient should not be null.", hcOnClient);
- assertNotNull("HTTP client instance set on JerseyWebTarget should not be null.", hcOnTarget);
- assertSame("HTTP client instance set on JerseyClient should be the same instance as the one set on JerseyWebTarget"
- + "(provided the target instance has not been further configured).",
- hcOnClient, hcOnTarget
- );
+ assertNotNull(hcOnClient, "HTTP client instance set on JerseyClient should not be null.");
+ assertNotNull(hcOnTarget, "HTTP client instance set on JerseyWebTarget should not be null.");
+ assertSame(hcOnClient, hcOnTarget, "HTTP client instance set on JerseyClient should be the same instance as the one "
+ + "set on JerseyWebTarget (provided the target instance has not been further configured).");
}
@Test
diff --git a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/AsyncTest.java b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/AsyncTest.java
index 6a9637bade6..6217b52758e 100644
--- a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/AsyncTest.java
+++ b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/AsyncTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -35,9 +35,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.hamcrest.Matchers;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Asynchronous connector test.
diff --git a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/CustomLoggingFilter.java b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/CustomLoggingFilter.java
index 44dbc2a82a1..e83ca382ae4 100644
--- a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/CustomLoggingFilter.java
+++ b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/CustomLoggingFilter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,7 +28,7 @@
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Custom logging filter.
@@ -46,28 +46,28 @@ public class CustomLoggingFilter implements ContainerRequestFilter, ContainerRes
@Override
public void filter(ClientRequestContext context) throws IOException {
LOGGER.info("CustomLoggingFilter.preFilter called");
- assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ assertEquals("bar", context.getConfiguration().getProperty("foo"));
preFilterCalled++;
}
@Override
public void filter(ClientRequestContext context, ClientResponseContext clientResponseContext) throws IOException {
LOGGER.info("CustomLoggingFilter.postFilter called");
- assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ assertEquals("bar", context.getConfiguration().getProperty("foo"));
postFilterCalled++;
}
@Override
public void filter(ContainerRequestContext context) throws IOException {
LOGGER.info("CustomLoggingFilter.preFilter called");
- assertEquals(context.getProperty("foo"), "bar");
+ assertEquals("bar", context.getProperty("foo"));
preFilterCalled++;
}
@Override
public void filter(ContainerRequestContext context, ContainerResponseContext containerResponseContext) throws IOException {
LOGGER.info("CustomLoggingFilter.postFilter called");
- assertEquals(context.getProperty("foo"), "bar");
+ assertEquals("bar", context.getProperty("foo"));
postFilterCalled++;
}
}
diff --git a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/FollowRedirectsTest.java b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/FollowRedirectsTest.java
index 269562297d1..3a52c65be1c 100644
--- a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/FollowRedirectsTest.java
+++ b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/FollowRedirectsTest.java
@@ -16,8 +16,8 @@
package org.glassfish.jersey.netty.connector;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
import java.net.URI;
import java.util.logging.Logger;
@@ -37,7 +37,7 @@
import org.glassfish.jersey.netty.connector.internal.RedirectException;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
public class FollowRedirectsTest extends JerseyTest {
diff --git a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/HelloWorldTest.java b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/HelloWorldTest.java
index 20caa533d37..d30c9b9e8f8 100644
--- a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/HelloWorldTest.java
+++ b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/HelloWorldTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,9 +36,9 @@
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Pavel Bucek
diff --git a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/HttpHeadersTest.java b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/HttpHeadersTest.java
index f5438e5ac60..905e1559739 100644
--- a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/HttpHeadersTest.java
+++ b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/HttpHeadersTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,9 +25,9 @@
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests the headers.
diff --git a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/HugeEntityTest.java b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/HugeEntityTest.java
index 44d7f38eec1..f3cfd7ef019 100644
--- a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/HugeEntityTest.java
+++ b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/HugeEntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -38,7 +38,7 @@
import org.glassfish.jersey.client.RequestEntityProcessing;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/MethodTest.java b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/MethodTest.java
index f0c639b283b..d4ec71810a5 100644
--- a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/MethodTest.java
+++ b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/MethodTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,8 +29,8 @@
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests the Http methods.
diff --git a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/NoEntityTest.java b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/NoEntityTest.java
index 2677c3ed117..f9670ce84b6 100644
--- a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/NoEntityTest.java
+++ b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/NoEntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,7 +29,7 @@
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
* @author Paul Sandoz
diff --git a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/ParallelTest.java b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/ParallelTest.java
index e457b31330c..43ce709292b 100644
--- a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/ParallelTest.java
+++ b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/ParallelTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,10 +36,10 @@
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests the parallel execution of multiple requests.
@@ -119,15 +119,15 @@ public void run() {
startBarrier.await(1, TimeUnit.SECONDS);
- assertTrue("Waiting for clients to finish has timed out.", doneLatch.await(5 * getAsyncTimeoutMultiplier(),
- TimeUnit.SECONDS));
+ assertTrue(doneLatch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS),
+ "Waiting for clients to finish has timed out.");
- assertEquals("Resource counter", PARALLEL_CLIENTS, resourceCounter.get());
+ assertEquals(PARALLEL_CLIENTS, resourceCounter.get(), "Resource counter");
- assertEquals("Received counter", PARALLEL_CLIENTS, receivedCounter.get());
+ assertEquals(PARALLEL_CLIENTS, receivedCounter.get(), "Received counter");
} finally {
executor.shutdownNow();
- Assert.assertTrue("Executor termination", executor.awaitTermination(5, TimeUnit.SECONDS));
+ Assertions.assertTrue(executor.awaitTermination(5, TimeUnit.SECONDS), "Executor termination");
}
}
}
diff --git a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/TimeoutTest.java b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/TimeoutTest.java
index f88e1326220..26c28845356 100644
--- a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/TimeoutTest.java
+++ b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/TimeoutTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,11 +29,11 @@
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Martin Matula
diff --git a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/TraceSupportTest.java b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/TraceSupportTest.java
index 4ce24f54b77..102307f8487 100644
--- a/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/TraceSupportTest.java
+++ b/connectors/netty-connector/src/test/java/org/glassfish/jersey/netty/connector/TraceSupportTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -44,10 +44,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.model.Resource;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* This very basic resource showcases support of a HTTP TRACE method,
@@ -128,9 +128,9 @@ public void testProgrammaticApp() throws Exception {
String responseEntity = response.readEntity(String.class);
for (String expectedFragment : expectedFragmentsProgrammatic) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // toLowerCase - http header field names are case insensitive
- responseEntity.contains(expectedFragment));
+ assertTrue(// toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
@@ -142,9 +142,9 @@ public void testAnnotatedApp() throws Exception {
String responseEntity = response.readEntity(String.class);
for (String expectedFragment : expectedFragmentsAnnotated) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // toLowerCase - http header field names are case insensitive
- responseEntity.contains(expectedFragment));
+ assertTrue(// toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
diff --git a/connectors/pom.xml b/connectors/pom.xml
index d3a0f47f9b5..9e60cb3df8c 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -60,8 +60,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/containers/jdk-http/pom.xml b/containers/jdk-http/pom.xml
index a2d341d7d07..fc8d7359ac2 100644
--- a/containers/jdk-http/pom.xml
+++ b/containers/jdk-http/pom.xml
@@ -39,6 +39,11 @@
test
${commons.io.version}
+
+ org.hamcrest
+ hamcrest
+ test
+
diff --git a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/AbstractJdkHttpServerTester.java b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/AbstractJdkHttpServerTester.java
index 9e1660a5594..02b47735b43 100644
--- a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/AbstractJdkHttpServerTester.java
+++ b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/AbstractJdkHttpServerTester.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,7 +27,7 @@
import org.glassfish.jersey.internal.util.PropertiesHelper;
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.After;
+import org.junit.jupiter.api.AfterEach;
/**
* Abstract JDK HTTP Server unit tester.
@@ -103,7 +103,7 @@ public void stopServer() {
}
}
- @After
+ @AfterEach
public void tearDown() {
if (server != null) {
stopServer();
diff --git a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/BasicJdkHttpServerTest.java b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/BasicJdkHttpServerTest.java
index 67eaab80ae3..32a98e1c74a 100644
--- a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/BasicJdkHttpServerTest.java
+++ b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/BasicJdkHttpServerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,8 +23,8 @@
import org.glassfish.jersey.internal.util.JdkVersion;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.After;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
@@ -72,7 +72,7 @@ public void testCreateHttpsServer() throws Exception {
}
}
- @After
+ @AfterEach
public void tearDown() {
if (server != null) {
server.stop(3);
diff --git a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpPackageTest.java b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpPackageTest.java
index ea327c0ec2e..6b5100d0e19 100644
--- a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpPackageTest.java
+++ b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpPackageTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,8 +24,8 @@
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Jdk Http Container package scanning test.
diff --git a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpsServerTest.java b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpsServerTest.java
index e814720ff8a..02a0dda0b2e 100644
--- a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpsServerTest.java
+++ b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/JdkHttpsServerTest.java
@@ -35,8 +35,8 @@
import org.glassfish.jersey.internal.util.JdkVersion;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.After;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Test;
import com.sun.net.httpserver.HttpServer;
import com.sun.net.httpserver.HttpsConfigurator;
@@ -45,7 +45,8 @@
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* Jdk Https Server tests.
@@ -95,9 +96,10 @@ public void testCreateHttpsServerNoSslContext() throws Exception {
* Test, that exception is thrown when attempting to start a {@link HttpsServer} with empty SSLContext.
* @throws Exception
*/
- @Test(expected = IllegalArgumentException.class)
+ @Test
public void testStartHttpServerNoSslContext() throws Exception {
- server = JdkHttpServerFactory.createHttpServer(httpsUri, rc, null, true);
+ assertThrows(IllegalArgumentException.class,
+ () -> JdkHttpServerFactory.createHttpServer(httpsUri, rc, null, true));
}
/**
@@ -105,18 +107,20 @@ public void testStartHttpServerNoSslContext() throws Exception {
* not configured correctly.
* @throws Exception
*/
- @Test(expected = SSLHandshakeException.class)
+ @Test
public void testCreateHttpsServerDefaultSslContext() throws Throwable {
- server = JdkHttpServerFactory.createHttpServer(httpsUri, rc, SSLContext.getDefault(), true);
- assertThat(server, instanceOf(HttpsServer.class));
-
- // access the https server with not configured client
- final Client client = ClientBuilder.newBuilder().newClient();
- try {
- client.target(httpsUri).path("testHttps").request().get(String.class);
- } catch (final ProcessingException e) {
- throw e.getCause();
- }
+ assertThrows(SSLHandshakeException.class, () -> {
+ server = JdkHttpServerFactory.createHttpServer(httpsUri, rc, SSLContext.getDefault(), true);
+ assertThat(server, instanceOf(HttpsServer.class));
+
+ // access the https server with not configured client
+ final Client client = ClientBuilder.newBuilder().newClient();
+ try {
+ client.target(httpsUri).path("testHttps").request().get(String.class);
+ } catch (final ProcessingException e) {
+ throw e.getCause();
+ }
+ });
}
/**
@@ -124,30 +128,34 @@ public void testCreateHttpsServerDefaultSslContext() throws Throwable {
* on request.
* @throws Exception
*/
- @Test(expected = IOException.class)
+ @Test
public void testHttpsServerNoSslContextDelayedStart() throws Throwable {
- server = JdkHttpServerFactory.createHttpServer(httpsUri, rc, null, false);
- assertThat(server, instanceOf(HttpsServer.class));
- server.start();
-
- final Client client = ClientBuilder.newBuilder().newClient();
- try {
- client.target(httpsUri).path("testHttps").request().get(String.class);
- } catch (final ProcessingException e) {
- throw e.getCause();
- }
+ assertThrows(IOException.class, () -> {
+ server = JdkHttpServerFactory.createHttpServer(httpsUri, rc, null, false);
+ assertThat(server, instanceOf(HttpsServer.class));
+ server.start();
+
+ final Client client = ClientBuilder.newBuilder().newClient();
+ try {
+ client.target(httpsUri).path("testHttps").request().get(String.class);
+ } catch (final ProcessingException e) {
+ throw e.getCause();
+ }
+ });
}
/**
* Test, that {@link HttpsServer} cannot be configured with {@link HttpsConfigurator} after it has started.
* @throws Exception
*/
- @Test(expected = IllegalStateException.class)
+ @Test
public void testConfigureSslContextAfterStart() throws Throwable {
- server = JdkHttpServerFactory.createHttpServer(httpsUri, rc, null, false);
- assertThat(server, instanceOf(HttpsServer.class));
- server.start();
- ((HttpsServer) server).setHttpsConfigurator(new HttpsConfigurator(getServerSslContext()));
+ assertThrows(IllegalStateException.class, () -> {
+ server = JdkHttpServerFactory.createHttpServer(httpsUri, rc, null, false);
+ assertThat(server, instanceOf(HttpsServer.class));
+ server.start();
+ ((HttpsServer) server).setHttpsConfigurator(new HttpsConfigurator(getServerSslContext()));
+ });
}
/**
@@ -208,7 +216,7 @@ private SSLContext getServerSslContext() throws IOException {
return sslConfigServer.createSSLContext();
}
- @After
+ @AfterEach
public void tearDown() {
if (server != null) {
server.stop(0);
diff --git a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/LifecycleListenerTest.java b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/LifecycleListenerTest.java
index c2acf8daf60..61670a3b9de 100644
--- a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/LifecycleListenerTest.java
+++ b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/LifecycleListenerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,11 +26,11 @@
import org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener;
import org.glassfish.jersey.server.spi.Container;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Reload and ContainerLifecycleListener support test.
@@ -129,7 +129,7 @@ public void testStartupShutdownHooks() {
stopServer();
- assertTrue("ContainerLifecycleListener.onStartup has not been called.", listener.started);
- assertTrue("ContainerLifecycleListener.onShutdown has not been called.", listener.stopped);
+ assertTrue(listener.started, "ContainerLifecycleListener.onStartup has not been called.");
+ assertTrue(listener.stopped, "ContainerLifecycleListener.onShutdown has not been called.");
}
}
diff --git a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/RuntimeDelegateTest.java b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/RuntimeDelegateTest.java
index 26abd46b7f4..9b37c35eee6 100644
--- a/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/RuntimeDelegateTest.java
+++ b/containers/jdk-http/src/test/java/org/glassfish/jersey/jdkhttp/RuntimeDelegateTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,9 +28,9 @@
import javax.ws.rs.core.UriBuilder;
import javax.ws.rs.ext.RuntimeDelegate;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import com.sun.net.httpserver.HttpHandler;
import com.sun.net.httpserver.HttpServer;
diff --git a/containers/jersey-servlet-core/src/test/java/org/glassfish/jersey/servlet/internal/ContextPathEncodingTest.java b/containers/jersey-servlet-core/src/test/java/org/glassfish/jersey/servlet/internal/ContextPathEncodingTest.java
index 9ab2e92de21..c23e4d1d6f7 100644
--- a/containers/jersey-servlet-core/src/test/java/org/glassfish/jersey/servlet/internal/ContextPathEncodingTest.java
+++ b/containers/jersey-servlet-core/src/test/java/org/glassfish/jersey/servlet/internal/ContextPathEncodingTest.java
@@ -22,8 +22,8 @@
import org.glassfish.jersey.internal.util.collection.Value;
import org.glassfish.jersey.internal.util.collection.Values;
import org.glassfish.jersey.servlet.ServletContainer;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.lang.reflect.InvocationHandler;
@@ -141,8 +141,8 @@ static class EncodingTestServletContainer extends ServletContainer {
@Override
public Value service(URI baseUri, URI requestUri, HttpServletRequest request, HttpServletResponse response) {
- Assert.assertEquals(this.baseUri, baseUri.toASCIIString());
- Assert.assertEquals(this.requestUri, requestUri.toASCIIString());
+ Assertions.assertEquals(this.baseUri, baseUri.toASCIIString());
+ Assertions.assertEquals(this.requestUri, requestUri.toASCIIString());
return Values.of(0);
}
diff --git a/containers/jersey-servlet-core/src/test/java/org/glassfish/jersey/servlet/internal/ThreadLocalInvokerTest.java b/containers/jersey-servlet-core/src/test/java/org/glassfish/jersey/servlet/internal/ThreadLocalInvokerTest.java
index b4476fcb6a8..b69603d5260 100644
--- a/containers/jersey-servlet-core/src/test/java/org/glassfish/jersey/servlet/internal/ThreadLocalInvokerTest.java
+++ b/containers/jersey-servlet-core/src/test/java/org/glassfish/jersey/servlet/internal/ThreadLocalInvokerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,9 +18,9 @@
import java.lang.reflect.Proxy;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Michal Gajdos
diff --git a/containers/jetty-http/pom.xml b/containers/jetty-http/pom.xml
index 86ea4683b1f..47593ecbfc5 100644
--- a/containers/jetty-http/pom.xml
+++ b/containers/jetty-http/pom.xml
@@ -54,6 +54,11 @@
httpclient
test
+
+ org.hamcrest
+ hamcrest
+ test
+
diff --git a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AbstractJettyServerTester.java b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AbstractJettyServerTester.java
index dcfe4b78482..13bfe6ad4b4 100644
--- a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AbstractJettyServerTester.java
+++ b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AbstractJettyServerTester.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,7 +28,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.eclipse.jetty.server.Server;
-import org.junit.After;
+import org.junit.jupiter.api.AfterEach;
/**
* Abstract Jetty Server unit tester.
@@ -105,7 +105,7 @@ public void stopServer() {
}
}
- @After
+ @AfterEach
public void tearDown() {
if (server != null) {
stopServer();
diff --git a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AsyncTest.java b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AsyncTest.java
index b4d6b811e1b..da156be06b8 100644
--- a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AsyncTest.java
+++ b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/AsyncTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,12 +31,12 @@
import javax.ws.rs.container.TimeoutHandler;
import javax.ws.rs.core.Response;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* @author Arul Dhesiaseelan (aruld at acm.org)
@@ -121,14 +121,14 @@ public void run() {
private Client client;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
startServer(AsyncResource.class);
client = ClientBuilder.newClient();
}
@Override
- @After
+ @AfterEach
public void tearDown() {
super.tearDown();
client = null;
diff --git a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/ExceptionTest.java b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/ExceptionTest.java
index ce299cdf81d..039a7a8e13e 100644
--- a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/ExceptionTest.java
+++ b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/ExceptionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,7 +21,7 @@
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.message.BasicHttpRequest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@@ -35,7 +35,7 @@
import java.io.IOException;
import java.net.URI;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Paul Sandoz
diff --git a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/LifecycleListenerTest.java b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/LifecycleListenerTest.java
index 15b299a186e..12ee7633803 100644
--- a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/LifecycleListenerTest.java
+++ b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/LifecycleListenerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,7 +19,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener;
import org.glassfish.jersey.server.spi.Container;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@@ -29,9 +29,9 @@
import javax.ws.rs.core.Response;
import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
@@ -127,7 +127,7 @@ public void testStartupShutdownHooks() {
stopServer();
- assertTrue("ContainerLifecycleListener.onStartup has not been called.", listener.started);
- assertTrue("ContainerLifecycleListener.onShutdown has not been called.", listener.stopped);
+ assertTrue(listener.started, "ContainerLifecycleListener.onStartup has not been called.");
+ assertTrue(listener.stopped, "ContainerLifecycleListener.onShutdown has not been called.");
}
}
diff --git a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/OptionsTest.java b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/OptionsTest.java
index 8866c336d1b..94d0c33599f 100644
--- a/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/OptionsTest.java
+++ b/containers/jetty-http/src/test/java/org/glassfish/jersey/jetty/OptionsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,7 +16,7 @@
package org.glassfish.jersey.jetty;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@@ -25,8 +25,8 @@
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.core.Response;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
public class OptionsTest extends AbstractJettyServerTester {
diff --git a/containers/pom.xml b/containers/pom.xml
index 00ee924f3e1..44386266f3a 100644
--- a/containers/pom.xml
+++ b/containers/pom.xml
@@ -70,8 +70,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/containers/simple-http/pom.xml b/containers/simple-http/pom.xml
index d75aa7a8e4a..76c62903da7 100644
--- a/containers/simple-http/pom.xml
+++ b/containers/simple-http/pom.xml
@@ -49,6 +49,11 @@
org.simpleframework
simple-common
+
+ org.hamcrest
+ hamcrest
+ test
+
diff --git a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/AbstractSimpleServerTester.java b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/AbstractSimpleServerTester.java
index eb653ca4d8b..290de5242a0 100644
--- a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/AbstractSimpleServerTester.java
+++ b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/AbstractSimpleServerTester.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,7 +27,7 @@
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.After;
+import org.junit.jupiter.api.AfterEach;
/**
* Abstract Simple HTTP Server unit tester.
@@ -127,7 +127,7 @@ public void stopServer() {
}
}
- @After
+ @AfterEach
public void tearDown() {
if (server != null) {
stopServer();
diff --git a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/AsyncTest.java b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/AsyncTest.java
index 9587b04f3ce..5ef98f81af0 100644
--- a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/AsyncTest.java
+++ b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/AsyncTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,12 +31,12 @@
import javax.ws.rs.container.TimeoutHandler;
import javax.ws.rs.core.Response;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* @author Arul Dhesiaseelan (aruld at acm.org)
@@ -123,14 +123,14 @@ public void run() {
private Client client;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
startServer(AsyncResource.class);
client = ClientBuilder.newClient();
}
@Override
- @After
+ @AfterEach
public void tearDown() {
super.tearDown();
client = null;
diff --git a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/ExceptionTest.java b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/ExceptionTest.java
index 15e7b289256..8c36c1d9ca6 100644
--- a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/ExceptionTest.java
+++ b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/ExceptionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,8 +25,8 @@
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.Response;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Paul Sandoz
diff --git a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/LifecycleListenerTest.java b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/LifecycleListenerTest.java
index 4c163292eef..bbab64068ff 100644
--- a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/LifecycleListenerTest.java
+++ b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/LifecycleListenerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,11 +26,11 @@
import org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener;
import org.glassfish.jersey.server.spi.Container;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
@@ -124,7 +124,7 @@ public void testStartupShutdownHooks() {
stopServer();
- assertTrue("ContainerLifecycleListener.onStartup has not been called.", listener.started);
- assertTrue("ContainerLifecycleListener.onShutdown has not been called.", listener.stopped);
+ assertTrue(listener.started, "ContainerLifecycleListener.onStartup has not been called.");
+ assertTrue(listener.stopped, "ContainerLifecycleListener.onShutdown has not been called.");
}
}
diff --git a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/OptionsTest.java b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/OptionsTest.java
index 3b12b1a34fb..b0d2f876f5c 100644
--- a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/OptionsTest.java
+++ b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/OptionsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,13 +23,13 @@
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.core.Response;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
public class OptionsTest extends AbstractSimpleServerTester {
@@ -57,14 +57,14 @@ public String getCurrentUser() {
private Client client;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
startServer(HelloWorldResource.class, UserResource.class);
client = ClientBuilder.newClient();
}
@Override
- @After
+ @AfterEach
public void tearDown() {
super.tearDown();
client = null;
diff --git a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/ParallelTest.java b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/ParallelTest.java
index e0b66110653..1386bc592f8 100644
--- a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/ParallelTest.java
+++ b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/ParallelTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,9 +29,9 @@
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests the parallel execution of multiple requests.
diff --git a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/TraceTest.java b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/TraceTest.java
index 1e2d7378efd..00e980f5ec0 100644
--- a/containers/simple-http/src/test/java/org/glassfish/jersey/simple/TraceTest.java
+++ b/containers/simple-http/src/test/java/org/glassfish/jersey/simple/TraceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,13 +23,13 @@
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.core.Response;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
public class TraceTest extends AbstractSimpleServerTester {
@@ -57,7 +57,7 @@ public String getCurrentUser() {
private Client client;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
startServerNoLoggingFilter(HelloWorldResource.class, UserResource.class); // disable crude
// LoggingFilter
@@ -66,7 +66,7 @@ public void setUp() throws Exception {
}
@Override
- @After
+ @AfterEach
public void tearDown() {
super.tearDown();
client = null;
diff --git a/core-client/pom.xml b/core-client/pom.xml
index 196cca96841..9769e7e50df 100644
--- a/core-client/pom.xml
+++ b/core-client/pom.xml
@@ -127,8 +127,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/AutoDiscoverableClientTest.java b/core-client/src/test/java/org/glassfish/jersey/client/AutoDiscoverableClientTest.java
index d81380ad8f2..f0eba7b4058 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/AutoDiscoverableClientTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/AutoDiscoverableClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -35,12 +35,11 @@
import org.glassfish.jersey.CommonProperties;
import org.glassfish.jersey.internal.spi.AutoDiscoverable;
import org.glassfish.jersey.internal.util.PropertiesHelper;
-
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Note: Auto-discoverables from this test "affects" all other tests in suit.
@@ -171,7 +170,7 @@ public void testAutoDiscoverableGlobalEnabledServerDisabled() throws Exception {
* {@link javax.ws.rs.core.Feature} will be notified when {@link javax.ws.rs.client.Client#close()} is invoked.
*/
@Test
- @Ignore("intermittent failures.")
+ @Disabled("intermittent failures.")
public void testAutoDiscoverableClosing() {
final ClientConfig config = new ClientConfig();
config.property(PROPERTY, true);
@@ -180,12 +179,12 @@ public void testAutoDiscoverableClosing() {
assertFalse(FooLifecycleListener.isClosed());
client.getConfiguration().getRuntime(); // force runtime init
- assertTrue("FooLifecycleListener was expected to be already initialized.", FooLifecycleListener.isInitialized());
- assertFalse("FooLifecycleListener was not expected to be closed yet.", FooLifecycleListener.isClosed());
+ assertTrue(FooLifecycleListener.isInitialized(), "FooLifecycleListener was expected to be already initialized.");
+ assertFalse(FooLifecycleListener.isClosed(), "FooLifecycleListener was not expected to be closed yet.");
client.close();
- assertTrue("FooLifecycleListener should have been closed.", FooLifecycleListener.isClosed());
+ assertTrue(FooLifecycleListener.isClosed(), "FooLifecycleListener should have been closed.");
}
private void _test(final String response, final Boolean globalDisable, final Boolean clientDisable) throws Exception {
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/ClientConfigTest.java b/core-client/src/test/java/org/glassfish/jersey/client/ClientConfigTest.java
index f813eae8ede..eff6b192465 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/ClientConfigTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/ClientConfigTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,18 +29,19 @@
import org.glassfish.jersey.internal.util.collection.UnsafeValue;
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* {@link ClientConfig} unit test.
@@ -52,19 +53,19 @@ public class ClientConfigTest {
public ClientConfigTest() {
}
- @BeforeClass
+ @BeforeAll
public static void setUpClass() throws Exception {
}
- @AfterClass
+ @AfterAll
public static void tearDownClass() throws Exception {
}
- @Before
+ @BeforeEach
public void setUp() {
}
- @After
+ @AfterEach
public void tearDown() {
}
@@ -180,16 +181,20 @@ public void testGetFeatures() {
assertTrue(runtimeConfig.isEnabled(emptyFeature));
}
- @Test(expected = UnsupportedOperationException.class)
+ @Test
public void testGetProviderClasses() {
- ClientConfig instance = new ClientConfig();
- instance.getClasses().add(ClientConfigTest.class);
+ assertThrows(UnsupportedOperationException.class, () -> {
+ ClientConfig instance = new ClientConfig();
+ instance.getClasses().add(ClientConfigTest.class);
+ });
}
- @Test(expected = UnsupportedOperationException.class)
+ @Test
public void testGetProviderInstances() {
- ClientConfig instance = new ClientConfig();
- instance.getInstances().add(this);
+ assertThrows(UnsupportedOperationException.class, () -> {
+ ClientConfig instance = new ClientConfig();
+ instance.getInstances().add(this);
+ });
}
@Test
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/ClientRequestTest.java b/core-client/src/test/java/org/glassfish/jersey/client/ClientRequestTest.java
index 965241138a5..58f689c72a8 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/ClientRequestTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/ClientRequestTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,19 +32,20 @@
import org.glassfish.jersey.message.MessageBodyWorkers;
import org.hamcrest.core.Is;
-import org.junit.After;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
+import org.hamcrest.MatcherAssert;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.same;
@@ -63,12 +64,12 @@ public class ClientRequestTest {
private AutoCloseable mockito;
- @Before
+ @BeforeEach
public void initMocks() {
mockito = MockitoAnnotations.openMocks(this);
}
- @After
+ @AfterEach
public void closeMocks() throws Exception {
mockito.close();
}
@@ -178,7 +179,7 @@ public void testSSLExceptionHandling()
request.doWriteEntity(workers, entityType);
fail("An IOException exception should be thrown.");
} catch (IOException e) {
- Assert.assertThat("Detected a un-expected exception! \n" + ExceptionUtils.exceptionStackTraceAsString(e),
+ MatcherAssert.assertThat("Detected a un-expected exception! \n" + ExceptionUtils.exceptionStackTraceAsString(e),
e, Is.is(ioException));
}
}
@@ -193,9 +194,9 @@ public void testRuntimeExceptionBeingReThrown()
try {
request.doWriteEntity(workers, entityType);
- Assert.fail("A RuntimeException exception should be thrown.");
+ Assertions.fail("A RuntimeException exception should be thrown.");
} catch (RuntimeException e) {
- Assert.assertThat("Detected a un-expected exception! \n" + ExceptionUtils.exceptionStackTraceAsString(e),
+ MatcherAssert.assertThat("Detected a un-expected exception! \n" + ExceptionUtils.exceptionStackTraceAsString(e),
e, Is.is(runtimeException));
}
}
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/ClientResponseTest.java b/core-client/src/test/java/org/glassfish/jersey/client/ClientResponseTest.java
index 7456edb6db6..41601afeb5a 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/ClientResponseTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/ClientResponseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -17,8 +17,8 @@
package org.glassfish.jersey.client;
import org.glassfish.jersey.message.internal.InboundMessageContext;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.ClientRequestFilter;
@@ -37,27 +37,27 @@ protected Iterable getReaderInterceptors() {
}
};
- Assert.assertFalse(inboundMessageContext.hasEntity());
+ Assertions.assertFalse(inboundMessageContext.hasEntity());
inboundMessageContext.bufferEntity();
- Assert.assertFalse(inboundMessageContext.hasEntity());
+ Assertions.assertFalse(inboundMessageContext.hasEntity());
}
@Test
public void testHasEntity() {
final ClientRequestFilter abortFilter = requestContext -> requestContext.abortWith(Response.ok("hello").build());
try (Response r = ClientBuilder.newClient().register(abortFilter).target("http://localhost:8080").request().get()) {
- Assert.assertTrue(r.hasEntity());
+ Assertions.assertTrue(r.hasEntity());
r.bufferEntity();
- Assert.assertTrue(r.hasEntity());
+ Assertions.assertTrue(r.hasEntity());
final String s = r.readEntity(String.class);
- Assert.assertTrue(r.hasEntity());
+ Assertions.assertTrue(r.hasEntity());
final InputStream bufferedEntityStream = r.readEntity(InputStream.class);
- Assert.assertNotNull(bufferedEntityStream);
- Assert.assertTrue(r.hasEntity());
+ Assertions.assertNotNull(bufferedEntityStream);
+ Assertions.assertTrue(r.hasEntity());
}
}
}
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/ClientRxTest.java b/core-client/src/test/java/org/glassfish/jersey/client/ClientRxTest.java
index f7792f1971b..a2ecf082c91 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/ClientRxTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/ClientRxTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -47,14 +47,13 @@
import org.glassfish.jersey.spi.ExecutorServiceProvider;
import org.hamcrest.core.AllOf;
import org.hamcrest.core.StringContains;
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.ExpectedException;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Sanity test for {@link Invocation.Builder#rx()} methods.
@@ -75,16 +74,13 @@ public ClientRxTest() {
CLIENT_WITH_EXECUTOR = ClientBuilder.newBuilder().executorService(EXECUTOR_SERVICE).build();
}
- @Rule
- public ExpectedException thrown = ExpectedException.none();
-
- @After
+ @AfterEach
public void afterTest() {
CLIENT.close();
CLIENT_WITH_EXECUTOR.close();
}
- @AfterClass
+ @AfterAll
public static void afterClass() {
EXECUTOR_SERVICE.shutdownNow();
}
@@ -96,7 +92,7 @@ public void testRxInvoker() {
String s = target(CLIENT).request().rx(TestRxInvoker.class).get();
- assertTrue("Provided RxInvoker was not used.", s.startsWith("rxTestInvoker"));
+ assertTrue(s.startsWith("rxTestInvoker"), "Provided RxInvoker was not used.");
}
@Test
@@ -104,8 +100,8 @@ public void testRxInvokerWithExecutor() {
// implicit register (not saying that the contract is RxInvokerProvider).
String s = target(CLIENT_WITH_EXECUTOR).register(TestRxInvokerProvider.class).request().rx(TestRxInvoker.class).get();
- assertTrue("Provided RxInvoker was not used.", s.startsWith("rxTestInvoker"));
- assertTrue("Executor Service was not passed to RxInvoker", s.contains("rxTest-"));
+ assertTrue(s.startsWith("rxTestInvoker"), "Provided RxInvoker was not used.");
+ assertTrue(s.contains("rxTest-"), "Executor Service was not passed to RxInvoker");
}
@Test
@@ -119,7 +115,7 @@ public void testDefaultRxInvokerWithExecutor() throws ExecutionException, Interr
.request().rx().get().toCompletableFuture().get()) {
assertEquals(200, r.getStatus());
- assertTrue("Executor Service was not passed to RxInvoker", threadName.get().contains("rxTest-"));
+ assertTrue(threadName.get().contains("rxTest-"), "Executor Service was not passed to RxInvoker");
}
}
@@ -131,8 +127,8 @@ public void testRxInvokerWithExecutorServiceProvider() {
.register(TestExecutorServiceProvider.class)
.request().rx(TestRxInvoker.class).get();
- assertTrue("Provided RxInvoker was not used.", s.startsWith("rxTestInvoker"));
- assertTrue("Executor Service was not passed to RxInvoker", s.contains("rxTest-"));
+ assertTrue(s.startsWith("rxTestInvoker"), "Provided RxInvoker was not used.");
+ assertTrue(s.contains("rxTest-"), "Executor Service was not passed to RxInvoker");
}
@Test
@@ -147,27 +143,33 @@ public void testDefaultRxInvokerWithExecutorServiceProvider() throws ExecutionEx
.request().rx().get().toCompletableFuture().get()) {
assertEquals(200, r.getStatus());
- assertTrue("Executor Service was not passed to RxInvoker", threadName.get().contains("rxTest-"));
+ assertTrue(threadName.get().contains("rxTest-"), "Executor Service was not passed to RxInvoker");
}
}
@Test
public void testRxInvokerInvalid() {
- Invocation.Builder request = target(CLIENT).request();
- thrown.expect(IllegalArgumentException.class);
- thrown.expectMessage(AllOf.allOf(new StringContains("null"), new StringContains("clazz")));
- request.rx(null).get();
+ IllegalArgumentException exception = Assertions.assertThrows(IllegalArgumentException.class, () -> {
+ Invocation.Builder request = target(CLIENT).request();
+ request.rx(null).get();
+ });
+ String message = exception.getMessage();
+ Assertions.assertTrue(AllOf.allOf(new StringContains("null"), new StringContains("clazz")).matches(message));
}
@Test
public void testRxInvokerNotRegistered() {
- Invocation.Builder request = target(CLIENT).request();
- thrown.expect(IllegalStateException.class);
- thrown.expectMessage(AllOf.allOf(
- new StringContains("TestRxInvoker"),
- new StringContains("not registered"),
- new StringContains("RxInvokerProvider")));
- request.rx(TestRxInvoker.class).get();
+ IllegalStateException exception = Assertions.assertThrows(IllegalStateException.class, () -> {
+ Invocation.Builder request = target(CLIENT).request();
+ request.rx(TestRxInvoker.class).get();
+ });
+ String message = exception.getMessage();
+ Assertions.assertTrue(AllOf.allOf(
+ new StringContains("TestRxInvoker"),
+ new StringContains("not registered"),
+ new StringContains("RxInvokerProvider"))
+ .matches(message));
+
}
@Test
@@ -258,8 +260,8 @@ public void testRxInvokerWithPriorityExecutorServiceProvider() {
.register(PriorityTestExecutorServiceProvider.class)
.request().rx(PriorityTestRxInvoker.class).get();
- assertTrue("Provided RxInvoker was not used.", s.startsWith("PriorityTestRxInvoker"));
- assertTrue("@ClientAsyncExecutor Executor Service was not passed to RxInvoker", s.contains("TRUE"));
+ assertTrue(s.startsWith("PriorityTestRxInvoker"), "Provided RxInvoker was not used.");
+ assertTrue(s.contains("TRUE"), "@ClientAsyncExecutor Executor Service was not passed to RxInvoker");
}
@ClientAsyncExecutor
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/CustomConnectorTest.java b/core-client/src/test/java/org/glassfish/jersey/client/CustomConnectorTest.java
index 17b83e7e338..d02e80a9cd1 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/CustomConnectorTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/CustomConnectorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,10 +34,10 @@
import org.glassfish.jersey.client.spi.Connector;
import org.glassfish.jersey.client.spi.ConnectorProvider;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Pavel Bucek
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/DefaultSslContextProviderTest.java b/core-client/src/test/java/org/glassfish/jersey/client/DefaultSslContextProviderTest.java
index d0ef2bdf2a2..973637b78ae 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/DefaultSslContextProviderTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/DefaultSslContextProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,10 +26,10 @@
import org.glassfish.jersey.internal.util.collection.UnsafeValue;
import org.glassfish.jersey.internal.util.collection.Values;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Pavel Bucek
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/FixedBoundaryParserTest.java b/core-client/src/test/java/org/glassfish/jersey/client/FixedBoundaryParserTest.java
index 16b956f150f..326a3f4c637 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/FixedBoundaryParserTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/FixedBoundaryParserTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,9 +20,9 @@
import java.io.IOException;
import java.io.InputStream;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* Tests several parsing use-cases of ChunkedInput
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/FixedMultiBoundaryParserTest.java b/core-client/src/test/java/org/glassfish/jersey/client/FixedMultiBoundaryParserTest.java
index 936d6a46d03..1c8f0b4065f 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/FixedMultiBoundaryParserTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/FixedMultiBoundaryParserTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,9 +20,9 @@
import java.io.IOException;
import java.io.InputStream;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* Tests several parsing use-cases of ChunkedInput
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/HttpUrlConnectorTest.java b/core-client/src/test/java/org/glassfish/jersey/client/HttpUrlConnectorTest.java
index 5bb7a787809..394b08787ab 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/HttpUrlConnectorTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/HttpUrlConnectorTest.java
@@ -46,10 +46,10 @@
import org.glassfish.jersey.client.internal.HttpUrlConnector;
-import org.junit.Assert;
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Various tests for the default client connector.
@@ -69,7 +69,7 @@ public class HttpUrlConnectorTest {
* TODO: fix and re-enable the test, it could give java.net.NoRouteToHostException in certain environments instead of timeout exception
*/
@Test
- @Ignore
+ @Disabled
public void testConnectionTimeoutWithEntity() {
_testInvocationTimeout(createNonRoutableTarget().request().buildPost(Entity.text("does not matter")));
}
@@ -79,7 +79,7 @@ public void testConnectionTimeoutWithEntity() {
* TODO: see above, rewrite server part, the "non-routable" target solution is fragile
*/
@Test
- @Ignore
+ @Disabled
public void testConnectionTimeoutNoEntity() {
_testInvocationTimeout(createNonRoutableTarget().request().buildGet());
}
@@ -408,21 +408,19 @@ private void _testInvocationTimeout(Invocation invocation) {
try {
invocation.invoke();
- Assert.fail("Timeout expected!");
+ Assertions.fail("Timeout expected!");
} catch (Exception ex) {
- Assert.assertTrue(String.format("Bad exception, %s, caught! Timeout expected.", ex.getCause()),
- ex.getCause() instanceof SocketTimeoutException);
+ Assertions.assertTrue(ex.getCause() instanceof SocketTimeoutException,
+ String.format("Bad exception, %s, caught! Timeout expected.", ex.getCause()));
final long stop = System.currentTimeMillis();
long time = stop - start;
- Assert.assertTrue(
- String.format(
- "Actual time, %d ms, should not be more than twice as longer as the original timeout, %d ms",
- time, TimeoutBASE),
- time < 2 * TimeoutBASE);
+ Assertions.assertTrue(time < 2 * TimeoutBASE,
+ String.format("Actual time, %d ms, should not be more than twice as longer as the original timeout, %d ms",
+ time, TimeoutBASE));
}
}
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/JaxRsFeatureRegistrationClientTest.java b/core-client/src/test/java/org/glassfish/jersey/client/JaxRsFeatureRegistrationClientTest.java
index 8bfb921e7d6..740e6c54a55 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/JaxRsFeatureRegistrationClientTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/JaxRsFeatureRegistrationClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -17,7 +17,7 @@
package org.glassfish.jersey.client;
import org.glassfish.jersey.CommonProperties;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
@@ -27,8 +27,8 @@
import javax.ws.rs.core.FeatureContext;
import javax.ws.rs.core.Response;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
public class JaxRsFeatureRegistrationClientTest {
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/JerseyClientBuilderTest.java b/core-client/src/test/java/org/glassfish/jersey/client/JerseyClientBuilderTest.java
index bb4a680098c..ff6fee951ea 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/JerseyClientBuilderTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/JerseyClientBuilderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,10 +16,9 @@
package org.glassfish.jersey.client;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.ExpectedException;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import javax.annotation.Priority;
import javax.net.ssl.SSLContext;
@@ -40,11 +39,12 @@
import java.util.concurrent.TimeUnit;
import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.fail;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* {@link JerseyClient} unit test.
@@ -54,12 +54,9 @@
*/
public class JerseyClientBuilderTest {
- @Rule
- public final ExpectedException exception = ExpectedException.none();
-
private JerseyClientBuilder builder;
- @Before
+ @BeforeEach
public void setUp() {
builder = new JerseyClientBuilder();
}
@@ -128,10 +125,10 @@ public void testOverridingSslConfig() throws KeyStoreException, NoSuchAlgorithmE
Client client;
client = new JerseyClientBuilder().keyStore(ks, "qwerty").sslContext(ctx).build();
- assertSame("SSL context not the same as set in the client builder.", ctx, client.getSslContext());
+ assertSame(ctx, client.getSslContext(), "SSL context not the same as set in the client builder.");
client = new JerseyClientBuilder().sslContext(ctx).trustStore(ks).build();
- assertNotSame("SSL context not overridden in the client builder.", ctx, client.getSslContext());
+ assertNotSame(ctx, client.getSslContext(), "SSL context not overridden in the client builder.");
}
@Priority(2)
@@ -234,7 +231,7 @@ public void testRegisterNullMap() {
assertNull(contracts);
}
- @Test(expected = Test.None.class) //no exception shall be thrown
+ @Test
public void testRegisterIrrelevantImmutableContractsMap() {
final ClientBuilder clientBuilder = ClientBuilder.newBuilder();
final Map, Integer> contracts = new HashMap<>();
@@ -251,17 +248,19 @@ public void testRegisterIrrelevantImmutableContractsMap() {
@Test
public void testNegativeConnectTimeout() {
- ClientBuilder clientBuilder = ClientBuilder.newBuilder();
+ Assertions.assertThrows(IllegalArgumentException.class, () -> {
+ ClientBuilder clientBuilder = ClientBuilder.newBuilder();
- exception.expect(IllegalArgumentException.class);
- clientBuilder.connectTimeout(-1, TimeUnit.SECONDS);
+ clientBuilder.connectTimeout(-1, TimeUnit.SECONDS);
+ });
}
@Test
public void testNegativeReadTimeout() {
- ClientBuilder clientBuilder = ClientBuilder.newBuilder();
+ Assertions.assertThrows(IllegalArgumentException.class, () -> {
+ ClientBuilder clientBuilder = ClientBuilder.newBuilder();
- exception.expect(IllegalArgumentException.class);
- clientBuilder.readTimeout(-1, TimeUnit.SECONDS);
+ clientBuilder.readTimeout(-1, TimeUnit.SECONDS);
+ });
}
}
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/JerseyClientTest.java b/core-client/src/test/java/org/glassfish/jersey/client/JerseyClientTest.java
index 8a851f63d26..41d9efb5010 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/JerseyClientTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/JerseyClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -42,14 +42,15 @@
import org.glassfish.jersey.internal.Version;
import org.glassfish.jersey.internal.inject.AbstractBinder;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* {@link JerseyClient} unit test.
@@ -63,12 +64,12 @@ public class JerseyClientTest {
public JerseyClientTest() {
}
- @Before
+ @BeforeEach
public void setUp() {
this.client = (JerseyClient) ClientBuilder.newClient();
}
- @After
+ @AfterEach
public void tearDown() {
}
@@ -114,9 +115,9 @@ public void testTarget() {
assertEquals(client.getConfiguration(), target.getConfiguration());
}
- @Test(expected = IllegalArgumentException.class)
+ @Test
public void testTargetIAE() {
- final UriBuilder uriBuilder = UriBuilder.fromUri(":xxx:8080//yyy:90090//jaxrs ");
+ assertThrows(IllegalArgumentException.class, () -> UriBuilder.fromUri(":xxx:8080//yyy:90090//jaxrs "));
}
public static class TestProvider implements ReaderInterceptor {
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/JerseyCompletionStageRxInvokerTest.java b/core-client/src/test/java/org/glassfish/jersey/client/JerseyCompletionStageRxInvokerTest.java
index cf3ba575de0..50879fceb84 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/JerseyCompletionStageRxInvokerTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/JerseyCompletionStageRxInvokerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,10 +31,11 @@
import org.glassfish.jersey.process.JerseyProcessingUncaughtExceptionHandler;
import org.hamcrest.Matcher;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.not;
@@ -48,7 +49,7 @@ public class JerseyCompletionStageRxInvokerTest {
private Client client;
private ExecutorService executor;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
client = ClientBuilder.newClient().register(TerminalClientRequestFilter.class);
executor = new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder()
@@ -57,7 +58,7 @@ public void setUp() throws Exception {
.build());
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
executor.shutdown();
client.close();
@@ -70,7 +71,7 @@ public void testNewClient() throws Exception {
}
@Test
- @Ignore("TODO JAX-RS 2.1")
+ @Disabled("TODO JAX-RS 2.1")
public void testNewClientExecutor() throws Exception {
testClient(ClientBuilder.newBuilder()
.executorService(executor)
@@ -88,41 +89,45 @@ public void testNotFoundResponse() throws Exception {
testInvoker(invoker, 404, false);
}
- @Test(expected = NotFoundException.class)
+ @Test
public void testNotFoundReadEntityViaClass() throws Throwable {
- try {
- client.target("http://jersey.java.net")
- .request()
- .header("Response-Status", 404)
- .rx()
- .get(String.class)
- .toCompletableFuture()
- .get();
- } catch (final Exception expected) {
- // java.util.concurrent.ExecutionException
- throw expected
- // javax.ws.rs.NotFoundException
- .getCause();
- }
+ Assertions.assertThrows(NotFoundException.class, () -> {
+ try {
+ client.target("http://jersey.java.net")
+ .request()
+ .header("Response-Status", 404)
+ .rx()
+ .get(String.class)
+ .toCompletableFuture()
+ .get();
+ } catch (final Exception expected) {
+ // java.util.concurrent.ExecutionException
+ throw expected
+ // javax.ws.rs.NotFoundException
+ .getCause();
+ }
+ });
}
- @Test(expected = NotFoundException.class)
+ @Test
public void testNotFoundReadEntityViaGenericType() throws Throwable {
- try {
- client.target("http://jersey.java.net")
- .request()
- .header("Response-Status", 404)
- .rx()
- .get(new GenericType() {
- })
- .toCompletableFuture()
- .get();
- } catch (final Exception expected) {
- // java.util.concurrent.ExecutionException
- throw expected
- // javax.ws.rs.NotFoundException
- .getCause();
- }
+ Assertions.assertThrows(NotFoundException.class, () ->{
+ try {
+ client.target("http://jersey.java.net")
+ .request()
+ .header("Response-Status", 404)
+ .rx()
+ .get(new GenericType() {
+ })
+ .toCompletableFuture()
+ .get();
+ } catch (final Exception expected) {
+ // java.util.concurrent.ExecutionException
+ throw expected
+ // javax.ws.rs.NotFoundException
+ .getCause();
+ }
+ });
}
@Test
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/JerseyInvocationTest.java b/core-client/src/test/java/org/glassfish/jersey/client/JerseyInvocationTest.java
index dc021a399ff..99e5a2a5444 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/JerseyInvocationTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/JerseyInvocationTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -43,14 +43,14 @@
import javax.ws.rs.core.Response;
import org.hamcrest.CoreMatchers;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.anyOf;
import static org.hamcrest.CoreMatchers.hasItem;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Martin Matula
@@ -271,10 +271,10 @@ public void failed(final Throwable throwable) {
fail("future.get() should have failed.");
} catch (final ExecutionException e) {
final Throwable pe = e.getCause();
- assertTrue("Execution exception cause is not a ProcessingException: " + pe.toString(),
- pe instanceof ProcessingException);
+ assertTrue(pe instanceof ProcessingException,
+ "Execution exception cause is not a ProcessingException: " + pe.toString());
final Throwable ioe = pe.getCause();
- assertTrue("Execution exception cause is not an IOException: " + ioe.toString(), ioe instanceof IOException);
+ assertTrue(ioe instanceof IOException, "Execution exception cause is not an IOException: " + ioe.toString());
} catch (final InterruptedException e) {
throw new RuntimeException(e);
}
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/JerseyWebTargetTest.java b/core-client/src/test/java/org/glassfish/jersey/client/JerseyWebTargetTest.java
index e3be2f91c29..072e70e499a 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/JerseyWebTargetTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/JerseyWebTargetTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,11 +33,12 @@
import org.glassfish.jersey.uri.internal.JerseyUriBuilder;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* {@code JerseyWebTarget} implementation unit tests.
@@ -48,7 +49,7 @@ public class JerseyWebTargetTest {
private JerseyClient client;
private JerseyWebTarget target;
- @Before
+ @BeforeEach
public void setUp() {
this.client = (JerseyClient) ClientBuilder.newClient();
this.target = client.target("/");
@@ -377,46 +378,58 @@ public void testReplaceMatrixParam() {
assertEquals("/path1;matrix11=segment11/path2/path3;matrix30=segment30/path4", uri.toString());
}
- @Test(expected = NullPointerException.class)
+ @Test
public void testQueryParamNull() {
- WebTarget wt = target;
+ assertThrows(NullPointerException.class, () -> {
+ WebTarget wt = target;
- wt.queryParam(null);
+ wt.queryParam(null);
+ });
}
- @Test(expected = NullPointerException.class)
+ @Test
public void testPathNull() {
- WebTarget wt = target;
+ assertThrows(NullPointerException.class, () -> {
+ WebTarget wt = target;
- wt.path(null);
+ wt.path(null);
+ });
}
- @Test(expected = NullPointerException.class)
+ @Test
public void testResolveTemplateNull1() {
- WebTarget wt = target;
+ assertThrows(NullPointerException.class, () -> {
+ WebTarget wt = target;
- wt.resolveTemplate(null, "", true);
+ wt.resolveTemplate(null, "", true);
+ });
}
- @Test(expected = NullPointerException.class)
+ @Test
public void testResolveTemplateNull2() {
- WebTarget wt = target;
+ assertThrows(NullPointerException.class, () -> {
+ WebTarget wt = target;
- wt.resolveTemplate("name", null, true);
+ wt.resolveTemplate("name", null, true);
+ });
}
- @Test(expected = NullPointerException.class)
+ @Test
public void testResolveTemplateFromEncodedNull1() {
- WebTarget wt = target;
+ assertThrows(NullPointerException.class, () -> {
+ WebTarget wt = target;
- wt.resolveTemplateFromEncoded(null, "");
+ wt.resolveTemplateFromEncoded(null, "");
+ });
}
- @Test(expected = NullPointerException.class)
+ @Test
public void testResolveTemplateFromEncodedNull2() {
- WebTarget wt = target;
+ assertThrows(NullPointerException.class, () -> {
+ WebTarget wt = target;
- wt.resolveTemplateFromEncoded("name", null);
+ wt.resolveTemplateFromEncoded("name", null);
+ });
}
@Test
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/LinkTest.java b/core-client/src/test/java/org/glassfish/jersey/client/LinkTest.java
index f7b6027ba1c..278abfe5487 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/LinkTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/LinkTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,10 +20,10 @@
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.Link;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* LinkTest class.
@@ -37,7 +37,7 @@ public class LinkTest {
public LinkTest() {
}
- @Before
+ @BeforeEach
public void setUp() {
this.client = (JerseyClient) ClientBuilder.newClient();
}
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/ShutdownHookLeakTest.java b/core-client/src/test/java/org/glassfish/jersey/client/ShutdownHookLeakTest.java
index ff88ab80074..7ddd82c3516 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/ShutdownHookLeakTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/ShutdownHookLeakTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,10 +24,10 @@
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.WebTarget;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.number.OrderingComparison.lessThan;
-import static org.junit.Assert.assertThat;
/**
* Reproducer for JERSEY-2786.
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/WebTargetPropertiesTest.java b/core-client/src/test/java/org/glassfish/jersey/client/WebTargetPropertiesTest.java
index 2fb4850306c..0776f93afc5 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/WebTargetPropertiesTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/WebTargetPropertiesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,9 +20,9 @@
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.WebTarget;
-import org.junit.Test;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author pavel.bucek@oracle.com
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/authentication/HttpDigestAuthFilterTest.java b/core-client/src/test/java/org/glassfish/jersey/client/authentication/HttpDigestAuthFilterTest.java
index 284e87cf683..b7a80b649b2 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/authentication/HttpDigestAuthFilterTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/authentication/HttpDigestAuthFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,8 +22,8 @@
import org.glassfish.jersey.client.authentication.DigestAuthenticator.DigestScheme;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* @author Raphael Jolivet (raphael.jolivet at gmail.com)
@@ -42,7 +42,7 @@ public void testParseHeaders1() throws Exception { // no digest scheme
"basic toto=\"tutu\""
}));
- Assert.assertNull(ds);
+ Assertions.assertNull(ds);
}
@Test
@@ -55,9 +55,9 @@ public void testParseHeaders2() throws Exception { // Two concurrent schemes
"Digest realm=\"tata\"",
"basic toto=\"tutu\""
}));
- Assert.assertNotNull(ds);
+ Assertions.assertNotNull(ds);
- Assert.assertEquals("tata", ds.getRealm());
+ Assertions.assertEquals("tata", ds.getRealm());
}
@Test
@@ -70,9 +70,9 @@ public void testParseHeaders3() throws Exception { // Complex case, with comma i
"digest realm=\"tata\",nonce=\"foo, bar\""
}));
- Assert.assertNotNull(ds);
- Assert.assertEquals("tata", ds.getRealm());
- Assert.assertEquals("foo, bar", ds.getNonce());
+ Assertions.assertNotNull(ds);
+ Assertions.assertEquals("tata", ds.getRealm());
+ Assertions.assertEquals("foo, bar", ds.getNonce());
}
@Test
@@ -85,10 +85,10 @@ public void testParseHeaders4() throws Exception { // Spaces
" digest realm = \"tata\" , opaque=\"bar\" ,nonce=\"foo, bar\""
}));
- Assert.assertNotNull(ds);
- Assert.assertEquals("tata", ds.getRealm());
- Assert.assertEquals("foo, bar", ds.getNonce());
- Assert.assertEquals("bar", ds.getOpaque());
+ Assertions.assertNotNull(ds);
+ Assertions.assertEquals("tata", ds.getRealm());
+ Assertions.assertEquals("foo, bar", ds.getNonce());
+ Assertions.assertEquals("bar", ds.getOpaque());
}
@Test
@@ -101,10 +101,10 @@ public void testParseHeaders5() throws Exception { // Mix of quotes and non-quo
" digest realm = \"tata\" , opaque =bar ,nonce=\"foo, bar\", algorithm=md5"
}));
- Assert.assertNotNull(ds);
- Assert.assertEquals("tata", ds.getRealm());
- Assert.assertEquals("foo, bar", ds.getNonce());
- Assert.assertEquals("bar", ds.getOpaque());
- Assert.assertEquals("MD5", ds.getAlgorithm().name());
+ Assertions.assertNotNull(ds);
+ Assertions.assertEquals("tata", ds.getRealm());
+ Assertions.assertEquals("foo, bar", ds.getNonce());
+ Assertions.assertEquals("bar", ds.getOpaque());
+ Assertions.assertEquals("MD5", ds.getAlgorithm().name());
}
}
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/filter/ClientProviderInstanceInjectionTest.java b/core-client/src/test/java/org/glassfish/jersey/client/filter/ClientProviderInstanceInjectionTest.java
index 8ec83fae9ed..6cb65a72d5e 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/filter/ClientProviderInstanceInjectionTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/filter/ClientProviderInstanceInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,8 +31,8 @@
import org.glassfish.jersey.internal.inject.AbstractBinder;
import org.glassfish.jersey.internal.inject.InjectionManager;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests injections into provider instances.
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/filter/CsrfProtectionFilterTest.java b/core-client/src/test/java/org/glassfish/jersey/client/filter/CsrfProtectionFilterTest.java
index a69df0331f3..702c9717951 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/filter/CsrfProtectionFilterTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/filter/CsrfProtectionFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,10 +34,10 @@
import org.glassfish.jersey.client.spi.Connector;
import org.glassfish.jersey.client.spi.ConnectorProvider;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* Cross-site request forgery client filter test.
@@ -47,7 +47,7 @@
public class CsrfProtectionFilterTest {
private Invocation.Builder invBuilder;
- @Before
+ @BeforeEach
public void setUp() {
Client client = ClientBuilder.newClient(new ClientConfig(CsrfProtectionFilter.class)
.connectorProvider(new TestConnector()));
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/filter/EncodingFilterTest.java b/core-client/src/test/java/org/glassfish/jersey/client/filter/EncodingFilterTest.java
index 4d1fe390a5b..a48671fc271 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/filter/EncodingFilterTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/filter/EncodingFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -42,12 +42,11 @@
import org.glassfish.jersey.message.DeflateEncoder;
import org.glassfish.jersey.message.GZipEncoder;
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Client-side content encoding filter unit tests.
@@ -148,7 +147,7 @@ public ClientResponse apply(ClientRequest requestContext) throws ProcessingExcep
response.readEntity(String.class);
fail("Exception caused by invalid gzip stream expected.");
} catch (ProcessingException ex) {
- assertTrue("Response input stream not closed when exception is thrown.", responseStream.isClosed);
+ assertTrue(responseStream.isClosed, "Response input stream not closed when exception is thrown.");
}
}
@@ -177,7 +176,7 @@ public ClientResponse apply(ClientRequest requestContext) throws ProcessingExcep
client.target(UriBuilder.fromUri("/").build()).request().get(String.class);
fail("Exception caused by invalid gzip stream expected.");
} catch (ProcessingException ex) {
- assertTrue("Response input stream not closed when exception is thrown.", responseStream.isClosed);
+ assertTrue(responseStream.isClosed, "Response input stream not closed when exception is thrown.");
}
}
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/filter/HttpBasicAuthFilterTest.java b/core-client/src/test/java/org/glassfish/jersey/client/filter/HttpBasicAuthFilterTest.java
index e967db0e267..72f73ae52ed 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/filter/HttpBasicAuthFilterTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/filter/HttpBasicAuthFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -37,8 +37,8 @@
import org.glassfish.jersey.client.spi.ConnectorProvider;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* HTTP Basic authentication filter test.
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/spi/CachingConnectorProviderTest.java b/core-client/src/test/java/org/glassfish/jersey/client/spi/CachingConnectorProviderTest.java
index d4f93639729..4eec0cdbcb6 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/spi/CachingConnectorProviderTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/spi/CachingConnectorProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,8 +29,8 @@
import org.glassfish.jersey.client.ClientRequest;
import org.glassfish.jersey.client.ClientResponse;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Caching connector provider unit tests.
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/spi/ClientBuilderListenerTest.java b/core-client/src/test/java/org/glassfish/jersey/client/spi/ClientBuilderListenerTest.java
index e2776fc79ce..38811762caf 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/spi/ClientBuilderListenerTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/spi/ClientBuilderListenerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -17,8 +17,8 @@
package org.glassfish.jersey.client.spi;
import org.glassfish.jersey.client.ClientConfig;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.annotation.Priority;
import javax.ws.rs.Priorities;
@@ -55,7 +55,7 @@ public void onNewBuilder(ClientBuilder builder) {
@Test
public void testClientBuilderListener() {
Client client = ClientBuilder.newClient();
- Assert.assertEquals(70, client.getConfiguration().getProperty(PROPERTY_NAME));
+ Assertions.assertEquals(70, client.getConfiguration().getProperty(PROPERTY_NAME));
}
}
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/spi/InvocationBuilderListenerTest.java b/core-client/src/test/java/org/glassfish/jersey/client/spi/InvocationBuilderListenerTest.java
index ddb6e76fae9..0e5fe4404b2 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/spi/InvocationBuilderListenerTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/spi/InvocationBuilderListenerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,9 +18,10 @@
import org.glassfish.jersey.internal.PropertiesDelegate;
import org.hamcrest.Matchers;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
+import org.hamcrest.MatcherAssert;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import javax.annotation.Priority;
import javax.ws.rs.client.ClientBuilder;
@@ -48,7 +49,7 @@ public class InvocationBuilderListenerTest {
private WebTarget target;
- @Before
+ @BeforeEach
public void setUp() {
target = ClientBuilder.newClient().target("http://localhost:8080").register(AbortRequestFilter.class)
.register(new PropertySetterInvocationBuilderListener(a -> a.property(key(ONE), ONE)));
@@ -80,7 +81,7 @@ public void testConfigurationProperties() {
String value = "OTHER_VALUE";
try (Response r = target.property(key(ConfigurationInvocationBuilderListener.OTHER_PROPERTY), value)
.register(ConfigurationInvocationBuilderListener.class).request().get()) {
- Assert.assertTrue(
+ Assertions.assertTrue(
r.readEntity(String.class).contains(key(ConfigurationInvocationBuilderListener.OTHER_PROPERTY) + "=" + value)
);
}
@@ -95,7 +96,7 @@ public void testGetters() {
}
private void assertDefault(Response response) {
- Assert.assertEquals(key(ONE) + "=" + ONE, response.readEntity(String.class));
+ Assertions.assertEquals(key(ONE) + "=" + ONE, response.readEntity(String.class));
}
private static String key(String keySuffix) {
@@ -161,10 +162,10 @@ public static class GetterInvocationBuilderListener implements InvocationBuilder
public void onNewBuilder(InvocationBuilderContext context) {
Date date = new Date();
RuntimeDelegate.HeaderDelegate localeDelegate = RuntimeDelegate.getInstance().createHeaderDelegate(Locale.class);
- Assert.assertThat(context.getAccepted(),
+ MatcherAssert.assertThat(context.getAccepted(),
Matchers.containsInAnyOrder(MediaType.APPLICATION_JSON, MediaType.APPLICATION_JSON_PATCH_JSON));
- Assert.assertThat(context.getEncodings(), Matchers.contains("GZIP"));
- Assert.assertThat(context.getAcceptedLanguages(),
+ MatcherAssert.assertThat(context.getEncodings(), Matchers.contains("GZIP"));
+ MatcherAssert.assertThat(context.getAcceptedLanguages(),
Matchers.containsInAnyOrder(localeDelegate.toString(Locale.GERMAN),
localeDelegate.toString(
new Locale.Builder().setLanguage("sr").setScript("Latn").setRegion("RS").build()
@@ -172,24 +173,24 @@ public void onNewBuilder(InvocationBuilderContext context) {
)
);
- Assert.assertThat(context.getHeader(HttpHeaders.CONTENT_ID), Matchers.contains(PROPERTY_NAME));
+ MatcherAssert.assertThat(context.getHeader(HttpHeaders.CONTENT_ID), Matchers.contains(PROPERTY_NAME));
context.getHeaders().add(HttpHeaders.DATE, date);
- Assert.assertThat(context.getHeader(HttpHeaders.DATE), Matchers.notNullValue());
- Assert.assertThat(context.getHeaders().getFirst(HttpHeaders.DATE), Matchers.is(date));
+ MatcherAssert.assertThat(context.getHeader(HttpHeaders.DATE), Matchers.notNullValue());
+ MatcherAssert.assertThat(context.getHeaders().getFirst(HttpHeaders.DATE), Matchers.is(date));
- Assert.assertNotNull(context.getUri());
- Assert.assertTrue(context.getUri().toASCIIString().startsWith("http://"));
+ Assertions.assertNotNull(context.getUri());
+ Assertions.assertTrue(context.getUri().toASCIIString().startsWith("http://"));
- Assert.assertThat(context.getPropertyNames(), Matchers.contains(PROPERTY_NAME));
- Assert.assertThat(context.getProperty(PROPERTY_NAME), Matchers.is(PROPERTY_NAME));
+ MatcherAssert.assertThat(context.getPropertyNames(), Matchers.contains(PROPERTY_NAME));
+ MatcherAssert.assertThat(context.getProperty(PROPERTY_NAME), Matchers.is(PROPERTY_NAME));
context.removeProperty(PROPERTY_NAME);
- Assert.assertTrue(context.getPropertyNames().isEmpty());
+ Assertions.assertTrue(context.getPropertyNames().isEmpty());
- Assert.assertThat(context.getCacheControls().get(0).toString(),
+ MatcherAssert.assertThat(context.getCacheControls().get(0).toString(),
Matchers.is(CacheControl.valueOf(PROPERTY_NAME).toString())
);
- Assert.assertThat(context.getCookies().size(), Matchers.is(1));
- Assert.assertThat(context.getCookies().get("Cookie"), Matchers.notNullValue());
+ MatcherAssert.assertThat(context.getCookies().size(), Matchers.is(1));
+ MatcherAssert.assertThat(context.getCookies().get("Cookie"), Matchers.notNullValue());
}
}
}
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/spi/PostInvocationInterceptorTest.java b/core-client/src/test/java/org/glassfish/jersey/client/spi/PostInvocationInterceptorTest.java
index b5f362402e8..f454ce96c63 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/spi/PostInvocationInterceptorTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/spi/PostInvocationInterceptorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,9 +16,9 @@
package org.glassfish.jersey.client.spi;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.ProcessingException;
import javax.ws.rs.client.ClientBuilder;
@@ -44,7 +44,7 @@ public class PostInvocationInterceptorTest {
private AtomicInteger counter;
- @Before
+ @BeforeEach
public void setup() {
counter = new AtomicInteger();
}
@@ -55,10 +55,10 @@ public void testSyncNoConnectionPostInvocationInterceptor() {
.register(new CounterPostInvocationInterceptor((a, b) -> false, (a, b) -> true))
.build().target(URL).request();
try (Response r = builder.get()) {
- Assert.fail();
+ Assertions.fail();
} catch (ProcessingException pe) {
- Assert.assertEquals(1000, counter.get());
- Assert.assertEquals(ConnectException.class, pe.getCause().getClass());
+ Assertions.assertEquals(1000, counter.get());
+ Assertions.assertEquals(ConnectException.class, pe.getCause().getClass());
}
}
@@ -74,8 +74,8 @@ public void testPreThrowsPostFixes() {
}))
.build().target(URL).request();
try (Response response = builder.get()) {
- Assert.assertEquals(Response.Status.ACCEPTED.getStatusCode(), response.getStatus());
- Assert.assertEquals(1000, counter.get()); // counter.increment would be after ISE
+ Assertions.assertEquals(Response.Status.ACCEPTED.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(1000, counter.get()); // counter.increment would be after ISE
}
}
@@ -91,8 +91,8 @@ public void testPreThrowsPostFixesAsync() throws ExecutionException, Interrupted
}))
.build().target(URL).request();
try (Response response = builder.async().get().get()) {
- Assert.assertEquals(Response.Status.ACCEPTED.getStatusCode(), response.getStatus());
- Assert.assertEquals(1000, counter.get()); // counter.increment would be after ISE
+ Assertions.assertEquals(Response.Status.ACCEPTED.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(1000, counter.get()); // counter.increment would be after ISE
}
}
@@ -111,8 +111,8 @@ public void testFilterThrowsPostFixesAsync() throws ExecutionException, Interrup
try (Response response = builder.async()
.get(new TestInvocationCallback(a -> a.getStatus() == Response.Status.ACCEPTED.getStatusCode(), a -> false))
.get()) {
- Assert.assertEquals(Response.Status.ACCEPTED.getStatusCode(), response.getStatus());
- Assert.assertEquals(1000, counter.get()); // counter.increment would be after ISE
+ Assertions.assertEquals(Response.Status.ACCEPTED.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(1000, counter.get()); // counter.increment would be after ISE
}
}
@@ -147,8 +147,8 @@ public void testPostThrowsFixesThrowsFixes() {
400)
.build().target(URL).request();
try (Response response = builder.get()) {
- Assert.assertEquals(Response.Status.NO_CONTENT.getStatusCode(), response.getStatus());
- Assert.assertEquals(2000, counter.get());
+ Assertions.assertEquals(Response.Status.NO_CONTENT.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(2000, counter.get());
}
}
@@ -170,7 +170,7 @@ public void testMultipleResolvesThrows() {
200)
.build().target(URL).request();
try (Response response = builder.get()) {
- Assert.fail();
+ Assertions.fail();
} catch (IllegalStateException pe) {
// expected
}
@@ -189,9 +189,9 @@ public void testPostChangesStatusAndEntity() {
(a, b) -> false))
.build().target(URL).request();
try (Response response = builder.get()) {
- Assert.assertEquals(Response.Status.CONFLICT.getStatusCode(), response.getStatus());
- Assert.assertEquals(1, counter.get());
- Assert.assertEquals("HELLO", response.readEntity(String.class));
+ Assertions.assertEquals(Response.Status.CONFLICT.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(1, counter.get());
+ Assertions.assertEquals("HELLO", response.readEntity(String.class));
}
}
@@ -216,8 +216,8 @@ public void testPostOnExceptionWhenNoThrowableAndNoResponseContext() {
300)
.build().target(URL).request();
try (Response response = builder.get()) {
- Assert.assertEquals(Response.Status.ACCEPTED.getStatusCode(), response.getStatus());
- Assert.assertEquals(2000, counter.get());
+ Assertions.assertEquals(Response.Status.ACCEPTED.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(2000, counter.get());
}
}
@@ -227,11 +227,11 @@ public void testAsyncNoConnectionPostInvocationInterceptor() throws InterruptedE
.register(new CounterPostInvocationInterceptor((a, b) -> false, (a, b) -> true))
.build().target(URL).request();
try (Response r = builder.async().get(new TestInvocationCallback(a -> false, a -> true)).get()) {
- Assert.fail();
+ Assertions.fail();
} catch (ExecutionException ee) {
- Assert.assertEquals(1000, counter.get());
- Assert.assertEquals(ProcessingException.class, ee.getCause().getClass());
- Assert.assertEquals(ConnectException.class, ee.getCause().getCause().getClass());
+ Assertions.assertEquals(1000, counter.get());
+ Assertions.assertEquals(ProcessingException.class, ee.getCause().getClass());
+ Assertions.assertEquals(ConnectException.class, ee.getCause().getCause().getClass());
}
}
@@ -248,7 +248,7 @@ public void testPreThrowsPostResolves() {
}))
.build().target(URL).request();
try (Response response = builder.get()) {
- Assert.assertEquals(Response.Status.ACCEPTED.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(Response.Status.ACCEPTED.getStatusCode(), response.getStatus());
}
}
@@ -259,8 +259,8 @@ public void testPostInvocationInterceptorIsHitforEachRequest() {
.register(new AbortRequestFilter()).build().target(URL).request();
for (int i = 1; i != 10; i++) {
try (Response response = builder.get()) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals(i, counter.get());
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(i, counter.get());
}
}
}
@@ -276,12 +276,12 @@ private TestInvocationCallback(Predicate responsePredicate, Predicate<
@Override
public void completed(Response response) {
- Assert.assertTrue(responsePredicate.test(response));
+ Assertions.assertTrue(responsePredicate.test(response));
}
@Override
public void failed(Throwable throwable) {
- Assert.assertTrue(throwablePredicate.test(throwable));
+ Assertions.assertTrue(throwablePredicate.test(throwable));
}
}
@@ -297,13 +297,13 @@ private CounterPostInvocationInterceptor(BiPredicate predicat
@Override
public void beforeRequest(ClientRequestContext requestContext) {
- Assert.assertTrue(predicate.test(requestContext));
+ Assertions.assertTrue(predicate.test(requestContext));
counter.incrementAndGet();
}
}
diff --git a/core-client/src/test/java/org/glassfish/jersey/client/spi/PreInvocationInterceptorTest.java b/core-client/src/test/java/org/glassfish/jersey/client/spi/PreInvocationInterceptorTest.java
index 905cb57ddfd..a438a58954f 100644
--- a/core-client/src/test/java/org/glassfish/jersey/client/spi/PreInvocationInterceptorTest.java
+++ b/core-client/src/test/java/org/glassfish/jersey/client/spi/PreInvocationInterceptorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -17,9 +17,9 @@
package org.glassfish.jersey.client.spi;
import org.glassfish.jersey.spi.ThreadPoolExecutorProvider;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import javax.annotation.Priority;
import javax.ws.rs.ProcessingException;
@@ -43,7 +43,7 @@ public class PreInvocationInterceptorTest {
private AtomicInteger counter;
- @Before
+ @BeforeEach
public void setup() {
counter = new AtomicInteger();
}
@@ -55,7 +55,7 @@ public void testPreInvocationInterceptorExecutedWhenBuilderBuild() {
.register(new CounterRequestFilter(a -> a.get() == 1))
.register(AbortRequestFilter.class).build().target(URL).request();
try (Response response = builder.build("GET").invoke()) {
- Assert.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
}
}
@@ -66,7 +66,7 @@ public void testPreInvocationInterceptorExecutedWhenMethodGET() {
.register(new CounterRequestFilter(a -> a.get() == 1))
.register(AbortRequestFilter.class).build().target(URL).request();
try (Response response = builder.method("GET")) {
- Assert.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
}
}
@@ -77,7 +77,7 @@ public void testPreInvocationInterceptorPropertySet() {
.register(new PropertyRequestFilter(a -> PROPERTY_VALUE.equals(a.getProperty(PROPERTY_NAME))))
.register(AbortRequestFilter.class).build().target(URL).request().property(PROPERTY_NAME, PROPERTY_VALUE);
try (Response response = builder.method("GET")) {
- Assert.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
}
}
@@ -88,7 +88,7 @@ public void testPreInvocationInterceptorHasInjection() {
.register(InjectedPreInvocationInterceptor.class)
.register(AbortRequestFilter.class).build().target(URL).request();
try (Response response = builder.method("GET")) {
- Assert.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
}
}
@@ -101,7 +101,7 @@ public void testPreInvocationInterceptorInTheSameThreadInAsync() throws Executio
.register(new PropertyRequestFilter(a -> Thread.currentThread().getName().startsWith(EXECUTOR_THREAD_NAME)))
.register(AbortRequestFilter.class).build().target(URL).request();
try (Response response = builder.async().method("GET").get()) {
- Assert.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
}
}
@@ -114,7 +114,7 @@ public void testPreInvocationInterceptorInTheSameThreadInJerseyRx() throws Execu
.register(new PropertyRequestFilter(a -> Thread.currentThread().getName().startsWith(EXECUTOR_THREAD_NAME)))
.register(AbortRequestFilter.class).build().target(URL).request();
try (Response response = builder.rx().method("GET").toCompletableFuture().get()) {
- Assert.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
}
}
@@ -129,7 +129,7 @@ public void testPreInvocationInterceptorAbortWith() {
.register(new PropertyRequestFilter(a -> {throw new IllegalStateException(); }))
.register(AbortRequestFilter.class).build().target(URL).request();
try (Response response = builder.get()) {
- Assert.assertEquals(Response.Status.NO_CONTENT.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(Response.Status.NO_CONTENT.getStatusCode(), response.getStatus());
}
}
@@ -154,9 +154,9 @@ public void testPreInvocationInterceptorAbortWithThrowsInMultiple() {
.register(new PropertyRequestFilter(a -> {throw new IllegalStateException(); }))
.register(AbortRequestFilter.class).build().target(URL).request();
try (Response response = builder.get()) {
- Assert.fail();
+ Assertions.fail();
} catch (ProcessingException exception) {
- Assert.assertEquals(IllegalStateException.class, exception.getCause().getClass());
+ Assertions.assertEquals(IllegalStateException.class, exception.getCause().getClass());
}
}
@@ -169,7 +169,7 @@ public void testPrioritiesOnPreInvocationInterceptor() {
.register(new Priority200PreInvocationInterceptor(a -> a.get() < 2){})
.register(AbortRequestFilter.class).build().target(URL).request();
try (Response response = builder.get()) {
- Assert.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
+ Assertions.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
}
}
@@ -181,10 +181,10 @@ public void testMultiExceptionInPreInvocationInterceptor() {
.register(new Priority100PreInvocationInterceptor(a -> {throw new RuntimeException("TWO"); }))
.register(AbortRequestFilter.class).build().target(URL).request();
try (Response response = builder.get()) {
- Assert.fail();
+ Assertions.fail();
} catch (RuntimeException e) {
- Assert.assertEquals("ONE", e.getSuppressed()[0].getMessage());
- Assert.assertEquals("TWO", e.getSuppressed()[1].getMessage());
+ Assertions.assertEquals("ONE", e.getSuppressed()[0].getMessage());
+ Assertions.assertEquals("TWO", e.getSuppressed()[1].getMessage());
}
}
@@ -195,8 +195,8 @@ public void testPreInvocationInterceptorIsHitforEachRequest() {
.register(new AbortRequestFilter()).build().target(URL).request();
for (int i = 1; i != 10; i++) {
try (Response response = builder.get()) {
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals(i, counter.get());
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(i, counter.get());
}
}
}
@@ -217,7 +217,7 @@ private CounterRequestFilter(Predicate consumer) {
@Override
public void filter(ClientRequestContext requestContext) throws IOException {
- Assert.assertTrue(consumer.test(counter));
+ Assertions.assertTrue(consumer.test(counter));
counter.getAndIncrement();
}
}
@@ -231,7 +231,7 @@ private CounterPreInvocationInterceptor(Predicate predicate) {
@Override
public void beforeRequest(ClientRequestContext requestContext) {
- Assert.assertTrue(predicate.test(counter));
+ Assertions.assertTrue(predicate.test(counter));
counter.getAndIncrement();
}
}
@@ -245,7 +245,7 @@ private PropertyRequestFilter(Predicate predicate) {
@Override
public void filter(ClientRequestContext requestContext) throws IOException {
- Assert.assertTrue(predicate.test(requestContext));
+ Assertions.assertTrue(predicate.test(requestContext));
}
}
@@ -258,7 +258,7 @@ private PropertyPreInvocationInterceptor(Predicate predica
@Override
public void beforeRequest(ClientRequestContext requestContext) {
- Assert.assertTrue(predicate.test(requestContext));
+ Assertions.assertTrue(predicate.test(requestContext));
}
}
@@ -268,8 +268,8 @@ private static class InjectedPreInvocationInterceptor implements PreInvocationIn
@Override
public void beforeRequest(ClientRequestContext requestContext) {
- Assert.assertNotNull(configuration);
- Assert.assertEquals(PROPERTY_VALUE, configuration.getProperty(PROPERTY_NAME));
+ Assertions.assertNotNull(configuration);
+ Assertions.assertEquals(PROPERTY_VALUE, configuration.getProperty(PROPERTY_NAME));
}
}
diff --git a/core-common/pom.xml b/core-common/pom.xml
index 223109f5561..2f61b3bfc1b 100644
--- a/core-common/pom.xml
+++ b/core-common/pom.xml
@@ -172,6 +172,29 @@
org.apache.maven.plugins
maven-surefire-plugin
+
+
+ default-test
+
+
+ **/ByteBufferInputStreamTest.java
+
+
+
+
+ tests-with-additional-permissions
+ test
+
+ test
+
+
+ -Djava.security.policy=${project.build.directory}/test-classes/surefire-jdk17.policy
+
+ **/ByteBufferInputStreamTest.java
+
+
+
+
classesAndMethods
@@ -206,8 +229,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/core-common/src/test/java/org/glassfish/jersey/SecurityManagerConfiguredTest.java b/core-common/src/test/java/org/glassfish/jersey/SecurityManagerConfiguredTest.java
index cfae326453f..4c90296f1e1 100644
--- a/core-common/src/test/java/org/glassfish/jersey/SecurityManagerConfiguredTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/SecurityManagerConfiguredTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,8 +16,8 @@
package org.glassfish.jersey;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* Test that verifies that security manager is setup to run the Jersey core server unit tests.
@@ -30,7 +30,6 @@ public class SecurityManagerConfiguredTest {
*/
@Test
public void testSecurityManagerIsConfigured() {
- assertNotNull("Jersey core server unit tests should run with active security manager",
- System.getSecurityManager());
+ assertNotNull(System.getSecurityManager(), "Jersey core server unit tests should run with active security manager");
}
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/TestRuntimeDelegate.java b/core-common/src/test/java/org/glassfish/jersey/internal/TestRuntimeDelegate.java
index 0f025f199c3..33b9fb307a5 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/TestRuntimeDelegate.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/TestRuntimeDelegate.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,7 +27,7 @@
import org.glassfish.jersey.message.internal.MessagingBinders;
-import org.junit.Assert;
+import org.junit.jupiter.api.Assertions;
/**
* Test runtime delegate.
@@ -48,31 +48,31 @@ public T createEndpoint(Application application, Class endpointType)
public void testMediaType() {
MediaType m = new MediaType("text", "plain");
- Assert.assertNotNull(m);
+ Assertions.assertNotNull(m);
}
public void testUriBuilder() {
UriBuilder ub = RuntimeDelegate.getInstance().createUriBuilder();
- Assert.assertNotNull(ub);
+ Assertions.assertNotNull(ub);
}
public void testResponseBuilder() {
Response.ResponseBuilder rb = RuntimeDelegate.getInstance().createResponseBuilder();
- Assert.assertNotNull(rb);
+ Assertions.assertNotNull(rb);
}
public void testVariantListBuilder() {
Variant.VariantListBuilder vlb = RuntimeDelegate.getInstance().createVariantListBuilder();
- Assert.assertNotNull(vlb);
+ Assertions.assertNotNull(vlb);
}
public void testLinkBuilder() {
final Link.Builder linkBuilder = RuntimeDelegate.getInstance().createLinkBuilder();
- Assert.assertNotNull(linkBuilder);
+ Assertions.assertNotNull(linkBuilder);
}
public void testWebApplicationException() {
WebApplicationException wae = new WebApplicationException();
- Assert.assertNotNull(wae);
+ Assertions.assertNotNull(wae);
}
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/config/AdditionalSystemPropertiesTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/config/AdditionalSystemPropertiesTest.java
index 1cc853e236b..09a85812c20 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/config/AdditionalSystemPropertiesTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/config/AdditionalSystemPropertiesTest.java
@@ -17,10 +17,10 @@
package org.glassfish.jersey.internal.config;
import org.glassfish.jersey.CommonProperties;
-import org.junit.AfterClass;
-import org.junit.Assert;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
import java.util.Collections;
import java.util.Properties;
@@ -32,14 +32,14 @@ private static class AdditionalSystemProperties {
public static final String SECOND_PROPERTY = "second.property";
}
- @BeforeClass
+ @BeforeAll
public static void setUp() {
System.setProperty(CommonProperties.ALLOW_SYSTEM_PROPERTIES_PROVIDER, Boolean.TRUE.toString());
System.getProperties().put(AdditionalSystemProperties.FIRST_PROPERTY, "first value");
System.getProperties().put(AdditionalSystemProperties.SECOND_PROPERTY, "second value");
}
- @AfterClass
+ @AfterAll
public static void tearDown() {
System.clearProperty(CommonProperties.ALLOW_SYSTEM_PROPERTIES_PROVIDER);
System.clearProperty(AdditionalSystemProperties.FIRST_PROPERTY);
@@ -57,10 +57,10 @@ public void readAdditionalSystemPropertiesTest() {
Collections.singletonList(new ExternalConfigurationProviderImpl(testModel))
);
- Assert.assertFalse(properties.isEmpty());
- Assert.assertTrue(properties.containsKey(AdditionalSystemProperties.FIRST_PROPERTY));
- Assert.assertTrue(properties.containsKey(AdditionalSystemProperties.SECOND_PROPERTY));
- Assert.assertEquals("first value", properties.get(AdditionalSystemProperties.FIRST_PROPERTY));
- Assert.assertEquals("second value", properties.get(AdditionalSystemProperties.SECOND_PROPERTY));
+ Assertions.assertFalse(properties.isEmpty());
+ Assertions.assertTrue(properties.containsKey(AdditionalSystemProperties.FIRST_PROPERTY));
+ Assertions.assertTrue(properties.containsKey(AdditionalSystemProperties.SECOND_PROPERTY));
+ Assertions.assertEquals("first value", properties.get(AdditionalSystemProperties.FIRST_PROPERTY));
+ Assertions.assertEquals("second value", properties.get(AdditionalSystemProperties.SECOND_PROPERTY));
}
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/config/DisabledProvidersTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/config/DisabledProvidersTest.java
index cccd36c564f..57b95d0b194 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/config/DisabledProvidersTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/config/DisabledProvidersTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,8 +21,8 @@
import org.glassfish.jersey.message.internal.MessagingBinders;
import org.glassfish.jersey.message.internal.RenderedImageProvider;
import org.glassfish.jersey.message.internal.SourceProvider;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.RuntimeType;
import java.util.HashMap;
@@ -55,11 +55,11 @@ public void testNoRenderedImageProviderNoSourceProvider() {
DisabledProvidersChecker checker = new DisabledProvidersChecker(properties, RuntimeType.CLIENT);
checker.configure();
- Assert.assertFalse(checker.bindSet.contains(RenderedImageProvider.class));
- Assert.assertFalse(checker.bindSet.contains(SourceProvider.SourceWriter.class));
- Assert.assertTrue(checker.bindSet.contains(SourceProvider.StreamSourceReader.class));
- Assert.assertTrue(checker.bindSet.contains(SourceProvider.SaxSourceReader.class));
- Assert.assertTrue(checker.bindSet.contains(SourceProvider.DomSourceReader.class));
+ Assertions.assertFalse(checker.bindSet.contains(RenderedImageProvider.class));
+ Assertions.assertFalse(checker.bindSet.contains(SourceProvider.SourceWriter.class));
+ Assertions.assertTrue(checker.bindSet.contains(SourceProvider.StreamSourceReader.class));
+ Assertions.assertTrue(checker.bindSet.contains(SourceProvider.SaxSourceReader.class));
+ Assertions.assertTrue(checker.bindSet.contains(SourceProvider.DomSourceReader.class));
}
@Test
@@ -69,11 +69,11 @@ public void testNoDisabledProvider() {
DisabledProvidersChecker checker = new DisabledProvidersChecker(properties, RuntimeType.CLIENT);
checker.configure();
- Assert.assertFalse(checker.bindSet.contains(RenderedImageProvider.class));
- Assert.assertFalse(checker.bindSet.contains(SourceProvider.StreamSourceReader.class));
- Assert.assertFalse(checker.bindSet.contains(SourceProvider.SourceWriter.class));
- Assert.assertFalse(checker.bindSet.contains(SourceProvider.SaxSourceReader.class));
- Assert.assertFalse(checker.bindSet.contains(SourceProvider.DomSourceReader.class));
+ Assertions.assertFalse(checker.bindSet.contains(RenderedImageProvider.class));
+ Assertions.assertFalse(checker.bindSet.contains(SourceProvider.StreamSourceReader.class));
+ Assertions.assertFalse(checker.bindSet.contains(SourceProvider.SourceWriter.class));
+ Assertions.assertFalse(checker.bindSet.contains(SourceProvider.SaxSourceReader.class));
+ Assertions.assertFalse(checker.bindSet.contains(SourceProvider.DomSourceReader.class));
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/config/ExternalPropertiesConfigurationFactoryTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/config/ExternalPropertiesConfigurationFactoryTest.java
index f6e6758af62..6f1f7b163ec 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/config/ExternalPropertiesConfigurationFactoryTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/config/ExternalPropertiesConfigurationFactoryTest.java
@@ -17,10 +17,10 @@
package org.glassfish.jersey.internal.config;
import org.glassfish.jersey.CommonProperties;
-import org.junit.AfterClass;
-import org.junit.Assert;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
import java.util.HashMap;
import java.util.Map;
@@ -33,7 +33,7 @@ public class ExternalPropertiesConfigurationFactoryTest {
/**
* Predefine some properties to be read from config
*/
- @BeforeClass
+ @BeforeAll
public static void setUp() {
System.setProperty(CommonProperties.ALLOW_SYSTEM_PROPERTIES_PROVIDER, Boolean.TRUE.toString());
@@ -42,7 +42,7 @@ public static void setUp() {
System.setProperty("jersey.config.client.readTimeout", "10");
}
- @AfterClass
+ @AfterAll
public static void tearDown() {
System.clearProperty("jersey.config.server.provider.scanning.recursive");
System.clearProperty(CommonProperties.JSON_PROCESSING_FEATURE_DISABLE);
@@ -53,24 +53,25 @@ public static void tearDown() {
public void readSystemPropertiesTest() {
final Object result =
readExternalPropertiesMap().get("jersey.config.server.provider.scanning.recursive");
- Assert.assertNull(result);
- Assert.assertEquals(Boolean.TRUE,
+ Assertions.assertNull(result);
+ Assertions.assertEquals(Boolean.TRUE,
getConfig().isProperty(CommonProperties.JSON_PROCESSING_FEATURE_DISABLE));
- Assert.assertEquals(Boolean.TRUE,
+ Assertions.assertEquals(Boolean.TRUE,
getConfig().as(CommonProperties.JSON_PROCESSING_FEATURE_DISABLE, Boolean.class));
- Assert.assertEquals(Boolean.FALSE,
+ Assertions.assertEquals(Boolean.FALSE,
getConfig().as("jersey.config.client.readTimeout", Boolean.class));
- Assert.assertEquals(Boolean.FALSE,
+ Assertions.assertEquals(Boolean.FALSE,
getConfig().isProperty("jersey.config.client.readTimeout"));
- Assert.assertEquals(1,
+ Assertions.assertEquals(1,
getConfig().as(CommonProperties.JSON_PROCESSING_FEATURE_DISABLE, Integer.class));
- Assert.assertEquals(10,
+ Assertions.assertEquals(10,
getConfig().as("jersey.config.client.readTimeout", Integer.class));
}
- @Test(expected = IllegalArgumentException.class)
+ @Test
public void unsupportedMapperTest() {
- getConfig().as(CommonProperties.JSON_PROCESSING_FEATURE_DISABLE, Double.class);
+ Assertions.assertThrows(IllegalArgumentException.class,
+ () -> getConfig().as(CommonProperties.JSON_PROCESSING_FEATURE_DISABLE, Double.class));
}
@Test
@@ -80,8 +81,8 @@ public void mergePropertiesTest() {
inputProperties.put("org.jersey.microprofile.config.added", "ADDED");
getConfig().mergeProperties(inputProperties);
final Object result = readExternalPropertiesMap().get("jersey.config.server.provider.scanning.recursive");
- Assert.assertNull(result);
- Assert.assertNull(readExternalPropertiesMap().get("org.jersey.microprofile.config.added"));
+ Assertions.assertNull(result);
+ Assertions.assertNull(readExternalPropertiesMap().get("org.jersey.microprofile.config.added"));
}
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/inject/ProvidersTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/inject/ProvidersTest.java
index dc157667097..2c80b350d2c 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/inject/ProvidersTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/inject/ProvidersTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.spi.Contract;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests {@link Providers}.
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/routing/CombinedMediaTypeTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/routing/CombinedMediaTypeTest.java
index f4414f5b42c..c0c3112617d 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/routing/CombinedMediaTypeTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/routing/CombinedMediaTypeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,10 +24,10 @@
import javax.ws.rs.core.MediaType;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.lessThan;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Combined media type tests.
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/sonar/SonarJerseyCommonTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/sonar/SonarJerseyCommonTest.java
index 06a97ad8d7c..3a0557c19eb 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/sonar/SonarJerseyCommonTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/sonar/SonarJerseyCommonTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,8 +16,8 @@
package org.glassfish.jersey.internal.sonar;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* @author Stepan Vavra
@@ -26,6 +26,6 @@ public class SonarJerseyCommonTest {
@Test
public void testUnitTest() {
- Assert.assertEquals("common unit test", new SonarJerseyCommon().unitTest());
+ Assertions.assertEquals("common unit test", new SonarJerseyCommon().unitTest());
}
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/Base64Test.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/Base64Test.java
index b083ad94aa1..2878f795ca5 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/Base64Test.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/Base64Test.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,10 +19,10 @@
import java.util.Arrays;
import java.util.Base64;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
*
@@ -64,21 +64,21 @@ public void testDecodeString() throws Exception {
public void testRoundtripLengthMod3Equals0() {
byte[] data = {0, 1, 2, 3, 4, 5, 6, 7, 8};
byte[] result = Base64.getDecoder().decode(Base64.getEncoder().encode(data));
- assertTrue("failed to roundtrip value to base64", Arrays.equals(data, result));
+ assertTrue(Arrays.equals(data, result), "failed to roundtrip value to base64");
}
@Test
public void testRoundtripLengthMod3Equals1() {
byte[] data = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
byte[] result = Base64.getDecoder().decode(Base64.getEncoder().encode(data));
- assertTrue("failed to roundtrip value to base64", Arrays.equals(data, result));
+ assertTrue(Arrays.equals(data, result), "failed to roundtrip value to base64");
}
@Test
public void testRoundtripLengthMod3Equals2() {
byte[] data = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
byte[] result = Base64.getDecoder().decode(Base64.getEncoder().encode(data));
- assertTrue("failed to roundtrip value to base64", Arrays.equals(data, result));
+ assertTrue(Arrays.equals(data, result), "failed to roundtrip value to base64");
}
@Test
@@ -125,9 +125,9 @@ public void testDecodeString2() {
+ "/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/w==";
byte[] result = Base64.getDecoder().decode(data.getBytes());
- assertEquals("incorrect length", result.length, 256);
+ assertEquals(256, result.length, "incorrect length");
for (int i = 0; i < 256; ++i) {
- assertEquals("incorrect value", result[i], (byte) i);
+ assertEquals((byte) i, result[i], "incorrect value");
}
}
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/JdkVersionCompareTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/JdkVersionCompareTest.java
index 423ab0a19bf..47781d5e7f1 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/JdkVersionCompareTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/JdkVersionCompareTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,9 +16,9 @@
package org.glassfish.jersey.internal.util;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
public class JdkVersionCompareTest {
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/JdkVersionParseTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/JdkVersionParseTest.java
index b0e8c4d0c6d..306a760d605 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/JdkVersionParseTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/JdkVersionParseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,48 +16,36 @@
package org.glassfish.jersey.internal.util;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
-import java.util.Arrays;
-import java.util.Collection;
+import java.util.stream.Stream;
-@RunWith(Parameterized.class)
public class JdkVersionParseTest {
- @Parameterized.Parameter
- public String rawVersionString;
- @Parameterized.Parameter(1)
- public int expectedMajorVersion;
- @Parameterized.Parameter(2)
- public int expectedMinorVersion;
- @Parameterized.Parameter(3)
- public int expectedMaintenanceVersion;
- @Parameterized.Parameter(4)
- public int expectedUpdateVersion;
-
- @Parameterized.Parameters
- public static Collection provideVersions() {
- return Arrays.asList(new Object[][]{
+ public static Stream provideVersions() {
+ return Stream.of(
// Java 8
- {"1.8.0_141-b15", 1, 8, 0, 141},
- {"1.8.0_141", 1, 8, 0, 141},
+ Arguments.of("1.8.0_141-b15", 1, 8, 0, 141),
+ Arguments.of("1.8.0_141", 1, 8, 0, 141),
// Java 9 and above
- {"9", 9, 0, 0, 0},
- {"9.0.3", 9, 0, 3, 0},
- {"11", 11, 0, 0, 0},
+ Arguments.of("9", 9, 0, 0, 0),
+ Arguments.of("9.0.3", 9, 0, 3, 0),
+ Arguments.of("11", 11, 0, 0, 0),
// malformed version
- {"invalid version", -1, -1, -1, -1}
- });
+ Arguments.of("invalid version", -1, -1, -1, -1)
+ );
}
- @Test
- public void testParseVersion() {
+ @ParameterizedTest
+ @MethodSource("provideVersions")
+ public void testParseVersion(String rawVersionString, int expectedMajorVersion, int expectedMinorVersion,
+ int expectedMaintenanceVersion, int expectedUpdateVersion) {
JdkVersion version = JdkVersion.parseVersion(rawVersionString);
assertEquals(expectedMajorVersion, version.getMajor());
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/JerseyPublisherTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/JerseyPublisherTest.java
index 659f9041f4f..e9516922be9 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/JerseyPublisherTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/JerseyPublisherTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,11 +27,11 @@
import org.glassfish.jersey.internal.jsr166.Flow;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test Jersey {@link Flow.Publisher} implementation, {@link JerseyPublisher}.
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/OsgiRegistryTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/OsgiRegistryTest.java
index fe3de0c1b99..f71f9b4f645 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/OsgiRegistryTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/OsgiRegistryTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,8 +18,8 @@
import org.glassfish.jersey.internal.OsgiRegistry;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Utility class {@ling OsgiRegistry} tests.
@@ -32,136 +32,136 @@ public class OsgiRegistryTest {
public void testWebInfClassesBundleEntryPathTranslation() {
String className = OsgiRegistry
.bundleEntryPathToClassName("org/glassfish/jersey", "/WEB-INF/classes/org/glassfish/jersey/Test.class");
- Assert.assertEquals("org.glassfish.jersey.Test", className);
+ Assertions.assertEquals("org.glassfish.jersey.Test", className);
}
@Test
public void testWebInfClassesBundleEntryPathTranslationPackageTrailingSlash() {
String className = OsgiRegistry
.bundleEntryPathToClassName("org/glassfish/jersey/", "/WEB-INF/classes/org/glassfish/jersey/Test.class");
- Assert.assertEquals("org.glassfish.jersey.Test", className);
+ Assertions.assertEquals("org.glassfish.jersey.Test", className);
}
@Test
public void testWebInfClassesBundleEntryPathTranslationPackageLeadingSlash() {
String className = OsgiRegistry
.bundleEntryPathToClassName("/org/glassfish/jersey", "/WEB-INF/classes/org/glassfish/jersey/Test.class");
- Assert.assertEquals("org.glassfish.jersey.Test", className);
+ Assertions.assertEquals("org.glassfish.jersey.Test", className);
}
@Test
public void testWebInfClassesBundleEntryPathTranslationBundleNoLeadingSlash() {
String className = OsgiRegistry
.bundleEntryPathToClassName("/org/glassfish/jersey", "WEB-INF/classes/org/glassfish/jersey/Test.class");
- Assert.assertEquals("org.glassfish.jersey.Test", className);
+ Assertions.assertEquals("org.glassfish.jersey.Test", className);
}
@Test
public void testOsgiInfClassesBundleEntryPathTranslation() {
String className = OsgiRegistry
.bundleEntryPathToClassName("/org/glassfish/jersey", "OSGI-INF/directory/org/glassfish/jersey/Test.class");
- Assert.assertEquals("org.glassfish.jersey.Test", className);
+ Assertions.assertEquals("org.glassfish.jersey.Test", className);
}
@Test
public void testBundleEntryPathTranslation() {
String className = OsgiRegistry.bundleEntryPathToClassName("/org/glassfish/jersey", "/org/glassfish/jersey/Test.class");
- Assert.assertEquals("org.glassfish.jersey.Test", className);
+ Assertions.assertEquals("org.glassfish.jersey.Test", className);
}
@Test
public void testBundleEntryPathTranslationBundleNoLeadingSlash() {
String className = OsgiRegistry.bundleEntryPathToClassName("/org/glassfish/jersey", "org/glassfish/jersey/Test.class");
- Assert.assertEquals("org.glassfish.jersey.Test", className);
+ Assertions.assertEquals("org.glassfish.jersey.Test", className);
}
@Test
public void testBundleEntryPathTranslationNotMatching() {
String className = OsgiRegistry.bundleEntryPathToClassName("/com/oracle", "org/glassfish/jersey/Test.class");
- Assert.assertEquals("com.oracle.Test", className);
+ Assertions.assertEquals("com.oracle.Test", className);
}
@Test
public void testWebInfClassesBundleEntryPathTranslationNotMatching() {
String className = OsgiRegistry
.bundleEntryPathToClassName("/com/oracle/", "/WEB-INF/classes/org/glassfish/jersey/Test.class");
- Assert.assertEquals("com.oracle.Test", className);
+ Assertions.assertEquals("com.oracle.Test", className);
}
@Test
public void testWebInfClassesBundleEntryPathTranslationNotMatching2() {
String className = OsgiRegistry.bundleEntryPathToClassName("com/oracle", "/org/glassfish/jersey/Test.class");
- Assert.assertEquals("com.oracle.Test", className);
+ Assertions.assertEquals("com.oracle.Test", className);
}
@Test
public void testRootBundleEntryPathTranslation() {
String className = OsgiRegistry.bundleEntryPathToClassName("/", "/org/glassfish/jersey/Test.class");
- Assert.assertEquals("org.glassfish.jersey.Test", className);
+ Assertions.assertEquals("org.glassfish.jersey.Test", className);
}
@Test
public void testRootBundleEntryPathTranslationNoLeadingSlash() {
String className = OsgiRegistry.bundleEntryPathToClassName("/", "org/glassfish/jersey/Test.class");
- Assert.assertEquals("org.glassfish.jersey.Test", className);
+ Assertions.assertEquals("org.glassfish.jersey.Test", className);
}
@Test
public void testRootWebInfClassesBundleEntryPathTranslationNoLeadingSlash() {
String className = OsgiRegistry.bundleEntryPathToClassName("/", "/WEB-INF/classes/org/glassfish/jersey/Test.class");
- Assert.assertEquals("org.glassfish.jersey.Test", className);
+ Assertions.assertEquals("org.glassfish.jersey.Test", className);
}
@Test
public void testDotClassInPackageName() {
String className = OsgiRegistry.bundleEntryPathToClassName("/", "com/classification/Test");
- Assert.assertEquals("com.classification.Test", className);
+ Assertions.assertEquals("com.classification.Test", className);
}
@Test
public void testRootWebInfClassesBundleEntryPathEsTranslation() {
String className = OsgiRegistry.bundleEntryPathToClassName("es", "/WEB-INF/classes/es/a/Test.class");
- Assert.assertEquals("es.a.Test", className);
+ Assertions.assertEquals("es.a.Test", className);
}
@Test
public void testIsTopLevelEntry() {
- Assert.assertTrue(OsgiRegistry.isPackageLevelEntry("a", "/a/Foo.class"));
+ Assertions.assertTrue(OsgiRegistry.isPackageLevelEntry("a", "/a/Foo.class"));
}
@Test
public void testIsTopLevelEntrySequenceRepeats() {
- Assert.assertFalse(OsgiRegistry.isPackageLevelEntry("o", "/a/Foo.class"));
+ Assertions.assertFalse(OsgiRegistry.isPackageLevelEntry("o", "/a/Foo.class"));
}
@Test
public void testIsTopLevelEntryNoSlash() {
- Assert.assertTrue(OsgiRegistry.isPackageLevelEntry("a", "a/Foo.class"));
+ Assertions.assertTrue(OsgiRegistry.isPackageLevelEntry("a", "a/Foo.class"));
}
@Test
public void testIsTopLevelEntrySequenceRepeatsNoSlash() {
- Assert.assertFalse(OsgiRegistry.isPackageLevelEntry("o", "a/Foo.class"));
+ Assertions.assertFalse(OsgiRegistry.isPackageLevelEntry("o", "a/Foo.class"));
}
@Test
public void testIsTopLevelEntrySlash() {
- Assert.assertTrue(OsgiRegistry.isPackageLevelEntry("a/", "/a/Foo.class"));
+ Assertions.assertTrue(OsgiRegistry.isPackageLevelEntry("a/", "/a/Foo.class"));
}
@Test
public void testIsTopLevelEntrySequenceRepeatsSlash() {
- Assert.assertFalse(OsgiRegistry.isPackageLevelEntry("o/", "/a/Foo.class"));
+ Assertions.assertFalse(OsgiRegistry.isPackageLevelEntry("o/", "/a/Foo.class"));
}
@Test
public void testIsTopLevelEntryRoot() {
- Assert.assertTrue(OsgiRegistry.isPackageLevelEntry("/", "/Foo.class"));
+ Assertions.assertTrue(OsgiRegistry.isPackageLevelEntry("/", "/Foo.class"));
}
@Test
public void testIsTopLevelEntryRootFalse() {
- Assert.assertFalse(OsgiRegistry.isPackageLevelEntry("/", "/a/Foo.class"));
+ Assertions.assertFalse(OsgiRegistry.isPackageLevelEntry("/", "/a/Foo.class"));
}
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/PropertiesHelperTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/PropertiesHelperTest.java
index 1b319a8afb9..68f6aac7d48 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/PropertiesHelperTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/PropertiesHelperTest.java
@@ -21,9 +21,9 @@
import javax.ws.rs.RuntimeType;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* @author Miroslav Fuksa
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/ReflectionHelperTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/ReflectionHelperTest.java
index edeef20c6de..8074527e14b 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/ReflectionHelperTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/ReflectionHelperTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,13 +21,14 @@
import java.security.AccessController;
import java.security.PrivilegedAction;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* {@code ReflectionHelper} unit tests.
@@ -64,29 +65,36 @@ public void getParameterizedClassArgumentsTest() {
assertEquals(aClass, arguments[0]);
}
- @Test(expected = AccessControlException.class)
+ @Test
public void securityManagerSetContextClassLoader() throws Exception {
- final ClassLoader loader = ReflectionHelper.class.getClassLoader();
+ assertThrows(AccessControlException.class, () -> {
+ final ClassLoader loader = ReflectionHelper.class.getClassLoader();
- Thread.currentThread().setContextClassLoader(loader);
- fail("It should not be possible to set context class loader from unprivileged block");
+ Thread.currentThread().setContextClassLoader(loader);
+ fail("It should not be possible to set context class loader from unprivileged block");
+ });
}
- @Test(expected = AccessControlException.class)
+ @Test
public void securityManagerSetContextClassLoaderPA() throws Exception {
- final ClassLoader loader = ReflectionHelper.class.getClassLoader();
+ assertThrows(AccessControlException.class, () -> {
+ final ClassLoader loader = ReflectionHelper.class.getClassLoader();
- ReflectionHelper.setContextClassLoaderPA(loader).run();
- fail("It should not be possible to set context class loader from unprivileged block even via Jersey ReflectionHelper");
+ ReflectionHelper.setContextClassLoaderPA(loader).run();
+ fail("It should not be possible to set context class loader "
+ + "from unprivileged block even via Jersey ReflectionHelper");
+ });
}
- @Test(expected = AccessControlException.class)
+ @Test
public void securityManagerSetContextClassLoaderInDoPrivileged() throws Exception {
- final ClassLoader loader = ReflectionHelper.class.getClassLoader();
+ assertThrows(AccessControlException.class, () -> {
+ final ClassLoader loader = ReflectionHelper.class.getClassLoader();
- AccessController.doPrivileged(ReflectionHelper.setContextClassLoaderPA(loader));
- fail("It should not be possible to set context class loader even from privileged block via Jersey ReflectionHelper "
+ AccessController.doPrivileged(ReflectionHelper.setContextClassLoaderPA(loader));
+ fail("It should not be possible to set context class loader even from privileged block via Jersey ReflectionHelper "
+ "utility");
+ });
}
public static class FromStringClass {
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/TokenizerTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/TokenizerTest.java
index 02ba36a7b7d..d0f51fd573b 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/TokenizerTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/TokenizerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,8 +16,8 @@
package org.glassfish.jersey.internal.util;
-import org.junit.Test;
-import static org.junit.Assert.assertArrayEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
/**
* Tokenizer utility unit test.
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/AbstractKeyComparatorHashMapTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/AbstractKeyComparatorHashMapTest.java
index fa008dd6cde..6faf736e4b6 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/AbstractKeyComparatorHashMapTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/AbstractKeyComparatorHashMapTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,9 +16,9 @@
package org.glassfish.jersey.internal.util.collection;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
*
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/ByteBufferInputStreamTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/ByteBufferInputStreamTest.java
index b5fbeba35d7..6890b022466 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/ByteBufferInputStreamTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/ByteBufferInputStreamTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,13 +27,13 @@
import org.glassfish.jersey.internal.LocalizationMessages;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* {@link ByteBufferInputStream} unit tests.
@@ -200,14 +200,14 @@ public void run() {
Thread.yield(); // Give the other thread a chance to run.
continue;
}
- assertEquals("At position: " + j, (byte) (i & 0xFF), (byte) (c & 0xFF));
+ assertEquals((byte) (i & 0xFF), (byte) (c & 0xFF), "At position: " + j);
if (++j % BUFFER_SIZE == 0) {
i++;
Thread.yield(); // Give the other thread a chance to run.
}
}
- assertEquals("Number of bytes produced and bytes read does not match.", ROUNDS * BUFFER_SIZE, j);
+ assertEquals(ROUNDS * BUFFER_SIZE, j, "Number of bytes produced and bytes read does not match.");
} finally {
executor.shutdownNow();
bbis.close();
@@ -272,7 +272,7 @@ public void run() {
continue;
}
for (int p = 0; p < c; p++) {
- assertEquals("At position: " + j, (byte) (i & 0xFF), (byte) buffer[p]);
+ assertEquals((byte) (i & 0xFF), (byte) buffer[p], "At position: " + j);
if (++j % BUFFER_SIZE == 0) {
i++;
Thread.yield(); // Give the other thread a chance to run.
@@ -280,7 +280,7 @@ public void run() {
}
}
- assertEquals("Number of bytes produced and bytes read does not match.", ROUNDS * BUFFER_SIZE, j);
+ assertEquals(ROUNDS * BUFFER_SIZE, j, "Number of bytes produced and bytes read does not match.");
} finally {
executor.shutdownNow();
bbis.close();
@@ -338,16 +338,16 @@ public void run() {
int j = 0;
int c;
while ((c = bbis.read()) != -1) {
- assertNotEquals("Should not read 'nothing' in blocking mode.", Integer.MIN_VALUE, c);
+ assertNotEquals(Integer.MIN_VALUE, c, "Should not read 'nothing' in blocking mode.");
- assertEquals("At position: " + j, (byte) (i & 0xFF), (byte) c);
+ assertEquals((byte) (i & 0xFF), (byte) c, "At position: " + j);
if (++j % BUFFER_SIZE == 0) {
i++;
Thread.yield(); // Give the other thread a chance to run.
}
}
- assertEquals("Number of bytes produced and bytes read does not match.", ROUNDS * BUFFER_SIZE, j);
+ assertEquals(ROUNDS * BUFFER_SIZE, j, "Number of bytes produced and bytes read does not match.");
} finally {
executor.shutdownNow();
bbis.close();
@@ -406,10 +406,10 @@ public void run() {
int c;
byte[] buffer = new byte[443];
while ((c = bbis.read(buffer)) != -1) {
- assertNotEquals("Should not read 0 bytes in blocking mode.", 0, c);
+ assertNotEquals(0, c, "Should not read 0 bytes in blocking mode.");
for (int p = 0; p < c; p++) {
- assertEquals("At position: " + j, (byte) (i & 0xFF), buffer[p]);
+ assertEquals((byte) (i & 0xFF), buffer[p], "At position: " + j);
if (++j % BUFFER_SIZE == 0) {
i++;
Thread.yield(); // Give the other thread a chance to run.
@@ -417,7 +417,7 @@ public void run() {
}
}
- assertEquals("Number of bytes produced and bytes read does not match.", ROUNDS * BUFFER_SIZE, j);
+ assertEquals(ROUNDS * BUFFER_SIZE, j, "Number of bytes produced and bytes read does not match.");
} finally {
executor.shutdownNow();
bbis.close();
@@ -446,7 +446,7 @@ public void testAvailable() throws Exception {
data.flip();
bbis.put(data);
- assertEquals("Available bytes", BUFFER_SIZE, bbis.available());
+ assertEquals(BUFFER_SIZE, bbis.available(), "Available bytes");
data = ByteBuffer.allocate(BUFFER_SIZE);
data.clear();
@@ -456,27 +456,27 @@ public void testAvailable() throws Exception {
data.flip();
bbis.put(data);
- assertEquals("Available bytes", 2 * BUFFER_SIZE, bbis.available());
+ assertEquals(2 * BUFFER_SIZE, bbis.available(), "Available bytes");
int c = bbis.read();
- assertEquals("Byte read", 'A', c);
- assertEquals("Available bytes", 2 * BUFFER_SIZE - 1, bbis.available());
+ assertEquals('A', c, "Byte read");
+ assertEquals(2 * BUFFER_SIZE - 1, bbis.available(), "Available bytes");
byte[] buff = new byte[199];
int l = bbis.read(buff);
- assertEquals("Number of bytes read", buff.length, l);
- assertEquals("Available bytes", 2 * BUFFER_SIZE - 200, bbis.available());
+ assertEquals(buff.length, l, "Number of bytes read");
+ assertEquals(2 * BUFFER_SIZE - 200, bbis.available(), "Available bytes");
buff = new byte[1000];
l = bbis.read(buff);
- assertEquals("Number of bytes read", buff.length, l);
- assertEquals("Available bytes", 2 * BUFFER_SIZE - 1200, bbis.available());
+ assertEquals(buff.length, l, "Number of bytes read");
+ assertEquals(2 * BUFFER_SIZE - 1200, bbis.available(), "Available bytes");
bbis.closeQueue();
l = bbis.read(buff);
- assertEquals("Number of bytes read", 2 * BUFFER_SIZE - 1200, l);
- assertEquals("Available bytes", 0, bbis.available());
+ assertEquals(2 * BUFFER_SIZE - 1200, l, "Number of bytes read");
+ assertEquals(0, bbis.available(), "Available bytes");
bbis.close();
}
@@ -557,8 +557,8 @@ private void testAction(Task task, String exMsg, boolean retryFailOnClosed) thro
task.run();
fail("IOException expected.");
} catch (IOException ex) {
- assertNotNull("Custom exception cause", ex.getCause());
- assertEquals("Custom exception cause message", exMsg, ex.getCause().getMessage());
+ assertNotNull(ex.getCause(), "Custom exception cause");
+ assertEquals(exMsg, ex.getCause().getMessage(), "Custom exception cause message");
}
if (retryFailOnClosed) {
@@ -566,8 +566,8 @@ private void testAction(Task task, String exMsg, boolean retryFailOnClosed) thro
task.run();
fail("IOException expected.");
} catch (IOException ex) {
- assertEquals("Closed IOException message", LocalizationMessages.INPUT_STREAM_CLOSED(), ex.getMessage());
- assertNull("Closed IOException cause", ex.getCause());
+ assertEquals(LocalizationMessages.INPUT_STREAM_CLOSED(), ex.getMessage(), "Closed IOException message");
+ assertNull(ex.getCause(), "Closed IOException cause");
}
} else {
task.run();
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/KeyComparatorHashMapTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/KeyComparatorHashMapTest.java
index 9d71c1dc9cc..fcafac578a4 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/KeyComparatorHashMapTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/KeyComparatorHashMapTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,7 +16,7 @@
package org.glassfish.jersey.internal.util.collection;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
*
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/KeyComparatorLinkedHashMapTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/KeyComparatorLinkedHashMapTest.java
index 48000b0edd5..9e8ec188e92 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/KeyComparatorLinkedHashMapTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/KeyComparatorLinkedHashMapTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,7 +16,7 @@
package org.glassfish.jersey.internal.util.collection;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
* @author Paul Sandoz
diff --git a/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/ViewsTest.java b/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/ViewsTest.java
index 11bb457c29d..c7be09dfddb 100644
--- a/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/ViewsTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/internal/util/collection/ViewsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,10 +24,10 @@
import java.util.Map;
import java.util.Set;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Pavel Bucek
diff --git a/core-common/src/test/java/org/glassfish/jersey/logging/HasEntityTimeoutTest.java b/core-common/src/test/java/org/glassfish/jersey/logging/HasEntityTimeoutTest.java
index 35459f94221..e1886d46ac1 100644
--- a/core-common/src/test/java/org/glassfish/jersey/logging/HasEntityTimeoutTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/logging/HasEntityTimeoutTest.java
@@ -24,7 +24,7 @@
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedHashMap;
import javax.ws.rs.core.UriInfo;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
diff --git a/core-common/src/test/java/org/glassfish/jersey/logging/LoggingInterceptorTest.java b/core-common/src/test/java/org/glassfish/jersey/logging/LoggingInterceptorTest.java
index 9034406c14d..abd4d548779 100644
--- a/core-common/src/test/java/org/glassfish/jersey/logging/LoggingInterceptorTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/logging/LoggingInterceptorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,13 +25,13 @@
import java.util.Arrays;
import java.util.Random;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.glassfish.jersey.logging.LoggingFeature.Verbosity.HEADERS_ONLY;
import static org.glassfish.jersey.logging.LoggingFeature.Verbosity.PAYLOAD_ANY;
import static org.glassfish.jersey.logging.LoggingFeature.Verbosity.PAYLOAD_TEXT;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.mock;
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/AbstractEncodingTest.java b/core-common/src/test/java/org/glassfish/jersey/message/AbstractEncodingTest.java
index 11a3a977ab2..161b9b192f7 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/AbstractEncodingTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/AbstractEncodingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,8 +22,8 @@
import java.io.InputStream;
import java.io.OutputStream;
-import static org.junit.Assert.assertArrayEquals;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Super class for encoding tests - contains convenient way of defining the test by simply providing the encoding and
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/DeflateEncodingTest.java b/core-common/src/test/java/org/glassfish/jersey/message/DeflateEncodingTest.java
index 3d14861c220..dfeabe606d7 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/DeflateEncodingTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/DeflateEncodingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -35,7 +35,7 @@
import javax.inject.Provider;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
* @author Martin Matula
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/GZipEncodingTest.java b/core-common/src/test/java/org/glassfish/jersey/message/GZipEncodingTest.java
index 43d81bc643d..d453668a54c 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/GZipEncodingTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/GZipEncodingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,7 +22,7 @@
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
* @author Martin Matula
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/internal/DateProviderTest.java b/core-common/src/test/java/org/glassfish/jersey/message/internal/DateProviderTest.java
index 9c5a132c6ce..052ab284b07 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/internal/DateProviderTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/internal/DateProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,11 +16,11 @@
package org.glassfish.jersey.message.internal;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import java.util.Date;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Libor Kramolis
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/internal/FormMultivaluedMapProviderTest.java b/core-common/src/test/java/org/glassfish/jersey/message/internal/FormMultivaluedMapProviderTest.java
index efbfa84ff7b..695fd4ffe2f 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/internal/FormMultivaluedMapProviderTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/internal/FormMultivaluedMapProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,10 +27,10 @@
import javax.ws.rs.core.MultivaluedHashMap;
import javax.ws.rs.core.MultivaluedMap;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.assertNull;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* {@link FormProvider} unit tests
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/internal/FormProviderTest.java b/core-common/src/test/java/org/glassfish/jersey/message/internal/FormProviderTest.java
index 79c5675671d..5dcc075d38b 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/internal/FormProviderTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/internal/FormProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,10 +27,10 @@
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.assertNull;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* {@link FormProvider} unit tests
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/internal/LanguageTagTest.java b/core-common/src/test/java/org/glassfish/jersey/message/internal/LanguageTagTest.java
index f8be76924b2..bb82964d7d2 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/internal/LanguageTagTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/internal/LanguageTagTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,11 +18,12 @@
import java.util.Locale;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalToIgnoringCase;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests for {@link LanguageTag} class.
@@ -38,9 +39,9 @@ public void testLanguageCountry() throws Exception {
_test("CZ", "cs");
}
- @Test(expected = IllegalArgumentException.class)
+ @Test
public void testLanguageCountryInvalid() throws Exception {
- _test("en", "gbgbgbgbgb");
+ assertThrows(IllegalArgumentException.class, () -> _test("en", "gbgbgbgbgb"));
}
@Test
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/internal/MessageBodyFactoryTest.java b/core-common/src/test/java/org/glassfish/jersey/message/internal/MessageBodyFactoryTest.java
index c6ff32ce1f2..5cc89dde980 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/internal/MessageBodyFactoryTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/internal/MessageBodyFactoryTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,10 +27,10 @@
import org.glassfish.jersey.message.WriterModel;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
import static org.glassfish.jersey.message.internal.MessageBodyFactory.WORKER_BY_TYPE_COMPARATOR;
@@ -46,9 +46,9 @@ public void testWorkerByTypeComparatorContract() {
for (WriterModel a : list) {
for (WriterModel b : list) {
assertEquals(
- "Comparator breaks contract: compare(a, b) != -compare(b, a)",
-Integer.signum(WORKER_BY_TYPE_COMPARATOR.compare(a, b)),
- Integer.signum(WORKER_BY_TYPE_COMPARATOR.compare(b, a)));
+ Integer.signum(WORKER_BY_TYPE_COMPARATOR.compare(b, a)),
+ "Comparator breaks contract: compare(a, b) != -compare(b, a)");
for (WriterModel c : list) {
if (WORKER_BY_TYPE_COMPARATOR.compare(a, b) > 0
@@ -59,9 +59,9 @@ public void testWorkerByTypeComparatorContract() {
if (WORKER_BY_TYPE_COMPARATOR.compare(a, b) == 0) {
assertEquals(
- "Comparator breaks contract: a == b but a < c and b > c or vice versa",
Integer.signum(WORKER_BY_TYPE_COMPARATOR.compare(a, c)),
- Integer.signum(WORKER_BY_TYPE_COMPARATOR.compare(b, c)));
+ Integer.signum(WORKER_BY_TYPE_COMPARATOR.compare(b, c)),
+ "Comparator breaks contract: a == b but a < c and b > c or vice versa");
}
}
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/internal/QualityTest.java b/core-common/src/test/java/org/glassfish/jersey/message/internal/QualityTest.java
index 1856c92f1b1..3cf9bac3de3 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/internal/QualityTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/internal/QualityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,95 +16,85 @@
package org.glassfish.jersey.message.internal;
+import static org.hamcrest.CoreMatchers.equalTo;
+import static org.hamcrest.MatcherAssert.assertThat;
+
import java.text.ParseException;
-import java.util.Arrays;
import java.util.Collections;
import java.util.Locale;
import java.util.Map;
+import java.util.stream.Stream;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
-import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertThat;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
/**
* Quality unit tests.
*
* @author Marek Potociar
*/
-@RunWith(Parameterized.class)
public class QualityTest {
private static final Locale ORIGINAL_LOCALE = Locale.getDefault();
- @Parameterized.Parameters(name = "{0}")
- public static Iterable data() {
- return Arrays.asList(new Object[][]{{Locale.US}, {Locale.GERMANY}});
- }
-
- @Parameterized.Parameter(0)
- public Locale locale;
-
- @Before
- public void setUp() throws Exception {
- Locale.setDefault(locale);
- }
-
- @After
- public void tearDown() throws Exception {
- Locale.setDefault(ORIGINAL_LOCALE);
+ public static Stream data() {
+ return Stream.of(Arguments.of(Locale.US), Arguments.of(Locale.GERMANY));
}
/**
* Test enhancing HTT header parameter map with a quality parameter.
*/
- @Test
- public void testEnhanceWithQualityParameter() {
- Map result;
+ @ParameterizedTest
+ @MethodSource("data")
+ public void testEnhanceWithQualityParameter(Locale locale) {
+ try {
+ Locale.setDefault(locale);
+ Map result;
- result = Quality.enhanceWithQualityParameter(null, "q", 1000);
- assertThat(result, equalTo(null));
+ result = Quality.enhanceWithQualityParameter(null, "q", 1000);
+ assertThat(result, equalTo(null));
- result = Quality.enhanceWithQualityParameter(null, "q", 200);
- assertThat(result, equalTo(asMap("q=0.2")));
+ result = Quality.enhanceWithQualityParameter(null, "q", 200);
+ assertThat(result, equalTo(asMap("q=0.2")));
- result = Quality.enhanceWithQualityParameter(null, "q", 220);
- assertThat(result, equalTo(asMap("q=0.22")));
+ result = Quality.enhanceWithQualityParameter(null, "q", 220);
+ assertThat(result, equalTo(asMap("q=0.22")));
- result = Quality.enhanceWithQualityParameter(null, "q", 222);
- assertThat(result, equalTo(asMap("q=0.222")));
+ result = Quality.enhanceWithQualityParameter(null, "q", 222);
+ assertThat(result, equalTo(asMap("q=0.222")));
- Map parameters;
+ Map parameters;
- parameters = asMap("a=b");
- result = Quality.enhanceWithQualityParameter(parameters, "q", 1000);
- assertThat(result, equalTo(parameters));
+ parameters = asMap("a=b");
+ result = Quality.enhanceWithQualityParameter(parameters, "q", 1000);
+ assertThat(result, equalTo(parameters));
- result = Quality.enhanceWithQualityParameter(parameters, "q", 200);
- assertThat(result, equalTo(asMap("a=b;q=0.2")));
+ result = Quality.enhanceWithQualityParameter(parameters, "q", 200);
+ assertThat(result, equalTo(asMap("a=b;q=0.2")));
- result = Quality.enhanceWithQualityParameter(parameters, "q", 220);
- assertThat(result, equalTo(asMap("a=b;q=0.22")));
+ result = Quality.enhanceWithQualityParameter(parameters, "q", 220);
+ assertThat(result, equalTo(asMap("a=b;q=0.22")));
- result = Quality.enhanceWithQualityParameter(parameters, "q", 222);
- assertThat(result, equalTo(asMap("a=b;q=0.222")));
+ result = Quality.enhanceWithQualityParameter(parameters, "q", 222);
+ assertThat(result, equalTo(asMap("a=b;q=0.222")));
- // test quality parameter override
- parameters = asMap("a=b;q=0.3");
- result = Quality.enhanceWithQualityParameter(parameters, "q", 1000);
- assertThat(result, equalTo(asMap("a=b;q=1.0")));
+ // test quality parameter override
+ parameters = asMap("a=b;q=0.3");
+ result = Quality.enhanceWithQualityParameter(parameters, "q", 1000);
+ assertThat(result, equalTo(asMap("a=b;q=1.0")));
- result = Quality.enhanceWithQualityParameter(parameters, "q", 200);
- assertThat(result, equalTo(asMap("a=b;q=0.2")));
+ result = Quality.enhanceWithQualityParameter(parameters, "q", 200);
+ assertThat(result, equalTo(asMap("a=b;q=0.2")));
- result = Quality.enhanceWithQualityParameter(parameters, "q", 220);
- assertThat(result, equalTo(asMap("a=b;q=0.22")));
+ result = Quality.enhanceWithQualityParameter(parameters, "q", 220);
+ assertThat(result, equalTo(asMap("a=b;q=0.22")));
- result = Quality.enhanceWithQualityParameter(parameters, "q", 222);
- assertThat(result, equalTo(asMap("a=b;q=0.222")));
+ result = Quality.enhanceWithQualityParameter(parameters, "q", 222);
+ assertThat(result, equalTo(asMap("a=b;q=0.222")));
+ } finally {
+ Locale.setDefault(ORIGINAL_LOCALE);
+ }
}
/**
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/internal/ResponseTest.java b/core-common/src/test/java/org/glassfish/jersey/message/internal/ResponseTest.java
index ba7e6bd7dbb..d43c4f663be 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/internal/ResponseTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/internal/ResponseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,10 +21,10 @@
import javax.ws.rs.core.Response.Status.Family;
import javax.ws.rs.core.Response.StatusType;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**
*
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/internal/StringBuilderUtilsTest.java b/core-common/src/test/java/org/glassfish/jersey/message/internal/StringBuilderUtilsTest.java
index 0b1627d4083..dc9fc0290ae 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/internal/StringBuilderUtilsTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/internal/StringBuilderUtilsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,10 +16,10 @@
package org.glassfish.jersey.message.internal;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
@@ -30,11 +30,11 @@ public class StringBuilderUtilsTest {
public StringBuilderUtilsTest() {
}
- @BeforeClass
+ @BeforeAll
public static void setUpClass() throws Exception {
}
- @AfterClass
+ @AfterAll
public static void tearDownClass() throws Exception {
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/internal/UtilsTest.java b/core-common/src/test/java/org/glassfish/jersey/message/internal/UtilsTest.java
index e6baf4c4041..55976fe629a 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/internal/UtilsTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/internal/UtilsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,8 +16,8 @@
package org.glassfish.jersey.message.internal;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import java.io.BufferedOutputStream;
import java.io.ByteArrayInputStream;
@@ -39,7 +39,7 @@ public void createTempFile() throws IOException {
} finally {
stream.close();
}
- Assert.assertTrue(file.exists());
+ Assertions.assertTrue(file.exists());
}
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/message/internal/VariantListBuilderTest.java b/core-common/src/test/java/org/glassfish/jersey/message/internal/VariantListBuilderTest.java
index 06032e91ec7..7fb708c7dd8 100644
--- a/core-common/src/test/java/org/glassfish/jersey/message/internal/VariantListBuilderTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/message/internal/VariantListBuilderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,9 +22,9 @@
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Variant;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* TODO: javadoc.
diff --git a/core-common/src/test/java/org/glassfish/jersey/process/internal/RankedComparatorTest.java b/core-common/src/test/java/org/glassfish/jersey/process/internal/RankedComparatorTest.java
index 53cf7b6150e..78df231d306 100644
--- a/core-common/src/test/java/org/glassfish/jersey/process/internal/RankedComparatorTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/process/internal/RankedComparatorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,8 +25,8 @@
import org.glassfish.jersey.model.internal.RankedComparator;
import org.glassfish.jersey.model.internal.RankedProvider;
-import org.junit.Test;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests {@link org.glassfish.jersey.model.internal.RankedComparator}.
diff --git a/core-common/src/test/java/org/glassfish/jersey/uri/PathPatternTest.java b/core-common/src/test/java/org/glassfish/jersey/uri/PathPatternTest.java
index e876ae2c020..460db0e989b 100644
--- a/core-common/src/test/java/org/glassfish/jersey/uri/PathPatternTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/uri/PathPatternTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,11 +18,10 @@
import java.util.regex.MatchResult;
-import org.junit.Assert;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* Tests {@link PathTemplate}.
@@ -61,12 +60,12 @@ public void testTerminalPathPatterMatching() {
for (PathPattern pattern : patterns) {
matchResult = pattern.match(rhp);
- assertNotNull("No match of " + rhp + " for pattern " + pattern, matchResult);
+ assertNotNull(matchResult, "No match of " + rhp + " for pattern " + pattern);
rhp = matchResult.group(matchResult.groupCount());
rhp = (rhp == null) ? "" : rhp;
}
- Assert.assertEquals("", rhp);
+ assertEquals("", rhp);
rhp = path2;
@@ -89,8 +88,8 @@ public void testSimplePattern() throws Exception {
public void testSimplePatternWithRightHandSide() throws Exception {
PathPattern pattern = new PathPattern(new PathTemplate("/test/{template: abc.*}"));
- assertNull("Why matched?", pattern.match("/test/me"));
- assertNotNull("Why not matched?", pattern.match("/test/abc-should_work"));
+ assertNull(pattern.match("/test/me"), "Why matched?");
+ assertNotNull(pattern.match("/test/abc-should_work"), "Why not matched?");
}
@Test
@@ -98,9 +97,9 @@ public void testSetsAndGetsUriTemplate() throws Exception {
PathTemplate tmpl = new PathTemplate("/test");
PathPattern pattern = new PathPattern(tmpl);
assertEquals(
- "We just injected the value, why it is different?",
tmpl,
- pattern.getTemplate()
+ pattern.getTemplate(),
+ "We just injected the value, why it is different?"
);
}
@@ -113,9 +112,9 @@ public void testLastElementOfMatchIsRestOfPath() throws Exception {
String value = m.group(m.groupCount());
assertEquals(
- "Last value should match all of the trailing part",
"/d",
- value
+ value,
+ "Last value should match all of the trailing part"
);
}
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/uri/UriComponentTest.java b/core-common/src/test/java/org/glassfish/jersey/uri/UriComponentTest.java
index 8e26e491e6c..a98f8ae7233 100644
--- a/core-common/src/test/java/org/glassfish/jersey/uri/UriComponentTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/uri/UriComponentTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,9 +21,9 @@
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.core.PathSegment;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Unit test for {@link UriComponent} class.
diff --git a/core-common/src/test/java/org/glassfish/jersey/uri/UriTemplateTest.java b/core-common/src/test/java/org/glassfish/jersey/uri/UriTemplateTest.java
index e696602ff65..78265063790 100644
--- a/core-common/src/test/java/org/glassfish/jersey/uri/UriTemplateTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/uri/UriTemplateTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,12 +28,12 @@
import org.glassfish.jersey.uri.internal.UriTemplateParser;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Taken from Jersey 1: jersey-tests: com.sun.jersey.impl.uri.UriTemplateTest
@@ -475,15 +475,15 @@ public void testSingleQueryParameter() throws Exception {
tmpl.match("/test?query=x", result);
assertEquals(
- "incorrect size for match string",
1,
- result.size()
+ result.size(),
+ "incorrect size for match string"
);
assertEquals(
- "query parameter is not matched",
"x",
- result.get("query")
+ result.get("query"),
+ "query parameter is not matched"
);
}
@@ -498,20 +498,20 @@ public void testDoubleQueryParameter() throws Exception {
tmpl.match("/test?query=x&secondQuery=y", result);
assertEquals(
- "incorrect size for match string",
2,
- result.size()
+ result.size(),
+ "incorrect size for match string"
);
assertEquals(
- "query parameter is not matched",
"x",
- result.get("query")
+ result.get("query"),
+ "query parameter is not matched"
);
assertEquals(
- "query parameter is not matched",
"y",
- result.get("secondQuery")
+ result.get("secondQuery"),
+ "query parameter is not matched"
);
}
@@ -524,9 +524,9 @@ public void testSettingQueryParameter() throws Exception {
final String uri = tmpl.createURI(values);
assertEquals(
- "query string is not set",
"/test?query=example",
- uri
+ uri,
+ "query string is not set"
);
}
@@ -540,9 +540,9 @@ public void testSettingTwoQueryParameter() throws Exception {
final String uri = tmpl.createURI(values);
assertEquals(
- "query string is not set",
"/test?query=example&other=otherExample",
- uri
+ uri,
+ "query string is not set"
);
}
@@ -555,9 +555,9 @@ public void testNotSettingQueryParameter() throws Exception {
final String uri = tmpl.createURI(values);
assertEquals(
- "query string is set",
"/test",
- uri
+ uri,
+ "query string is set"
);
}
@@ -571,9 +571,9 @@ public void testSettingMatrixParameter() throws Exception {
final String uri = tmpl.createURI(values);
assertEquals(
- "query string is not set",
"/test;matrix=example/other",
- uri
+ uri,
+ "query string is not set"
);
}
@@ -588,9 +588,9 @@ public void testSettingTwoMatrixParameter() throws Exception {
final String uri = tmpl.createURI(values);
assertEquals(
- "query string is not set",
"/test;matrix=example;other=otherExample/other",
- uri
+ uri,
+ "query string is not set"
);
}
@@ -605,9 +605,9 @@ public void testSettingTwoSeperatedMatrixParameter() throws Exception {
final String uri = tmpl.createURI(values);
assertEquals(
- "query string is not set",
"/test;matrix=example/other;other=otherExample",
- uri
+ uri,
+ "query string is not set"
);
}
@@ -619,9 +619,9 @@ public void testNotSettingMatrixParameter() throws Exception {
final String uri = tmpl.createURI(values);
assertEquals(
- "query string is set",
"/test/other",
- uri
+ uri,
+ "query string is set"
);
}
@@ -700,17 +700,17 @@ public void testRfc6570QueryTemplateExamples() {
private void assertEncodedQueryTemplateExpansion(final String expectedExpansion,
final String queryTemplate,
final Object... values) {
- assertEquals("Unexpected encoded query template expansion result.",
- expectedExpansion,
- UriTemplate.createURI(null, null, null, null, null, null, queryTemplate, null, values, true, false));
+ assertEquals(expectedExpansion,
+ UriTemplate.createURI(null, null, null, null, null, null, queryTemplate, null, values, true, false),
+ "Unexpected encoded query template expansion result.");
}
private void assertEncodedQueryTemplateExpansion(final String expectedExpansion,
final String queryTemplate,
final Map values) {
- assertEquals("Unexpected encoded query template expansion result.",
- expectedExpansion,
- UriTemplate.createURI(null, null, null, null, null, null, queryTemplate, null, values, true, false));
+ assertEquals(expectedExpansion,
+ UriTemplate.createURI(null, null, null, null, null, null, queryTemplate, null, values, true, false),
+ "Unexpected encoded query template expansion result.");
}
@Test
@@ -753,16 +753,16 @@ public void testRfc6570MatrixTemplateExamples() {
private void assertEncodedPathTemplateExpansion(final String expectedExpansion,
final String pathTemplate,
final Object... values) {
- assertEquals("Unexpected encoded matrix parameter template expansion result.",
- expectedExpansion,
- UriTemplate.createURI(null, null, null, null, null, pathTemplate, null, null, values, true, false));
+ assertEquals(expectedExpansion,
+ UriTemplate.createURI(null, null, null, null, null, pathTemplate, null, null, values, true, false),
+ "Unexpected encoded matrix parameter template expansion result.");
}
private void assertEncodedPathTemplateExpansion(final String expectedExpansion,
final String pathTemplate,
final Map values) {
- assertEquals("Unexpected encoded matrix parameter template expansion result.",
- expectedExpansion,
- UriTemplate.createURI(null, null, null, null, null, pathTemplate, null, null, values, true, false));
+ assertEquals(expectedExpansion,
+ UriTemplate.createURI(null, null, null, null, null, pathTemplate, null, null, values, true, false),
+ "Unexpected encoded matrix parameter template expansion result.");
}
}
diff --git a/core-common/src/test/java/org/glassfish/jersey/uri/internal/PathTemplateTest.java b/core-common/src/test/java/org/glassfish/jersey/uri/internal/PathTemplateTest.java
index 4822e4a709e..ec9bc99daa6 100644
--- a/core-common/src/test/java/org/glassfish/jersey/uri/internal/PathTemplateTest.java
+++ b/core-common/src/test/java/org/glassfish/jersey/uri/internal/PathTemplateTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,8 +18,8 @@
import org.glassfish.jersey.uri.PathTemplate;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
@@ -31,14 +31,14 @@ public class PathTemplateTest {
public void testBasicOperations() throws Exception {
PathTemplate tmpl = new PathTemplate("/{id : \\d+}/test");
assertEquals(
- "getNumberOfTemplateVariables() returned invalid number",
1,
- tmpl.getNumberOfTemplateVariables()
+ tmpl.getNumberOfTemplateVariables(),
+ "getNumberOfTemplateVariables() returned invalid number"
);
assertEquals(
- "getNumberOfExplicitRegexes() returned invalid number",
1,
- tmpl.getNumberOfExplicitRegexes()
+ tmpl.getNumberOfExplicitRegexes(),
+ "getNumberOfExplicitRegexes() returned invalid number"
);
}
}
diff --git a/core-common/src/test/resources/surefire-jdk17.policy b/core-common/src/test/resources/surefire-jdk17.policy
new file mode 100644
index 00000000000..a960a3dda09
--- /dev/null
+++ b/core-common/src/test/resources/surefire-jdk17.policy
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2022 Vladimir Bychkov. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+// JDK 17 and later permissions
+grant {
+ permission java.lang.RuntimePermission "setContextClassLoader";
+};
diff --git a/core-server/pom.xml b/core-server/pom.xml
index 0c0689ed3f8..86866046486 100644
--- a/core-server/pom.xml
+++ b/core-server/pom.xml
@@ -214,8 +214,8 @@
test
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/AnnotatedEntityTest.java b/core-server/src/test/java/org/glassfish/jersey/server/AnnotatedEntityTest.java
index 0e3e3a467f2..772e32c99f0 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/AnnotatedEntityTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/AnnotatedEntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,10 +29,10 @@
import org.glassfish.jersey.server.model.ModelValidationException;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Tests entity parameter annotated with non injection annotations.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/ApplicationHandlerTest.java b/core-server/src/test/java/org/glassfish/jersey/server/ApplicationHandlerTest.java
index 6c267cbfed5..b926dc783ce 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/ApplicationHandlerTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/ApplicationHandlerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -60,12 +60,12 @@
import org.glassfish.jersey.server.internal.process.MappableException;
import org.glassfish.jersey.server.model.ModelValidationException;
import org.glassfish.jersey.server.spi.ResponseErrorMapper;
-
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test basic application behavior.
@@ -558,12 +558,14 @@ public void testMapResponseErrorForMbw() throws Exception {
/**
* Test that un-mapped response errors are tried to be processed only once (MBW).
*/
- @Test(expected = ExecutionException.class)
+ @Test
public void testMapCyclicResponseErrorForMbw() throws Exception {
- final ApplicationHandler handler = new ApplicationHandler(MapResponseErrorApplication.class);
+ Assertions.assertThrows(ExecutionException.class, () -> {
+ final ApplicationHandler handler = new ApplicationHandler(MapResponseErrorApplication.class);
- final ContainerRequest context = RequestContextBuilder.from("/foobar", "GET").build();
+ final ContainerRequest context = RequestContextBuilder.from("/foobar", "GET").build();
- handler.apply(context).get();
+ handler.apply(context).get();
+ });
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/ApplicationTest.java b/core-server/src/test/java/org/glassfish/jersey/server/ApplicationTest.java
index 9765e0e493d..781d390eb7a 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/ApplicationTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/ApplicationTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,7 +23,7 @@
import javax.ws.rs.Path;
import javax.ws.rs.core.Application;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
* @author Pavel Bucek
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/AsyncApplicationBuildingTest.java b/core-server/src/test/java/org/glassfish/jersey/server/AsyncApplicationBuildingTest.java
index 069996ea9ef..dd511e246f0 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/AsyncApplicationBuildingTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/AsyncApplicationBuildingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -46,9 +46,9 @@
import org.glassfish.jersey.process.Inflector;
import org.glassfish.jersey.server.model.Resource;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Unit test for creating an application with asynchronously handled request processing
@@ -252,7 +252,7 @@ public void testDeploymentFailsForAmbiguousResource() {
final ResourceConfig resourceConfig = new ResourceConfig(ErrornousResource.class);
try {
ApplicationHandler server = new ApplicationHandler(resourceConfig);
- assertTrue("Jersey server initialization should have failed: " + server, false);
+ assertTrue(false, "Jersey server initialization should have failed: " + server);
} catch (Exception e) {
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/AsyncCallbackServerTest.java b/core-server/src/test/java/org/glassfish/jersey/server/AsyncCallbackServerTest.java
index cde25bb562f..95de5899943 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/AsyncCallbackServerTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/AsyncCallbackServerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -35,11 +35,11 @@
import javax.inject.Singleton;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Tests {@link CompletionCallback}.
@@ -67,7 +67,7 @@ public void testCompletionCallback() throws ExecutionException, InterruptedExcep
final ContainerResponse response = app.apply(req).get();
assertEquals(200, response.getStatus());
- assertTrue("onComplete() was not called.", flags.onCompletionCalled);
+ assertTrue(flags.onCompletionCalled, "onComplete() was not called.");
}
@Test
@@ -85,7 +85,7 @@ public void testCompletionFail() throws ExecutionException, InterruptedException
} catch (Exception e) {
// ok - should throw an exception
}
- assertTrue("onError().", flags.onCompletionCalledWithError);
+ assertTrue(flags.onCompletionCalledWithError, "onError().");
}
@Test
@@ -117,8 +117,8 @@ public CheckingCompletionFilter(Flags flags) {
@Override
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {
- assertFalse("onComplete() callback has already been called.",
- flags.onCompletionCalled);
+ assertFalse(flags.onCompletionCalled,
+ "onComplete() callback has already been called.");
}
}
@@ -132,8 +132,8 @@ public MyCompletionCallback(Flags flags) {
@Override
public void onComplete(Throwable throwable) {
- assertFalse("onComplete() has already been called.", flags.onCompletionCalled);
- assertFalse("onComplete() has already been called with error.", flags.onCompletionCalledWithError);
+ assertFalse(flags.onCompletionCalled, "onComplete() has already been called.");
+ assertFalse(flags.onCompletionCalledWithError, "onComplete() has already been called with error.");
if (throwable == null) {
flags.onCompletionCalled = true;
} else {
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/AutoDiscoverableServerTest.java b/core-server/src/test/java/org/glassfish/jersey/server/AutoDiscoverableServerTest.java
index cfac9de1909..6d51742facf 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/AutoDiscoverableServerTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/AutoDiscoverableServerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,8 +33,8 @@
import org.glassfish.jersey.internal.spi.AutoDiscoverable;
import org.glassfish.jersey.internal.util.PropertiesHelper;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Note: Auto-discoverables from this test "affects" all other tests in suit.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/ContainerRequestTest.java b/core-server/src/test/java/org/glassfish/jersey/server/ContainerRequestTest.java
index 7a479e0ecde..21671540a41 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/ContainerRequestTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/ContainerRequestTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,11 +33,12 @@
import javax.ws.rs.core.Variant;
import org.glassfish.jersey.internal.MapPropertiesDelegate;
-
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Jersey container request context test.
@@ -181,22 +182,28 @@ private ContainerRequest getContainerRequestForPreconditionsTest() {
new MapPropertiesDelegate(), null);
}
- @Test(expected = IllegalArgumentException.class)
+ @Test
public void testEvaluatePreconditionsDateNull() {
- ContainerRequest r = getContainerRequestForPreconditionsTest();
- r.evaluatePreconditions((Date) null);
+ assertThrows(IllegalArgumentException.class, () -> {
+ ContainerRequest r = getContainerRequestForPreconditionsTest();
+ r.evaluatePreconditions((Date) null);
+ });
}
- @Test(expected = IllegalArgumentException.class)
+ @Test
public void testEvaluatePreconditionsEntityTagNull() {
- ContainerRequest r = getContainerRequestForPreconditionsTest();
- r.evaluatePreconditions((EntityTag) null);
+ assertThrows(IllegalArgumentException.class, () -> {
+ ContainerRequest r = getContainerRequestForPreconditionsTest();
+ r.evaluatePreconditions((EntityTag) null);
+ });
}
- @Test(expected = IllegalArgumentException.class)
+ @Test
public void testEvaluatePreconditionsBothNull() {
- ContainerRequest r = getContainerRequestForPreconditionsTest();
- r.evaluatePreconditions(null, null);
+ assertThrows(IllegalArgumentException.class, () -> {
+ ContainerRequest r = getContainerRequestForPreconditionsTest();
+ r.evaluatePreconditions(null, null);
+ });
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/ExtendedResourceContextTest.java b/core-server/src/test/java/org/glassfish/jersey/server/ExtendedResourceContextTest.java
index 2cdc9240e45..f3f96df85b0 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/ExtendedResourceContextTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/ExtendedResourceContextTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,9 +28,9 @@
import org.glassfish.jersey.server.model.ResourceModel;
import org.glassfish.jersey.server.model.ResourceTestUtils;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test (@link ExtendedResourceContext extended resource context}.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/JaxRsFeatureRegistrationTest.java b/core-server/src/test/java/org/glassfish/jersey/server/JaxRsFeatureRegistrationTest.java
index 122ab4508a0..4e2fa5307c9 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/JaxRsFeatureRegistrationTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/JaxRsFeatureRegistrationTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -17,8 +17,8 @@
package org.glassfish.jersey.server;
import org.glassfish.jersey.CommonProperties;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.container.DynamicFeature;
import javax.ws.rs.container.ResourceInfo;
@@ -47,8 +47,8 @@ public void featureRegistrationTest() {
final ResourceConfig config = new ResourceConfig();
final ApplicationHandler ah = new ApplicationHandler(config);
- Assert.assertTrue(ah.getConfiguration().isRegistered(FeatureImpl.class));
- Assert.assertTrue(ah.getConfiguration().isRegistered(DynamicFeatureImpl.class));
+ Assertions.assertTrue(ah.getConfiguration().isRegistered(FeatureImpl.class));
+ Assertions.assertTrue(ah.getConfiguration().isRegistered(DynamicFeatureImpl.class));
}
@Test
@@ -58,7 +58,7 @@ public void serviceLoadingPropertyTest() {
.property(CommonProperties.JAXRS_SERVICE_LOADING_ENABLE, "false");
final ApplicationHandler ah = new ApplicationHandler(config);
- Assert.assertFalse(ah.getConfiguration().isRegistered(FeatureImpl.class));
- Assert.assertFalse(ah.getConfiguration().isRegistered(DynamicFeatureImpl.class));
+ Assertions.assertFalse(ah.getConfiguration().isRegistered(FeatureImpl.class));
+ Assertions.assertFalse(ah.getConfiguration().isRegistered(DynamicFeatureImpl.class));
}
}
\ No newline at end of file
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/ModelProcessorScopeTest.java b/core-server/src/test/java/org/glassfish/jersey/server/ModelProcessorScopeTest.java
index 4f50714e66f..3a64bd5e756 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/ModelProcessorScopeTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/ModelProcessorScopeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,8 +33,8 @@
import org.glassfish.jersey.server.model.Resource;
import org.glassfish.jersey.server.model.ResourceModel;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test scope of resources enhanced by model processors.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/ResourceConfigBuilderTest.java b/core-server/src/test/java/org/glassfish/jersey/server/ResourceConfigBuilderTest.java
index 41e83e93512..9393e57ef95 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/ResourceConfigBuilderTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/ResourceConfigBuilderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,9 +26,9 @@
import javax.ws.rs.ext.ReaderInterceptor;
import javax.ws.rs.ext.ReaderInterceptorContext;
-import org.junit.Test;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/ResourceConfigTest.java b/core-server/src/test/java/org/glassfish/jersey/server/ResourceConfigTest.java
index 197e5fb2f99..0fd7416e48d 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/ResourceConfigTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/ResourceConfigTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,15 +34,15 @@
import org.glassfish.jersey.server.config.toplevel.PublicRootResourceClass;
import org.glassfish.jersey.server.config.toplevelinnerstatic.PublicRootResourceInnerStaticClass;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.glassfish.jersey.server.JarUtils.createJarFile;
import static org.hamcrest.CoreMatchers.hasItem;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Pavel Bucek
@@ -98,8 +98,7 @@ public void testResourceConfigInjection() throws InterruptedException, Execution
final ContainerResponse r = handler.apply(RequestContextBuilder.from("/", "/resource?id=" + rcId, "GET").build()).get();
assertEquals(200, r.getStatus());
- assertEquals("Injected application instance not same as used for building the Jersey handler.",
- "true", r.getEntity());
+ assertEquals("true", r.getEntity(), "Injected application instance not same as used for building the Jersey handler.");
}
@Test
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/ResourceMergeTest.java b/core-server/src/test/java/org/glassfish/jersey/server/ResourceMergeTest.java
index 76489a0eb8b..2c2a865ab52 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/ResourceMergeTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/ResourceMergeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,10 +29,10 @@
import org.glassfish.jersey.server.model.Resource;
import org.glassfish.jersey.server.model.ResourceTestUtils;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test merging of resources and child resources.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/SecurityContextTest.java b/core-server/src/test/java/org/glassfish/jersey/server/SecurityContextTest.java
index 713f2accb43..881f7cc3a62 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/SecurityContextTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/SecurityContextTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,10 +28,10 @@
import javax.annotation.Priority;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test class for testing security context in the Filter and resource.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/SecurityManagerConfiguredTest.java b/core-server/src/test/java/org/glassfish/jersey/server/SecurityManagerConfiguredTest.java
index f30e6fbaa33..b5f18e54853 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/SecurityManagerConfiguredTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/SecurityManagerConfiguredTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,8 +16,8 @@
package org.glassfish.jersey.server;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* Test that verifies that security manager is setup to run the Jersey core server unit tests.
@@ -30,7 +30,7 @@ public class SecurityManagerConfiguredTest {
*/
@Test
public void testSecurityManagerIsConfigured() {
- assertNotNull("Jersey core server unit tests should run with active security manager",
- System.getSecurityManager());
+ assertNotNull(System.getSecurityManager(),
+ "Jersey core server unit tests should run with active security manager");
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/UriInfoMatchedResourcesTest.java b/core-server/src/test/java/org/glassfish/jersey/server/UriInfoMatchedResourcesTest.java
index 0f8838bd682..9ef0fbca8a1 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/UriInfoMatchedResourcesTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/UriInfoMatchedResourcesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,8 +23,8 @@
import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test UriInfo content.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/UriInfoMatchedUrisTest.java b/core-server/src/test/java/org/glassfish/jersey/server/UriInfoMatchedUrisTest.java
index 8460cf4ae2a..7edee54d050 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/UriInfoMatchedUrisTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/UriInfoMatchedUrisTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,8 +23,8 @@
import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test UriInfo content.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/filter/ApplicationFilterTest.java b/core-server/src/test/java/org/glassfish/jersey/server/filter/ApplicationFilterTest.java
index 92f3bf746db..a0312aa7a97 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/filter/ApplicationFilterTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/filter/ApplicationFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -39,10 +39,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.model.Resource;
-import org.junit.Assert;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test for JAX-RS filters.
@@ -149,7 +149,7 @@ public void testFilterCalledOn200() throws Exception {
final ApplicationHandler application = new ApplicationHandler(resourceConfig);
final ContainerResponse response = application.apply(RequestContextBuilder.from("/simple", "GET").build()).get();
assertEquals(200, response.getStatus());
- Assert.assertTrue(simpleFilter.called);
+ assertTrue(simpleFilter.called);
}
@Test
@@ -160,7 +160,7 @@ public void testFilterNotCalledOn404() throws Exception {
final ApplicationHandler application = new ApplicationHandler(resourceConfig);
final ContainerResponse response = application.apply(RequestContextBuilder.from("/NOT-FOUND", "GET").build()).get();
assertEquals(404, response.getStatus());
- Assert.assertFalse(simpleFilter.called);
+ Assertions.assertFalse(simpleFilter.called);
}
@Test
@@ -172,7 +172,7 @@ public void testFilterNotCalledOn405() throws Exception {
final ContainerResponse response = application.apply(RequestContextBuilder.from("/simple", "POST").entity("entity")
.build()).get();
assertEquals(405, response.getStatus());
- Assert.assertFalse(simpleFilter.called);
+ Assertions.assertFalse(simpleFilter.called);
}
@Path("simple")
@@ -320,7 +320,7 @@ public Response apply(final ContainerRequestContext request) {
final ApplicationHandler application = new ApplicationHandler(resourceConfig);
try {
application.apply(RequestContextBuilder.from("/test", "GET").build()).get().getStatus();
- Assert.fail("should throw an exception");
+ Assertions.fail("should throw an exception");
} catch (final Exception e) {
// ok
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/filter/ContainerResponseFilterOrderingTest.java b/core-server/src/test/java/org/glassfish/jersey/server/filter/ContainerResponseFilterOrderingTest.java
index a255467b0b9..153bc171df9 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/filter/ContainerResponseFilterOrderingTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/filter/ContainerResponseFilterOrderingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,10 +34,10 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Pavel Bucek
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/filter/CsrfProtectionFilterTest.java b/core-server/src/test/java/org/glassfish/jersey/server/filter/CsrfProtectionFilterTest.java
index 49ff0ff39ef..ec7f881bca8 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/filter/CsrfProtectionFilterTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/filter/CsrfProtectionFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,9 +26,9 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
@@ -52,7 +52,7 @@ public String put() {
}
}
- @Before
+ @BeforeEach
public void setUp() {
ResourceConfig rc = new ResourceConfig(Resource.class, CsrfProtectionFilter.class);
handler = new ApplicationHandler(rc);
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/filter/EncodingFilterTest.java b/core-server/src/test/java/org/glassfish/jersey/server/filter/EncodingFilterTest.java
index 66980ee74dd..a4ba302bb53 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/filter/EncodingFilterTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/filter/EncodingFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,7 +23,7 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.spi.ContentEncoder;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.container.ContainerResponseFilter;
@@ -33,11 +33,11 @@
import java.io.InputStream;
import java.io.OutputStream;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Martin Matula
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/filter/EntityTypeFilterTest.java b/core-server/src/test/java/org/glassfish/jersey/server/filter/EntityTypeFilterTest.java
index b932c3b2540..733b3485141 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/filter/EntityTypeFilterTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/filter/EntityTypeFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,9 +34,9 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/filter/FilterSetMethodTest.java b/core-server/src/test/java/org/glassfish/jersey/server/filter/FilterSetMethodTest.java
index c611d3f8b3b..295722ecc67 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/filter/FilterSetMethodTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/filter/FilterSetMethodTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -38,9 +38,9 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Tests calling {@link ContainerRequestContext#setMethod(String)} in different request/response phases.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/filter/HttpMethodOverrideFilterTest.java b/core-server/src/test/java/org/glassfish/jersey/server/filter/HttpMethodOverrideFilterTest.java
index a68c56f7943..753a0c66ff3 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/filter/HttpMethodOverrideFilterTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/filter/HttpMethodOverrideFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,9 +27,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.ServerProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Martin Matula
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/filter/LayeredFiltersTest.java b/core-server/src/test/java/org/glassfish/jersey/server/filter/LayeredFiltersTest.java
index 7117c15bf5d..3013f9f5350 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/filter/LayeredFiltersTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/filter/LayeredFiltersTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -40,11 +40,11 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* Tests layering of filters applied on appropriate methods (using named bindings) on resource method, sub-method,
@@ -123,7 +123,7 @@ public void filter(ContainerRequestContext requestContext, ContainerResponseCont
public static class FilterTwo implements ContainerRequestFilter, ContainerResponseFilter {
public void filter(ContainerRequestContext requestContext) throws IOException {
List xTest = requestContext.getHeaders().get("X-TEST");
- assertNotNull("FilterOne not called", xTest);
+ assertNotNull(xTest, "FilterOne not called");
assertEquals(1, xTest.size());
assertEquals("one", xTest.get(0));
@@ -140,7 +140,7 @@ public void filter(ContainerRequestContext requestContext, ContainerResponseCont
}
@Test
- @Ignore("JERSEY-2414 - not yet implemented")
+ @Disabled("JERSEY-2414 - not yet implemented")
public void testResourceMethod() throws ExecutionException, InterruptedException {
final ResourceConfig resourceConfig = new ResourceConfig(ResourceWithSubresourceLocator.class)
.register(FilterOne.class).register(FilterTwo.class);
@@ -156,7 +156,7 @@ public void testResourceMethod() throws ExecutionException, InterruptedException
}
@Test
- @Ignore("JERSEY-2414 - not yet implemented")
+ @Disabled("JERSEY-2414 - not yet implemented")
public void testResourceSubresourceMethod() throws ExecutionException, InterruptedException {
final ResourceConfig resourceConfig = new ResourceConfig(ResourceWithSubresourceLocator.class)
.register(FilterOne.class).register(FilterTwo.class);
@@ -202,7 +202,7 @@ public String getSubmethod(@Context HttpHeaders hh) {
}
@Test
- @Ignore("JERSEY-2414 - not yet implemented")
+ @Disabled("JERSEY-2414 - not yet implemented")
public void testResourceMethodOnClass() throws ExecutionException, InterruptedException {
final ResourceConfig resourceConfig = new ResourceConfig(ResourceWithSubresourceLocatorOnClass.class)
.register(FilterOne.class).register(FilterTwo.class);
@@ -218,7 +218,7 @@ public void testResourceMethodOnClass() throws ExecutionException, InterruptedEx
}
@Test
- @Ignore("JERSEY-2414 - not yet implemented")
+ @Disabled("JERSEY-2414 - not yet implemented")
public void testResourceSubresourceMethodOnClass() throws ExecutionException, InterruptedException {
final ResourceConfig resourceConfig = new ResourceConfig(ResourceWithSubresourceLocatorOnClass.class)
.register(FilterOne.class).register(FilterTwo.class);
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/filter/UriConnegFilterTest.java b/core-server/src/test/java/org/glassfish/jersey/server/filter/UriConnegFilterTest.java
index aff172115ca..daa238cc9df 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/filter/UriConnegFilterTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/filter/UriConnegFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,9 +30,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.ServerProperties;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
@@ -57,7 +57,7 @@ public String getBar() {
}
}
- @Before
+ @BeforeEach
public void setUp() {
Map mediaTypes = new HashMap<>();
mediaTypes.put("foo", MediaType.valueOf("application/foo"));
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/filter/UriModificationFilterTest.java b/core-server/src/test/java/org/glassfish/jersey/server/filter/UriModificationFilterTest.java
index b5cacef5d80..7c8faecf12d 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/filter/UriModificationFilterTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/filter/UriModificationFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,8 +36,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests capability of URI modification during pre-matching filtering.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/BackgroundSchedulerProviderTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/BackgroundSchedulerProviderTest.java
index ad7f5ced8b5..ae72585ee48 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/BackgroundSchedulerProviderTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/BackgroundSchedulerProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,8 +34,8 @@
import org.glassfish.jersey.server.BackgroundScheduler;
import org.glassfish.jersey.spi.ScheduledThreadPoolExecutorProvider;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test basic application behavior.
@@ -111,6 +111,6 @@ public void testCustomRuntimeThreadProviderSupport() throws ExecutionException,
final ContainerResponse response = ah.apply(RequestContextBuilder.from("/executors-test", "GET").build()).get();
assertEquals(200, response.getStatus());
- assertEquals("Some executor test assertions failed.", 11, response.getEntity());
+ assertEquals(11, response.getEntity(), "Some executor test assertions failed.");
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/ContainerUtilsTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/ContainerUtilsTest.java
index d86017ea005..acda39198f7 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/ContainerUtilsTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/ContainerUtilsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,12 +16,11 @@
package org.glassfish.jersey.server.internal;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.glassfish.jersey.server.internal.ContainerUtils.getHandlerPath;
import static org.glassfish.jersey.server.internal.ContainerUtils.reduceLeadingSlashes;
-import static org.junit.Assert.assertNull;
-
-import static junit.framework.TestCase.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* Tests container-oriented utilities functions.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/ResourceContextTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/ResourceContextTest.java
index 312db7ca6a9..b7901d6453e 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/ResourceContextTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/ResourceContextTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,8 +26,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test basic application behavior.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/RuntimeDelegateImplTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/RuntimeDelegateImplTest.java
index 57d9668f0b0..c717bd92922 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/RuntimeDelegateImplTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/RuntimeDelegateImplTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,9 +19,9 @@
import javax.ws.rs.core.Application;
import javax.ws.rs.ext.RuntimeDelegate;
-import org.junit.Test;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Unit test that checks that the right RuntimeDelegateImpl is loaded by JAX-RS.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/ServiceFinderTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/ServiceFinderTest.java
index 1acc946b475..b70c4ba582d 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/ServiceFinderTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/ServiceFinderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,10 +29,10 @@
import org.glassfish.jersey.internal.ServiceFinder;
import org.glassfish.jersey.server.JarUtils;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.glassfish.jersey.server.JarUtils.createJarFile;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Michal Gajdos
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/AbstractTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/AbstractTest.java
index d26743a6555..0be4e0ab383 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/AbstractTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/AbstractTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,7 +27,7 @@
import javax.ws.rs.core.Request;
import java.util.concurrent.ExecutionException;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Class used for {@link ApplicationHandler} initialization and for executing {@link Request}s.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ActiveBindingBindingTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ActiveBindingBindingTest.java
index e0b8acb907a..f87cbccad61 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ActiveBindingBindingTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ActiveBindingBindingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -46,7 +46,7 @@
import org.jvnet.hk2.internal.ServiceHandleImpl;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/BeanParamMemoryLeakTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/BeanParamMemoryLeakTest.java
index b56bde31ce8..3d4b4a571f8 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/BeanParamMemoryLeakTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/BeanParamMemoryLeakTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,8 +33,8 @@
import org.glassfish.hk2.api.Filter;
import org.glassfish.hk2.api.ServiceLocator;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Reproducer for JERSEY-2800. We need to make sure
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ConstructorParameterInjectionTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ConstructorParameterInjectionTest.java
index 3d1ef54fd0d..7886b1ec68c 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ConstructorParameterInjectionTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ConstructorParameterInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,9 +24,9 @@
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* Tests injections into constructor parameters.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ContextBasedInjectionTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ContextBasedInjectionTest.java
index 5dbddfb3e38..ea01bcdec32 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ContextBasedInjectionTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ContextBasedInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -17,11 +17,10 @@
package org.glassfish.jersey.server.internal.inject;
import java.net.URI;
-import java.util.Arrays;
-import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
+import java.util.stream.Stream;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.core.Context;
@@ -38,11 +37,11 @@
import org.glassfish.jersey.server.AsyncContext;
import org.glassfish.jersey.server.model.Resource;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Unit test for creating an application with asynchronously handled request processing
@@ -50,25 +49,15 @@
*
* @author Marek Potociar
*/
-@RunWith(Parameterized.class)
public class ContextBasedInjectionTest {
private static final URI BASE_URI = URI.create("http://localhost:8080/base/");
- @Parameterized.Parameters
- public static List testUriSuffixes() {
- return Arrays.asList(new String[][]{
- {"a/b/c", "A-B-C"},
- {"a/b/d/", "A-B-D"}
- });
- }
-
- private final String uriSuffix;
- private final String expectedResponse;
-
- public ContextBasedInjectionTest(String uriSuffix, String expectedResponse) {
- this.uriSuffix = uriSuffix;
- this.expectedResponse = expectedResponse;
+ public static Stream testUriSuffixes() {
+ return Stream.of(
+ Arguments.of("a/b/c", "A-B-C"),
+ Arguments.of("a/b/d/", "A-B-D")
+ );
}
private static class AsyncInflector implements Inflector {
@@ -112,7 +101,7 @@ public void run() {
private ApplicationHandler app;
- @Before
+ @BeforeEach
public void setupApplication() {
ResourceConfig rc = new ResourceConfig();
@@ -128,8 +117,9 @@ public void setupApplication() {
app = new ApplicationHandler(rc);
}
- @Test
- public void testAsyncApp() throws InterruptedException, ExecutionException {
+ @ParameterizedTest
+ @MethodSource("testUriSuffixes")
+ public void testAsyncApp(String uriSuffix, String expectedResponse) throws InterruptedException, ExecutionException {
ContainerRequest req =
RequestContextBuilder.from(BASE_URI, URI.create(BASE_URI.getPath() + uriSuffix), "GET").build();
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamAsCookieTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamAsCookieTest.java
index 4c35475109f..c69afa4b283 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamAsCookieTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamAsCookieTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamAsPrimitiveTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamAsPrimitiveTest.java
index b3519d3c990..48ec83db485 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamAsPrimitiveTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamAsPrimitiveTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,8 +29,8 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamAsStringTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamAsStringTest.java
index 20b82678299..da1e2e67358 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamAsStringTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamAsStringTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,8 +30,8 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamStringConstructorTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamStringConstructorTest.java
index 0d7e5886f82..1f7063de7c4 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamStringConstructorTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/CookieParamStringConstructorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,8 +31,8 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/EncodedParamsTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/EncodedParamsTest.java
index 1e39b1393ed..762a8883fae 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/EncodedParamsTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/EncodedParamsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,11 +31,11 @@
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/FormParamTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/FormParamTest.java
index 56cf89fe716..d9f659436bd 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/FormParamTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/FormParamTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -39,9 +39,9 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* @author Paul Sandoz
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/HeaderParamAsPrimitiveTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/HeaderParamAsPrimitiveTest.java
index ae54b473493..c7bf2a5ad6a 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/HeaderParamAsPrimitiveTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/HeaderParamAsPrimitiveTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/HeaderParamAsStringTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/HeaderParamAsStringTest.java
index f4b1e3d0697..8b82eccbd9a 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/HeaderParamAsStringTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/HeaderParamAsStringTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,8 +29,8 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/HeaderParamStringConstructorTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/HeaderParamStringConstructorTest.java
index 7589fd3dc36..d0777ea5abf 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/HeaderParamStringConstructorTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/HeaderParamStringConstructorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,8 +30,8 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/InvalidParamsTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/InvalidParamsTest.java
index c5acca7a558..04152770307 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/InvalidParamsTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/InvalidParamsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,8 +30,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Pavel Bucek
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/JaxRsInjectablesTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/JaxRsInjectablesTest.java
index 805c03a75d8..6219c212296 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/JaxRsInjectablesTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/JaxRsInjectablesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -44,10 +44,10 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Covers JAX-RS defined @Context injectable values including
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/MatrixParamAsPrimitiveTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/MatrixParamAsPrimitiveTest.java
index 6d8d501d00a..76b2a797ec4 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/MatrixParamAsPrimitiveTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/MatrixParamAsPrimitiveTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/MatrixParamAsStringTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/MatrixParamAsStringTest.java
index 190720cf405..8a38eaffdb4 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/MatrixParamAsStringTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/MatrixParamAsStringTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,8 +29,8 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/MatrixParamStringConstructorTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/MatrixParamStringConstructorTest.java
index b6f4fece186..03b0b73bc1c 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/MatrixParamStringConstructorTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/MatrixParamStringConstructorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,8 +29,8 @@
import org.glassfish.jersey.server.ContainerResponse;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ParamConverterDateTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ParamConverterDateTest.java
index b00bd647cf1..fd841f1a7ba 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ParamConverterDateTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ParamConverterDateTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,7 +21,7 @@
import org.glassfish.jersey.internal.inject.ExtractorException;
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.internal.LocalizationMessages;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@@ -37,7 +37,7 @@
import java.util.Locale;
import java.util.concurrent.ExecutionException;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class ParamConverterDateTest extends AbstractTest {
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ParamConverterInternalTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ParamConverterInternalTest.java
index e6546de6ca3..7ba24c81c7d 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ParamConverterInternalTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ParamConverterInternalTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Payara Foundation and/or its affiliates.
*
* This program and the accompanying materials are made available under the
@@ -48,11 +48,11 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.fail;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Tests {@link ParamConverter param converters}.
@@ -287,8 +287,8 @@ public void testDateParamConverterIsChosenForDateString() {
final ParamConverter converter =
new ParamConverters.AggregatedProvider(null).getConverter(Date.class, Date.class, null);
- assertEquals("Unexpected date converter provider class",
- ParamConverters.DateProvider.class, converter.getClass().getEnclosingClass());
+ assertEquals(ParamConverters.DateProvider.class, converter.getClass().getEnclosingClass(),
+ "Unexpected date converter provider class");
}
@Path("resource")
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ParamExceptionMappingTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ParamExceptionMappingTest.java
index bdd148f337b..33272e7aed3 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ParamExceptionMappingTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/ParamExceptionMappingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -41,9 +41,9 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.ParamException;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Not sure whether this is relevant anymore.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamAsPathSegmentTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamAsPathSegmentTest.java
index 73ae61d56eb..6dded938026 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamAsPathSegmentTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamAsPathSegmentTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,8 +27,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey-1: jersey-tests: com.sun.jersey.impl.methodparams.PathParamAsPathSegmentTest
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamAsPrimitiveTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamAsPrimitiveTest.java
index f23e4e14bb7..b929eeafce6 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamAsPrimitiveTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamAsPrimitiveTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,8 +25,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey-1: jersey-tests: com.sun.jersey.impl.methodparams.PathParamAsPrimitiveTest
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamAsStringTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamAsStringTest.java
index 0f8a700452c..53209591bff 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamAsStringTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamAsStringTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,8 +27,8 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamDefaultValueTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamDefaultValueTest.java
index 72fec0cc40b..71a1427341d 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamDefaultValueTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamDefaultValueTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,8 +25,8 @@
import org.glassfish.jersey.server.ContainerResponse;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Miroslav Fuksa
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamStringConstructorTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamStringConstructorTest.java
index 15501468872..e6c42bf8735 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamStringConstructorTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/PathParamStringConstructorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,8 +26,8 @@
import org.glassfish.jersey.server.ContainerResponse;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsPrimitiveTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsPrimitiveTest.java
index d209c17564e..8336caabcf6 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsPrimitiveTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsPrimitiveTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSetPrimitiveTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSetPrimitiveTest.java
index 6be3925ed9e..0dc7a013ed8 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSetPrimitiveTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSetPrimitiveTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,9 +27,9 @@
import org.glassfish.jersey.server.ContainerResponse;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSetStringTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSetStringTest.java
index bba6993ba23..a20141e1558 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSetStringTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSetStringTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,9 +25,9 @@
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSortedSetPrimitiveTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSortedSetPrimitiveTest.java
index 3fb41d337f4..16cfbf52923 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSortedSetPrimitiveTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSortedSetPrimitiveTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,9 +27,9 @@
import org.glassfish.jersey.server.ContainerResponse;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSortedSetStringTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSortedSetStringTest.java
index d563d19be1c..51be2f867eb 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSortedSetStringTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsSortedSetStringTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,9 +25,9 @@
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsStringTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsStringTest.java
index 0e4fa64ce95..781a3fce1b8 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsStringTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamAsStringTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,8 +29,8 @@
import org.glassfish.jersey.server.ContainerResponse;
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamEnumTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamEnumTest.java
index e442336e5db..c1169badf6a 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamEnumTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamEnumTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,8 +22,8 @@
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Paul Sandoz
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamFromStringTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamFromStringTest.java
index 6c9f20fa4a3..4f1f4d54ac1 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamFromStringTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamFromStringTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,8 +23,8 @@
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamSetStringConstructorTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamSetStringConstructorTest.java
index f13d264460f..4da748a6f35 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamSetStringConstructorTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamSetStringConstructorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,9 +25,9 @@
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamSortedSetStringConstructorTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamSortedSetStringConstructorTest.java
index 00d6d111e33..3298f139f5a 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamSortedSetStringConstructorTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamSortedSetStringConstructorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,9 +25,9 @@
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamStringConstructorTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamStringConstructorTest.java
index 78654634ed1..70dcdcf6038 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamStringConstructorTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/QueryParamStringConstructorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,8 +29,8 @@
import org.glassfish.jersey.server.ContainerResponse;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/UriTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/UriTest.java
index 3877f877e29..af6586c4b01 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/UriTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/inject/UriTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,11 +32,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.Uri;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Pavel Bucek
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/AbstractNanosReservoirTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/AbstractNanosReservoirTest.java
index abdc1025888..9147d5c9da8 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/AbstractNanosReservoirTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/AbstractNanosReservoirTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,7 +22,7 @@
import org.glassfish.jersey.server.internal.monitoring.core.TimeReservoir;
import org.glassfish.jersey.server.internal.monitoring.core.UniformTimeSnapshot;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Stepan Vavra
@@ -65,11 +65,11 @@ protected void checkInNanos(final TimeReservoir reservoir,
final double expectedMean, final long expectedInterval) {
final UniformTimeSnapshot snapshot = reservoir.getSnapshot(snapshotTime, TimeUnit.NANOSECONDS);
- assertEquals("Total count does not match!", expectedSize, snapshot.size());
- assertEquals("Min exec time does not match!", expectedMin, snapshot.getMin());
- assertEquals("Max exec time does not match!", expectedMax, snapshot.getMax());
- assertEquals("Average exec time does not match!", expectedMean, snapshot.getMean(), DELTA);
- assertEquals("Expected interval does not match!", expectedInterval, snapshot.getTimeInterval(TimeUnit.NANOSECONDS));
+ assertEquals(expectedSize, snapshot.size(), "Total count does not match!");
+ assertEquals(expectedMin, snapshot.getMin(), "Min exec time does not match!");
+ assertEquals(expectedMax, snapshot.getMax(), "Max exec time does not match!");
+ assertEquals(expectedMean, snapshot.getMean(), DELTA, "Average exec time does not match!");
+ assertEquals(expectedInterval, snapshot.getTimeInterval(TimeUnit.NANOSECONDS), "Expected interval does not match!");
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/AggregatingTrimmerTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/AggregatingTrimmerTest.java
index 3dd917eafcf..07a735b5e0a 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/AggregatingTrimmerTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/AggregatingTrimmerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,8 +18,8 @@
import java.util.concurrent.TimeUnit;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* @author Stepan Vavra
@@ -114,12 +114,10 @@ public void testLowerBoundFunction() {
for (int startTime = -50; startTime < 50; ++startTime) {
for (int i = -50; i < 50; ++i) {
long lowerBound = AggregatingTrimmer.lowerBound(i, startTime, chunkSize, power);
- Assert.assertTrue("Error occurred for: " + i + " .. lower bound: " + lowerBound + " .. power: " + power
- + " .. startTime: " + startTime,
- lowerBound <= i);
- Assert.assertTrue("Error occurred for: " + i + " .. lower bound: " + lowerBound + " .. power: " + power
- + " .. startTime: " + startTime,
- i < lowerBound + chunkSize);
+ Assertions.assertTrue(lowerBound <= i, "Error occurred for: " + i + " .. lower bound: "
+ + lowerBound + " .. power: " + power + " .. startTime: " + startTime);
+ Assertions.assertTrue(i < lowerBound + chunkSize, "Error occurred for: " + i
+ + " .. lower bound: " + lowerBound + " .. power: " + power + " .. startTime: " + startTime);
}
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/MonitoringStatisticsTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/MonitoringStatisticsTest.java
index 54c27c4108e..4c41281bf60 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/MonitoringStatisticsTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/MonitoringStatisticsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -17,12 +17,10 @@
package org.glassfish.jersey.server.internal.monitoring;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
-import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@@ -41,8 +39,8 @@
import org.glassfish.jersey.server.monitoring.ResourceMethodStatistics;
import org.glassfish.jersey.server.monitoring.ResourceStatistics;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* @author Miroslav Fuksa
@@ -108,10 +106,10 @@ public void testSimpleUris() {
final MonitoringStatisticsImpl stats = getSimpleStats();
final Set keys = stats.getUriStatistics().keySet();
final Iterator iterator = keys.iterator();
- Assert.assertEquals("/hello", iterator.next());
- Assert.assertEquals("/hello/world", iterator.next());
- Assert.assertEquals("/test-resource", iterator.next());
- Assert.assertEquals("/test-resource/child", iterator.next());
+ Assertions.assertEquals("/hello", iterator.next());
+ Assertions.assertEquals("/hello/world", iterator.next());
+ Assertions.assertEquals("/test-resource", iterator.next());
+ Assertions.assertEquals("/test-resource/child", iterator.next());
}
private MonitoringStatisticsImpl getSimpleStats() {
@@ -145,8 +143,8 @@ public void testSimpleResourceClasses() {
final Set> keys = stats.getResourceClassStatistics().keySet();
final Iterator> it = keys.iterator();
- Assert.assertEquals(HelloResource.class, it.next());
- Assert.assertEquals(TestResource.class, it.next());
+ Assertions.assertEquals(HelloResource.class, it.next());
+ Assertions.assertEquals(TestResource.class, it.next());
}
@Test
@@ -155,9 +153,9 @@ public void testResourceClassesWithProgrammaticResources() {
final Set> keys = stats.getResourceClassStatistics().keySet();
final Iterator> it = keys.iterator();
- Assert.assertEquals(HelloResource.class, it.next());
- Assert.assertEquals(MyInflector.class, it.next());
- Assert.assertEquals(TestResource.class, it.next());
+ Assertions.assertEquals(HelloResource.class, it.next());
+ Assertions.assertEquals(MyInflector.class, it.next());
+ Assertions.assertEquals(TestResource.class, it.next());
}
@Test
@@ -213,11 +211,11 @@ public void testUrisWithProgrammaticResourcesAndExecution() {
final ResourceMethod method = methodStatistics.getResourceMethod();
final ExecutionStatistics st = methodStatistics.getMethodStatistics();
if (method.getHttpMethod().equals("GET")) {
- Assert.assertEquals(20, st.getLastStartTime().getTime());
+ Assertions.assertEquals(20, st.getLastStartTime().getTime());
} else if (method.getHttpMethod().equals("POST")) {
- Assert.assertEquals(30, st.getLastStartTime().getTime());
+ Assertions.assertEquals(30, st.getLastStartTime().getTime());
} else {
- Assert.fail();
+ Assertions.fail();
}
}
}
@@ -226,8 +224,8 @@ public void testUrisWithProgrammaticResourcesAndExecution() {
private void check(Iterator> it,
String expectedUri, int expectedMethods) {
Map.Entry entry = it.next();
- Assert.assertEquals(expectedUri, entry.getKey());
- Assert.assertEquals(expectedMethods, entry.getValue().getResourceMethodStatistics().size());
+ Assertions.assertEquals(expectedUri, entry.getKey());
+ Assertions.assertEquals(expectedMethods, entry.getValue().getResourceMethodStatistics().size());
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/MonitoringUtilsTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/MonitoringUtilsTest.java
index 6d18f0d7fa3..322f6d43832 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/MonitoringUtilsTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/MonitoringUtilsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,8 +26,8 @@
import org.glassfish.jersey.server.model.Resource;
import org.glassfish.jersey.server.model.ResourceMethod;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
*
@@ -61,13 +61,13 @@ public String post() {
@Test
public void testGetMethodUniqueId() {
final Resource resource = Resource.builder(MyResource.class).build();
- Assert.assertEquals("[]|[]|GET|resource|get",
+ Assertions.assertEquals("[]|[]|GET|resource|get",
MonitoringUtils.getMethodUniqueId(getMethod(resource, "get")));
- Assert.assertEquals("[text/html]|[]|GET|resource.sub|subGet",
+ Assertions.assertEquals("[text/html]|[]|GET|resource.sub|subGet",
MonitoringUtils.getMethodUniqueId(getMethod(resource, "subGet")));
- Assert.assertEquals("[text/html]|[]|GET|resource.sub|subGet",
+ Assertions.assertEquals("[text/html]|[]|GET|resource.sub|subGet",
MonitoringUtils.getMethodUniqueId(getMethod(resource, "subGet")));
- Assert.assertEquals("[text/xml]|[text/plain]|POST|resource|post",
+ Assertions.assertEquals("[text/xml]|[text/plain]|POST|resource|post",
MonitoringUtils.getMethodUniqueId(getMethod(resource, "post")));
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/ResponseStatisticsImplTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/ResponseStatisticsImplTest.java
index f98320462d4..58e3943e61d 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/ResponseStatisticsImplTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/ResponseStatisticsImplTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,10 +16,8 @@
package org.glassfish.jersey.server.internal.monitoring;
-import org.junit.Assert;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.ExpectedException;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Response statistics tests.
@@ -35,49 +33,46 @@ public void testCaching() {
builder.addResponseCode(100);
// test that caching works
- Assert.assertTrue(builder.build() == builder.build());
+ Assertions.assertTrue(builder.build() == builder.build());
Object original = builder.build();
builder.addResponseCode(100);
- Assert.assertFalse(original == builder.build());
+ Assertions.assertFalse(original == builder.build());
}
@Test
public void testSanity() {
ResponseStatisticsImpl.Builder builder = new ResponseStatisticsImpl.Builder();
- Assert.assertNull(builder.build().getLastResponseCode());
+ Assertions.assertNull(builder.build().getLastResponseCode());
builder.addResponseCode(100);
- Assert.assertEquals(100, (int) builder.build().getLastResponseCode());
- Assert.assertEquals(1, (long) builder.build().getResponseCodes().get(100));
+ Assertions.assertEquals(100, (int) builder.build().getLastResponseCode());
+ Assertions.assertEquals(1, (long) builder.build().getResponseCodes().get(100));
builder.addResponseCode(200);
- Assert.assertEquals(200, (int) builder.build().getLastResponseCode());
- Assert.assertEquals(1, (long) builder.build().getResponseCodes().get(100));
- Assert.assertEquals(1, (long) builder.build().getResponseCodes().get(200));
+ Assertions.assertEquals(200, (int) builder.build().getLastResponseCode());
+ Assertions.assertEquals(1, (long) builder.build().getResponseCodes().get(100));
+ Assertions.assertEquals(1, (long) builder.build().getResponseCodes().get(200));
builder.addResponseCode(100);
- Assert.assertEquals(100, (int) builder.build().getLastResponseCode());
- Assert.assertEquals(2, (long) builder.build().getResponseCodes().get(100));
- Assert.assertEquals(1, (long) builder.build().getResponseCodes().get(200));
+ Assertions.assertEquals(100, (int) builder.build().getLastResponseCode());
+ Assertions.assertEquals(2, (long) builder.build().getResponseCodes().get(100));
+ Assertions.assertEquals(1, (long) builder.build().getResponseCodes().get(200));
}
- @Rule
- public final ExpectedException exception = ExpectedException.none();
-
@Test
public void testImmutability() {
- ResponseStatisticsImpl.Builder builder = new ResponseStatisticsImpl.Builder();
+ Assertions.assertThrows(UnsupportedOperationException.class, () -> {
+ ResponseStatisticsImpl.Builder builder = new ResponseStatisticsImpl.Builder();
- builder.addResponseCode(100);
+ builder.addResponseCode(100);
- // modification is not allowed
- exception.expect(UnsupportedOperationException.class);
- builder.build().getResponseCodes().put(100, 2L);
+ builder.build().getResponseCodes().put(100, 2L);
+ });
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/SlidingWindowTimeReservoirAggregatingTrimmerTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/SlidingWindowTimeReservoirAggregatingTrimmerTest.java
index ebec4db72b4..696b1e8ab1a 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/SlidingWindowTimeReservoirAggregatingTrimmerTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/SlidingWindowTimeReservoirAggregatingTrimmerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,7 +18,7 @@
import java.util.concurrent.TimeUnit;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
* Tests of {@link SlidingWindowTimeReservoir}.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/SlidingWindowTimeReservoirTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/SlidingWindowTimeReservoirTest.java
index fc02ae7c652..c6f42d7a48f 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/SlidingWindowTimeReservoirTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/SlidingWindowTimeReservoirTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,8 +18,8 @@
import java.util.concurrent.TimeUnit;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests of {@link SlidingWindowTimeReservoir}.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/TimeWindowStatisticsImplTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/TimeWindowStatisticsImplTest.java
index d8f9a8cf6cb..c4ac1934a5e 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/TimeWindowStatisticsImplTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/monitoring/TimeWindowStatisticsImplTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,13 +18,11 @@
import java.util.concurrent.TimeUnit;
-import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.server.internal.monitoring.core.ReservoirConstants;
import org.glassfish.jersey.server.internal.monitoring.core.UniformTimeReservoir;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests of {@link TimeWindowStatisticsImpl}.
@@ -248,11 +246,11 @@ private void check(final TimeWindowStatisticsImpl.Builder builder,
final double requestsPerSecond) {
final TimeWindowStatisticsImpl stat = builder.build(buildTime);
- assertEquals("Total count does not match!", totalCount, stat.getRequestCount());
- assertEquals("Min exec time does not match!", minimumExecTime, stat.getMinimumDuration());
- assertEquals("Max exec time does not match!", maximumExecTime, stat.getMaximumDuration());
- assertEquals("Average exec time does not match!", average, stat.getAverageDuration());
- assertEquals("Requests per seconds does not match!", requestsPerSecond, stat.getRequestsPerSecond(), DELTA);
+ assertEquals(totalCount, stat.getRequestCount(), "Total count does not match!");
+ assertEquals(minimumExecTime, stat.getMinimumDuration(), "Min exec time does not match!");
+ assertEquals(maximumExecTime, stat.getMaximumDuration(), "Max exec time does not match!");
+ assertEquals(average, stat.getAverageDuration(), "Average exec time does not match!");
+ assertEquals(requestsPerSecond, stat.getRequestsPerSecond(), DELTA, "Requests per seconds does not match!");
}
@Test
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/process/ProxyInjectablesTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/process/ProxyInjectablesTest.java
index e4675ba8072..2f334184ff5 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/process/ProxyInjectablesTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/process/ProxyInjectablesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -39,9 +39,9 @@
import org.glassfish.jersey.server.internal.inject.AbstractTest;
import org.glassfish.jersey.server.internal.routing.UriRoutingContext;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
/**
* Test if request scoped injection points are injected without using
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/ExtendedUriInfoTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/ExtendedUriInfoTest.java
index fa065abdb69..ece29a9443e 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/ExtendedUriInfoTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/ExtendedUriInfoTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,10 +34,10 @@
import org.glassfish.jersey.server.model.Resource;
import org.glassfish.jersey.server.model.RuntimeResource;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* {@link ExtendedUriInfo} unit tests - testing e.g. getting matched resources, mapped throwable, etc.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/ResponseMediaTypeFromProvidersTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/ResponseMediaTypeFromProvidersTest.java
index 4d982aa94f5..049b449fe6e 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/ResponseMediaTypeFromProvidersTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/ResponseMediaTypeFromProvidersTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,9 +28,9 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* @author Michal Gajdos
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/SubResourceLocatorCachingTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/SubResourceLocatorCachingTest.java
index 6b8e6543b47..3da884d55f8 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/SubResourceLocatorCachingTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/SubResourceLocatorCachingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,10 +34,10 @@
import org.glassfish.jersey.server.model.Resource;
import org.glassfish.jersey.server.model.ResourceModel;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Test that sub-resource locators (models and routers) are being cached.
@@ -147,7 +147,7 @@ public ResourceModel processSubResource(final ResourceModel subResourceModel, fi
private CountingModelProcessor processor;
private ResourceConfig config;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
processor = new CountingModelProcessor();
config = new ResourceConfig(RootResource.class).register(processor);
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/SubResourceValidationTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/SubResourceValidationTest.java
index a7282c26222..3ba5c531492 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/SubResourceValidationTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/SubResourceValidationTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,9 +27,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.ServerProperties;
-import org.junit.Assert;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* This tests disabling of a sub resource locator validation.
@@ -81,7 +81,7 @@ public void testEnable() throws ExecutionException, InterruptedException {
final ContainerResponse response = applicationHandler.apply(
RequestContextBuilder.from("/root/sub", "GET").build()).get();
// should throw an exception or return 500
- Assert.assertEquals(500, response.getStatus());
+ Assertions.assertEquals(500, response.getStatus());
} catch (Exception e) {
// ok
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/UriRoutingContextTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/UriRoutingContextTest.java
index 598b03f1dc5..9466b03e74e 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/UriRoutingContextTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/routing/UriRoutingContextTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,13 +27,13 @@
import org.glassfish.jersey.server.RequestContextBuilder;
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Marek Potociar
@@ -43,19 +43,19 @@ public class UriRoutingContextTest {
public UriRoutingContextTest() {
}
- @BeforeClass
+ @BeforeAll
public static void setUpClass() throws Exception {
}
- @AfterClass
+ @AfterAll
public static void tearDownClass() throws Exception {
}
- @Before
+ @BeforeEach
public void setUp() {
}
- @After
+ @AfterEach
public void tearDown() {
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/BundleSchemeScannerTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/BundleSchemeScannerTest.java
index 5315f696271..ae7e0726956 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/BundleSchemeScannerTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/BundleSchemeScannerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,9 +21,9 @@
import org.glassfish.jersey.server.ResourceFinder;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
/**
* @author Stepan Vavra
@@ -32,7 +32,7 @@ public class BundleSchemeScannerTest {
private ResourceFinder bundleSchemeScanner;
- @Before
+ @BeforeEach
public void setUpBundleSchemeScanner() throws Exception {
String canonicalName = getClass().getCanonicalName();
URI uri = getClass().getClassLoader().getResource(canonicalName.replace('.', '/') + ".class").toURI();
@@ -41,15 +41,17 @@ public void setUpBundleSchemeScanner() throws Exception {
@Test
public void hasNextReturnsTrue() throws Exception {
- Assert.assertTrue(bundleSchemeScanner.hasNext());
+ Assertions.assertTrue(bundleSchemeScanner.hasNext());
}
- @Test(expected = NoSuchElementException.class)
+ @Test
public void multipleNextInvocationFails() throws Exception {
- bundleSchemeScanner.next();
+ Assertions.assertThrows(NoSuchElementException.class, () -> {
+ bundleSchemeScanner.next();
- Assert.assertFalse(bundleSchemeScanner.hasNext());
- bundleSchemeScanner.next(); // throw NoSuchElementException
+ Assertions.assertFalse(bundleSchemeScanner.hasNext());
+ bundleSchemeScanner.next(); // throw NoSuchElementException
+ });
}
/**
@@ -59,12 +61,14 @@ public void multipleNextInvocationFails() throws Exception {
*
* @throws Exception
*/
- @Test(expected = NoSuchElementException.class)
+ @Test
public void openFinishesTheIteration() throws Exception {
- Assert.assertNotNull(bundleSchemeScanner.open());
- Assert.assertFalse(bundleSchemeScanner.hasNext());
+ Assertions.assertThrows(NoSuchElementException.class, () -> {
+ Assertions.assertNotNull(bundleSchemeScanner.open());
+ Assertions.assertFalse(bundleSchemeScanner.hasNext());
- bundleSchemeScanner.next(); // throw NoSuchElementException
+ bundleSchemeScanner.next(); // throw NoSuchElementException
+ });
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/CompositeResourceFinderTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/CompositeResourceFinderTest.java
index ef817be2cbd..d9afad442ec 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/CompositeResourceFinderTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/CompositeResourceFinderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,9 +22,9 @@
import org.glassfish.jersey.server.ResourceFinder;
import org.glassfish.jersey.server.internal.AbstractResourceFinderAdapter;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Pavel Bucek
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/JarFileScannerTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/JarFileScannerTest.java
index 80f917c9dff..603abca5c54 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/JarFileScannerTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/JarFileScannerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,31 +24,23 @@
import java.util.jar.JarFile;
import java.util.regex.Pattern;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.theories.DataPoint;
-import org.junit.experimental.theories.Theories;
-import org.junit.experimental.theories.Theory;
-import org.junit.runner.RunWith;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.fail;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Martin Snyder
*/
-@RunWith(Theories.class)
public class JarFileScannerTest {
- @DataPoint
- public static final boolean RECURSIVE = true;
- @DataPoint
- public static final boolean NON_RECURSIVE = false;
-
private String jaxRsApiPath;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
final String classPath = System.getProperty("java.class.path");
final String[] entries = classPath.split(System.getProperty("path.separator"));
@@ -140,19 +132,21 @@ private int countJarEntriesUsingScanner(final String parent, final boolean recur
return scannedEntryCount;
}
- @Theory
+ @ParameterizedTest
+ @ValueSource(booleans = {true, false})
public void testClassEnumerationWithNonexistentPackage(final boolean recursive) throws IOException {
try (final InputStream jaxRsApi = new FileInputStream(this.jaxRsApiPath)) {
final JarFileScanner jarFileScanner = new JarFileScanner(jaxRsApi, "javax/ws/r", recursive);
- assertFalse("Unexpectedly found package 'javax.ws.r' in javax.ws.rs-api", jarFileScanner.hasNext());
+ assertFalse(jarFileScanner.hasNext(), "Unexpectedly found package 'javax.ws.r' in javax.ws.rs-api");
}
}
- @Theory
+ @ParameterizedTest
+ @ValueSource(booleans = {true, false})
public void testClassEnumerationWithClassPrefix(final boolean recursive) throws IOException {
try (final InputStream jaxRsApi = new FileInputStream(this.jaxRsApiPath)) {
final JarFileScanner jarFileScanner = new JarFileScanner(jaxRsApi, "javax/ws/rs/GE", recursive);
- assertFalse("Unexpectedly found package 'javax.ws.rs.GE' in javax.ws.rs-api", jarFileScanner.hasNext());
+ assertFalse(jarFileScanner.hasNext(), "Unexpectedly found package 'javax.ws.rs.GE' in javax.ws.rs-api");
}
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/VFSSchemeResourceFinderTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/VFSSchemeResourceFinderTest.java
index 2c50cd7381a..493d4bff555 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/VFSSchemeResourceFinderTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/scanning/VFSSchemeResourceFinderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,11 +30,11 @@
import org.jboss.vfs.TempFileProvider;
import org.jboss.vfs.VFS;
import org.jboss.vfs.VirtualFile;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.fail;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Martin Snyder
@@ -44,7 +44,7 @@ public class VFSSchemeResourceFinderTest {
private String jaxRsApiPath;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
final String classPath = System.getProperty("java.class.path");
final String[] entries = classPath.split(System.getProperty("path.separator"));
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/internal/sonar/SonarJerseyServerTest.java b/core-server/src/test/java/org/glassfish/jersey/server/internal/sonar/SonarJerseyServerTest.java
index 0c0090d4c0c..7595dc75245 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/internal/sonar/SonarJerseyServerTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/internal/sonar/SonarJerseyServerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,8 +16,8 @@
package org.glassfish.jersey.server.internal.sonar;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* @author Stepan Vavra
@@ -26,6 +26,6 @@ public class SonarJerseyServerTest {
@Test
public void testUnitTest() {
- Assert.assertEquals("server unit test", new SonarJerseyServer().unitTest());
+ Assertions.assertEquals("server unit test", new SonarJerseyServer().unitTest());
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptAnnotatedReaderWriterTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptAnnotatedReaderWriterTest.java
index 7ac59fb19c9..de42c6a0ec8 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptAnnotatedReaderWriterTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptAnnotatedReaderWriterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -45,10 +45,10 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.Matchers.equalTo;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Jakub Podlesak
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptQsTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptQsTest.java
index 07e103c7527..3b28dd39bc9 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptQsTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptQsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,9 +29,9 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Jakub Podlesak
@@ -170,35 +170,35 @@ private void runTestAcceptMultiple(ApplicationHandler app) throws Exception {
MediaType bar = MediaType.valueOf("application/bar");
ContainerResponse response = app.apply(RequestContextBuilder.from("/", "GET").accept(foo).build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(foo, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept(bar).build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(bar, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("*/*").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(bar, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("application/*").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(bar, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("application/foo;q=0.1", "application/bar").build())
.get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(bar, response.getMediaType());
response = app
.apply(RequestContextBuilder.from("/", "GET").accept("application/foo;q=0.5", "application/bar;q=0.1").build())
.get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(foo, response.getMediaType());
}
@@ -246,42 +246,42 @@ public void testAcceptSubTypeProgrammatic() throws Exception {
private void runTestAcceptSubType(ApplicationHandler app) throws Exception {
ContainerResponse response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("plain", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("image/png, text/plain;q=0.4").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("plain", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain;q=0.5, text/html").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("html", response.getEntity());
assertEquals(MediaType.TEXT_HTML_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain, text/html;q=0.5").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("plain", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/html;q=0.5").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("html", response.getEntity());
assertEquals(MediaType.TEXT_HTML_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/*;q=0.5, text/plain;q=0.6").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("plain", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain;q=0.5, text/gaga;q=0.6").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("*", response.getEntity());
assertEquals(MediaType.valueOf("text/gaga"), response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/gaga, text/plain").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("plain", response.getEntity());
assertEquals(MediaType.valueOf("text/plain"), response.getMediaType());
}
@@ -329,52 +329,52 @@ public void testAcceptSubTypeNotIntuitiveProgrammatic() throws Exception {
private void runTestAcceptSubTypeNotIntuitive(ApplicationHandler app) throws Exception {
ContainerResponse response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("*", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("image/png, text/plain").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("*", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain;q=0.5, text/html").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("*", response.getEntity());
assertEquals(MediaType.TEXT_HTML_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain, text/html;q=0.5").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("*", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/html;q=0.5").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("*", response.getEntity());
assertEquals(MediaType.TEXT_HTML_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/*;q=0.5, text/plain;q=0.6").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("*", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain;q=0.5, text/gaga;q=0.6").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("*", response.getEntity());
assertEquals(MediaType.valueOf("text/gaga"), response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/gaga, text/plain").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("*", response.getEntity());
assertEquals(MediaType.valueOf("text/gaga"), response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/*").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("plain", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/*;q=0.5, text/html;q=0.1").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("plain", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
}
@@ -408,12 +408,12 @@ private void runTestAcceptNoProduces(ApplicationHandler app) throws Exception {
// media type order in the accept header does not impose output media type!
ContainerResponse response = app
.apply(RequestContextBuilder.from("/", "GET").accept("image/png, text/plain;q=0.9").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(MediaType.valueOf("image/png"), response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain;q=0.5, text/html").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(MediaType.TEXT_HTML_TYPE, response.getMediaType());
}
@@ -512,24 +512,24 @@ public void testProducesTwoMethodsBarFooResourceDeclarative() throws Exception {
private void runTestFooBar(ApplicationHandler app, String fooContent, String barContent) throws Exception {
ContainerResponse response = app.apply(RequestContextBuilder.from("/", "GET").accept("application/foo").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals(fooContent, response.getEntity());
assertEquals(MediaType.valueOf("application/foo"), response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("application/bar").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals(barContent, response.getEntity());
assertEquals(MediaType.valueOf("application/bar"), response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("application/foo", "application/bar;q=0.5").build())
.get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals(fooContent, response.getEntity());
assertEquals(MediaType.valueOf("application/foo"), response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("application/bar", "application/foo;q=0.5").build())
.get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals(barContent, response.getEntity());
assertEquals(MediaType.valueOf("application/bar"), response.getMediaType());
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptTest.java
index 63f36a8cf4f..3b29041edf0 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,9 +27,9 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Taken from Jersey 1: jersey-tests:com.sun.jersey.impl.resource.AcceptTest.java
@@ -105,7 +105,7 @@ public void testAcceptGetWildCard() throws Exception {
ContainerResponse response = app
.apply(RequestContextBuilder.from("/", "GET").accept("application/wildcard", "application/foo;q=0.6",
"application/bar;q=0.4", "application/baz;q=0.2").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
String s = (String) response.getEntity();
assertEquals("wildcard", s);
@@ -147,35 +147,35 @@ public void testAcceptMultiple() throws Exception {
MediaType bar = MediaType.valueOf("application/bar");
ContainerResponse response = app.apply(RequestContextBuilder.from("/", "GET").accept(foo).build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(foo, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept(bar).build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(bar, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("*/*").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(foo, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("application/*").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(foo, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("application/foo;q=0.1", "application/bar").build())
.get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(bar, response.getMediaType());
response = app
.apply(RequestContextBuilder.from("/", "GET").accept("application/foo;q=0.5", "application/bar;q=0.1").build())
.get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(foo, response.getMediaType());
}
@@ -189,7 +189,7 @@ public void testAcceptMultiple2() throws Exception {
ContainerResponse response;
response = app.apply(RequestContextBuilder.from("/", "GET").accept("*/*").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(foo, response.getMediaType());
}
@@ -209,22 +209,22 @@ public void testAcceptSubType() throws Exception {
ApplicationHandler app = createApplication(SubTypeResource.class);
ContainerResponse response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("image/png, text/plain").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain;q=0.5, text/html").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(MediaType.TEXT_HTML_TYPE, response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain;q=0.5").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(MediaType.TEXT_PLAIN_TYPE, response.getMediaType());
}
@@ -245,12 +245,12 @@ public void testAcceptNoProduces() throws Exception {
// media type order in the accept header does not impose output media type!
ContainerResponse response = app
.apply(RequestContextBuilder.from("/", "GET").accept("image/png, text/plain;q=0.9").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(MediaType.valueOf("image/png"), response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("text/plain;q=0.5, text/html").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(MediaType.TEXT_HTML_TYPE, response.getMediaType());
}
@@ -316,22 +316,22 @@ private void test(Class> c) throws Exception {
ApplicationHandler app = createApplication(c);
ContainerResponse response = app.apply(RequestContextBuilder.from("/", "GET").accept("application/foo").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(MediaType.valueOf("application/foo"), response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("application/bar").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(MediaType.valueOf("application/bar"), response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("application/foo", "application/bar").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(MediaType.valueOf("application/foo"), response.getMediaType());
response = app.apply(RequestContextBuilder.from("/", "GET").accept("application/bar", "application/foo").build()).get();
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("GET", response.getEntity());
assertEquals(MediaType.valueOf("application/bar"), response.getMediaType());
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptWriterTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptWriterTest.java
index 5cb18b98507..b9f4da7dac5 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptWriterTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/AcceptWriterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -37,8 +37,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey 1: jersey-tests:com.sun.jersey.impl.resource.AcceptWriterTest.java
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/AmbiguousTemplateTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/AmbiguousTemplateTest.java
index 1d50e45d7b9..3df21967e5f 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/AmbiguousTemplateTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/AmbiguousTemplateTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,11 +33,11 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.hasItems;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Test matching of resources with ambiguous templates.
@@ -95,8 +95,8 @@ public void testPathParamOnAmbiguousTemplate() throws ExecutionException, Interr
final ApplicationHandler applicationHandler = new ApplicationHandler(new ResourceConfig(ResourceABC.class,
ResourceXYZ.class));
final ContainerResponse response = applicationHandler.apply(RequestContextBuilder.from("/uuu/a", "GET").build()).get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("a-abc:uuu", response.getEntity());
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("a-abc:uuu", response.getEntity());
}
@Test
@@ -104,8 +104,8 @@ public void testPathParamOnAmbiguousTemplate2() throws ExecutionException, Inter
final ApplicationHandler applicationHandler = new ApplicationHandler(new ResourceConfig(ResourceABC.class,
ResourceXYZ.class));
final ContainerResponse response = applicationHandler.apply(RequestContextBuilder.from("/test/x", "GET").build()).get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("x-xyz:test", response.getEntity());
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("x-xyz:test", response.getEntity());
}
@Test
@@ -113,8 +113,8 @@ public void testPathParamOnAmbiguousTemplate3() throws ExecutionException, Inter
final ApplicationHandler applicationHandler = new ApplicationHandler(new ResourceConfig(ResourceABC.class,
ResourceXYZ.class));
final ContainerResponse response = applicationHandler.apply(RequestContextBuilder.from("/uuu", "GET").build()).get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("abc:uuu", response.getEntity());
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("abc:uuu", response.getEntity());
}
@Test
@@ -123,8 +123,8 @@ public void testPathParamOnAmbiguousTemplate4() throws ExecutionException, Inter
ResourceXYZ.class));
final ContainerResponse response = applicationHandler.apply(RequestContextBuilder.from("/post", "POST")
.entity("entity").build()).get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("xyz:post", response.getEntity());
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("xyz:post", response.getEntity());
}
@Test
@@ -132,8 +132,8 @@ public void testPathParamOnAmbiguousTemplate5() throws ExecutionException, Inter
final ApplicationHandler applicationHandler = new ApplicationHandler(new ResourceConfig(ResourceABC.class,
ResourceXYZ.class));
final ContainerResponse response = applicationHandler.apply(RequestContextBuilder.from("/xxx/foo", "GET").build()).get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("subx-xyz:xxx:foo", response.getEntity());
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("subx-xyz:xxx:foo", response.getEntity());
}
@Path("locator")
@@ -155,7 +155,7 @@ public void testPathParamOnAmbiguousTemplateTroughSubResourceLocator1() throws E
final ApplicationHandler applicationHandler = new ApplicationHandler(new ResourceConfig(SimpleLocator.class));
final ContainerResponse response = applicationHandler.apply(RequestContextBuilder.from("/locator/abc/uuu/a", "GET")
.build()).get();
- Assert.assertEquals(404, response.getStatus());
+ Assertions.assertEquals(404, response.getStatus());
}
@Test
@@ -163,8 +163,8 @@ public void testPathParamOnAmbiguousTemplateTroughSubResourceLocator2() throws E
final ApplicationHandler applicationHandler = new ApplicationHandler(new ResourceConfig(SimpleLocator.class));
final ContainerResponse response = applicationHandler.apply(RequestContextBuilder.from("/locator/abc/a", "GET")
.build()).get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("a-abc:null", response.getEntity());
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("a-abc:null", response.getEntity());
}
@Test
@@ -172,8 +172,8 @@ public void testPathParamOnAmbiguousTemplateTroughSubResourceLocator3() throws E
final ApplicationHandler applicationHandler = new ApplicationHandler(new ResourceConfig(SimpleLocator.class));
final ContainerResponse response = applicationHandler.apply(RequestContextBuilder.from("/locator/xyz/subxfoo", "GET")
.build()).get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("subx-xyz:null:subxfoo", response.getEntity());
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("subx-xyz:null:subxfoo", response.getEntity());
}
@Path("{xyz}")
@@ -211,16 +211,16 @@ public String get() {
public void testSubResourceLocatorWithPathParams() throws ExecutionException, InterruptedException {
final ApplicationHandler applicationHandler = new ApplicationHandler(new ResourceConfig(ResourceWithLocator.class));
final ContainerResponse response = applicationHandler.apply(RequestContextBuilder.from("/uuu", "GET").build()).get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("uuu", response.getEntity());
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("uuu", response.getEntity());
}
@Test
public void testSubResourceLocatorWithPathParams2() throws ExecutionException, InterruptedException {
final ApplicationHandler applicationHandler = new ApplicationHandler(new ResourceConfig(ResourceWithLocator.class));
final ContainerResponse response = applicationHandler.apply(RequestContextBuilder.from("/uuu/test", "GET").build()).get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("uuu:test", response.getEntity());
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("uuu:test", response.getEntity());
}
@Path("{templateA}")
@@ -263,7 +263,7 @@ public void testOptionsOnRoot() throws ExecutionException, InterruptedException
ApplicationHandler app = new ApplicationHandler(resourceConfig);
final ContainerResponse containerResponse = app.apply(RequestContextBuilder.from("/aaa", "OPTIONS")
.accept(MediaType.TEXT_PLAIN).build()).get();
- Assert.assertEquals(200, containerResponse.getStatus());
+ Assertions.assertEquals(200, containerResponse.getStatus());
final List methods = Arrays.asList(containerResponse.getEntity().toString().split(", "));
assertThat(methods, hasItems("POST", "GET", "OPTIONS", "HEAD"));
@@ -277,8 +277,8 @@ public void testGetOnRoot() throws ExecutionException, InterruptedException {
ApplicationHandler app = new ApplicationHandler(resourceConfig);
final ContainerResponse containerResponse = app.apply(RequestContextBuilder.from("/aaa", "GET")
.accept(MediaType.TEXT_PLAIN).build()).get();
- Assert.assertEquals(200, containerResponse.getStatus());
- Assert.assertEquals("getA", containerResponse.getEntity());
+ Assertions.assertEquals(200, containerResponse.getStatus());
+ Assertions.assertEquals("getA", containerResponse.getEntity());
}
@Test
@@ -287,7 +287,7 @@ public void testOptionsOnChild() throws ExecutionException, InterruptedException
ApplicationHandler app = new ApplicationHandler(resourceConfig);
final ContainerResponse containerResponse = app.apply(RequestContextBuilder.from("/resq/c", "OPTIONS")
.accept(MediaType.TEXT_PLAIN).build()).get();
- Assert.assertEquals(200, containerResponse.getStatus());
+ Assertions.assertEquals(200, containerResponse.getStatus());
final List methods = Arrays.asList(containerResponse.getEntity().toString().split(", "));
assertThat(methods, hasItems("PUT", "GET", "OPTIONS", "HEAD"));
@@ -300,7 +300,7 @@ public void testGetOnChild() throws ExecutionException, InterruptedException {
ResourceConfig resourceConfig = new ResourceConfig(ResourceA.class, ResourceB.class, ResourceQ.class);
ApplicationHandler app = new ApplicationHandler(resourceConfig);
final ContainerResponse containerResponse = app.apply(RequestContextBuilder.from("/resq/a", "GET").build()).get();
- Assert.assertEquals(200, containerResponse.getStatus());
- Assert.assertEquals("getA", containerResponse.getEntity());
+ Assertions.assertEquals(200, containerResponse.getStatus());
+ Assertions.assertEquals("getA", containerResponse.getEntity());
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/AncestorsTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/AncestorsTest.java
index 92d6b4bd398..e9b11df8472 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/AncestorsTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/AncestorsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,8 +25,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey-1: jersey-tests:com.sun.jersey.impl.subresources.AncestorsTest
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/AsyncContentAndEntityTypeTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/AsyncContentAndEntityTypeTest.java
index cdb11f8c948..3520c38a523 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/AsyncContentAndEntityTypeTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/AsyncContentAndEntityTypeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -37,9 +37,9 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test of fix for issues JERSEY-1088 and JERSEY-1089.
@@ -91,7 +91,7 @@ public ContainerResponse call() throws Exception {
response = responseFuture.get();
}
- assertTrue("Status: " + response.getStatus(), response.getStatus() < 300);
+ assertTrue(response.getStatus() < 300, "Status: " + response.getStatus());
assertEquals("Foo", response.getEntity());
assertEquals(foo, response.getMediaType());
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/ConstrainedToServerTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/ConstrainedToServerTest.java
index 676d0910057..7765045347f 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/ConstrainedToServerTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/ConstrainedToServerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -47,9 +47,9 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Tests whether providers are correctly validated in the server runtime (for example if provider constrained to
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/ConsumeProduceSimpleTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/ConsumeProduceSimpleTest.java
index a67be6c5c4c..e7ebb5a60d0 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/ConsumeProduceSimpleTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/ConsumeProduceSimpleTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,8 +31,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey 1: jersey-tests:com.sun.jersey.impl.resource.ConsumeProduceSimpleTest.java
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/ConsumeProduceWildcardTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/ConsumeProduceWildcardTest.java
index ced90e5429c..5d6777d9fc3 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/ConsumeProduceWildcardTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/ConsumeProduceWildcardTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,8 +26,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey 1: jersey-tests:com.sun.jersey.impl.resource.ConsumeProduceWildcardTest.java
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/DynamicFeatureTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/DynamicFeatureTest.java
index 5f70aa75c08..2104b906a66 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/DynamicFeatureTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/DynamicFeatureTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -53,12 +53,12 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Assume;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Assumptions;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Tests cases of {@code DynamicFeature} implementation.
@@ -293,7 +293,7 @@ public void configure(final ResourceInfo resourceInfo, final FeatureContext cont
@Test
public void testInjectedConfigurable() throws Exception {
- Assume.assumeTrue(Hk2InjectionManagerFactory.isImmediateStrategy());
+ Assumptions.assumeTrue(Hk2InjectionManagerFactory.isImmediateStrategy());
final ResourceConfig resourceConfig = getTestResourceConfig(InjectConfigurableDynamicFeature.class);
resourceConfig.property("hello", "world");
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/GenericMethodListTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/GenericMethodListTest.java
index 9a23891b3fb..3661ab50bbc 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/GenericMethodListTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/GenericMethodListTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,8 +24,8 @@
import javax.ws.rs.POST;
import javax.ws.rs.core.Context;
-import org.junit.Test;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/HeadSubResourceMethodTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/HeadSubResourceMethodTest.java
index f619b1f2458..83e40e574fa 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/HeadSubResourceMethodTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/HeadSubResourceMethodTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,9 +28,9 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
/**
* @author Paul Sandoz
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/HeadTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/HeadTest.java
index c91ba14d521..69b99c985e9 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/HeadTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/HeadTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,13 +36,13 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* @author Paul Sandoz
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/InnerClassWithGenericTypeTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/InnerClassWithGenericTypeTest.java
index 25960112867..d2229dee08a 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/InnerClassWithGenericTypeTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/InnerClassWithGenericTypeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey-1: jersey-tests:com.sun.jersey.impl.subresources.InnerClassWithGenericTypeTest
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/MethodListTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/MethodListTest.java
index 5934f4ac073..b618c5957a5 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/MethodListTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/MethodListTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,14 +16,14 @@
package org.glassfish.jersey.server.model;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/MixedResourceConfigurationTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/MixedResourceConfigurationTest.java
index db385d21391..9593a1a13fd 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/MixedResourceConfigurationTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/MixedResourceConfigurationTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,8 +30,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test of mixed (programmatic and annotation-based) resource configuration.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/OptionsSubResourceMethodTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/OptionsSubResourceMethodTest.java
index 8bd12d8cbac..de442379f56 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/OptionsSubResourceMethodTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/OptionsSubResourceMethodTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,10 +36,10 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Paul Sandoz
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/OptionsTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/OptionsTest.java
index 1fca50bd90d..e6a304caa41 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/OptionsTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/OptionsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -46,10 +46,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.ServerProperties;
-import org.junit.Assert;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.sun.research.ws.wadl.Application;
@@ -194,9 +194,9 @@ public void testRequestNoType() throws ExecutionException, InterruptedException
ApplicationHandler application = new ApplicationHandler(new ResourceConfig(WadlResource.class));
final ContainerRequest request = RequestContextBuilder.from("/resource", "OPTIONS").build();
final ContainerResponse response = application.apply(request).get();
- Assert.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(200, response.getStatus());
final MediaType type = response.getMediaType();
- Assert.assertTrue(type.equals(MediaTypes.WADL_TYPE) || type.equals(MediaType.TEXT_HTML_TYPE)
+ Assertions.assertTrue(type.equals(MediaTypes.WADL_TYPE) || type.equals(MediaType.TEXT_HTML_TYPE)
|| type.equals(MediaType.TEXT_PLAIN));
}
@@ -206,7 +206,7 @@ public void testRequestTextPlain() throws ExecutionException, InterruptedExcepti
ApplicationHandler application = new ApplicationHandler(new ResourceConfig(WadlResource.class, ResponseTextFilter.class));
final ContainerResponse response = testOptions(MediaType.TEXT_PLAIN_TYPE, application, "/resource");
final String entity = (String) response.getEntity();
- Assert.assertTrue(entity.contains("GET"));
+ Assertions.assertTrue(entity.contains("GET"));
}
@Test
@@ -214,7 +214,7 @@ public void testRequestTextHtml() throws ExecutionException, InterruptedExceptio
ApplicationHandler application = new ApplicationHandler(new ResourceConfig(WadlResource.class, ResponseHtmlFilter.class));
final MediaType requestType = MediaType.TEXT_HTML_TYPE;
final ContainerResponse response = testOptions(requestType, application, "/resource");
- Assert.assertTrue(response.getAllowedMethods().contains("GET"));
+ Assertions.assertTrue(response.getAllowedMethods().contains("GET"));
}
@Test
@@ -229,7 +229,7 @@ private static class ResponseTextFilter implements ContainerResponseFilter {
@Override
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {
final MediaType type = responseContext.getMediaType();
- Assert.assertEquals(MediaType.TEXT_PLAIN_TYPE, type);
+ Assertions.assertEquals(MediaType.TEXT_PLAIN_TYPE, type);
}
}
@@ -239,7 +239,7 @@ private static class ResponseHtmlFilter implements ContainerResponseFilter {
@Override
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {
final MediaType type = responseContext.getMediaType();
- Assert.assertEquals(MediaType.TEXT_HTML_TYPE, type);
+ Assertions.assertEquals(MediaType.TEXT_HTML_TYPE, type);
}
}
@@ -249,7 +249,7 @@ private static class ResponseWadlFilter implements ContainerResponseFilter {
@Override
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {
final MediaType type = responseContext.getMediaType();
- Assert.assertEquals(MediaTypes.WADL_TYPE, type);
+ Assertions.assertEquals(MediaTypes.WADL_TYPE, type);
responseContext.getEntity().getClass().equals(Application.class);
}
@@ -276,7 +276,7 @@ public void testNoHead() throws ExecutionException, InterruptedException {
ApplicationHandler application = new ApplicationHandler(new ResourceConfig(ResourceWithoutGetMethod.class));
final ContainerResponse response = testOptions(MediaType.TEXT_PLAIN_TYPE, application, "/no-get");
- Assert.assertFalse(((String) response.getEntity()).contains("HEAD"));
+ Assertions.assertFalse(((String) response.getEntity()).contains("HEAD"));
}
@Test
@@ -288,11 +288,11 @@ public void testNoHeadWildcard() throws ExecutionException, InterruptedException
final ContainerRequest request = RequestContextBuilder.from("/no-get", "OPTIONS").accept(MediaType.MEDIA_TYPE_WILDCARD)
.build();
final ContainerResponse response = application.apply(request).get();
- Assert.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(200, response.getStatus());
final List strings = response.getStringHeaders().get(HttpHeaders.ALLOW);
for (String allow : strings) {
- Assert.assertFalse(allow.contains("HEAD"));
+ Assertions.assertFalse(allow.contains("HEAD"));
}
}
@@ -301,9 +301,9 @@ private ContainerResponse testOptions(MediaType requestType, ApplicationHandler
final ContainerRequest request = RequestContextBuilder.from(path, "OPTIONS").accept(requestType)
.build();
final ContainerResponse response = application.apply(request).get();
- Assert.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(200, response.getStatus());
final MediaType type = response.getMediaType();
- Assert.assertEquals(requestType, type);
+ Assertions.assertEquals(requestType, type);
return response;
}
@@ -312,6 +312,6 @@ public void testNoHeadInSub() throws ExecutionException, InterruptedException {
ApplicationHandler application = new ApplicationHandler(new ResourceConfig(ResourceWithoutGetMethod.class));
final MediaType requestType = MediaType.TEXT_PLAIN_TYPE;
final ContainerResponse response = testOptions(requestType, application, "/no-get/sub");
- Assert.assertFalse(((String) response.getEntity()).contains("HEAD"));
+ Assertions.assertFalse(((String) response.getEntity()).contains("HEAD"));
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/ParameterTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/ParameterTest.java
index bf895fedc79..5b01dc698a4 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/ParameterTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/ParameterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,10 +22,10 @@
import java.lang.reflect.Method;
import java.util.List;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
/**
* Parameter model creation test.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/ParameterWithMultipleAnnotationsTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/ParameterWithMultipleAnnotationsTest.java
index a8b1adf3f0f..d567e4722d8 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/ParameterWithMultipleAnnotationsTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/ParameterWithMultipleAnnotationsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,8 +23,8 @@
import javax.ws.rs.PathParam;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Checks that Parameters work fine with multiple annotations.
@@ -47,9 +47,9 @@ private void checkMyResourceMethod(String methodName) throws Exception {
assertEquals(1, parameters.size());
final Parameter parameter = parameters.get(0);
- assertEquals(methodName, String.class, parameter.getRawType());
- assertEquals(methodName, String.class, parameter.getType());
- assertEquals(methodName, "correct", parameter.getSourceName());
+ assertEquals(String.class, parameter.getRawType(), methodName);
+ assertEquals(String.class, parameter.getType(), methodName);
+ assertEquals("correct", parameter.getSourceName(), methodName);
}
@Target({java.lang.annotation.ElementType.PARAMETER, java.lang.annotation.ElementType.METHOD,
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/PathAndResourceMethodErrorsTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/PathAndResourceMethodErrorsTest.java
index 01420f32a23..d82ba0b4721 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/PathAndResourceMethodErrorsTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/PathAndResourceMethodErrorsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,10 +29,10 @@
import org.glassfish.jersey.server.ApplicationHandler;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Taken from Jersey 1: jersey-tests: com.sun.jersey.impl.errors.PathAndResourceMethodErrorsTest
@@ -71,7 +71,7 @@ public Object sub() {
}
// FIXME
- @Ignore
+ @Disabled
@Test
public void testPathErrors() {
List issues = initiateWebApplication(PathErrorsResource.class);
@@ -92,7 +92,7 @@ public static class PathErrorsThreeResource {
}
@Test
- @Ignore
+ @Disabled
// TODO add cross-resource validation & un-ignore the test
public void testConflictingRootResourceErrors() {
ResourceConfig resourceConfig = new ResourceConfig(
@@ -105,7 +105,7 @@ public void testConflictingRootResourceErrors() {
}
@Test
- @Ignore
+ @Disabled
// TODO add cross-resource validation & un-ignore the test
public void testConflictingRootResourceErrors2() {
ResourceConfig resourceConfig = new ResourceConfig();
@@ -397,7 +397,7 @@ public Object l2() {
}
// FIXME: trailing slashes should not matter
- @Ignore
+ @Disabled
@Test
public void testAmbiguousSubResourceLocatorsWithSlashResource() {
final List issues = initiateWebApplication(AmbiguousSubResourceLocatorsWithSlashResource.class);
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/ProgrammaticResourceMethodsTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/ProgrammaticResourceMethodsTest.java
index f8a539d697a..3b4e8527534 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/ProgrammaticResourceMethodsTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/ProgrammaticResourceMethodsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,9 +29,9 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/RMBuilderTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/RMBuilderTest.java
index 70c8eed9ee8..e41bd1fcc31 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/RMBuilderTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/RMBuilderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,8 +27,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Runtime model builder test.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceInfoTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceInfoTest.java
index 24716dfbb18..9116356a294 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceInfoTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceInfoTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,9 +36,9 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* Test cases for injected {@link ResourceInfo} in filters.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceModelTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceModelTest.java
index 24713e81607..d717d9728bd 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceModelTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceModelTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,10 +27,10 @@
import org.glassfish.jersey.uri.internal.UriTemplateParser;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test {@link ResourceModel} and {@link RuntimeResourceModel}.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceNotFoundTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceNotFoundTest.java
index ddc2dcb811b..7ba201aa294 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceNotFoundTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceNotFoundTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,8 +31,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* test for JERSEY-938
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/ResourcePathOverrideTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/ResourcePathOverrideTest.java
index ee3ccc76af4..3b359f10c68 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/ResourcePathOverrideTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/ResourcePathOverrideTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test of resource path overriding via programmatic API.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceTestUtils.java b/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceTestUtils.java
index 10e130dcf74..7ba753bd198 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceTestUtils.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/ResourceTestUtils.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,8 +18,8 @@
import java.util.List;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Utils for {@link Resource resource} testing.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceClassDynamicTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceClassDynamicTest.java
index 228f4c56bd3..ecb7e3d9fb0 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceClassDynamicTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceClassDynamicTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,8 +26,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey-1: jersey-tests:com.sun.jersey.impl.subresources.SubResourceClassDynamicTest
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceDynamicTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceDynamicTest.java
index 350003523f2..87dd25efb9f 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceDynamicTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceDynamicTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,8 +25,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey-1: jersey-tests:com.sun.jersey.impl.subresources.SubResourceDynamicTest
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceDynamicWithDuplicateTemplateNamesTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceDynamicWithDuplicateTemplateNamesTest.java
index 492be69cbc0..60f3c5b442c 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceDynamicWithDuplicateTemplateNamesTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceDynamicWithDuplicateTemplateNamesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,8 +30,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey-1: jersey-tests:com.sun.jersey.impl.subresources.SubResourceDynamicWithDuplicateTemplateNamesTest
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceDynamicWithParametersTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceDynamicWithParametersTest.java
index 4d68d36f074..cb5a400153a 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceDynamicWithParametersTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceDynamicWithParametersTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,8 +25,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey-1: jersey-tests:com.sun.jersey.impl.subresources.SubResourceDynamicWithParametersTest
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceHttpMethodsTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceHttpMethodsTest.java
index 53910bc4e51..41dc0d635f6 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceHttpMethodsTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceHttpMethodsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,8 +26,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey-1: jersey-tests:com.sun.jersey.impl.subresources.SubResourceHttpMethodsTest
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceNullTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceNullTest.java
index 724511c5192..1f4dc4ef7e8 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceNullTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceNullTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,8 +24,8 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Taken from Jersey-1: jersey-tests:com.sun.jersey.impl.subresources.SubResourceNullTest
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceProgrammaticTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceProgrammaticTest.java
index c26dfbeaba3..48ce882e560 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceProgrammaticTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/SubResourceProgrammaticTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,9 +32,9 @@
import org.glassfish.jersey.server.RequestContextBuilder;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test sub resource locators returning {@link Resource programmatic resources}.
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/ValidatorTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/ValidatorTest.java
index 5b7a8013733..42bdb0b79f8 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/ValidatorTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/ValidatorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -68,12 +68,12 @@
import org.glassfish.jersey.server.internal.inject.ValueParamProviderConfigurator;
import org.glassfish.jersey.server.model.internal.ModelErrors;
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Taken from Jersey 1: jersey-server:com.sun.jersey.server.impl.modelapi.validation.ResourceModelValidatorTest.java
@@ -374,7 +374,7 @@ public void put(String one, String two) {
}
@Test
- @Ignore("Multiple entity validation not implemented yet.")
+ @Disabled("Multiple entity validation not implemented yet.")
// TODO implement validation
public void suspendedTestMoreThanOneEntity() throws Exception {
LOGGER.info("An issue should be reported if a resource method takes more than one entity params:");
@@ -1013,7 +1013,7 @@ public String get() {
}
@Test
- @Ignore
+ @Disabled
// TODO: need to add validation to detect ambiguous problems of ResourceSubPathRoot and two other resources.
public void testTwoOverlappingSubResourceValidation() throws Exception {
List issues = testResourceValidation(ResourceRoot.class, ResourceSubPathRoot.class);
@@ -1022,7 +1022,7 @@ public void testTwoOverlappingSubResourceValidation() throws Exception {
}
@Test
- @Ignore
+ @Disabled
public void testTwoOverlappingResourceValidation() throws Exception {
List issues = testResourceValidation(ResourceRoot.class, ResourceRootNotUnique.class);
assertEquals(1, issues.size());
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/internal/ChildResourceTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/internal/ChildResourceTest.java
index 3b0a1dc49c2..c6839e7877d 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/internal/ChildResourceTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/internal/ChildResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.server.model.Resource;
import org.glassfish.jersey.uri.PathPattern;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Miroslav Fuksa
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/internal/ModelHelperTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/internal/ModelHelperTest.java
index b572affabe7..a0e896c2a24 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/internal/ModelHelperTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/internal/ModelHelperTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,8 +22,8 @@
import javax.ws.rs.Path;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* @author Constantino Cronemberger (ccronemberger at yahoo.com.br)
@@ -33,16 +33,16 @@ public class ModelHelperTest {
@Test
public void testClass() {
final Class cls = ModelHelper.getAnnotatedResourceClass(MyAnnotatedClass.class);
- Assert.assertSame(MyAnnotatedClass.class, cls);
+ Assertions.assertSame(MyAnnotatedClass.class, cls);
}
@Test
public void testSubClass() {
// Spring with CGLIB proxies creates sub-classes
final Object obj = new MyAnnotatedClass() {};
- Assert.assertNotSame(MyAnnotatedClass.class, obj.getClass());
+ Assertions.assertNotSame(MyAnnotatedClass.class, obj.getClass());
final Class cls = ModelHelper.getAnnotatedResourceClass(obj.getClass());
- Assert.assertSame(MyAnnotatedClass.class, cls);
+ Assertions.assertSame(MyAnnotatedClass.class, cls);
}
@Test
@@ -56,7 +56,7 @@ public Object invoke(final Object proxy, final Method method, final Object[] arg
}
});
final Class cls = ModelHelper.getAnnotatedResourceClass(obj.getClass());
- Assert.assertSame(MyServiceInterface.class, cls);
+ Assertions.assertSame(MyServiceInterface.class, cls);
}
@Path("test")
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/model/internal/ResourceMethodDispatcherFactoryTest.java b/core-server/src/test/java/org/glassfish/jersey/server/model/internal/ResourceMethodDispatcherFactoryTest.java
index bb0edd5b568..b307ae38dcd 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/model/internal/ResourceMethodDispatcherFactoryTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/model/internal/ResourceMethodDispatcherFactoryTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,9 +32,9 @@
import org.glassfish.jersey.server.model.ResourceModelComponent;
import org.glassfish.jersey.server.spi.internal.ResourceMethodDispatcher;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* @author Jakub Podlesak
@@ -44,7 +44,7 @@ public class ResourceMethodDispatcherFactoryTest {
private ResourceMethodDispatcherFactory rmdf;
private ResourceMethodInvocationHandlerFactory rmihf;
- @Before
+ @BeforeEach
public void setupApplication() {
TestInjectionManagerFactory.BootstrapResult result = TestInjectionManagerFactory.createInjectionManager();
@@ -73,8 +73,8 @@ public void testBasicDispatchers() throws InterruptedException, ExecutionExcepti
for (ResourceModelComponent component : rb.build().getComponents()) {
if (component instanceof ResourceMethod) {
Invocable invocable = ((ResourceMethod) component).getInvocable();
- assertNotNull("No dispatcher found for invocable " + invocable.toString(),
- rmdf.create(invocable, rmihf.create(invocable), null));
+ assertNotNull(rmdf.create(invocable, rmihf.create(invocable), null),
+ "No dispatcher found for invocable " + invocable.toString());
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/modelapi/annotation/IntrospectionModellerTest.java b/core-server/src/test/java/org/glassfish/jersey/server/modelapi/annotation/IntrospectionModellerTest.java
index bd929dc143d..c5f4f017f2e 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/modelapi/annotation/IntrospectionModellerTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/modelapi/annotation/IntrospectionModellerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -38,9 +38,9 @@
import org.glassfish.jersey.server.model.ResourceMethod;
import org.hamcrest.Matchers;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import org.junit.jupiter.api.Test;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Jakub Podlesak
@@ -132,38 +132,38 @@ public void testCreateResource() {
result = Resource.builder(resourceClass).build();
resourceMethods = result.getResourceMethods();
- assertEquals("Unexpected number of resource methods in the resource model.", 2, resourceMethods.size());
+ assertEquals(2, resourceMethods.size(), "Unexpected number of resource methods in the resource model.");
resourceMethod = find(resourceMethods, "postA");
- assertEquals("Unexpected number of produced media types in the resource method model",
- 3, resourceMethod.getProducedTypes().size());
- assertEquals("Unexpected number of consumed media types in the resource method model",
- 2, resourceMethod.getConsumedTypes().size());
- assertEquals("Unexpected number of handler parameters",
- 0, resourceMethod.getInvocable().getHandler().getParameters().size());
+ assertEquals(3, resourceMethod.getProducedTypes().size(),
+ "Unexpected number of produced media types in the resource method model");
+ assertEquals(2, resourceMethod.getConsumedTypes().size(),
+ "Unexpected number of consumed media types in the resource method model");
+ assertEquals(0, resourceMethod.getInvocable().getHandler().getParameters().size(),
+ "Unexpected number of handler parameters");
resourceMethod = find(resourceMethods, "postB");
- assertEquals("Unexpected number of inherited produced media types in the resource method model",
- 2, resourceMethod.getProducedTypes().size());
- assertEquals("Unexpected number of inherited consumed media types in the resource method model",
- 3, resourceMethod.getConsumedTypes().size());
- assertEquals("Unexpected number of handler parameters",
- 0, resourceMethod.getInvocable().getHandler().getParameters().size());
+ assertEquals(2, resourceMethod.getProducedTypes().size(),
+ "Unexpected number of inherited produced media types in the resource method model");
+ assertEquals(3, resourceMethod.getConsumedTypes().size(),
+ "Unexpected number of inherited consumed media types in the resource method model");
+ assertEquals(0, resourceMethod.getInvocable().getHandler().getParameters().size(),
+ "Unexpected number of handler parameters");
// OtherResource
resourceClass = OtherResource.class;
result = Resource.builder(resourceClass).build();
resourceMethods = result.getResourceMethods();
- assertEquals("Unexpected number of resource methods in the resource model.", 2, resourceMethods.size());
+ assertEquals(2, resourceMethods.size(), "Unexpected number of resource methods in the resource model.");
resourceMethod = find(resourceMethods, "get");
- assertEquals("Unexpected number of produced media types in the resource method model",
- 0, resourceMethod.getProducedTypes().size());
- assertEquals("Unexpected number of consumed media types in the resource method model",
- 0, resourceMethod.getConsumedTypes().size());
- assertEquals("Unexpected number of handler parameters",
- 5, resourceMethod.getInvocable().getHandler().getParameters().size());
+ assertEquals(0, resourceMethod.getProducedTypes().size(),
+ "Unexpected number of produced media types in the resource method model");
+ assertEquals(0, resourceMethod.getConsumedTypes().size(),
+ "Unexpected number of consumed media types in the resource method model");
+ assertEquals(5, resourceMethod.getInvocable().getHandler().getParameters().size(),
+ "Unexpected number of handler parameters");
assertSources(resourceMethod.getInvocable().getHandler().getParameters(),
Parameter.Source.CONTEXT,
Parameter.Source.PATH,
@@ -172,12 +172,12 @@ public void testCreateResource() {
Parameter.Source.UNKNOWN); // @Inject on setter
resourceMethod = find(resourceMethods, "post");
- assertEquals("Unexpected number of inherited produced media types in the resource method model",
- 0, resourceMethod.getProducedTypes().size());
- assertEquals("Unexpected number of inherited consumed media types in the resource method model",
- 0, resourceMethod.getConsumedTypes().size());
- assertEquals("Unexpected number of handler parameters",
- 5, resourceMethod.getInvocable().getHandler().getParameters().size());
+ assertEquals(0, resourceMethod.getProducedTypes().size(),
+ "Unexpected number of inherited produced media types in the resource method model");
+ assertEquals(0, resourceMethod.getConsumedTypes().size(),
+ "Unexpected number of inherited consumed media types in the resource method model");
+ assertEquals(5, resourceMethod.getInvocable().getHandler().getParameters().size(),
+ "Unexpected number of handler parameters");
assertSources(resourceMethod.getInvocable().getHandler().getParameters(),
Parameter.Source.CONTEXT,
Parameter.Source.PATH,
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/monitoring/MonitoringFeatureTest.java b/core-server/src/test/java/org/glassfish/jersey/server/monitoring/MonitoringFeatureTest.java
index e882ce89001..b8ba55c67cb 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/monitoring/MonitoringFeatureTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/monitoring/MonitoringFeatureTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,8 +24,8 @@
import org.glassfish.jersey.server.internal.monitoring.MonitoringFeature;
import org.glassfish.jersey.server.internal.monitoring.jmx.MBeanExposer;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Test of registration of {@link MonitoringFeature}.
@@ -41,9 +41,9 @@ public void testStatisticsEnabled() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertTrue(config.isRegistered(MonitoringEventListener.class));
- Assert.assertFalse(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertTrue(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertFalse(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -54,9 +54,9 @@ public void testMonitoringDisabled() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertFalse(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertFalse(config.isRegistered(MonitoringEventListener.class));
- Assert.assertFalse(config.isRegistered(MBeanExposer.class));
+ Assertions.assertFalse(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertFalse(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertFalse(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -67,9 +67,9 @@ public void testStatisticsDisabled() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertFalse(config.isRegistered(MonitoringEventListener.class));
- Assert.assertFalse(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertFalse(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertFalse(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -79,9 +79,9 @@ public void testMonitoringEnabledByAutodiscovery() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertTrue(config.isRegistered(MonitoringEventListener.class));
- Assert.assertFalse(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertTrue(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertFalse(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -92,9 +92,9 @@ public void testMonitoringEnabledStatisticsDisabledByAutodiscovery() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertFalse(config.isRegistered(MonitoringEventListener.class));
- Assert.assertFalse(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertFalse(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertFalse(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -104,9 +104,9 @@ public void testStatisticsEnabledByAutodiscovery() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertTrue(config.isRegistered(MonitoringEventListener.class));
- Assert.assertFalse(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertTrue(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertFalse(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -116,9 +116,9 @@ public void testStatisticsDisabledByAutodiscovery() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertFalse(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertFalse(config.isRegistered(MonitoringEventListener.class));
- Assert.assertFalse(config.isRegistered(MBeanExposer.class));
+ Assertions.assertFalse(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertFalse(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertFalse(config.isRegistered(MBeanExposer.class));
}
@@ -131,9 +131,9 @@ public void testStatisticsEnabledMbeansEnabledByInstance() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertTrue(config.isRegistered(MonitoringEventListener.class));
- Assert.assertTrue(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertTrue(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertTrue(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -146,9 +146,9 @@ public void testStatisticsEnabledMbeansEnabledByInstance2() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertTrue(config.isRegistered(MonitoringEventListener.class));
- Assert.assertFalse(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertTrue(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertFalse(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -162,9 +162,9 @@ public void testAllDisabled() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertFalse(config.isRegistered(MonitoringEventListener.class));
- Assert.assertFalse(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertFalse(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertFalse(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -177,9 +177,9 @@ public void testAllDisabled2() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertFalse(config.isRegistered(MonitoringEventListener.class));
- Assert.assertFalse(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertFalse(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertFalse(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -190,9 +190,9 @@ public void testAllDisabled3() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertFalse(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertFalse(config.isRegistered(MonitoringEventListener.class));
- Assert.assertFalse(config.isRegistered(MBeanExposer.class));
+ Assertions.assertFalse(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertFalse(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertFalse(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -203,9 +203,9 @@ public void testAllEnabled() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertTrue(config.isRegistered(MonitoringEventListener.class));
- Assert.assertTrue(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertTrue(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertTrue(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -219,9 +219,9 @@ public void testAllEnabled2() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertTrue(config.isRegistered(MonitoringEventListener.class));
- Assert.assertTrue(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertTrue(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertTrue(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -231,9 +231,9 @@ public void testOnlyMBeansEnabled() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertTrue(config.isRegistered(MonitoringEventListener.class));
- Assert.assertTrue(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertTrue(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertTrue(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -244,9 +244,9 @@ public void testOnlyMBeansEnabled2() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertTrue(config.isRegistered(MonitoringEventListener.class));
- Assert.assertTrue(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertTrue(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertTrue(config.isRegistered(MBeanExposer.class));
}
@Test
@@ -258,8 +258,8 @@ public void testOnlyMBeansEnabled3() {
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
- Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));
- Assert.assertTrue(config.isRegistered(MonitoringEventListener.class));
- Assert.assertTrue(config.isRegistered(MBeanExposer.class));
+ Assertions.assertTrue(config.isRegistered(ApplicationInfoListener.class));
+ Assertions.assertTrue(config.isRegistered(MonitoringEventListener.class));
+ Assertions.assertTrue(config.isRegistered(MBeanExposer.class));
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/wadl/config/WadlGeneratorConfigTest.java b/core-server/src/test/java/org/glassfish/jersey/server/wadl/config/WadlGeneratorConfigTest.java
index 5aa59e98c5a..ef3cca89b43 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/wadl/config/WadlGeneratorConfigTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/wadl/config/WadlGeneratorConfigTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,8 +30,8 @@
import org.glassfish.jersey.server.wadl.WadlGenerator;
import org.glassfish.jersey.server.wadl.internal.ApplicationDescription;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import com.sun.research.ws.wadl.Application;
import com.sun.research.ws.wadl.Method;
@@ -64,8 +64,8 @@ public void testBuildWadlGeneratorFromGenerators() {
TestInjectionManagerFactory.BootstrapResult result = TestInjectionManagerFactory.createInjectionManager();
WadlGenerator wadlGenerator = config.createWadlGenerator(result.injectionManager);
- Assert.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
- Assert.assertEquals(MyWadlGenerator.class, ((MyWadlGenerator2) wadlGenerator).getDelegate().getClass());
+ Assertions.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
+ Assertions.assertEquals(MyWadlGenerator.class, ((MyWadlGenerator2) wadlGenerator).getDelegate().getClass());
}
@Test
@@ -76,8 +76,8 @@ public void testBuildWadlGeneratorFromDescriptions() {
.prop("foo", propValue)
.build();
WadlGenerator wadlGenerator = config.createWadlGenerator(result.injectionManager);
- Assert.assertEquals(MyWadlGenerator.class, wadlGenerator.getClass());
- Assert.assertEquals(((MyWadlGenerator) wadlGenerator).getFoo(), propValue);
+ Assertions.assertEquals(MyWadlGenerator.class, wadlGenerator.getClass());
+ Assertions.assertEquals(((MyWadlGenerator) wadlGenerator).getFoo(), propValue);
final String propValue2 = "baz";
config = WadlGeneratorConfig.generator(MyWadlGenerator.class)
@@ -85,12 +85,12 @@ public void testBuildWadlGeneratorFromDescriptions() {
.prop("bar", propValue2)
.build();
wadlGenerator = config.createWadlGenerator(result.injectionManager);
- Assert.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
+ Assertions.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
final MyWadlGenerator2 wadlGenerator2 = (MyWadlGenerator2) wadlGenerator;
- Assert.assertEquals(wadlGenerator2.getBar(), propValue2);
+ Assertions.assertEquals(wadlGenerator2.getBar(), propValue2);
- Assert.assertEquals(MyWadlGenerator.class, wadlGenerator2.getDelegate().getClass());
- Assert.assertEquals(((MyWadlGenerator) wadlGenerator2.getDelegate()).getFoo(), propValue);
+ Assertions.assertEquals(MyWadlGenerator.class, wadlGenerator2.getDelegate().getClass());
+ Assertions.assertEquals(((MyWadlGenerator) wadlGenerator2.getDelegate()).getFoo(), propValue);
}
@Test
@@ -114,12 +114,12 @@ public List configure() {
WadlGeneratorConfig config = new MyWadlGeneratorConfig();
WadlGenerator wadlGenerator = config.createWadlGenerator(result.injectionManager);
- Assert.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
+ Assertions.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
final MyWadlGenerator2 wadlGenerator2 = (MyWadlGenerator2) wadlGenerator;
- Assert.assertEquals(wadlGenerator2.getBar(), propValue2);
+ Assertions.assertEquals(wadlGenerator2.getBar(), propValue2);
- Assert.assertEquals(MyWadlGenerator.class, wadlGenerator2.getDelegate().getClass());
- Assert.assertEquals(((MyWadlGenerator) wadlGenerator2.getDelegate()).getFoo(), propValue);
+ Assertions.assertEquals(MyWadlGenerator.class, wadlGenerator2.getDelegate().getClass());
+ Assertions.assertEquals(((MyWadlGenerator) wadlGenerator2.getDelegate()).getFoo(), propValue);
}
public abstract static class BaseWadlGenerator implements WadlGenerator {
@@ -271,11 +271,11 @@ public void testBuildWadlGeneratorFromDescriptionsWithTypes() {
TestInjectionManagerFactory.BootstrapResult result = TestInjectionManagerFactory.createInjectionManager();
WadlGenerator wadlGenerator = config.createWadlGenerator(result.injectionManager);
- Assert.assertEquals(MyWadlGenerator3.class, wadlGenerator.getClass());
+ Assertions.assertEquals(MyWadlGenerator3.class, wadlGenerator.getClass());
MyWadlGenerator3 g = (MyWadlGenerator3) wadlGenerator;
- Assert.assertNotNull(g.foo);
- Assert.assertEquals(g.foo.s, "string");
- Assert.assertNotNull(g.bar);
+ Assertions.assertNotNull(g.foo);
+ Assertions.assertEquals(g.foo.s, "string");
+ Assertions.assertNotNull(g.bar);
}
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/wadl/config/WadlGeneratorConfigurationLoaderTest.java b/core-server/src/test/java/org/glassfish/jersey/server/wadl/config/WadlGeneratorConfigurationLoaderTest.java
index 589dc89b0ea..88e3bdb1206 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/wadl/config/WadlGeneratorConfigurationLoaderTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/wadl/config/WadlGeneratorConfigurationLoaderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,8 +29,8 @@
import org.glassfish.jersey.server.wadl.WadlGenerator;
import org.glassfish.jersey.server.wadl.internal.ApplicationDescription;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import com.sun.research.ws.wadl.Application;
import com.sun.research.ws.wadl.Method;
@@ -61,7 +61,7 @@ public void testLoadConfigClass() throws URISyntaxException {
TestInjectionManagerFactory.createInjectionManager(resourceConfig);
final WadlGenerator wadlGenerator = WadlGeneratorConfigLoader.loadWadlGeneratorsFromConfig(resourceConfig.getProperties())
.createWadlGenerator(result.injectionManager);
- Assert.assertEquals(MyWadlGenerator.class, wadlGenerator.getClass());
+ Assertions.assertEquals(MyWadlGenerator.class, wadlGenerator.getClass());
}
@@ -75,7 +75,7 @@ public void testLoadConfigInstance() {
TestInjectionManagerFactory.createInjectionManager(resourceConfig);
final WadlGenerator wadlGenerator = WadlGeneratorConfigLoader.loadWadlGeneratorsFromConfig(resourceConfig.getProperties())
.createWadlGenerator(result.injectionManager);
- Assert.assertTrue(wadlGenerator instanceof MyWadlGenerator);
+ Assertions.assertTrue(wadlGenerator instanceof MyWadlGenerator);
}
public static class MyWadlGenerator implements WadlGenerator {
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/wadl/config/WadlGeneratorLoaderTest.java b/core-server/src/test/java/org/glassfish/jersey/server/wadl/config/WadlGeneratorLoaderTest.java
index 06670553e40..c9d774eb4a5 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/wadl/config/WadlGeneratorLoaderTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/wadl/config/WadlGeneratorLoaderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -37,8 +37,8 @@
import org.glassfish.jersey.server.wadl.WadlGenerator;
import org.glassfish.jersey.server.wadl.internal.ApplicationDescription;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import com.sun.research.ws.wadl.Application;
import com.sun.research.ws.wadl.Method;
@@ -67,10 +67,10 @@ public void testLoadFileFromClasspathRelative() throws Exception {
final WadlGenerator wadlGenerator =
WadlGeneratorLoader.loadWadlGeneratorDescriptions(result.injectionManager, description);
- Assert.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
+ Assertions.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
final URL resource = getClass().getResource("testfile.xml");
- Assert.assertEquals(new File(resource.toURI()).getAbsolutePath(), ((MyWadlGenerator2) wadlGenerator).getTestFile()
+ Assertions.assertEquals(new File(resource.toURI()).getAbsolutePath(), ((MyWadlGenerator2) wadlGenerator).getTestFile()
.getAbsolutePath());
}
@@ -85,10 +85,10 @@ public void testLoadFileFromClasspathAbsolute() throws Exception {
final WadlGenerator wadlGenerator =
WadlGeneratorLoader.loadWadlGeneratorDescriptions(result.injectionManager, description);
- Assert.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
+ Assertions.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
final URL resource = getClass().getResource("testfile.xml");
- Assert.assertEquals(new File(resource.toURI()).getAbsolutePath(), ((MyWadlGenerator2) wadlGenerator).getTestFile()
+ Assertions.assertEquals(new File(resource.toURI()).getAbsolutePath(), ((MyWadlGenerator2) wadlGenerator).getTestFile()
.getAbsolutePath());
}
@@ -105,9 +105,9 @@ public void testLoadFileFromAbsolutePath() throws Exception {
final WadlGenerator wadlGenerator =
WadlGeneratorLoader.loadWadlGeneratorDescriptions(result.injectionManager, description);
- Assert.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
+ Assertions.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
- Assert.assertEquals(new File(resource.toURI()).getAbsolutePath(), ((MyWadlGenerator2) wadlGenerator).getTestFile()
+ Assertions.assertEquals(new File(resource.toURI()).getAbsolutePath(), ((MyWadlGenerator2) wadlGenerator).getTestFile()
.getAbsolutePath());
}
@@ -121,10 +121,10 @@ public void testLoadStream() throws Exception {
final WadlGenerator wadlGenerator =
WadlGeneratorLoader.loadWadlGeneratorDescriptions(result.injectionManager, description);
- Assert.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
+ Assertions.assertEquals(MyWadlGenerator2.class, wadlGenerator.getClass());
final URL resource = getClass().getResource("testfile.xml");
- Assert.assertEquals(new File(resource.toURI()).length(), ((MyWadlGenerator2) wadlGenerator).getTestStreamContent()
+ Assertions.assertEquals(new File(resource.toURI()).length(), ((MyWadlGenerator2) wadlGenerator).getTestStreamContent()
.length());
}
diff --git a/core-server/src/test/java/org/glassfish/jersey/server/wadl/generators/resourcedoc/WadlGeneratorResourceDocSupportTest.java b/core-server/src/test/java/org/glassfish/jersey/server/wadl/generators/resourcedoc/WadlGeneratorResourceDocSupportTest.java
index e42b397c8ee..803d13f3257 100644
--- a/core-server/src/test/java/org/glassfish/jersey/server/wadl/generators/resourcedoc/WadlGeneratorResourceDocSupportTest.java
+++ b/core-server/src/test/java/org/glassfish/jersey/server/wadl/generators/resourcedoc/WadlGeneratorResourceDocSupportTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -42,7 +42,7 @@
import org.glassfish.jersey.server.wadl.internal.generators.resourcedoc.model.ParamDocType;
import org.glassfish.jersey.server.wadl.internal.generators.resourcedoc.model.ResourceDocType;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import com.sun.research.ws.wadl.Application;
diff --git a/docs/src/main/docbook/getting-started.xml b/docs/src/main/docbook/getting-started.xml
index 3680d6049c8..401d19bf6ff 100644
--- a/docs/src/main/docbook/getting-started.xml
+++ b/docs/src/main/docbook/getting-started.xml
@@ -151,7 +151,7 @@ public class MyResourceTest {
private HttpServer server;
private WebTarget target;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
server = Main.startServer();
@@ -159,7 +159,7 @@ public class MyResourceTest {
target = c.target(Main.BASE_URI);
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
server.stop();
}
diff --git a/examples/bookmark-em/src/test/java/org/glassfish/jersey/examples/bookmark_em/BookmarkTest.java b/examples/bookmark-em/src/test/java/org/glassfish/jersey/examples/bookmark_em/BookmarkTest.java
index 5bdba8abed5..7b287f95109 100644
--- a/examples/bookmark-em/src/test/java/org/glassfish/jersey/examples/bookmark_em/BookmarkTest.java
+++ b/examples/bookmark-em/src/test/java/org/glassfish/jersey/examples/bookmark_em/BookmarkTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -25,13 +25,13 @@
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONObject;
-import org.junit.FixMethodOrder;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.runners.MethodSorters;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.MethodOrderer;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestMethodOrder;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* TODO un-ignore once Jersey supports @ManagedBean
@@ -39,8 +39,8 @@
* @author Pavel Bucek
* @author Michal Gajdos
*/
-@Ignore("un-ignore once Jersey supports @ManagedBean")
-@FixMethodOrder(MethodSorters.NAME_ASCENDING)
+@Disabled("un-ignore once Jersey supports @ManagedBean")
+@TestMethodOrder(MethodOrderer.MethodName.class)
public class BookmarkTest extends JerseyTest {
@Override
diff --git a/examples/bookmark/src/test/java/org/glassfish/jersey/examples/bookmark/BookmarkTest.java b/examples/bookmark/src/test/java/org/glassfish/jersey/examples/bookmark/BookmarkTest.java
index 2ecbfef8a39..2b1e690e70c 100644
--- a/examples/bookmark/src/test/java/org/glassfish/jersey/examples/bookmark/BookmarkTest.java
+++ b/examples/bookmark/src/test/java/org/glassfish/jersey/examples/bookmark/BookmarkTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -26,18 +26,19 @@
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONObject;
-import org.junit.FixMethodOrder;
-import org.junit.Test;
-import org.junit.runners.MethodSorters;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.MethodOrderer;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestMethodOrder;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Pavel Bucek
* @author Michal Gajdos
*/
-@FixMethodOrder(MethodSorters.NAME_ASCENDING)
+@TestMethodOrder(MethodOrderer.MethodName.class)
public class BookmarkTest extends JerseyTest {
@Override
diff --git a/examples/bookstore-webapp/src/test/java/org/glassfish/jersey/examples/bookstore/webapp/resource/BookstoreTest.java b/examples/bookstore-webapp/src/test/java/org/glassfish/jersey/examples/bookstore/webapp/resource/BookstoreTest.java
index abecf273f89..0b25af3b1ab 100644
--- a/examples/bookstore-webapp/src/test/java/org/glassfish/jersey/examples/bookstore/webapp/resource/BookstoreTest.java
+++ b/examples/bookstore-webapp/src/test/java/org/glassfish/jersey/examples/bookstore/webapp/resource/BookstoreTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -26,9 +26,9 @@
package org.glassfish.jersey.examples.bookstore.webapp.resource;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* @author James Strachan
@@ -54,8 +54,8 @@ public void testHappyResourceAsHtml() throws Exception {
public void testResourceAsXml() throws Exception {
final Bookstore response = target("bookstore-webapp").request("application/xml").get(Bookstore.class);
- assertNotNull("Should have returned a bookstore!", response);
- assertEquals("bookstore name", "Czech Bookstore", response.getName());
+ assertNotNull(response, "Should have returned a bookstore!");
+ assertEquals("Czech Bookstore", response.getName(), "bookstore name");
}
@Test
diff --git a/examples/bookstore-webapp/src/test/java/org/glassfish/jersey/examples/bookstore/webapp/resource/ItemTest.java b/examples/bookstore-webapp/src/test/java/org/glassfish/jersey/examples/bookstore/webapp/resource/ItemTest.java
index 8a3e6dcfd87..b61f6c1581c 100644
--- a/examples/bookstore-webapp/src/test/java/org/glassfish/jersey/examples/bookstore/webapp/resource/ItemTest.java
+++ b/examples/bookstore-webapp/src/test/java/org/glassfish/jersey/examples/bookstore/webapp/resource/ItemTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -28,9 +28,9 @@
import javax.ws.rs.client.WebTarget;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* @author James Strachan
@@ -51,8 +51,8 @@ public void testResourceAsXml() throws Exception {
System.out.println("Item XML is: " + text);
final Book response = item1resource().request("application/xml").get(Book.class);
- assertNotNull("Should have returned an item!", response);
- assertEquals("item title", "Svejk", response.getTitle());
+ assertNotNull(response, "Should have returned an item!");
+ assertEquals("Svejk", response.getTitle(), "item title");
}
@Test
diff --git a/examples/bookstore-webapp/src/test/java/org/glassfish/jersey/examples/bookstore/webapp/resource/TestSupport.java b/examples/bookstore-webapp/src/test/java/org/glassfish/jersey/examples/bookstore/webapp/resource/TestSupport.java
index 6a4c22155e5..10212c659e3 100644
--- a/examples/bookstore-webapp/src/test/java/org/glassfish/jersey/examples/bookstore/webapp/resource/TestSupport.java
+++ b/examples/bookstore-webapp/src/test/java/org/glassfish/jersey/examples/bookstore/webapp/resource/TestSupport.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -33,8 +33,8 @@
import org.glassfish.jersey.servlet.ServletProperties;
import org.glassfish.jersey.test.JerseyTest;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author James Strachan
@@ -52,13 +52,13 @@ protected Application configure() {
}
protected void assertHtmlResponse(String response) {
- assertNotNull("No text returned!", response);
+ assertNotNull(response, "No text returned!");
assertResponseContains(response, "");
assertResponseContains(response, "");
}
protected void assertResponseContains(String response, String text) {
- assertTrue("Response should contain " + text + " but was: " + response, response.contains(text));
+ assertTrue(response.contains(text), "Response should contain " + text + " but was: " + response);
}
}
diff --git a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/CdiTest.java b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/CdiTest.java
index bfc60968ad9..7f4e0734bfc 100644
--- a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/CdiTest.java
+++ b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/CdiTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -19,8 +19,9 @@
import org.glassfish.jersey.test.JerseyTest;
import org.jboss.weld.environment.se.Weld;
-import org.junit.Assume;
-import org.junit.Before;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Assumptions;
+import org.junit.jupiter.api.BeforeEach;
/**
* Test for CDI web application resources.
@@ -36,11 +37,12 @@ public class CdiTest extends JerseyTest {
Weld weld;
- @Before
+ @BeforeEach
public void setup() {
- Assume.assumeTrue(Hk2InjectionManagerFactory.isImmediateStrategy());
+ Assumptions.assumeTrue(Hk2InjectionManagerFactory.isImmediateStrategy());
}
+ @BeforeEach
@Override
public void setUp() throws Exception {
weld = new Weld();
@@ -48,6 +50,7 @@ public void setUp() throws Exception {
super.setUp();
}
+ @AfterEach
@Override
public void tearDown() throws Exception {
weld.shutdown();
diff --git a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/EchoParamBeanTest.java b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/EchoParamBeanTest.java
index 195dbc21e11..dcbbe8ed34d 100644
--- a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/EchoParamBeanTest.java
+++ b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/EchoParamBeanTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,50 +10,35 @@
package org.glassfish.jersey.examples.cdi.resources;
-import java.util.Arrays;
-import java.util.List;
+import java.util.stream.Stream;
import javax.ws.rs.client.WebTarget;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
import static org.hamcrest.CoreMatchers.containsString;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Test for the echo with injected param managed bean resource.
*
* @author Jakub Podlesak
*/
-@RunWith(Parameterized.class)
public class EchoParamBeanTest extends CdiTest {
- @Parameterized.Parameters
- public static List testData() {
- return Arrays.asList(new Object[][] {
- {"alpha", "beta"},
- {"AAA", "BBB"},
- {"b", "a"},
- {"1$s", "2&d"}
- });
+ public static Stream testData() {
+ return Stream.of(
+ Arguments.of("alpha", "beta"),
+ Arguments.of("AAA", "BBB"),
+ Arguments.of("b", "a"),
+ Arguments.of("1$s", "2&d")
+ );
}
- final String a, b;
-
- /**
- * Create a new test case based on the above defined parameters.
- *
- * @param a query parameter value
- * @param b path parameter value
- */
- public EchoParamBeanTest(String a, String b) {
- this.a = a;
- this.b = b;
- }
-
- @Test
- public void testEchoParamResource() {
+ @ParameterizedTest
+ @MethodSource("testData")
+ public void testEchoParamResource(String a, String b) {
final WebTarget target = target().path("echofield").path(b);
diff --git a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/EchoResourceTest.java b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/EchoResourceTest.java
index fd76151aca8..97f9645715a 100644
--- a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/EchoResourceTest.java
+++ b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/EchoResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,48 +10,30 @@
package org.glassfish.jersey.examples.cdi.resources;
-import java.util.Arrays;
-import java.util.List;
+import java.util.stream.Stream;
import javax.ws.rs.client.WebTarget;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.MethodSource;
+
import static org.hamcrest.CoreMatchers.containsString;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Test for the echo resource.
*
* @author Jakub Podlesak
*/
-@RunWith(Parameterized.class)
public class EchoResourceTest extends CdiTest {
- @Parameterized.Parameters
- public static List testData() {
- return Arrays.asList(new Object[][] {
- {"alpha"},
- {"AAA"},
- {"b"},
- {"1"}
- });
- }
-
- final String a;
-
- /**
- * Create a new test case based on the above defined parameters.
- *
- * @param a path parameter value
- */
- public EchoResourceTest(String a) {
- this.a = a;
+ public static Stream testData() {
+ return Stream.of("alpha", "AAA", "b", "1");
}
- @Test
- public void testEchoResource() {
+ @ParameterizedTest
+ @MethodSource("testData")
+ public void testEchoResource(String a) {
final WebTarget target = target().path("echo").path(a);
@@ -61,8 +43,9 @@ public void testEchoResource() {
assertThat(s, containsString(a));
}
- @Test
- public void testEchoParamCtorResource() {
+ @ParameterizedTest
+ @MethodSource("testData")
+ public void testEchoParamCtorResource(String a) {
final WebTarget target = target().path("echoparamconstructor").path(a);
diff --git a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/HelloworldTest.java b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/HelloworldTest.java
index 006634c73e1..3ebf7a7f421 100644
--- a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/HelloworldTest.java
+++ b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/HelloworldTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,9 +10,9 @@
package org.glassfish.jersey.examples.cdi.resources;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.CoreMatchers.containsString;
/**
diff --git a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/PerApplicationBeanTest.java b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/PerApplicationBeanTest.java
index 45c40870537..b85c0773dc4 100644
--- a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/PerApplicationBeanTest.java
+++ b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/PerApplicationBeanTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -13,7 +13,7 @@
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.CoreMatchers.containsString;
diff --git a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/PerRequestBeanTest.java b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/PerRequestBeanTest.java
index a758d15ef5d..ed6be52cc3c 100644
--- a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/PerRequestBeanTest.java
+++ b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/PerRequestBeanTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,51 +10,36 @@
package org.glassfish.jersey.examples.cdi.resources;
-import java.util.Arrays;
-import java.util.List;
+import java.util.stream.Stream;
import javax.ws.rs.client.WebTarget;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.startsWith;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Test for the request scoped managed bean resource.
*
* @author Jakub Podlesak
*/
-@RunWith(Parameterized.class)
public class PerRequestBeanTest extends CdiTest {
- @Parameterized.Parameters
- public static List testData() {
- return Arrays.asList(new Object[][] {
- {"gamma", "delta"},
- {"CC C", "D DD"},
- {"d", "c"},
- {"@^&", "?!:"}
- });
+ public static Stream testData() {
+ return Stream.of(
+ Arguments.of("gamma", "delta"),
+ Arguments.of("CC C", "D DD"),
+ Arguments.of("d", "c"),
+ Arguments.of("@^&", "?!:")
+ );
}
- final String c, d;
-
- /**
- * Create a new test case based on the above defined parameters.
- *
- * @param c first path parameter value.
- * @param d second path parameter value.
- */
- public PerRequestBeanTest(String c, String d) {
- this.c = c;
- this.d = d;
- }
-
- @Test
- public void testTheOtherResource() {
+ @ParameterizedTest
+ @MethodSource("testData")
+ public void testTheOtherResource(String c, String d) {
final WebTarget target = target().path("other").path(c).path(d);
String s = target.request().get(String.class);
diff --git a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/ProxyScopeAlignmentTest.java b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/ProxyScopeAlignmentTest.java
index 0787114375f..43829bec3b5 100644
--- a/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/ProxyScopeAlignmentTest.java
+++ b/examples/cdi-webapp/src/test/java/org/glassfish/jersey/examples/cdi/resources/ProxyScopeAlignmentTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,17 +10,15 @@
package org.glassfish.jersey.examples.cdi.resources;
-import java.util.Arrays;
-import java.util.List;
+import java.util.stream.Stream;
import javax.ws.rs.client.WebTarget;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.MethodSource;
import static org.hamcrest.CoreMatchers.containsString;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Ensure CDI and JAX-RS scopes are well aligned, so that dynamic proxies
@@ -28,31 +26,15 @@
*
* @author Jakub Podlesak
*/
-@RunWith(Parameterized.class)
public class ProxyScopeAlignmentTest extends CdiTest {
- @Parameterized.Parameters
- public static List testData() {
- return Arrays.asList(new Object[][] {
- {"one"},
- {"too"},
- {"much"}
- });
+ public static Stream testData() {
+ return Stream.of("one", "too", "much");
}
- final String p;
-
- /**
- * Create a new test case based on the above defined parameters.
- *
- * @param p path parameter value
- */
- public ProxyScopeAlignmentTest(String p) {
- this.p = p;
- }
-
- @Test
- public void testUiInjection() {
+ @ParameterizedTest
+ @MethodSource("testData")
+ public void testUiInjection(String p) {
final WebTarget app = target().path("ui-app").path(p);
final WebTarget req = target().path("ui-req").path(p);
diff --git a/examples/clipboard-programmatic/src/test/java/org/glassfish/jersey/examples/clipboard/ClipboardTest.java b/examples/clipboard-programmatic/src/test/java/org/glassfish/jersey/examples/clipboard/ClipboardTest.java
index c7081560d47..e9ae01bd008 100644
--- a/examples/clipboard-programmatic/src/test/java/org/glassfish/jersey/examples/clipboard/ClipboardTest.java
+++ b/examples/clipboard-programmatic/src/test/java/org/glassfish/jersey/examples/clipboard/ClipboardTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -18,8 +18,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class ClipboardTest extends JerseyTest {
diff --git a/examples/clipboard/src/test/java/org/glassfish/jersey/examples/clipboard/ClipboardTest.java b/examples/clipboard/src/test/java/org/glassfish/jersey/examples/clipboard/ClipboardTest.java
index 4fdb3b36a82..55c34a0b656 100644
--- a/examples/clipboard/src/test/java/org/glassfish/jersey/examples/clipboard/ClipboardTest.java
+++ b/examples/clipboard/src/test/java/org/glassfish/jersey/examples/clipboard/ClipboardTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -20,9 +20,9 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class ClipboardTest extends JerseyTest {
@@ -32,7 +32,7 @@ protected ResourceConfig configure() {
return App.createApp();
}
- @Before
+ @BeforeEach
@Override
public void setUp() throws Exception {
super.setUp();
diff --git a/examples/declarative-linking/src/test/java/org/glassfish/jersey/examples/linking/LinkWebAppTest.java b/examples/declarative-linking/src/test/java/org/glassfish/jersey/examples/linking/LinkWebAppTest.java
index 1ff343515de..df19dd38d36 100644
--- a/examples/declarative-linking/src/test/java/org/glassfish/jersey/examples/linking/LinkWebAppTest.java
+++ b/examples/declarative-linking/src/test/java/org/glassfish/jersey/examples/linking/LinkWebAppTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -21,10 +21,10 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Naresh (Srinivas Bhimisetty)
@@ -52,12 +52,12 @@ public void testLinks() throws Exception {
.get(Response.class);
final Response.StatusType statusInfo = response.getStatusInfo();
- assertEquals("Should have succeeded", 200, statusInfo.getStatusCode());
+ assertEquals(200, statusInfo.getStatusCode(), "Should have succeeded");
final String content = response.readEntity(String.class);
final List linkHeaders = response.getHeaders().get("Link");
- assertEquals("Should have two link headers", 2, linkHeaders.size());
+ assertEquals(2, linkHeaders.size(), "Should have two link headers");
assertThat("Content should contain next link",
content,
containsString("http://localhost:" + getPort() + "/items?offset=20&limit=10"));
diff --git a/examples/entity-filtering-security/src/test/java/org/glassfish/jersey/examples/entityfiltering/security/RestrictedResourceTest.java b/examples/entity-filtering-security/src/test/java/org/glassfish/jersey/examples/entityfiltering/security/RestrictedResourceTest.java
index 1a530b7e875..c7c25d776b4 100644
--- a/examples/entity-filtering-security/src/test/java/org/glassfish/jersey/examples/entityfiltering/security/RestrictedResourceTest.java
+++ b/examples/entity-filtering-security/src/test/java/org/glassfish/jersey/examples/entityfiltering/security/RestrictedResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,8 +10,6 @@
package org.glassfish.jersey.examples.entityfiltering.security;
-import java.util.Arrays;
-
import javax.ws.rs.core.Feature;
import javax.ws.rs.core.Response;
@@ -23,10 +21,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
@@ -37,111 +32,120 @@
*
* @author Michal Gajdos
*/
-@RunWith(Parameterized.class)
-public class RestrictedResourceTest extends JerseyTest {
-
- @Parameterized.Parameters(name = "Provider: {0}")
- public static Iterable providers() {
- return Arrays.asList(new Class[][]{{MoxyJsonFeature.class}, {JacksonFeature.class}});
- }
-
- public RestrictedResourceTest(final Class filteringProvider) {
- super(new ResourceConfig(SecurityEntityFilteringFeature.class)
- .packages("org.glassfish.jersey.examples.entityfiltering.security")
- .register(filteringProvider));
-
- enable(TestProperties.DUMP_ENTITY);
- enable(TestProperties.LOG_TRAFFIC);
- }
-
- @Test
- public void testDenyAll() throws Exception {
- assertThat(target("restricted-resource").path("denyAll").request().get().getStatus(),
- equalTo(Response.Status.FORBIDDEN.getStatusCode()));
- }
-
- @Test
- public void testPermitAll() throws Exception {
- final RestrictedEntity entity = target("restricted-resource").path("permitAll").request().get(RestrictedEntity.class);
- final RestrictedSubEntity mixedField = entity.getMixedField();
-
- // Not null values.
- assertThat(entity.getSimpleField(), notNullValue());
- assertThat(entity.getPermitAll(), notNullValue());
-
- // Null values.
- assertThat(entity.getDenyAll(), nullValue());
- assertThat(mixedField, nullValue());
- }
-
- @Test
- public void testRolesAllowed() throws Exception {
- final RestrictedEntity entity = target("restricted-resource").path("rolesAllowed").request().get(RestrictedEntity.class);
- final RestrictedSubEntity mixedField = entity.getMixedField();
-
- // Not null values.
- assertThat(entity.getSimpleField(), notNullValue());
- assertThat(entity.getPermitAll(), notNullValue());
- assertThat(mixedField, notNullValue());
- assertThat(mixedField.getManagerField(), notNullValue());
-
- // Null values.
- assertThat(entity.getDenyAll(), nullValue());
- assertThat(mixedField.getUserField(), nullValue());
- }
-
- @Test
- public void testRuntimeRolesAllowedUser() throws Exception {
- final RestrictedEntity entity = target("restricted-resource")
- .path("runtimeRolesAllowed")
- .queryParam("roles", "user")
- .request().get(RestrictedEntity.class);
- final RestrictedSubEntity mixedField = entity.getMixedField();
-
- // Not null values.
- assertThat(entity.getSimpleField(), notNullValue());
- assertThat(entity.getPermitAll(), notNullValue());
- assertThat(mixedField, notNullValue());
- assertThat(mixedField.getUserField(), notNullValue());
-
- // Null values.
- assertThat(entity.getDenyAll(), nullValue());
- assertThat(mixedField.getManagerField(), nullValue());
+public class RestrictedResourceTest {
+
+ public abstract static class RestrictedResourceTemplateTest extends JerseyTest {
+ public RestrictedResourceTemplateTest(final Class extends Feature> filteringProvider) {
+ super(new ResourceConfig(SecurityEntityFilteringFeature.class)
+ .packages("org.glassfish.jersey.examples.entityfiltering.security")
+ .register(filteringProvider));
+
+ enable(TestProperties.DUMP_ENTITY);
+ enable(TestProperties.LOG_TRAFFIC);
+ }
+
+ @Test
+ public void testDenyAll() throws Exception {
+ assertThat(target("restricted-resource").path("denyAll").request().get().getStatus(),
+ equalTo(Response.Status.FORBIDDEN.getStatusCode()));
+ }
+
+ @Test
+ public void testPermitAll() throws Exception {
+ final RestrictedEntity entity = target("restricted-resource").path("permitAll").request().get(RestrictedEntity.class);
+ final RestrictedSubEntity mixedField = entity.getMixedField();
+
+ // Not null values.
+ assertThat(entity.getSimpleField(), notNullValue());
+ assertThat(entity.getPermitAll(), notNullValue());
+
+ // Null values.
+ assertThat(entity.getDenyAll(), nullValue());
+ assertThat(mixedField, nullValue());
+ }
+
+ @Test
+ public void testRolesAllowed() throws Exception {
+ final RestrictedEntity entity = target("restricted-resource").path("rolesAllowed")
+ .request().get(RestrictedEntity.class);
+ final RestrictedSubEntity mixedField = entity.getMixedField();
+
+ // Not null values.
+ assertThat(entity.getSimpleField(), notNullValue());
+ assertThat(entity.getPermitAll(), notNullValue());
+ assertThat(mixedField, notNullValue());
+ assertThat(mixedField.getManagerField(), notNullValue());
+
+ // Null values.
+ assertThat(entity.getDenyAll(), nullValue());
+ assertThat(mixedField.getUserField(), nullValue());
+ }
+
+ @Test
+ public void testRuntimeRolesAllowedUser() throws Exception {
+ final RestrictedEntity entity = target("restricted-resource")
+ .path("runtimeRolesAllowed")
+ .queryParam("roles", "user")
+ .request().get(RestrictedEntity.class);
+ final RestrictedSubEntity mixedField = entity.getMixedField();
+
+ // Not null values.
+ assertThat(entity.getSimpleField(), notNullValue());
+ assertThat(entity.getPermitAll(), notNullValue());
+ assertThat(mixedField, notNullValue());
+ assertThat(mixedField.getUserField(), notNullValue());
+
+ // Null values.
+ assertThat(entity.getDenyAll(), nullValue());
+ assertThat(mixedField.getManagerField(), nullValue());
+ }
+
+ @Test
+ public void testRuntimeRolesAllowedManagerUser() throws Exception {
+ final RestrictedEntity entity = target("restricted-resource")
+ .path("runtimeRolesAllowed")
+ .queryParam("roles", "user,manager")
+ .request().get(RestrictedEntity.class);
+ final RestrictedSubEntity mixedField = entity.getMixedField();
+
+ // Not null values.
+ assertThat(entity.getSimpleField(), notNullValue());
+ assertThat(entity.getPermitAll(), notNullValue());
+ assertThat(mixedField, notNullValue());
+ assertThat(mixedField.getUserField(), notNullValue());
+ assertThat(mixedField.getManagerField(), notNullValue());
+
+ // Null values.
+ assertThat(entity.getDenyAll(), nullValue());
+ }
+
+ @Test
+ public void testRuntimeRolesAllowedInvalid() throws Exception {
+ final RestrictedEntity entity = target("restricted-resource")
+ .path("runtimeRolesAllowed")
+ .queryParam("roles", "invalid")
+ .request().get(RestrictedEntity.class);
+ final RestrictedSubEntity mixedField = entity.getMixedField();
+
+ // Not null values.
+ assertThat(entity.getSimpleField(), notNullValue());
+ assertThat(entity.getPermitAll(), notNullValue());
+
+ // Null values.
+ assertThat(entity.getDenyAll(), nullValue());
+ assertThat(mixedField, nullValue());
+ }
}
- @Test
- public void testRuntimeRolesAllowedManagerUser() throws Exception {
- final RestrictedEntity entity = target("restricted-resource")
- .path("runtimeRolesAllowed")
- .queryParam("roles", "user,manager")
- .request().get(RestrictedEntity.class);
- final RestrictedSubEntity mixedField = entity.getMixedField();
-
- // Not null values.
- assertThat(entity.getSimpleField(), notNullValue());
- assertThat(entity.getPermitAll(), notNullValue());
- assertThat(mixedField, notNullValue());
- assertThat(mixedField.getUserField(), notNullValue());
- assertThat(mixedField.getManagerField(), notNullValue());
-
- // Null values.
- assertThat(entity.getDenyAll(), nullValue());
+ public static class MoxyJsonFeatureRestrictedResourceTest extends RestrictedResourceTemplateTest {
+ public MoxyJsonFeatureRestrictedResourceTest() {
+ super(MoxyJsonFeature.class);
+ }
}
- @Test
- public void testRuntimeRolesAllowedInvalid() throws Exception {
- final RestrictedEntity entity = target("restricted-resource")
- .path("runtimeRolesAllowed")
- .queryParam("roles", "invalid")
- .request().get(RestrictedEntity.class);
- final RestrictedSubEntity mixedField = entity.getMixedField();
-
- // Not null values.
- assertThat(entity.getSimpleField(), notNullValue());
- assertThat(entity.getPermitAll(), notNullValue());
-
- // Null values.
- assertThat(entity.getDenyAll(), nullValue());
- assertThat(mixedField, nullValue());
+ public static class JacksonFeatureRestrictedResourceTest extends RestrictedResourceTemplateTest {
+ public JacksonFeatureRestrictedResourceTest() {
+ super(JacksonFeature.class);
+ }
}
}
diff --git a/examples/entity-filtering-security/src/test/java/org/glassfish/jersey/examples/entityfiltering/security/UnrestrictedResourceTest.java b/examples/entity-filtering-security/src/test/java/org/glassfish/jersey/examples/entityfiltering/security/UnrestrictedResourceTest.java
index 5b6a838f7f2..f7b71260bc0 100644
--- a/examples/entity-filtering-security/src/test/java/org/glassfish/jersey/examples/entityfiltering/security/UnrestrictedResourceTest.java
+++ b/examples/entity-filtering-security/src/test/java/org/glassfish/jersey/examples/entityfiltering/security/UnrestrictedResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,8 +10,6 @@
package org.glassfish.jersey.examples.entityfiltering.security;
-import java.util.Arrays;
-
import javax.ws.rs.core.Feature;
import org.glassfish.jersey.examples.entityfiltering.security.domain.RestrictedEntity;
@@ -22,10 +20,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
@@ -35,36 +30,44 @@
*
* @author Michal Gajdos
*/
-@RunWith(Parameterized.class)
-public class UnrestrictedResourceTest extends JerseyTest {
+public class UnrestrictedResourceTest {
- @Parameterized.Parameters(name = "Provider: {0}")
- public static Iterable providers() {
- return Arrays.asList(new Class[][]{{MoxyJsonFeature.class}, {JacksonFeature.class}});
- }
+ public abstract static class UnrestrictedResourceTemplateTest extends JerseyTest {
+ public UnrestrictedResourceTemplateTest(final Class extends Feature> filteringProvider) {
+ super(new ResourceConfig(SecurityEntityFilteringFeature.class)
+ .packages("org.glassfish.jersey.examples.entityfiltering.security")
+ .register(filteringProvider));
- public UnrestrictedResourceTest(final Class filteringProvider) {
- super(new ResourceConfig(SecurityEntityFilteringFeature.class)
- .packages("org.glassfish.jersey.examples.entityfiltering.security")
- .register(filteringProvider));
+ enable(TestProperties.DUMP_ENTITY);
+ enable(TestProperties.LOG_TRAFFIC);
+ }
- enable(TestProperties.DUMP_ENTITY);
- enable(TestProperties.LOG_TRAFFIC);
- }
+ @Test
+ public void testRestrictedEntity() throws Exception {
+ final RestrictedEntity entity = target("unrestricted-resource").request().get(RestrictedEntity.class);
+ final RestrictedSubEntity mixedField = entity.getMixedField();
- @Test
- public void testRestrictedEntity() throws Exception {
- final RestrictedEntity entity = target("unrestricted-resource").request().get(RestrictedEntity.class);
- final RestrictedSubEntity mixedField = entity.getMixedField();
+ // Not null values.
+ assertThat(entity.getSimpleField(), notNullValue());
+ assertThat(entity.getPermitAll(), notNullValue());
+ assertThat(mixedField, notNullValue());
+ assertThat(mixedField.getManagerField(), notNullValue());
- // Not null values.
- assertThat(entity.getSimpleField(), notNullValue());
- assertThat(entity.getPermitAll(), notNullValue());
- assertThat(mixedField, notNullValue());
- assertThat(mixedField.getManagerField(), notNullValue());
+ // Null values.
+ assertThat(entity.getDenyAll(), nullValue());
+ assertThat(mixedField.getUserField(), nullValue());
+ }
+ }
+
+ public static class MoxyJsonFeatureUnrestrictedResourceTest extends UnrestrictedResourceTemplateTest {
+ public MoxyJsonFeatureUnrestrictedResourceTest() {
+ super(MoxyJsonFeature.class);
+ }
+ }
- // Null values.
- assertThat(entity.getDenyAll(), nullValue());
- assertThat(mixedField.getUserField(), nullValue());
+ public static class JacksonFeatureUnrestrictedResourceTest extends UnrestrictedResourceTemplateTest {
+ public JacksonFeatureUnrestrictedResourceTest() {
+ super(JacksonFeature.class);
+ }
}
}
diff --git a/examples/entity-filtering-selectable/src/test/java/org/glassfish/jersey/examples/entityfiltering/selectable/PersonResourceTest.java b/examples/entity-filtering-selectable/src/test/java/org/glassfish/jersey/examples/entityfiltering/selectable/PersonResourceTest.java
index 3dc9acede61..f21cdf4d6d1 100644
--- a/examples/entity-filtering-selectable/src/test/java/org/glassfish/jersey/examples/entityfiltering/selectable/PersonResourceTest.java
+++ b/examples/entity-filtering-selectable/src/test/java/org/glassfish/jersey/examples/entityfiltering/selectable/PersonResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,7 +10,6 @@
package org.glassfish.jersey.examples.entityfiltering.selectable;
-import java.util.Arrays;
import java.util.List;
import java.util.Map;
@@ -27,10 +26,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
+import org.junit.jupiter.api.Test;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
@@ -41,164 +38,171 @@
* @author Andy Pemberton (pembertona at gmail.com)
* @author Michal Gajdos
*/
-@RunWith(Parameterized.class)
-public class PersonResourceTest extends JerseyTest {
+public class PersonResourceTest {
- @Parameterized.Parameters(name = "Provider: {0}")
- public static Iterable providers() {
- return Arrays.asList(new Class[][]{{MoxyJsonFeature.class}, {JacksonFeature.class}});
- }
-
- private final Class filteringProvider;
+ public abstract static class PersonResourceTemplateTest extends JerseyTest {
+ private final Class extends Feature> filteringProvider;
- public PersonResourceTest(final Class filteringProvider) {
- super(new ResourceConfig(SelectableEntityFilteringFeature.class)
- .packages("org.glassfish.jersey.examples.entityfiltering.selectable")
- .property(SelectableEntityFilteringFeature.QUERY_PARAM_NAME, "select")
- .register(filteringProvider));
+ public PersonResourceTemplateTest(final Class extends Feature> filteringProvider) {
+ super(new ResourceConfig(SelectableEntityFilteringFeature.class)
+ .packages("org.glassfish.jersey.examples.entityfiltering.selectable")
+ .property(SelectableEntityFilteringFeature.QUERY_PARAM_NAME, "select")
+ .register(filteringProvider));
- this.filteringProvider = filteringProvider;
+ this.filteringProvider = filteringProvider;
- enable(TestProperties.DUMP_ENTITY);
- enable(TestProperties.LOG_TRAFFIC);
- }
+ enable(TestProperties.DUMP_ENTITY);
+ enable(TestProperties.LOG_TRAFFIC);
+ }
- @Override
- protected void configureClient(final ClientConfig config) {
- config.register(filteringProvider);
- }
+ @Override
+ protected void configureClient(final ClientConfig config) {
+ config.register(filteringProvider);
+ }
- @Test
- public void testNoFilter() throws Exception {
- final Person entity = target("people").path("1234").request().get(Person.class);
-
- // Not null values.
- assertThat(entity.getFamilyName(), notNullValue());
- assertThat(entity.getGivenName(), notNullValue());
- assertThat(entity.getHonorificPrefix(), notNullValue());
- assertThat(entity.getHonorificSuffix(), notNullValue());
- assertThat(entity.getRegion(), notNullValue());
-
- final List addresses = entity.getAddresses();
- assertThat(addresses, notNullValue());
- final Address address = addresses.get(0);
- assertThat(address, notNullValue());
- assertThat(address.getRegion(), notNullValue());
- assertThat(address.getStreetAddress(), notNullValue());
- PhoneNumber phoneNumber = address.getPhoneNumber();
- assertThat(phoneNumber, notNullValue());
- assertThat(phoneNumber.getAreaCode(), notNullValue());
- assertThat(phoneNumber.getNumber(), notNullValue());
-
- final Map phoneNumbers = entity.getPhoneNumbers();
- assertThat(phoneNumbers, notNullValue());
-
- // TODO: enable for MOXy as well when JERSEY-2751 gets fixed.
- if (JacksonFeature.class.isAssignableFrom(filteringProvider)) {
- phoneNumber = phoneNumbers.get("HOME");
+ @Test
+ public void testNoFilter() throws Exception {
+ final Person entity = target("people").path("1234").request().get(Person.class);
+
+ // Not null values.
+ assertThat(entity.getFamilyName(), notNullValue());
+ assertThat(entity.getGivenName(), notNullValue());
+ assertThat(entity.getHonorificPrefix(), notNullValue());
+ assertThat(entity.getHonorificSuffix(), notNullValue());
+ assertThat(entity.getRegion(), notNullValue());
+
+ final List addresses = entity.getAddresses();
+ assertThat(addresses, notNullValue());
+ final Address address = addresses.get(0);
+ assertThat(address, notNullValue());
+ assertThat(address.getRegion(), notNullValue());
+ assertThat(address.getStreetAddress(), notNullValue());
+ PhoneNumber phoneNumber = address.getPhoneNumber();
assertThat(phoneNumber, notNullValue());
assertThat(phoneNumber.getAreaCode(), notNullValue());
assertThat(phoneNumber.getNumber(), notNullValue());
+
+ final Map phoneNumbers = entity.getPhoneNumbers();
+ assertThat(phoneNumbers, notNullValue());
+
+ // TODO: enable for MOXy as well when JERSEY-2751 gets fixed.
+ if (JacksonFeature.class.isAssignableFrom(filteringProvider)) {
+ phoneNumber = phoneNumbers.get("HOME");
+ assertThat(phoneNumber, notNullValue());
+ assertThat(phoneNumber.getAreaCode(), notNullValue());
+ assertThat(phoneNumber.getNumber(), notNullValue());
+ }
}
- }
- @Test
- public void testInvalidFilter() throws Exception {
- final Person entity = target("people").path("1234")
- .queryParam("select", "invalid").request().get(Person.class);
-
- // All null values.
- assertThat(entity.getFamilyName(), nullValue());
- assertThat(entity.getGivenName(), nullValue());
- assertThat(entity.getHonorificPrefix(), nullValue());
- assertThat(entity.getHonorificSuffix(), nullValue());
- assertThat(entity.getRegion(), nullValue());
- assertThat(entity.getAddresses(), nullValue());
- assertThat(entity.getPhoneNumbers(), nullValue());
- }
+ @Test
+ public void testInvalidFilter() throws Exception {
+ final Person entity = target("people").path("1234")
+ .queryParam("select", "invalid").request().get(Person.class);
+
+ // All null values.
+ assertThat(entity.getFamilyName(), nullValue());
+ assertThat(entity.getGivenName(), nullValue());
+ assertThat(entity.getHonorificPrefix(), nullValue());
+ assertThat(entity.getHonorificSuffix(), nullValue());
+ assertThat(entity.getRegion(), nullValue());
+ assertThat(entity.getAddresses(), nullValue());
+ assertThat(entity.getPhoneNumbers(), nullValue());
+ }
- /**
- * Test first level filters.
- */
- @Test
- public void testFilters() throws Exception {
- final Person entity = target("people").path("1234")
- .queryParam("select", "familyName,givenName").request()
- .get(Person.class);
-
- // Not null values.
- assertThat(entity.getFamilyName(), notNullValue());
- assertThat(entity.getGivenName(), notNullValue());
-
- // Null values.
- assertThat(entity.getAddresses(), nullValue());
- assertThat(entity.getPhoneNumbers(), nullValue());
- assertThat(entity.getRegion(), nullValue());
- }
+ /**
+ * Test first level filters.
+ */
+ @Test
+ public void testFilters() throws Exception {
+ final Person entity = target("people").path("1234")
+ .queryParam("select", "familyName,givenName").request()
+ .get(Person.class);
+
+ // Not null values.
+ assertThat(entity.getFamilyName(), notNullValue());
+ assertThat(entity.getGivenName(), notNullValue());
+
+ // Null values.
+ assertThat(entity.getAddresses(), nullValue());
+ assertThat(entity.getPhoneNumbers(), nullValue());
+ assertThat(entity.getRegion(), nullValue());
+ }
- /**
- * Test empty (but valid) filters.
- * Valid empty filters are:
- * . ,. , .. .,
- *
- *
- * result is empty object (nothing is returned) but Jersey will not throw any exception
- */
- @Test
- public void testEmptyFilters() throws Exception {
- final Person entity = target("people").path("1234")
- .queryParam("select", ".").request()
- .get(Person.class);
-
- // Null values (all elements).
- assertThat(entity.getFamilyName(), nullValue());
- assertThat(entity.getGivenName(), nullValue());
- assertThat(entity.getAddresses(), nullValue());
- assertThat(entity.getPhoneNumbers(), nullValue());
- assertThat(entity.getRegion(), nullValue());
- }
+ /**
+ * Test empty (but valid) filters.
+ * Valid empty filters are:
+ * . ,. , .. .,
+ *
+ *
+ * result is empty object (nothing is returned) but Jersey will not throw any exception
+ */
+ @Test
+ public void testEmptyFilters() throws Exception {
+ final Person entity = target("people").path("1234")
+ .queryParam("select", ".").request()
+ .get(Person.class);
+
+ // Null values (all elements).
+ assertThat(entity.getFamilyName(), nullValue());
+ assertThat(entity.getGivenName(), nullValue());
+ assertThat(entity.getAddresses(), nullValue());
+ assertThat(entity.getPhoneNumbers(), nullValue());
+ assertThat(entity.getRegion(), nullValue());
+ }
+
+ /**
+ * Test 2nd and 3rd level filters.
+ */
+ @Test
+ public void testSubFilters() throws Exception {
+ final Person entity = target("people")
+ .path("1234")
+ .queryParam("select",
+ "familyName,givenName,addresses.streetAddress,addresses.phoneNumber.areaCode")
+ .request().get(Person.class);
+
+ // Not null values.
+ assertThat(entity.getFamilyName(), notNullValue());
+ assertThat(entity.getGivenName(), notNullValue());
+ assertThat(entity.getAddresses().get(0).getStreetAddress(), notNullValue());
+ assertThat(entity.getAddresses().get(0).getPhoneNumber().getAreaCode(), notNullValue());
+
+ // Null values.
+ assertThat(entity.getRegion(), nullValue());
+ assertThat(entity.getAddresses().get(0).getPhoneNumber().getNumber(), nullValue());
+ }
- /**
- * Test 2nd and 3rd level filters.
- */
- @Test
- public void testSubFilters() throws Exception {
- final Person entity = target("people")
- .path("1234")
- .queryParam("select",
- "familyName,givenName,addresses.streetAddress,addresses.phoneNumber.areaCode")
- .request().get(Person.class);
-
- // Not null values.
- assertThat(entity.getFamilyName(), notNullValue());
- assertThat(entity.getGivenName(), notNullValue());
- assertThat(entity.getAddresses().get(0).getStreetAddress(), notNullValue());
- assertThat(entity.getAddresses().get(0).getPhoneNumber().getAreaCode(), notNullValue());
-
- // Null values.
- assertThat(entity.getRegion(), nullValue());
- assertThat(entity.getAddresses().get(0).getPhoneNumber().getNumber(), nullValue());
+ /**
+ * Test that 1st and 2nd level filters with the same name act as expected.
+ */
+ @Test
+ public void testFiltersSameName() throws Exception {
+ final Person firstLevel = target("people").path("1234")
+ .queryParam("select", "familyName,region").request()
+ .get(Person.class);
+ final Person secondLevel = target("people").path("1234")
+ .queryParam("select", "familyName,addresses.region").request()
+ .get(Person.class);
+
+ // Not null values.
+ assertThat(firstLevel.getRegion(), notNullValue());
+ assertThat(secondLevel.getAddresses().get(0).getRegion(), notNullValue());
+
+ // Null values.
+ assertThat(firstLevel.getAddresses(), nullValue()); //confirms 2nd level region on addresses is null
+ assertThat(secondLevel.getRegion(), nullValue());
+ }
}
- /**
- * Test that 1st and 2nd level filters with the same name act as expected.
- */
- @Test
- public void testFiltersSameName() throws Exception {
- final Person firstLevel = target("people").path("1234")
- .queryParam("select", "familyName,region").request()
- .get(Person.class);
- final Person secondLevel = target("people").path("1234")
- .queryParam("select", "familyName,addresses.region").request()
- .get(Person.class);
-
- // Not null values.
- assertThat(firstLevel.getRegion(), notNullValue());
- assertThat(secondLevel.getAddresses().get(0).getRegion(), notNullValue());
-
- // Null values.
- assertThat(firstLevel.getAddresses(), nullValue()); //confirms 2nd level region on addresses is null
- assertThat(secondLevel.getRegion(), nullValue());
+ public static class MoxyJsonFeaturePersonResourceTest extends PersonResourceTemplateTest {
+ public MoxyJsonFeaturePersonResourceTest() {
+ super(MoxyJsonFeature.class);
+ }
}
+ public static class JacksonFeaturePersonResourceTest extends PersonResourceTemplateTest {
+ public JacksonFeaturePersonResourceTest() {
+ super(JacksonFeature.class);
+ }
+ }
}
diff --git a/examples/entity-filtering/src/test/java/org/glassfish/jersey/examples/entityfiltering/ProjectsResourceTest.java b/examples/entity-filtering/src/test/java/org/glassfish/jersey/examples/entityfiltering/ProjectsResourceTest.java
index 5d51237388a..0e28544399b 100644
--- a/examples/entity-filtering/src/test/java/org/glassfish/jersey/examples/entityfiltering/ProjectsResourceTest.java
+++ b/examples/entity-filtering/src/test/java/org/glassfish/jersey/examples/entityfiltering/ProjectsResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,7 +10,6 @@
package org.glassfish.jersey.examples.entityfiltering;
-import java.util.Arrays;
import java.util.List;
import javax.ws.rs.core.Feature;
@@ -23,10 +22,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
+import org.junit.jupiter.api.Nested;
+import org.junit.jupiter.api.Test;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
@@ -36,60 +34,70 @@
*
* @author Michal Gajdos
*/
-@RunWith(Parameterized.class)
-public class ProjectsResourceTest extends JerseyTest {
+public class ProjectsResourceTest {
- @Parameterized.Parameters(name = "Provider: {0}")
- public static Iterable providers() {
- return Arrays.asList(new Class[][]{{MoxyJsonFeature.class}, {JacksonFeature.class}});
- }
+ public abstract static class ProjectsResourceTemplateTest extends JerseyTest {
+ public ProjectsResourceTemplateTest(final Class filteringProvider) {
+ super(new ResourceConfig(EntityFilteringFeature.class)
+ .packages("org.glassfish.jersey.examples.entityfiltering.resource")
+ .register(filteringProvider));
- public ProjectsResourceTest(final Class filteringProvider) {
- super(new ResourceConfig(EntityFilteringFeature.class)
- .packages("org.glassfish.jersey.examples.entityfiltering.resource")
- .register(filteringProvider));
+ enable(TestProperties.DUMP_ENTITY);
+ enable(TestProperties.LOG_TRAFFIC);
+ }
- enable(TestProperties.DUMP_ENTITY);
- enable(TestProperties.LOG_TRAFFIC);
- }
+ @Test
+ public void testProjects() throws Exception {
+ for (final Project project : target("projects").request().get(new GenericType>() {})) {
+ testProject(project, false);
+ }
+ }
- @Test
- public void testProjects() throws Exception {
- for (final Project project : target("projects").request().get(new GenericType>() {})) {
- testProject(project, false);
+ @Test
+ public void testProject() throws Exception {
+ testProject(target("projects").path("1").request().get(Project.class), false);
}
- }
- @Test
- public void testProject() throws Exception {
- testProject(target("projects").path("1").request().get(Project.class), false);
- }
+ @Test
+ public void testDetailedProjects() throws Exception {
+ for (final Project project : target("projects/detailed").request().get(new GenericType>() {})) {
+ testProject(project, true);
+ }
+ }
- @Test
- public void testDetailedProjects() throws Exception {
- for (final Project project : target("projects/detailed").request().get(new GenericType>() {})) {
- testProject(project, true);
+ @Test
+ public void testDetailedProject() throws Exception {
+ testProject(target("projects/detailed").path("1").request().get(Project.class), true);
+ }
+
+ private void testProject(final Project project, final boolean isDetailed) {
+ // Following properties should be in every returned project.
+ assertThat(project.getId(), notNullValue());
+ assertThat(project.getName(), notNullValue());
+ assertThat(project.getDescription(), notNullValue());
+
+ // Tasks and users should be only in "detailed" view.
+ if (!isDetailed) {
+ assertThat("Users present in non-detailed project view", project.getUsers(), nullValue());
+ assertThat("Tasks present in non-detailed project view", project.getTasks(), nullValue());
+ } else {
+ assertThat("Users not present in detailed project view", project.getUsers(), notNullValue());
+ assertThat("Tasks not present in detailed project view", project.getTasks(), notNullValue());
+ }
}
}
- @Test
- public void testDetailedProject() throws Exception {
- testProject(target("projects/detailed").path("1").request().get(Project.class), true);
+ @Nested
+ public static class MoxyJsonFeatureProjectsResourceTest extends ProjectsResourceTemplateTest {
+ public MoxyJsonFeatureProjectsResourceTest() {
+ super(MoxyJsonFeature.class);
+ }
}
- private void testProject(final Project project, final boolean isDetailed) {
- // Following properties should be in every returned project.
- assertThat(project.getId(), notNullValue());
- assertThat(project.getName(), notNullValue());
- assertThat(project.getDescription(), notNullValue());
-
- // Tasks and users should be only in "detailed" view.
- if (!isDetailed) {
- assertThat("Users present in non-detailed project view", project.getUsers(), nullValue());
- assertThat("Tasks present in non-detailed project view", project.getTasks(), nullValue());
- } else {
- assertThat("Users not present in detailed project view", project.getUsers(), notNullValue());
- assertThat("Tasks not present in detailed project view", project.getTasks(), notNullValue());
+ @Nested
+ public static class JacksonFeatureProjectsResourceTest extends ProjectsResourceTemplateTest {
+ public JacksonFeatureProjectsResourceTest() {
+ super(JacksonFeature.class);
}
}
}
diff --git a/examples/entity-filtering/src/test/java/org/glassfish/jersey/examples/entityfiltering/TaskResourceTest.java b/examples/entity-filtering/src/test/java/org/glassfish/jersey/examples/entityfiltering/TaskResourceTest.java
index c7171acdaa8..bf1e6dd2348 100644
--- a/examples/entity-filtering/src/test/java/org/glassfish/jersey/examples/entityfiltering/TaskResourceTest.java
+++ b/examples/entity-filtering/src/test/java/org/glassfish/jersey/examples/entityfiltering/TaskResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,7 +10,6 @@
package org.glassfish.jersey.examples.entityfiltering;
-import java.util.Arrays;
import java.util.List;
import javax.ws.rs.core.Feature;
@@ -23,10 +22,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
+import org.junit.jupiter.api.Test;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
@@ -36,60 +33,68 @@
*
* @author Michal Gajdos
*/
-@RunWith(Parameterized.class)
-public class TaskResourceTest extends JerseyTest {
+public class TaskResourceTest {
- @Parameterized.Parameters(name = "Provider: {0}")
- public static Iterable providers() {
- return Arrays.asList(new Class[][]{{MoxyJsonFeature.class}, {JacksonFeature.class}});
- }
+ public abstract static class TaskResourceTemplateTest extends JerseyTest {
+ public TaskResourceTemplateTest(final Class extends Feature> filteringProvider) {
+ super(new ResourceConfig(EntityFilteringFeature.class)
+ .packages("org.glassfish.jersey.examples.entityfiltering.resource")
+ .register(filteringProvider));
- public TaskResourceTest(final Class filteringProvider) {
- super(new ResourceConfig(EntityFilteringFeature.class)
- .packages("org.glassfish.jersey.examples.entityfiltering.resource")
- .register(filteringProvider));
+ enable(TestProperties.DUMP_ENTITY);
+ enable(TestProperties.LOG_TRAFFIC);
+ }
- enable(TestProperties.DUMP_ENTITY);
- enable(TestProperties.LOG_TRAFFIC);
- }
+ @Test
+ public void testTasks() throws Exception {
+ for (final Task task : target("tasks").request().get(new GenericType>() {})) {
+ testTask(task, false);
+ }
+ }
- @Test
- public void testTasks() throws Exception {
- for (final Task task : target("tasks").request().get(new GenericType>() {})) {
- testTask(task, false);
+ @Test
+ public void testTask() throws Exception {
+ testTask(target("tasks").path("1").request().get(Task.class), false);
}
- }
- @Test
- public void testTask() throws Exception {
- testTask(target("tasks").path("1").request().get(Task.class), false);
- }
+ @Test
+ public void testDetailedTasks() throws Exception {
+ for (final Task task : target("tasks").path("detailed").request().get(new GenericType>() {})) {
+ testTask(task, true);
+ }
+ }
- @Test
- public void testDetailedTasks() throws Exception {
- for (final Task task : target("tasks").path("detailed").request().get(new GenericType>() {})) {
- testTask(task, true);
+ @Test
+ public void testDetailedTask() throws Exception {
+ testTask(target("tasks").path("1").queryParam("detailed", true).request().get(Task.class), true);
+ }
+
+ private void testTask(final Task task, final boolean isDetailed) {
+ // Following properties should be in every returned task.
+ assertThat(task.getId(), notNullValue());
+ assertThat(task.getName(), notNullValue());
+ assertThat(task.getDescription(), notNullValue());
+
+ // Tasks and tasks should be in "detailed" view.
+ if (!isDetailed) {
+ assertThat(task.getProject(), nullValue());
+ assertThat(task.getUser(), nullValue());
+ } else {
+ assertThat(task.getProject(), notNullValue());
+ assertThat(task.getUser(), notNullValue());
+ }
}
}
- @Test
- public void testDetailedTask() throws Exception {
- testTask(target("tasks").path("1").queryParam("detailed", true).request().get(Task.class), true);
+ public static class MoxyJsonFeatureTaskResourceTest extends TaskResourceTemplateTest {
+ public MoxyJsonFeatureTaskResourceTest() {
+ super(MoxyJsonFeature.class);
+ }
}
- private void testTask(final Task task, final boolean isDetailed) {
- // Following properties should be in every returned task.
- assertThat(task.getId(), notNullValue());
- assertThat(task.getName(), notNullValue());
- assertThat(task.getDescription(), notNullValue());
-
- // Tasks and tasks should be in "detailed" view.
- if (!isDetailed) {
- assertThat(task.getProject(), nullValue());
- assertThat(task.getUser(), nullValue());
- } else {
- assertThat(task.getProject(), notNullValue());
- assertThat(task.getUser(), notNullValue());
+ public static class JacksonFeatureTaskResourceTest extends TaskResourceTemplateTest {
+ public JacksonFeatureTaskResourceTest() {
+ super(JacksonFeature.class);
}
}
}
diff --git a/examples/entity-filtering/src/test/java/org/glassfish/jersey/examples/entityfiltering/UsersResourceTest.java b/examples/entity-filtering/src/test/java/org/glassfish/jersey/examples/entityfiltering/UsersResourceTest.java
index e85f779e5ed..777d110ce1c 100644
--- a/examples/entity-filtering/src/test/java/org/glassfish/jersey/examples/entityfiltering/UsersResourceTest.java
+++ b/examples/entity-filtering/src/test/java/org/glassfish/jersey/examples/entityfiltering/UsersResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,7 +10,9 @@
package org.glassfish.jersey.examples.entityfiltering;
+import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collection;
import java.util.List;
import javax.ws.rs.core.Feature;
@@ -23,73 +25,84 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
+import org.glassfish.jersey.test.spi.TestHelper;
+import org.junit.jupiter.api.DynamicContainer;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestFactory;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* {@link org.glassfish.jersey.examples.entityfiltering.resource.UsersResource} unit tests.
*
* @author Michal Gajdos
*/
-@RunWith(Parameterized.class)
-public class UsersResourceTest extends JerseyTest {
+public class UsersResourceTest {
- @Parameterized.Parameters(name = "Provider: {0}")
- public static Iterable providers() {
- return Arrays.asList(new Class[][]{{MoxyJsonFeature.class}, {JacksonFeature.class}});
+ public static Iterable> providers() {
+ return Arrays.asList(MoxyJsonFeature.class, JacksonFeature.class);
}
- public UsersResourceTest(final Class filteringProvider) {
- super(new ResourceConfig(EntityFilteringFeature.class)
- .packages("org.glassfish.jersey.examples.entityfiltering.resource")
- .register(filteringProvider));
-
- enable(TestProperties.DUMP_ENTITY);
- enable(TestProperties.LOG_TRAFFIC);
+ @TestFactory
+ public Collection generateTests() {
+ Collection tests = new ArrayList<>();
+ providers().forEach(feature -> {
+ UsersResourceTemplateTest test = new UsersResourceTemplateTest(feature) {};
+ tests.add(TestHelper.toTestContainer(test, feature.getSimpleName()));
+ });
+ return tests;
}
- @Test
- public void testUsers() throws Exception {
- for (final User user : target("users").request().get(new GenericType>() {})) {
- testUser(user, false);
+ public abstract static class UsersResourceTemplateTest extends JerseyTest {
+ public UsersResourceTemplateTest(final Class extends Feature> filteringProvider) {
+ super(new ResourceConfig(EntityFilteringFeature.class)
+ .packages("org.glassfish.jersey.examples.entityfiltering.resource")
+ .register(filteringProvider));
+
+ enable(TestProperties.DUMP_ENTITY);
+ enable(TestProperties.LOG_TRAFFIC);
}
- }
- @Test
- public void testUser() throws Exception {
- testUser(target("users").path("1").request().get(User.class), false);
- }
+ @Test
+ public void testUsers() throws Exception {
+ for (final User user : target("users").request().get(new GenericType>() {})) {
+ testUser(user, false);
+ }
+ }
- @Test
- public void testDetailedUsers() throws Exception {
- for (final User user : target("users").queryParam("detailed", true).request().get(new GenericType>() {})) {
- testUser(user, true);
+ @Test
+ public void testUser() throws Exception {
+ testUser(target("users").path("1").request().get(User.class), false);
}
- }
- @Test
- public void testDetailedUser() throws Exception {
- testUser(target("users").path("1").queryParam("detailed", true).request().get(User.class), true);
- }
+ @Test
+ public void testDetailedUsers() throws Exception {
+ for (final User user : target("users").queryParam("detailed", true).request().get(new GenericType>() {})) {
+ testUser(user, true);
+ }
+ }
+
+ @Test
+ public void testDetailedUser() throws Exception {
+ testUser(target("users").path("1").queryParam("detailed", true).request().get(User.class), true);
+ }
+
+ private void testUser(final User user, final boolean isDetailed) {
+ // Following properties should be in every returned user.
+ assertThat(user.getId(), notNullValue());
+ assertThat(user.getName(), notNullValue());
+ assertThat(user.getEmail(), notNullValue());
- private void testUser(final User user, final boolean isDetailed) {
- // Following properties should be in every returned user.
- assertThat(user.getId(), notNullValue());
- assertThat(user.getName(), notNullValue());
- assertThat(user.getEmail(), notNullValue());
-
- // Tasks and users should be in "detailed" view.
- if (!isDetailed) {
- assertThat(user.getProjects(), nullValue());
- assertThat(user.getTasks(), nullValue());
- } else {
- assertThat(user.getProjects(), notNullValue());
- assertThat(user.getTasks(), notNullValue());
+ // Tasks and users should be in "detailed" view.
+ if (!isDetailed) {
+ assertThat(user.getProjects(), nullValue());
+ assertThat(user.getTasks(), nullValue());
+ } else {
+ assertThat(user.getProjects(), notNullValue());
+ assertThat(user.getTasks(), notNullValue());
+ }
}
}
}
diff --git a/examples/exception-mapping/src/test/java/org/glassfish/jersey/examples/exception/ExceptionMappingFilterTest.java b/examples/exception-mapping/src/test/java/org/glassfish/jersey/examples/exception/ExceptionMappingFilterTest.java
index d509934f726..f95f19156a8 100644
--- a/examples/exception-mapping/src/test/java/org/glassfish/jersey/examples/exception/ExceptionMappingFilterTest.java
+++ b/examples/exception-mapping/src/test/java/org/glassfish/jersey/examples/exception/ExceptionMappingFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -18,13 +18,13 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.glassfish.jersey.examples.exception.ExceptionResource.MyResponseFilter;
import static org.glassfish.jersey.examples.exception.Exceptions.MyExceptionMapper;
import static org.glassfish.jersey.examples.exception.Exceptions.MySubExceptionMapper;
import static org.glassfish.jersey.examples.exception.Exceptions.WebApplicationExceptionMapper;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* ExceptionMappingFilterTest class.
diff --git a/examples/exception-mapping/src/test/java/org/glassfish/jersey/examples/exception/ExceptionMappingTest.java b/examples/exception-mapping/src/test/java/org/glassfish/jersey/examples/exception/ExceptionMappingTest.java
index 316631222a1..615cd29b229 100644
--- a/examples/exception-mapping/src/test/java/org/glassfish/jersey/examples/exception/ExceptionMappingTest.java
+++ b/examples/exception-mapping/src/test/java/org/glassfish/jersey/examples/exception/ExceptionMappingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -18,14 +18,14 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.glassfish.jersey.examples.exception.ExceptionResource.MyResponseFilter;
import static org.glassfish.jersey.examples.exception.Exceptions.MyExceptionMapper;
import static org.glassfish.jersey.examples.exception.Exceptions.MySubExceptionMapper;
import static org.glassfish.jersey.examples.exception.Exceptions.MySubSubException;
import static org.glassfish.jersey.examples.exception.Exceptions.WebApplicationExceptionMapper;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* ExceptionMappingTest class.
diff --git a/examples/extended-wadl-webapp/pom.xml b/examples/extended-wadl-webapp/pom.xml
index 736b9975cbd..57b69074ebb 100644
--- a/examples/extended-wadl-webapp/pom.xml
+++ b/examples/extended-wadl-webapp/pom.xml
@@ -90,6 +90,12 @@
pax-exam-link-mvn
test
+
+ junit
+ junit
+ ${junit4.version}
+ test
+
diff --git a/examples/extended-wadl-webapp/src/test/java/org/glassfish/jersey/examples/extendedwadl/ExtendedWadlWebappOsgiTest.java b/examples/extended-wadl-webapp/src/test/java/org/glassfish/jersey/examples/extendedwadl/ExtendedWadlWebappOsgiTest.java
index e31505211e4..584ec0af7d0 100644
--- a/examples/extended-wadl-webapp/src/test/java/org/glassfish/jersey/examples/extendedwadl/ExtendedWadlWebappOsgiTest.java
+++ b/examples/extended-wadl-webapp/src/test/java/org/glassfish/jersey/examples/extendedwadl/ExtendedWadlWebappOsgiTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -300,7 +300,7 @@ private void checkWadl(String wadl, URI baseUri) throws Exception {
String val = (String) xp.evaluate("/wadl:application/wadl:resources/@base", document, XPathConstants.STRING);
assertEquals(baseUri.toString(), val.endsWith("/") ? val.substring(0, val.length() - 1) : val);
val = (String) xp.evaluate("count(//wadl:resource)", document, XPathConstants.STRING);
- assertEquals("Unexpected number of resource elements.", val, "4");
+ assertEquals("Unexpected number of resource elements.", "4", val);
val = (String) xp.evaluate("count(//wadl:resource[@path='items'])", document, XPathConstants.STRING);
assertEquals("Unexpected number of resource elements with 'items' path.", "1", val);
val = (String) xp.evaluate("count(//wadl:resource[@path='{id}'])", document, XPathConstants.STRING);
diff --git a/examples/extended-wadl-webapp/src/test/java/org/glassfish/jersey/examples/extendedwadl/ExtendedWadlWebappTest.java b/examples/extended-wadl-webapp/src/test/java/org/glassfish/jersey/examples/extendedwadl/ExtendedWadlWebappTest.java
index e2050b1b286..918471c9cfa 100644
--- a/examples/extended-wadl-webapp/src/test/java/org/glassfish/jersey/examples/extendedwadl/ExtendedWadlWebappTest.java
+++ b/examples/extended-wadl-webapp/src/test/java/org/glassfish/jersey/examples/extendedwadl/ExtendedWadlWebappTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -120,7 +120,7 @@ private void checkWadl(String wadl, URI baseUri) throws Exception {
String val = (String) xp.evaluate("/wadl:application/wadl:resources/@base", document, XPathConstants.STRING);
assertEquals(baseUri.toString(), val.endsWith("/") ? val.substring(0, val.length() - 1) : val);
val = (String) xp.evaluate("count(//wadl:resource)", document, XPathConstants.STRING);
- assertEquals("Unexpected number of resource elements.", val, "4");
+ assertEquals("Unexpected number of resource elements.", "4", val);
val = (String) xp.evaluate("count(//wadl:resource[@path='items'])", document, XPathConstants.STRING);
assertEquals("Unexpected number of resource elements with 'items' path.", "1", val);
val = (String) xp.evaluate("count(//wadl:resource[@path='{id}'])", document, XPathConstants.STRING);
diff --git a/examples/freemarker-webapp/src/test/java/org/glassfish/jersey/examples/freemarker/FreemarkerTest.java b/examples/freemarker-webapp/src/test/java/org/glassfish/jersey/examples/freemarker/FreemarkerTest.java
index 7c8abda1472..1fa542ba4f2 100644
--- a/examples/freemarker-webapp/src/test/java/org/glassfish/jersey/examples/freemarker/FreemarkerTest.java
+++ b/examples/freemarker-webapp/src/test/java/org/glassfish/jersey/examples/freemarker/FreemarkerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -19,8 +19,8 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Pavel Bucek
diff --git a/examples/groovy/pom.xml b/examples/groovy/pom.xml
index ccc4956d6f7..3009cbaa58f 100644
--- a/examples/groovy/pom.xml
+++ b/examples/groovy/pom.xml
@@ -45,6 +45,12 @@
org.glassfish.jersey.inject
jersey-hk2
+
+ org.junit.jupiter
+ junit-jupiter-engine
+ 5.8.2
+ test
+
diff --git a/examples/groovy/src/test/groovy/org/glassfish/jersey/examples/groovy/GroovyResourceTest.groovy b/examples/groovy/src/test/groovy/org/glassfish/jersey/examples/groovy/GroovyResourceTest.groovy
index 11db4f6ed8e..eb0d7495615 100644
--- a/examples/groovy/src/test/groovy/org/glassfish/jersey/examples/groovy/GroovyResourceTest.groovy
+++ b/examples/groovy/src/test/groovy/org/glassfish/jersey/examples/groovy/GroovyResourceTest.groovy
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -13,10 +13,10 @@ package org.glassfish.jersey.examples.groovy
import org.glassfish.jersey.server.ResourceConfig
import org.glassfish.jersey.test.JerseyTest
import org.glassfish.jersey.test.TestProperties
-import org.junit.Test
+import org.junit.jupiter.api.Test
import javax.ws.rs.core.Response
-import static org.junit.Assert.assertEquals
+import static org.junit.jupiter.api.Assertions.assertEquals
/**
* Test the availability of the {@link GroovyResource}.
diff --git a/examples/helloworld-benchmark/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java b/examples/helloworld-benchmark/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java
index 6e7c046dbbe..00ede89920b 100644
--- a/examples/helloworld-benchmark/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java
+++ b/examples/helloworld-benchmark/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -17,9 +17,9 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* {@link org.glassfish.jersey.examples.helloworld.HelloWorldResource} tests.
diff --git a/examples/helloworld-cdi2-se/src/test/java/org/glassfish/jersey/examples/helloworld/cdi2se/CounterTest.java b/examples/helloworld-cdi2-se/src/test/java/org/glassfish/jersey/examples/helloworld/cdi2se/CounterTest.java
index 9017419de7e..42f81286205 100644
--- a/examples/helloworld-cdi2-se/src/test/java/org/glassfish/jersey/examples/helloworld/cdi2se/CounterTest.java
+++ b/examples/helloworld-cdi2-se/src/test/java/org/glassfish/jersey/examples/helloworld/cdi2se/CounterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -13,8 +13,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests CDI counter resource.
diff --git a/examples/helloworld-cdi2-se/src/test/java/org/glassfish/jersey/examples/helloworld/cdi2se/HelloWorldTest.java b/examples/helloworld-cdi2-se/src/test/java/org/glassfish/jersey/examples/helloworld/cdi2se/HelloWorldTest.java
index 0bba28a7162..2880426adc3 100644
--- a/examples/helloworld-cdi2-se/src/test/java/org/glassfish/jersey/examples/helloworld/cdi2se/HelloWorldTest.java
+++ b/examples/helloworld-cdi2-se/src/test/java/org/glassfish/jersey/examples/helloworld/cdi2se/HelloWorldTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -13,8 +13,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests CDI helloworld resource.
diff --git a/examples/helloworld-netty/pom.xml b/examples/helloworld-netty/pom.xml
index 99ec59d5a5c..b27775df4de 100644
--- a/examples/helloworld-netty/pom.xml
+++ b/examples/helloworld-netty/pom.xml
@@ -59,6 +59,9 @@
org.glassfish.jersey.examples.helloworld.netty.App
+
+ maven-surefire-plugin
+
diff --git a/examples/helloworld-netty/src/test/java/org/glassfish/jersey/examples/helloworld/netty/CustomLoggingFilter.java b/examples/helloworld-netty/src/test/java/org/glassfish/jersey/examples/helloworld/netty/CustomLoggingFilter.java
index 396abddd7e1..219f21996ad 100644
--- a/examples/helloworld-netty/src/test/java/org/glassfish/jersey/examples/helloworld/netty/CustomLoggingFilter.java
+++ b/examples/helloworld-netty/src/test/java/org/glassfish/jersey/examples/helloworld/netty/CustomLoggingFilter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -22,7 +22,7 @@
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Custom logging filter.
@@ -40,28 +40,28 @@ public class CustomLoggingFilter implements ContainerRequestFilter, ContainerRes
@Override
public void filter(ClientRequestContext context) throws IOException {
LOGGER.info("CustomLoggingFilter.preFilter called");
- assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ assertEquals("bar", context.getConfiguration().getProperty("foo"));
preFilterCalled++;
}
@Override
public void filter(ClientRequestContext context, ClientResponseContext clientResponseContext) throws IOException {
LOGGER.info("CustomLoggingFilter.postFilter called");
- assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ assertEquals("bar", context.getConfiguration().getProperty("foo"));
postFilterCalled++;
}
@Override
public void filter(ContainerRequestContext context) throws IOException {
LOGGER.info("CustomLoggingFilter.preFilter called");
- assertEquals(context.getProperty("foo"), "bar");
+ assertEquals("bar", context.getProperty("foo"));
preFilterCalled++;
}
@Override
public void filter(ContainerRequestContext context, ContainerResponseContext containerResponseContext) throws IOException {
LOGGER.info("CustomLoggingFilter.postFilter called");
- assertEquals(context.getProperty("foo"), "bar");
+ assertEquals("bar", context.getProperty("foo"));
postFilterCalled++;
}
}
diff --git a/examples/helloworld-netty/src/test/java/org/glassfish/jersey/examples/helloworld/netty/HelloWorldTest.java b/examples/helloworld-netty/src/test/java/org/glassfish/jersey/examples/helloworld/netty/HelloWorldTest.java
index 23e89565701..44f5e2f68c6 100644
--- a/examples/helloworld-netty/src/test/java/org/glassfish/jersey/examples/helloworld/netty/HelloWorldTest.java
+++ b/examples/helloworld-netty/src/test/java/org/glassfish/jersey/examples/helloworld/netty/HelloWorldTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -33,15 +33,18 @@
import org.glassfish.jersey.test.netty.NettyTestContainerFactory;
import org.glassfish.jersey.test.spi.TestContainerException;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.glassfish.jersey.test.util.runner.ConcurrentRunner;
-import org.glassfish.jersey.test.util.runner.RunSeparately;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-
-@RunWith(ConcurrentRunner.class)
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestInstance;
+import org.junit.jupiter.api.parallel.Execution;
+import org.junit.jupiter.api.parallel.ExecutionMode;
+import org.junit.jupiter.api.parallel.ResourceAccessMode;
+import org.junit.jupiter.api.parallel.ResourceLock;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class HelloWorldTest extends JerseyTest {
@Override
@@ -62,7 +65,9 @@ protected TestContainerFactory getTestContainerFactory() throws TestContainerExc
}
@Test
- @Ignore("not compatible with test framework (doesn't use client())")
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
+ @Disabled("not compatible with test framework (doesn't use client())")
public void testHelloWorld() throws Exception {
URL getUrl = UriBuilder.fromUri(getBaseUri()).path(App.ROOT_PATH).build().toURL();
HttpURLConnection connection = (HttpURLConnection) getUrl.openConnection();
@@ -78,18 +83,24 @@ public void testHelloWorld() throws Exception {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testConnection() {
Response response = target().path(App.ROOT_PATH).request("text/plain").get();
assertEquals(200, response.getStatus());
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testClientStringResponse() {
String s = target().path(App.ROOT_PATH).request().get(String.class);
assertEquals(HelloWorldResource.CLICHED_MESSAGE, s);
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testAsyncClientRequests() throws InterruptedException {
final int REQUESTS = 10;
final CountDownLatch latch = new CountDownLatch(REQUESTS);
@@ -120,6 +131,8 @@ public void failed(Throwable error) {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testHead() {
Response response = target().path(App.ROOT_PATH).request().head();
assertEquals(200, response.getStatus());
@@ -127,6 +140,8 @@ public void testHead() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testFooBarOptions() {
Response response = target().path(App.ROOT_PATH).request().header("Accept", "foo/bar").options();
assertEquals(200, response.getStatus());
@@ -137,6 +152,8 @@ public void testFooBarOptions() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testTextPlainOptions() {
Response response = target().path(App.ROOT_PATH).request().header("Accept", MediaType.TEXT_PLAIN).options();
assertEquals(200, response.getStatus());
@@ -154,6 +171,8 @@ private void _checkAllowContent(final String content) {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testMissingResourceNotFound() {
Response response;
@@ -165,7 +184,7 @@ public void testMissingResourceNotFound() {
}
@Test
- @RunSeparately
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ_WRITE)
public void testLoggingFilterClientClass() {
Client client = client();
client.register(CustomLoggingFilter.class).property("foo", "bar");
@@ -177,7 +196,7 @@ public void testLoggingFilterClientClass() {
}
@Test
- @RunSeparately
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ_WRITE)
public void testLoggingFilterClientInstance() {
Client client = client();
client.register(new CustomLoggingFilter()).property("foo", "bar");
@@ -189,7 +208,7 @@ public void testLoggingFilterClientInstance() {
}
@Test
- @RunSeparately
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ_WRITE)
public void testLoggingFilterTargetClass() {
WebTarget target = target().path(App.ROOT_PATH);
target.register(CustomLoggingFilter.class).property("foo", "bar");
@@ -201,7 +220,7 @@ public void testLoggingFilterTargetClass() {
}
@Test
- @RunSeparately
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ_WRITE)
public void testLoggingFilterTargetInstance() {
WebTarget target = target().path(App.ROOT_PATH);
target.register(new CustomLoggingFilter()).property("foo", "bar");
@@ -213,7 +232,7 @@ public void testLoggingFilterTargetInstance() {
}
@Test
- @RunSeparately
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ_WRITE)
public void testConfigurationUpdate() {
Client client1 = client();
client1.register(CustomLoggingFilter.class).property("foo", "bar");
@@ -227,7 +246,7 @@ public void testConfigurationUpdate() {
}
@Test
- @RunSeparately
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ_WRITE)
public void testQueryParameterGet() {
String result = target().path(App.ROOT_PATH + "/query1").queryParam("test1", "expected1")
.queryParam("test2", "expected2").request().get(String.class);
@@ -235,7 +254,7 @@ public void testQueryParameterGet() {
}
@Test
- @RunSeparately
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ_WRITE)
public void testQueryParameterPost() {
String result = target().path(App.ROOT_PATH + "/query2").queryParam("test1", "expected1")
.queryParam("test2", "expected2").request("text/plain").post(Entity.entity("entity", "text/plain"))
diff --git a/examples/helloworld-programmatic/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java b/examples/helloworld-programmatic/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java
index f9596efb8f0..a74b18fdc41 100644
--- a/examples/helloworld-programmatic/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java
+++ b/examples/helloworld-programmatic/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -18,10 +18,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
public class HelloWorldTest extends JerseyTest {
diff --git a/examples/helloworld-pure-jax-rs/pom.xml b/examples/helloworld-pure-jax-rs/pom.xml
index 4bc69166b78..eb09c25c654 100644
--- a/examples/helloworld-pure-jax-rs/pom.xml
+++ b/examples/helloworld-pure-jax-rs/pom.xml
@@ -40,8 +40,8 @@
jersey-hk2
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/examples/helloworld-pure-jax-rs/src/test/java/org/glassfish/jersey/examples/helloworld/jaxrs/HelloWorldTest.java b/examples/helloworld-pure-jax-rs/src/test/java/org/glassfish/jersey/examples/helloworld/jaxrs/HelloWorldTest.java
index 2562a4fc5d2..37e4e9a50e8 100644
--- a/examples/helloworld-pure-jax-rs/src/test/java/org/glassfish/jersey/examples/helloworld/jaxrs/HelloWorldTest.java
+++ b/examples/helloworld-pure-jax-rs/src/test/java/org/glassfish/jersey/examples/helloworld/jaxrs/HelloWorldTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -14,8 +14,8 @@
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import com.sun.net.httpserver.HttpServer;
diff --git a/examples/helloworld-spring-annotations/src/test/java/org/glassfish/jersey/examples/hello/spring/annotations/SpringRequestResourceTest.java b/examples/helloworld-spring-annotations/src/test/java/org/glassfish/jersey/examples/hello/spring/annotations/SpringRequestResourceTest.java
index 0f6fd4a10ea..3ad9beacd17 100644
--- a/examples/helloworld-spring-annotations/src/test/java/org/glassfish/jersey/examples/hello/spring/annotations/SpringRequestResourceTest.java
+++ b/examples/helloworld-spring-annotations/src/test/java/org/glassfish/jersey/examples/hello/spring/annotations/SpringRequestResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -14,8 +14,8 @@
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
@@ -35,16 +35,16 @@ protected Application configure() {
@Test
public void testGreet() throws Exception {
final String greeting = target("spring-resource").request().get(String.class);
- Assert.assertEquals("hello, world 1!", greeting);
+ Assertions.assertEquals("hello, world 1!", greeting);
final String greeting2 = target("spring-resource").request().get(String.class);
- Assert.assertEquals("hello, world 2!", greeting2);
+ Assertions.assertEquals("hello, world 2!", greeting2);
}
@Test
public void testGoodbye() {
final String goodbye = target("spring-resource").path("goodbye").request().get(String.class);
- Assert.assertEquals("goodbye, cruel world!", goodbye);
+ Assertions.assertEquals("goodbye, cruel world!", goodbye);
final String norwegianGoodbye = target("spring-resource").path("norwegian-goodbye").request().get(String.class);
- Assert.assertEquals("hadet, på badet!", norwegianGoodbye);
+ Assertions.assertEquals("hadet, på badet!", norwegianGoodbye);
}
}
diff --git a/examples/helloworld-spring-webapp/pom.xml b/examples/helloworld-spring-webapp/pom.xml
index 0610019755b..ce322941eba 100644
--- a/examples/helloworld-spring-webapp/pom.xml
+++ b/examples/helloworld-spring-webapp/pom.xml
@@ -76,8 +76,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/examples/helloworld-webapp/src/test/java/org/glassfish/jersey/examples/helloworld/webapp/HelloWorldTest.java b/examples/helloworld-webapp/src/test/java/org/glassfish/jersey/examples/helloworld/webapp/HelloWorldTest.java
index 922816541e8..a5b9f9b235a 100644
--- a/examples/helloworld-webapp/src/test/java/org/glassfish/jersey/examples/helloworld/webapp/HelloWorldTest.java
+++ b/examples/helloworld-webapp/src/test/java/org/glassfish/jersey/examples/helloworld/webapp/HelloWorldTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -16,9 +16,9 @@
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Simple test to check "Hello World!" is being returned from the helloworld resource.
diff --git a/examples/helloworld-weld/pom.xml b/examples/helloworld-weld/pom.xml
index 64b5befd07b..126585fd037 100644
--- a/examples/helloworld-weld/pom.xml
+++ b/examples/helloworld-weld/pom.xml
@@ -84,6 +84,9 @@
org.glassfish.jersey.examples.helloworld.App
+
+ maven-surefire-plugin
+
diff --git a/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/AppScopedResourceTest.java b/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/AppScopedResourceTest.java
index 4b324633d41..e736acad118 100644
--- a/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/AppScopedResourceTest.java
+++ b/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/AppScopedResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -17,10 +17,11 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
import org.jboss.weld.environment.se.Weld;
-
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test for the {@link AppScopedResource} JAX-RS resource class.
@@ -31,6 +32,7 @@ public class AppScopedResourceTest extends JerseyTest {
Weld weld;
+ @BeforeEach
@Override
public void setUp() throws Exception {
weld = new Weld();
@@ -38,6 +40,7 @@ public void setUp() throws Exception {
super.setUp();
}
+ @AfterEach
@Override
public void tearDown() throws Exception {
weld.shutdown();
diff --git a/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java b/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java
index 9343440eced..c59b686f6e8 100644
--- a/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java
+++ b/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -16,9 +16,10 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
import org.jboss.weld.environment.se.Weld;
-
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test for the {@link HelloWorldResource} JAX-RS resource class.
@@ -29,6 +30,7 @@ public class HelloWorldTest extends JerseyTest {
private Weld weld;
+ @BeforeEach
@Override
public void setUp() throws Exception {
weld = new Weld();
@@ -36,6 +38,7 @@ public void setUp() throws Exception {
super.setUp();
}
+ @AfterEach
@Override
public void tearDown() throws Exception {
weld.shutdown();
@@ -55,8 +58,9 @@ protected ResourceConfig configure() {
@Test
public void testHelloWorld() {
- Response response = target().path("helloworld").queryParam("name", "Josef").request("text/plain").get();
+ String name = "Josef";
+ Response response = target().path("helloworld").queryParam("name", name).request("text/plain").get();
assertEquals(200, response.getStatus());
- assertEquals(String.format("Hello %s", "Josef"), response.readEntity(String.class));
+ assertEquals(String.format("Hello %s", name), response.readEntity(String.class));
}
}
diff --git a/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/RequestScopeAlignmentTest.java b/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/RequestScopeAlignmentTest.java
index e3dfea8e37b..365d749e534 100644
--- a/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/RequestScopeAlignmentTest.java
+++ b/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/RequestScopeAlignmentTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,24 +10,18 @@
package org.glassfish.jersey.examples.helloworld;
-import java.util.Arrays;
-import java.util.List;
-
import javax.ws.rs.client.WebTarget;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.jboss.weld.environment.se.Weld;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.containsString;
-import static org.hamcrest.CoreMatchers.startsWith;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Test for the request scoped managed bean resource.
@@ -38,13 +32,13 @@ public class RequestScopeAlignmentTest extends JerseyTest {
static Weld weld;
- @BeforeClass
+ @BeforeAll
public static void before() throws Exception {
weld = new Weld();
weld.initialize();
}
- @AfterClass
+ @AfterAll
public static void after() throws Exception {
weld.shutdown();
}
diff --git a/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/RequestScopedResourceTest.java b/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/RequestScopedResourceTest.java
index 17213f17bdb..b5b7f03214d 100644
--- a/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/RequestScopedResourceTest.java
+++ b/examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/RequestScopedResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -13,21 +13,25 @@
import java.util.Iterator;
import java.util.Random;
import java.util.concurrent.atomic.AtomicInteger;
+import java.util.stream.Stream;
+import java.util.stream.StreamSupport;
import javax.ws.rs.core.Response;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.glassfish.jersey.test.util.runner.ConcurrentParameterizedRunner;
-
import org.jboss.weld.environment.se.Weld;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.TestInstance;
+import org.junit.jupiter.api.parallel.Execution;
+import org.junit.jupiter.api.parallel.ExecutionMode;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* Test request scoped resource. Number of various requests will be made in parallel
@@ -36,7 +40,7 @@
*
* @author Jakub Podlesak
*/
-@RunWith(ConcurrentParameterizedRunner.class)
+@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class RequestScopedResourceTest extends JerseyTest {
// Total number of requests to make
@@ -55,13 +59,11 @@ public class RequestScopedResourceTest extends JerseyTest {
*
* @return iterable test input data
*/
- @Parameterized.Parameters
- public static Iterable data() {
- return new Iterable() {
-
+ public static Stream data() {
+ Iterable iterable = new Iterable() {
@Override
- public Iterator iterator() {
- return new Iterator() {
+ public Iterator iterator() {
+ return new Iterator() {
@Override
public boolean hasNext() {
@@ -69,11 +71,9 @@ public boolean hasNext() {
}
@Override
- public Object[] next() {
- Object[] result = new Object[1];
+ public Arguments next() {
int nextValue = dataFeed.getAndIncrement();
- result[0] = String.format("%02d", nextValue);
- return result;
+ return Arguments.of(String.format("%02d", nextValue));
}
@Override
@@ -83,26 +83,20 @@ public void remove() {
};
}
};
+ return StreamSupport.stream(iterable.spliterator(), false);
}
- @BeforeClass
+ @BeforeAll
public static void before() throws Exception {
weld = new Weld();
weld.initialize();
}
- @AfterClass
+ @AfterAll
public static void after() throws Exception {
weld.shutdown();
}
- @Override
- public void tearDown() throws Exception {
- super.tearDown();
- System.out.printf("SYNC: %d, ASYNC: %d, STRAIGHT: %d%n",
- parameterizedCounter.intValue(), parameterizedAsyncCounter.intValue(), straightCounter.intValue());
- }
-
@Override
protected ResourceConfig configure() {
// enable(TestProperties.LOG_TRAFFIC);
@@ -114,7 +108,9 @@ protected ResourceConfig configure() {
final AtomicInteger parameterizedAsyncCounter = new AtomicInteger(0);
final AtomicInteger straightCounter = new AtomicInteger(0);
- @Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ParameterizedTest
+ @MethodSource("data")
public void testRequestScopedResource(final String param) {
String path;
@@ -139,7 +135,7 @@ public void testRequestScopedResource(final String param) {
final Response response = target().path(path).queryParam("q", param).request("text/plain").get();
- assertNotNull(String.format("Request failed for %s", path), response);
+ assertNotNull(response, String.format("Request failed for %s", path));
assertEquals(200, response.getStatus());
assertEquals(expected, response.readEntity(String.class));
}
diff --git a/examples/helloworld/pom.xml b/examples/helloworld/pom.xml
index db2aeef24dc..d45d38cac5c 100644
--- a/examples/helloworld/pom.xml
+++ b/examples/helloworld/pom.xml
@@ -65,6 +65,9 @@
org.glassfish.jersey.examples.helloworld.App
+
+ maven-surefire-plugin
+
diff --git a/examples/helloworld/src/test/java/org/glassfish/jersey/examples/helloworld/CustomLoggingFilter.java b/examples/helloworld/src/test/java/org/glassfish/jersey/examples/helloworld/CustomLoggingFilter.java
index 4e04d4674f3..c37f6bdec67 100644
--- a/examples/helloworld/src/test/java/org/glassfish/jersey/examples/helloworld/CustomLoggingFilter.java
+++ b/examples/helloworld/src/test/java/org/glassfish/jersey/examples/helloworld/CustomLoggingFilter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -21,7 +21,7 @@
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Custom logging filter.
@@ -37,28 +37,28 @@ public class CustomLoggingFilter implements ContainerRequestFilter, ContainerRes
@Override
public void filter(ClientRequestContext context) throws IOException {
System.out.println("CustomLoggingFilter.preFilter called");
- assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ assertEquals("bar", context.getConfiguration().getProperty("foo"));
preFilterCalled++;
}
@Override
public void filter(ClientRequestContext context, ClientResponseContext clientResponseContext) throws IOException {
System.out.println("CustomLoggingFilter.postFilter called");
- assertEquals(context.getConfiguration().getProperty("foo"), "bar");
+ assertEquals("bar", context.getConfiguration().getProperty("foo"));
postFilterCalled++;
}
@Override
public void filter(ContainerRequestContext context) throws IOException {
System.out.println("CustomLoggingFilter.preFilter called");
- assertEquals(context.getProperty("foo"), "bar");
+ assertEquals("bar", context.getProperty("foo"));
preFilterCalled++;
}
@Override
public void filter(ContainerRequestContext context, ContainerResponseContext containerResponseContext) throws IOException {
System.out.println("CustomLoggingFilter.postFilter called");
- assertEquals(context.getProperty("foo"), "bar");
+ assertEquals("bar", context.getProperty("foo"));
postFilterCalled++;
}
}
diff --git a/examples/helloworld/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java b/examples/helloworld/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java
index 538c212313a..bf0d7d5d7b0 100644
--- a/examples/helloworld/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java
+++ b/examples/helloworld/src/test/java/org/glassfish/jersey/examples/helloworld/HelloWorldTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -27,17 +27,19 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.glassfish.jersey.test.util.runner.ConcurrentRunner;
-import org.glassfish.jersey.test.util.runner.RunSeparately;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.runner.RunWith;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestInstance;
+import org.junit.jupiter.api.parallel.Execution;
+import org.junit.jupiter.api.parallel.ExecutionMode;
+import org.junit.jupiter.api.parallel.ResourceAccessMode;
+import org.junit.jupiter.api.parallel.ResourceLock;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
-@RunWith(ConcurrentRunner.class)
+@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class HelloWorldTest extends JerseyTest {
@Override
@@ -58,7 +60,9 @@ protected ResourceConfig configure() {
// }
@Test
- @Ignore("not compatible with test framework (doesn't use client())")
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
+ @Disabled("not compatible with test framework (doesn't use client())")
public void testHelloWorld() throws Exception {
URL getUrl = UriBuilder.fromUri(getBaseUri()).path(App.ROOT_PATH).build().toURL();
HttpURLConnection connection = (HttpURLConnection) getUrl.openConnection();
@@ -74,18 +78,24 @@ public void testHelloWorld() throws Exception {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testConnection() {
Response response = target().path(App.ROOT_PATH).request("text/plain").get();
assertEquals(200, response.getStatus());
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testClientStringResponse() {
String s = target().path(App.ROOT_PATH).request().get(String.class);
assertEquals(HelloWorldResource.CLICHED_MESSAGE, s);
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testAsyncClientRequests() throws InterruptedException {
final int REQUESTS = 10;
final CountDownLatch latch = new CountDownLatch(REQUESTS);
@@ -116,6 +126,8 @@ public void failed(Throwable error) {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testHead() {
Response response = target().path(App.ROOT_PATH).request().head();
assertEquals(200, response.getStatus());
@@ -123,6 +135,8 @@ public void testHead() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testFooBarOptions() {
Response response = target().path(App.ROOT_PATH).request().header("Accept", "foo/bar").options();
assertEquals(200, response.getStatus());
@@ -133,6 +147,8 @@ public void testFooBarOptions() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testTextPlainOptions() {
Response response = target().path(App.ROOT_PATH).request().header("Accept", MediaType.TEXT_PLAIN).options();
assertEquals(200, response.getStatus());
@@ -150,6 +166,8 @@ private void _checkAllowContent(final String content) {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ)
public void testMissingResourceNotFound() {
Response response;
@@ -161,7 +179,7 @@ public void testMissingResourceNotFound() {
}
@Test
- @RunSeparately
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ_WRITE)
public void testLoggingFilterClientClass() {
Client client = client();
client.register(CustomLoggingFilter.class).property("foo", "bar");
@@ -173,7 +191,7 @@ public void testLoggingFilterClientClass() {
}
@Test
- @RunSeparately
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ_WRITE)
public void testLoggingFilterClientInstance() {
Client client = client();
client.register(new CustomLoggingFilter()).property("foo", "bar");
@@ -185,7 +203,7 @@ public void testLoggingFilterClientInstance() {
}
@Test
- @RunSeparately
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ_WRITE)
public void testLoggingFilterTargetClass() {
WebTarget target = target().path(App.ROOT_PATH);
target.register(CustomLoggingFilter.class).property("foo", "bar");
@@ -197,7 +215,7 @@ public void testLoggingFilterTargetClass() {
}
@Test
- @RunSeparately
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ_WRITE)
public void testLoggingFilterTargetInstance() {
WebTarget target = target().path(App.ROOT_PATH);
target.register(new CustomLoggingFilter()).property("foo", "bar");
@@ -209,7 +227,7 @@ public void testLoggingFilterTargetInstance() {
}
@Test
- @RunSeparately
+ @ResourceLock(value = "dummy", mode = ResourceAccessMode.READ_WRITE)
public void testConfigurationUpdate() {
Client client1 = client();
client1.register(CustomLoggingFilter.class).property("foo", "bar");
diff --git a/examples/http-patch/src/test/java/org/glassfish/jersey/examples/httppatch/HttpPatchTest.java b/examples/http-patch/src/test/java/org/glassfish/jersey/examples/httppatch/HttpPatchTest.java
index 7c4d81ff98a..e43a9f5eb79 100644
--- a/examples/http-patch/src/test/java/org/glassfish/jersey/examples/httppatch/HttpPatchTest.java
+++ b/examples/http-patch/src/test/java/org/glassfish/jersey/examples/httppatch/HttpPatchTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -22,8 +22,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* HTTP PATCH Example unit tests.
diff --git a/examples/http-trace/src/test/java/org/glassfish/jersey/examples/httptrace/TraceSupportTest.java b/examples/http-trace/src/test/java/org/glassfish/jersey/examples/httptrace/TraceSupportTest.java
index 4dec4162536..c2af58bcbd9 100644
--- a/examples/http-trace/src/test/java/org/glassfish/jersey/examples/httptrace/TraceSupportTest.java
+++ b/examples/http-trace/src/test/java/org/glassfish/jersey/examples/httptrace/TraceSupportTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -24,10 +24,10 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
public class TraceSupportTest extends JerseyTest {
@@ -59,9 +59,9 @@ public void testProgrammaticApp() throws Exception {
String responseEntity = response.readEntity(String.class);
for (String expectedFragment : expectedFragmentsProgrammatic) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // toLowerCase - http header field names are case insensitive
- responseEntity.contains(expectedFragment));
+ assertTrue(// toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
@@ -73,9 +73,9 @@ public void testAnnotatedApp() throws Exception {
String responseEntity = response.readEntity(String.class);
for (String expectedFragment : expectedFragmentsAnnotated) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // toLowerCase - http header field names are case insensitive
- responseEntity.contains(expectedFragment));
+ assertTrue(// toLowerCase - http header field names are case insensitive
+ responseEntity.contains(expectedFragment),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
diff --git a/examples/https-clientserver-grizzly/pom.xml b/examples/https-clientserver-grizzly/pom.xml
index c96284fffdc..668688acf5a 100644
--- a/examples/https-clientserver-grizzly/pom.xml
+++ b/examples/https-clientserver-grizzly/pom.xml
@@ -54,8 +54,8 @@
jakarta.xml.bind-api
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/examples/https-clientserver-grizzly/src/test/java/org/glassfish/jersey/examples/httpsclientservergrizzly/MainTest.java b/examples/https-clientserver-grizzly/src/test/java/org/glassfish/jersey/examples/httpsclientservergrizzly/MainTest.java
index ce21918b817..09cc994c2f1 100644
--- a/examples/https-clientserver-grizzly/src/test/java/org/glassfish/jersey/examples/httpsclientservergrizzly/MainTest.java
+++ b/examples/https-clientserver-grizzly/src/test/java/org/glassfish/jersey/examples/httpsclientservergrizzly/MainTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -24,11 +24,11 @@
import org.glassfish.jersey.grizzly.connector.GrizzlyConnectorProvider;
import org.glassfish.jersey.logging.LoggingFeature;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* This test class starts the grizzly server and then client performs several SSL (https)
@@ -48,7 +48,7 @@ public class MainTest {
private final Object serverGuard = new Object();
private Server server = null;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
synchronized (serverGuard) {
if (server != null) {
@@ -59,7 +59,7 @@ public void setUp() throws Exception {
}
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
synchronized (serverGuard) {
if (server == null) {
diff --git a/examples/java8-webapp/src/test/java/org/glassfish/jersey/examples/java8/DefaultMethodResourceTest.java b/examples/java8-webapp/src/test/java/org/glassfish/jersey/examples/java8/DefaultMethodResourceTest.java
index 3515b514da7..fd63730eb29 100644
--- a/examples/java8-webapp/src/test/java/org/glassfish/jersey/examples/java8/DefaultMethodResourceTest.java
+++ b/examples/java8-webapp/src/test/java/org/glassfish/jersey/examples/java8/DefaultMethodResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -15,8 +15,8 @@
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test usage of Java8's interface default methods as resource methods.
diff --git a/examples/java8-webapp/src/test/java/org/glassfish/jersey/examples/java8/LambdaResourceTest.java b/examples/java8-webapp/src/test/java/org/glassfish/jersey/examples/java8/LambdaResourceTest.java
index ce52d78846e..96e314500c3 100644
--- a/examples/java8-webapp/src/test/java/org/glassfish/jersey/examples/java8/LambdaResourceTest.java
+++ b/examples/java8-webapp/src/test/java/org/glassfish/jersey/examples/java8/LambdaResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -15,9 +15,9 @@
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Test usage of Java SE 8 lambdas in JAX-RS resource methods.
diff --git a/examples/jaxb/src/test/java/org/glassfish/jersey/examples/jaxb/JaxbTest.java b/examples/jaxb/src/test/java/org/glassfish/jersey/examples/jaxb/JaxbTest.java
index c887ae3f9d9..ff63be2856b 100644
--- a/examples/jaxb/src/test/java/org/glassfish/jersey/examples/jaxb/JaxbTest.java
+++ b/examples/jaxb/src/test/java/org/glassfish/jersey/examples/jaxb/JaxbTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -23,9 +23,9 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Jersey JAXB example test.
@@ -49,8 +49,7 @@ protected ResourceConfig configure() {
@Test
public void testApplicationWadl() {
String applicationWadl = target().path("application.wadl").request().get(String.class);
- assertTrue("Something wrong. Returned wadl length is not > 0",
- applicationWadl.length() > 0);
+ assertTrue(applicationWadl.length() > 0, "Something wrong. Returned wadl length is not > 0");
}
@Test
diff --git a/examples/jaxrs-types-injection/src/test/java/org/glassfish/jersey/examples/jaxrstypeinjection/JaxrsTypeInjectionTest.java b/examples/jaxrs-types-injection/src/test/java/org/glassfish/jersey/examples/jaxrstypeinjection/JaxrsTypeInjectionTest.java
index d9e87e15df1..7c113f5b584 100644
--- a/examples/jaxrs-types-injection/src/test/java/org/glassfish/jersey/examples/jaxrstypeinjection/JaxrsTypeInjectionTest.java
+++ b/examples/jaxrs-types-injection/src/test/java/org/glassfish/jersey/examples/jaxrstypeinjection/JaxrsTypeInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -16,8 +16,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
public class JaxrsTypeInjectionTest extends JerseyTest {
@@ -91,9 +91,9 @@ public void testProgrammaticApp() throws Exception {
.toLowerCase();
for (String expectedFragment : expectedFragmentsProgrammatic) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // http header field names are case insensitive
- responseEntity.contains(expectedFragment.toLowerCase()));
+ assertTrue(// http header field names are case insensitive
+ responseEntity.contains(expectedFragment.toLowerCase()),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
@@ -103,9 +103,9 @@ public void testAnnotatedInstanceApp() throws Exception {
.toLowerCase();
for (String expectedFragment : expectedFragmentsAnnotatedInstance) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // http header field names are case insensitive
- responseEntity.contains(expectedFragment.toLowerCase()));
+ assertTrue(// http header field names are case insensitive
+ responseEntity.contains(expectedFragment.toLowerCase()),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
@@ -115,9 +115,9 @@ public void testAnnotatedMethodApp() throws Exception {
.toLowerCase();
for (String expectedFragment : expectedFragmentsAnnotatedMethod) {
- assertTrue("Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity,
- // http header field names are case insensitive
- responseEntity.contains(expectedFragment.toLowerCase()));
+ assertTrue(// http header field names are case insensitive
+ responseEntity.contains(expectedFragment.toLowerCase()),
+ "Expected fragment '" + expectedFragment + "' not found in response:\n" + responseEntity);
}
}
}
diff --git a/examples/jersey-ejb/src/test/java/org/glassfish/jersey/examples/jersey_ejb/test/MessageBoardTest.java b/examples/jersey-ejb/src/test/java/org/glassfish/jersey/examples/jersey_ejb/test/MessageBoardTest.java
index 5d5b4550f80..b96640f23f0 100644
--- a/examples/jersey-ejb/src/test/java/org/glassfish/jersey/examples/jersey_ejb/test/MessageBoardTest.java
+++ b/examples/jersey-ejb/src/test/java/org/glassfish/jersey/examples/jersey_ejb/test/MessageBoardTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -21,10 +21,10 @@
import org.glassfish.jersey.examples.jersey_ejb.resources.MyApplication;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Basic test for adding/removing messages.
@@ -56,9 +56,8 @@ protected URI getBaseUri() {
public void testListMessages() {
Response response = target().path("app/messages").request(MediaType.TEXT_HTML).get();
- assertEquals(
- String.format("Response status should be 200. Current value is %d.", response.getStatus()),
- 200, response.getStatus());
+ assertEquals(200, response.getStatus(),
+ String.format("Response status should be 200. Current value is %d.", response.getStatus()));
}
@Test
@@ -67,8 +66,8 @@ public void testAddMessage() {
Response response = target().path("app/messages").request(MediaType.TEXT_PLAIN)
.post(Entity.entity("hello world!", MediaType.TEXT_PLAIN));
- assertEquals("Response status should be CREATED. Current value is \"" + response.getStatus() + "\"",
- Response.Status.CREATED.getStatusCode(), response.getStatus());
+ assertEquals(Response.Status.CREATED.getStatusCode(), response.getStatus(),
+ "Response status should be CREATED. Current value is \"" + response.getStatus() + "\"");
client().target(response.getLocation()).request().delete(); // remove added message
}
@@ -91,14 +90,14 @@ public void testDeleteMessage() {
Response firstDeleteResponse = client().target(u).request().delete();
final int successfulDeleteResponseStatus = firstDeleteResponse.getStatus();
- assertTrue("First DELETE request should return with a 2xx status code",
- (200 <= successfulDeleteResponseStatus) && (successfulDeleteResponseStatus < 300));
+ assertTrue((200 <= successfulDeleteResponseStatus) && (successfulDeleteResponseStatus < 300),
+ "First DELETE request should return with a 2xx status code");
Response nonExistentGetResponse = client().target(u).request().get();
- assertEquals("GET request to a non existent resource should return 404", 404, nonExistentGetResponse.getStatus());
+ assertEquals(404, nonExistentGetResponse.getStatus(), "GET request to a non existent resource should return 404");
Response nonExistentDeleteResponse = client().target(u).request().delete();
- assertEquals("DELETE request to a non existent resource should return 404", 404, nonExistentDeleteResponse.getStatus());
+ assertEquals(404, nonExistentDeleteResponse.getStatus(), "DELETE request to a non existent resource should return 404");
}
}
diff --git a/examples/json-jackson/src/test/java/org/glassfish/jersey/examples/jackson/JacksonTest.java b/examples/json-jackson/src/test/java/org/glassfish/jersey/examples/jackson/JacksonTest.java
index 9bef3a6e400..3e930686e2a 100644
--- a/examples/json-jackson/src/test/java/org/glassfish/jersey/examples/jackson/JacksonTest.java
+++ b/examples/json-jackson/src/test/java/org/glassfish/jersey/examples/jackson/JacksonTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -21,20 +21,21 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.glassfish.jersey.test.util.runner.ConcurrentRunner;
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestInstance;
+import org.junit.jupiter.api.parallel.Execution;
+import org.junit.jupiter.api.parallel.ExecutionMode;
-import org.junit.runner.RunWith;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Jakub Podlesak
*/
-@RunWith(ConcurrentRunner.class)
+@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class JacksonTest extends JerseyTest {
@Override
@@ -51,6 +52,7 @@ protected void configureClient(ClientConfig config) {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testEmptyArrayPresent() {
WebTarget target = target();
String responseMsg = target.path("emptyArrayResource").request(MediaType.APPLICATION_JSON).get(String.class);
@@ -58,6 +60,7 @@ public void testEmptyArrayPresent() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJSONPPresent() {
WebTarget target = target();
String responseMsg = target.path("nonJaxbResource").request("application/javascript").get(String.class);
@@ -65,6 +68,7 @@ public void testJSONPPresent() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJSONDoesNotReflectJSONPWrapper() {
WebTarget target = target();
String responseMsg = target.path("nonJaxbResource").request("application/json").get(String.class);
@@ -72,6 +76,7 @@ public void testJSONDoesNotReflectJSONPWrapper() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testCombinedAnnotationResource() {
WebTarget target = target();
String responseMsg = target.path("combinedAnnotations").request("application/json").get(String.class);
@@ -79,6 +84,7 @@ public void testCombinedAnnotationResource() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testEmptyArrayBean() {
WebTarget target = target();
EmptyArrayBean responseMsg = target.path("emptyArrayResource").request(MediaType.APPLICATION_JSON)
@@ -87,6 +93,7 @@ public void testEmptyArrayBean() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testCombinedAnnotationBean() {
WebTarget target = target();
CombinedAnnotationBean responseMsg = target.path("combinedAnnotations").request("application/json")
@@ -95,7 +102,8 @@ public void testCombinedAnnotationBean() {
}
@Test
- @Ignore
+ @Execution(ExecutionMode.CONCURRENT)
+ @Disabled
// TODO un-ignore once a JSON reader for "application/javascript" is supported
public void testJSONPBean() {
WebTarget target = target();
@@ -109,6 +117,7 @@ public void testJSONPBean() {
*
*/
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testApplicationWadl() {
WebTarget target = target();
String serviceWadl = target.path("application.wadl").request(MediaTypes.WADL_TYPE).get(String.class);
@@ -121,6 +130,7 @@ public void testApplicationWadl() {
* 400 - bad request instead of 500 - server error
*/
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testExceptionMapping() {
enable(TestProperties.LOG_TRAFFIC);
// create a request with invalid json string to cause an exception in Jackson
diff --git a/examples/json-jackson1/src/test/java/org/glassfish/jersey/examples/jackson1/Jackson1Test.java b/examples/json-jackson1/src/test/java/org/glassfish/jersey/examples/jackson1/Jackson1Test.java
index d2c9be0e84a..ff56201323d 100644
--- a/examples/json-jackson1/src/test/java/org/glassfish/jersey/examples/jackson1/Jackson1Test.java
+++ b/examples/json-jackson1/src/test/java/org/glassfish/jersey/examples/jackson1/Jackson1Test.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -22,11 +22,11 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Jakub Podlesak
@@ -81,7 +81,7 @@ public void testCombinedAnnotationBean() {
}
@Test
- @Ignore
+ @Disabled
// TODO un-ignore once a JSON reader for "application/javascript" is supported
public void testJSONPBean() {
assertNotNull(target("nonJaxbResource").request("application/javascript").get(NonJaxbBean.class));
diff --git a/examples/json-jettison/src/test/java/org/glassfish/jersey/examples/jettison/JsonJettisonTest.java b/examples/json-jettison/src/test/java/org/glassfish/jersey/examples/jettison/JsonJettisonTest.java
index 0f36b6b0370..4943e6cc19b 100644
--- a/examples/json-jettison/src/test/java/org/glassfish/jersey/examples/jettison/JsonJettisonTest.java
+++ b/examples/json-jettison/src/test/java/org/glassfish/jersey/examples/jettison/JsonJettisonTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -21,10 +21,10 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Jakub Podlesak
@@ -44,7 +44,7 @@ protected void configureClient(ClientConfig config) {
config.register(new JettisonFeature()).register(JaxbContextResolver.class);
}
- @Before
+ @BeforeEach
@Override
public void setUp() throws Exception {
super.setUp();
@@ -60,7 +60,7 @@ public void setUp() throws Exception {
@Test
public void testApplicationWadl() {
String applicationWadl = target().path("application.wadl").request().get(String.class);
- assertTrue("Something wrong. Returned wadl length is not > 0", applicationWadl.length() > 0);
+ assertTrue(applicationWadl.length() > 0, "Something wrong. Returned wadl length is not > 0");
}
/**
@@ -71,7 +71,7 @@ public void testGetOnFlightsJSONFormat() {
// get the initial representation
Flights flights = target().path("flights").request("application/json").get(Flights.class);
// check that there are two flight entries
- assertEquals("Expected number of initial entries not found", 2, flights.getFlight().size());
+ assertEquals(2, flights.getFlight().size(), "Expected number of initial entries not found");
}
/**
@@ -83,7 +83,7 @@ public void testPutOnFlightsJSONFormat() {
Flights flights = target().path("flights")
.request("application/json").get(Flights.class);
// check that there are two flight entries
- assertEquals("Expected number of initial entries not found", 2, flights.getFlight().size());
+ assertEquals(2, flights.getFlight().size(), "Expected number of initial entries not found");
// remove the second flight entry
if (flights.getFlight().size() > 1) {
@@ -100,10 +100,10 @@ public void testPutOnFlightsJSONFormat() {
// get the updated list out from the server:
Flights updatedFlights = target().path("flights").request("application/json").get(Flights.class);
//check that there is only one flight entry
- assertEquals("Remaining number of flight entries do not match the expected value", 1, updatedFlights.getFlight().size());
+ assertEquals(1, updatedFlights.getFlight().size(), "Remaining number of flight entries do not match the expected value");
// check that the flight entry in retrieved list has FlightID OK!@%
- assertEquals("Retrieved flight ID doesn't match the expected value", "OK125",
- updatedFlights.getFlight().get(0).getFlightId());
+ assertEquals("OK125", updatedFlights.getFlight().get(0).getFlightId(),
+ "Retrieved flight ID doesn't match the expected value");
}
/**
@@ -114,7 +114,7 @@ public void testGetOnFlightsXMLFormat() {
// get the initial representation
Flights flights = target().path("flights").request("application/xml").get(Flights.class);
// check that there are two flight entries
- assertEquals("Expected number of initial entries not found", 2, flights.getFlight().size());
+ assertEquals(2, flights.getFlight().size(), "Expected number of initial entries not found");
}
/**
@@ -125,7 +125,7 @@ public void testPutOnFlightsXMLFormat() {
// get the initial representation
Flights flights = target().path("flights").request("application/XML").get(Flights.class);
// check that there are two flight entries
- assertEquals("Expected number of initial entries not found", 2, flights.getFlight().size());
+ assertEquals(2, flights.getFlight().size(), "Expected number of initial entries not found");
// remove the second flight entry
if (flights.getFlight().size() > 1) {
@@ -142,10 +142,10 @@ public void testPutOnFlightsXMLFormat() {
// get the updated list out from the server:
Flights updatedFlights = target().path("flights").request("application/XML").get(Flights.class);
//check that there is only one flight entry
- assertEquals("Remaining number of flight entries do not match the expected value", 1, updatedFlights.getFlight().size());
+ assertEquals(1, updatedFlights.getFlight().size(), "Remaining number of flight entries do not match the expected value");
// check that the flight entry in retrieved list has FlightID OK!@%
- assertEquals("Retrieved flight ID doesn't match the expected value", "OK125",
- updatedFlights.getFlight().get(0).getFlightId());
+ assertEquals("OK125", updatedFlights.getFlight().get(0).getFlightId(),
+ "Retrieved flight ID doesn't match the expected value");
}
/**
@@ -158,6 +158,6 @@ public void testGetOnAircraftsJSONFormat() {
// get the initial representation
List aircraftTypes = target().path("aircrafts").request("application/json").get(listOfAircrafts);
// check that there are two aircraft type entries
- assertEquals("Expected number of initial aircraft types not found", 2, aircraftTypes.size());
+ assertEquals(2, aircraftTypes.size(), "Expected number of initial aircraft types not found");
}
}
diff --git a/examples/json-moxy/src/test/java/org/glassfish/jersey/examples/jsonmoxy/JsonResourceTest.java b/examples/json-moxy/src/test/java/org/glassfish/jersey/examples/jsonmoxy/JsonResourceTest.java
index 8ea7611d992..86af7ae9a77 100644
--- a/examples/json-moxy/src/test/java/org/glassfish/jersey/examples/jsonmoxy/JsonResourceTest.java
+++ b/examples/json-moxy/src/test/java/org/glassfish/jersey/examples/jsonmoxy/JsonResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -19,8 +19,8 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Pavel Bucek
diff --git a/examples/json-processing-webapp/src/test/java/org/glassfish/jersey/examples/jsonp/JsonProcessingResourceTest.java b/examples/json-processing-webapp/src/test/java/org/glassfish/jersey/examples/jsonp/JsonProcessingResourceTest.java
index 9b686c1633a..f8566fd6f09 100644
--- a/examples/json-processing-webapp/src/test/java/org/glassfish/jersey/examples/jsonp/JsonProcessingResourceTest.java
+++ b/examples/json-processing-webapp/src/test/java/org/glassfish/jersey/examples/jsonp/JsonProcessingResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -32,9 +32,9 @@
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Michal Gajdos
diff --git a/examples/json-with-padding/src/test/java/org/glassfish/jersey/examples/jsonp/JsonWithPaddingTest.java b/examples/json-with-padding/src/test/java/org/glassfish/jersey/examples/jsonp/JsonWithPaddingTest.java
index c674923d1be..79a508e1c33 100644
--- a/examples/json-with-padding/src/test/java/org/glassfish/jersey/examples/jsonp/JsonWithPaddingTest.java
+++ b/examples/json-with-padding/src/test/java/org/glassfish/jersey/examples/jsonp/JsonWithPaddingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -19,9 +19,9 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Jakub Podlesak
@@ -44,7 +44,7 @@ protected ResourceConfig configure() {
public void testApplicationWadl() {
WebTarget target = target();
String applicationWadl = target.path("application.wadl").request().get(String.class);
- assertTrue("Something wrong. Returned wadl length is not > 0", applicationWadl.length() > 0);
+ assertTrue(applicationWadl.length() > 0, "Something wrong. Returned wadl length is not > 0");
}
/**
@@ -57,7 +57,7 @@ public void testGetOnChangesJSONFormat() {
// get the initial representation
List changes = target.path("changes").request("application/json").get(genericType);
// check that there are two changes entries
- assertEquals("Expected number of initial changes not found", 5, changes.size());
+ assertEquals(5, changes.size(), "Expected number of initial changes not found");
}
/**
diff --git a/examples/managed-beans-webapp/src/test/java/org/glassfish/jersey/examples/managedbeans/ManagedBeanWebAppTest.java b/examples/managed-beans-webapp/src/test/java/org/glassfish/jersey/examples/managedbeans/ManagedBeanWebAppTest.java
index 662685c086c..f6ea9461b69 100644
--- a/examples/managed-beans-webapp/src/test/java/org/glassfish/jersey/examples/managedbeans/ManagedBeanWebAppTest.java
+++ b/examples/managed-beans-webapp/src/test/java/org/glassfish/jersey/examples/managedbeans/ManagedBeanWebAppTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -22,7 +22,7 @@
import org.glassfish.jersey.message.internal.MediaTypes;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
diff --git a/examples/managed-client-simple-webapp/src/test/java/org/glassfish/jersey/examples/managedclientsimple/ManagedClientSimpleTest.java b/examples/managed-client-simple-webapp/src/test/java/org/glassfish/jersey/examples/managedclientsimple/ManagedClientSimpleTest.java
index 8610f890f58..d49a024755a 100644
--- a/examples/managed-client-simple-webapp/src/test/java/org/glassfish/jersey/examples/managedclientsimple/ManagedClientSimpleTest.java
+++ b/examples/managed-client-simple-webapp/src/test/java/org/glassfish/jersey/examples/managedclientsimple/ManagedClientSimpleTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -22,8 +22,8 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.external.ExternalTestContainerFactory;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Miroslav Fuksa
diff --git a/examples/managed-client-webapp/src/test/java/org/glassfish/jersey/examples/managedclient/ManagedClientTest.java b/examples/managed-client-webapp/src/test/java/org/glassfish/jersey/examples/managedclient/ManagedClientTest.java
index bc5a38e4576..68fcabdcc4b 100644
--- a/examples/managed-client-webapp/src/test/java/org/glassfish/jersey/examples/managedclient/ManagedClientTest.java
+++ b/examples/managed-client-webapp/src/test/java/org/glassfish/jersey/examples/managedclient/ManagedClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -21,8 +21,8 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Jersey managed client example tests.
diff --git a/examples/managed-client/src/test/java/org/glassfish/jersey/examples/managedclient/ManagedClientTest.java b/examples/managed-client/src/test/java/org/glassfish/jersey/examples/managedclient/ManagedClientTest.java
index dc6a1bee60c..25de43c0d1c 100644
--- a/examples/managed-client/src/test/java/org/glassfish/jersey/examples/managedclient/ManagedClientTest.java
+++ b/examples/managed-client/src/test/java/org/glassfish/jersey/examples/managedclient/ManagedClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -18,8 +18,8 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Jersey managed client example tests.
diff --git a/examples/multipart-webapp/src/test/java/org/glassfish/jersey/examples/multipart/webapp/MultiPartWebAppTest.java b/examples/multipart-webapp/src/test/java/org/glassfish/jersey/examples/multipart/webapp/MultiPartWebAppTest.java
index ad1a3466887..677ff22de3b 100644
--- a/examples/multipart-webapp/src/test/java/org/glassfish/jersey/examples/multipart/webapp/MultiPartWebAppTest.java
+++ b/examples/multipart-webapp/src/test/java/org/glassfish/jersey/examples/multipart/webapp/MultiPartWebAppTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -35,9 +35,9 @@
import org.glassfish.jersey.media.multipart.MultiPartFeature;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.w3c.dom.Document;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests for {@code MultipartResource} class.
diff --git a/examples/osgi-helloworld-webapp/functional-test/pom.xml b/examples/osgi-helloworld-webapp/functional-test/pom.xml
index dc12eaab087..038517f0b5d 100644
--- a/examples/osgi-helloworld-webapp/functional-test/pom.xml
+++ b/examples/osgi-helloworld-webapp/functional-test/pom.xml
@@ -123,6 +123,7 @@
junit
junit
+ ${junit4.version}
test
diff --git a/examples/osgi-http-service/functional-test/pom.xml b/examples/osgi-http-service/functional-test/pom.xml
index 2777ad5dbd7..60f5a0ad3f3 100644
--- a/examples/osgi-http-service/functional-test/pom.xml
+++ b/examples/osgi-http-service/functional-test/pom.xml
@@ -122,6 +122,7 @@
junit
junit
+ ${junit4.version}
test
@@ -218,7 +219,7 @@
org.glassfish.jersey.examples.osgihttpservice.test.GrizzlyHttpServiceFelixTest
diff --git a/examples/reload/src/test/java/org/glassfish/jersey/examples/reload/ReloadTest.java b/examples/reload/src/test/java/org/glassfish/jersey/examples/reload/ReloadTest.java
index 81079e4bce5..bb5763ffcf8 100644
--- a/examples/reload/src/test/java/org/glassfish/jersey/examples/reload/ReloadTest.java
+++ b/examples/reload/src/test/java/org/glassfish/jersey/examples/reload/ReloadTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -19,9 +19,9 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* This is to test the reload feature without updating the resources text file.
@@ -65,7 +65,7 @@ public void testReload() {
// check stats
response = target().path("stats").request(MediaType.TEXT_PLAIN).get();
assertEquals(200, response.getStatus());
- assertTrue("1 expected as number of arrivals hits in stats", response.readEntity(String.class).contains("1"));
+ assertTrue(response.readEntity(String.class).contains("1"), "1 expected as number of arrivals hits in stats");
// another arrivals hit
response = target().path("arrivals").request(MediaType.TEXT_PLAIN).get();
@@ -74,7 +74,7 @@ public void testReload() {
// check updated stats
response = target().path("stats").request(MediaType.TEXT_PLAIN).get();
assertEquals(200, response.getStatus());
- assertTrue("2 expected as number of arrivals hits in stats", response.readEntity(String.class).contains("2"));
+ assertTrue(response.readEntity(String.class).contains("2"), "2 expected as number of arrivals hits in stats");
// remove stats
container.reload(new ResourceConfig(ArrivalsResource.class));
diff --git a/examples/rx-client-webapp/src/test/java/org/glassfish/jersey/examples/rx/RxClientsTest.java b/examples/rx-client-webapp/src/test/java/org/glassfish/jersey/examples/rx/RxClientsTest.java
index 271d91f3288..737a28c2235 100644
--- a/examples/rx-client-webapp/src/test/java/org/glassfish/jersey/examples/rx/RxClientsTest.java
+++ b/examples/rx-client-webapp/src/test/java/org/glassfish/jersey/examples/rx/RxClientsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -17,7 +17,7 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.ServletDeploymentContext;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/examples/server-async-managed/src/test/java/org/glassfish/jersey/examples/server/async/managed/ManagedAsyncResourceTest.java b/examples/server-async-managed/src/test/java/org/glassfish/jersey/examples/server/async/managed/ManagedAsyncResourceTest.java
index c8f54ebaa27..07032f09b5a 100644
--- a/examples/server-async-managed/src/test/java/org/glassfish/jersey/examples/server/async/managed/ManagedAsyncResourceTest.java
+++ b/examples/server-async-managed/src/test/java/org/glassfish/jersey/examples/server/async/managed/ManagedAsyncResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -34,10 +34,10 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test for the asynchronous managed resources example.
@@ -149,9 +149,8 @@ private void get() {
LOGGER.info(messageBuilder.toString());
for (Map.Entry entry : getResponses.entrySet()) {
- assertTrue(
- "Unexpected GET notification response for message " + entry.getKey(),
- entry.getValue().contains(expectedResponse));
+ assertTrue(entry.getValue().contains(expectedResponse),
+ "Unexpected GET notification response for message " + entry.getKey());
}
assertEquals(MAX_MESSAGES, getResponses.size());
}
@@ -293,9 +292,8 @@ private void get() {
LOGGER.info(messageBuilder.toString());
for (Map.Entry postResponseEntry : postResponses.entrySet()) {
- assertEquals(
- "Unexpected POST notification response for message " + postResponseEntry.getKey(),
- 200, postResponseEntry.getValue().intValue());
+ assertEquals(200, postResponseEntry.getValue().intValue(),
+ "Unexpected POST notification response for message " + postResponseEntry.getKey());
}
final List lost = new LinkedList();
diff --git a/examples/server-async-standalone/client/pom.xml b/examples/server-async-standalone/client/pom.xml
index 567abdcc6eb..b03d5baf9be 100644
--- a/examples/server-async-standalone/client/pom.xml
+++ b/examples/server-async-standalone/client/pom.xml
@@ -46,8 +46,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/examples/server-async-standalone/client/src/test/java/org/glassfish/jersey/examples/server/async/MainTest.java b/examples/server-async-standalone/client/src/test/java/org/glassfish/jersey/examples/server/async/MainTest.java
index 2826e44eb1b..240b53a1127 100644
--- a/examples/server-async-standalone/client/src/test/java/org/glassfish/jersey/examples/server/async/MainTest.java
+++ b/examples/server-async-standalone/client/src/test/java/org/glassfish/jersey/examples/server/async/MainTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,8 +10,8 @@
package org.glassfish.jersey.examples.server.async;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test whether cases described in {@code README} are passing.
diff --git a/examples/server-async/src/test/java/org/glassfish/jersey/examples/server/async/AsyncResourceTest.java b/examples/server-async/src/test/java/org/glassfish/jersey/examples/server/async/AsyncResourceTest.java
index 1e7c8dce625..b66ff6416e8 100644
--- a/examples/server-async/src/test/java/org/glassfish/jersey/examples/server/async/AsyncResourceTest.java
+++ b/examples/server-async/src/test/java/org/glassfish/jersey/examples/server/async/AsyncResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -34,10 +34,10 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
public class AsyncResourceTest extends JerseyTest {
@@ -197,9 +197,8 @@ private void get() {
LOGGER.info(messageBuilder.toString());
for (Map.Entry postResponseEntry : postResponses.entrySet()) {
- assertEquals(
- String.format("Unexpected POST notification response for message %02d", postResponseEntry.getKey()),
- expectedPostResponse, postResponseEntry.getValue());
+ assertEquals(expectedPostResponse, postResponseEntry.getValue(),
+ String.format("Unexpected POST notification response for message %02d", postResponseEntry.getKey()));
}
final List lost = new LinkedList();
@@ -309,9 +308,8 @@ public int compare(Map.Entry o1, Map.Entry o2)
LOGGER.info(messageBuilder.toString());
for (Map.Entry entry : responseEntryList) {
- assertEquals(
- String.format("Unexpected GET notification response for message %02d", entry.getKey()),
- expectedResponse, entry.getValue());
+ assertEquals(expectedResponse, entry.getValue(),
+ String.format("Unexpected GET notification response for message %02d", entry.getKey()));
}
assertEquals(MAX_MESSAGES, getResponses.size());
}
diff --git a/examples/server-sent-events-jaxrs/src/test/java/org/glassfish/jersey/examples/sse/jaxrs/ServerSentEventsTest.java b/examples/server-sent-events-jaxrs/src/test/java/org/glassfish/jersey/examples/sse/jaxrs/ServerSentEventsTest.java
index 7078512dbb9..8ae98c38bef 100644
--- a/examples/server-sent-events-jaxrs/src/test/java/org/glassfish/jersey/examples/sse/jaxrs/ServerSentEventsTest.java
+++ b/examples/server-sent-events-jaxrs/src/test/java/org/glassfish/jersey/examples/sse/jaxrs/ServerSentEventsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -30,12 +30,12 @@
import org.glassfish.jersey.internal.guava.ThreadFactoryBuilder;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.notNullValue;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* SSE example resources test.
@@ -61,6 +61,7 @@ protected Client getClient() {
return client;
}
+ @AfterEach
@Override
public void tearDown() throws Exception {
super.tearDown();
@@ -89,8 +90,8 @@ public void testEventSource() throws Exception {
target().path(App.ROOT_PATH).request().post(Entity.text("message")).close();
try {
- assertTrue("Waiting for message to be delivered has timed out.",
- latch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS));
+ assertTrue(latch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS),
+ "Waiting for message to be delivered has timed out.");
} finally {
target().path(App.ROOT_PATH).request().delete().close();
eventSource.close();
diff --git a/examples/server-sent-events-jersey/src/test/java/org/glassfish/jersey/examples/sse/jersey/ServerSentEventsTest.java b/examples/server-sent-events-jersey/src/test/java/org/glassfish/jersey/examples/sse/jersey/ServerSentEventsTest.java
index 56ee494c36e..9da0021eddb 100644
--- a/examples/server-sent-events-jersey/src/test/java/org/glassfish/jersey/examples/sse/jersey/ServerSentEventsTest.java
+++ b/examples/server-sent-events-jersey/src/test/java/org/glassfish/jersey/examples/sse/jersey/ServerSentEventsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -39,12 +39,12 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.notNullValue;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* SSE example resources test.
@@ -93,8 +93,8 @@ public void onEvent(InboundEvent inboundEvent) {
target().path(App.ROOT_PATH).request().post(Entity.text("message"));
try {
- assertTrue("Waiting for message to be delivered has timed out.",
- latch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS));
+ assertTrue(latch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS),
+ "Waiting for message to be delivered has timed out.");
} finally {
eventSource.close();
}
@@ -139,8 +139,8 @@ public List call() throws Exception {
}
});
- assertTrue("Waiting for receiver thread to start has timed out.",
- startLatch.await(5, TimeUnit.SECONDS));
+ assertTrue(startLatch.await(5, TimeUnit.SECONDS),
+ "Waiting for receiver thread to start has timed out.");
for (int i = 0; i < MAX_MESSAGES; i++) {
target(App.ROOT_PATH).request().post(Entity.text("message " + i));
diff --git a/examples/servlet3-webapp/src/test/java/Servlet3WebappITCase.java b/examples/servlet3-webapp/src/test/java/Servlet3WebappITCase.java
index 0bf859b48f9..a2b6d9c8329 100644
--- a/examples/servlet3-webapp/src/test/java/Servlet3WebappITCase.java
+++ b/examples/servlet3-webapp/src/test/java/Servlet3WebappITCase.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -14,14 +14,14 @@
import org.glassfish.jersey.test.spi.TestContainerException;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.core.Application;
import javax.ws.rs.core.UriBuilder;
import java.net.URI;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests the servlet3-webapp example.
diff --git a/examples/simple-console/src/test/java/org/glassfish/jersey/examples/console/MainTest.java b/examples/simple-console/src/test/java/org/glassfish/jersey/examples/console/MainTest.java
index f5a58a73c15..3a5c2b5bec2 100644
--- a/examples/simple-console/src/test/java/org/glassfish/jersey/examples/console/MainTest.java
+++ b/examples/simple-console/src/test/java/org/glassfish/jersey/examples/console/MainTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -29,9 +29,9 @@
import org.glassfish.jersey.test.TestProperties;
import org.codehaus.jettison.json.JSONArray;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Naresh (Srinivas Bhimisetty)
@@ -66,8 +66,8 @@ public void testApplicationWadl() {
@Test
public void testGetOnForm() {
Response response = target().path("form").request(MediaType.TEXT_HTML).get();
- assertEquals("GET on the 'form' resource doesn't give expected response", Response.Status.OK.getStatusCode(),
- response.getStatusInfo().getStatusCode());
+ assertEquals(Response.Status.OK.getStatusCode(), response.getStatusInfo().getStatusCode(),
+ "GET on the 'form' resource doesn't give expected response");
}
/**
@@ -105,17 +105,17 @@ public void testPostOnForm() {
public void testGetColoursAsPlainText() {
// without the query param "match"
Response response = target().path("form").path("colours").request(MediaType.TEXT_PLAIN).get();
- assertEquals("GET on path '/form/colours' with mime type 'text/html' doesn't give expected response",
- Response.Status.OK.getStatusCode(), response.getStatusInfo().getStatusCode());
+ assertEquals(Response.Status.OK.getStatusCode(), response.getStatusInfo().getStatusCode(),
+ "GET on path '/form/colours' with mime type 'text/html' doesn't give expected response");
String responseMsg = target().path("form").path("colours").request(MediaType.TEXT_PLAIN).get(String.class);
- assertEquals("Response content doesn't match the expected value", "red\norange\nyellow\ngreen\nblue\nindigo\nviolet\n",
- responseMsg);
+ assertEquals("red\norange\nyellow\ngreen\nblue\nindigo\nviolet\n", responseMsg,
+ "Response content doesn't match the expected value");
// with the query param "match" value "re"
responseMsg = target("form/colours").queryParam("match", "re").request(MediaType.TEXT_PLAIN).get(String.class);
- assertEquals("Response content doesn't match the expected value with the query param 'match=re'", "red\ngreen\n",
- responseMsg);
+ assertEquals("red\ngreen\n", responseMsg,
+ "Response content doesn't match the expected value with the query param 'match=re'");
}
/**
@@ -125,16 +125,17 @@ public void testGetColoursAsPlainText() {
@Test
public void testGetColoursAsJson() {
Response response = target().path("form").path("colours").request(MediaType.APPLICATION_JSON).get();
- assertEquals("GET on path '/form/colours' with mime type 'application/json' doesn't give expected response",
- Response.Status.OK.getStatusCode(), response.getStatusInfo().getStatusCode());
+ assertEquals(Response.Status.OK.getStatusCode(), response.getStatusInfo().getStatusCode(),
+ "GET on path '/form/colours' with mime type 'application/json' doesn't give expected response");
JSONArray jsonArray = target().path("form").path("colours").request(MediaType.APPLICATION_JSON).get(JSONArray.class);
- assertEquals("Returned JSONArray doesn't have expected number of entries", 7, jsonArray.length());
+ assertEquals(7, jsonArray.length(),
+ "Returned JSONArray doesn't have expected number of entries");
// with the query param "match" value "re"
jsonArray = target("form/colours").queryParam("match", "re").request(MediaType.APPLICATION_JSON).get(JSONArray.class);
- assertEquals("Returned JSONArray doesn't have expected number of entries with the query param 'match=re'", 2,
- jsonArray.length());
+ assertEquals(2, jsonArray.length(),
+ "Returned JSONArray doesn't have expected number of entries with the query param 'match=re'");
}
}
diff --git a/examples/sse-item-store-jaxrs-webapp/src/test/java/org/glassfish/jersey/examples/sseitemstore/jaxrs/JaxrsItemStoreResourceTest.java b/examples/sse-item-store-jaxrs-webapp/src/test/java/org/glassfish/jersey/examples/sseitemstore/jaxrs/JaxrsItemStoreResourceTest.java
index 87c85c5bd6b..02ca76851dd 100644
--- a/examples/sse-item-store-jaxrs-webapp/src/test/java/org/glassfish/jersey/examples/sseitemstore/jaxrs/JaxrsItemStoreResourceTest.java
+++ b/examples/sse-item-store-jaxrs-webapp/src/test/java/org/glassfish/jersey/examples/sseitemstore/jaxrs/JaxrsItemStoreResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -45,15 +45,16 @@
import org.glassfish.jersey.test.external.ExternalTestContainerFactory;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.describedAs;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.hasItems;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Item store test.
@@ -103,6 +104,7 @@ protected Client getClient() {
return client.get();
}
+ @AfterEach
@Override
public void tearDown() throws Exception {
super.tearDown();
@@ -161,9 +163,8 @@ public void testItemsStore() throws Exception {
open(sources);
items.forEach((item) -> postItem(itemsTarget, item));
- assertTrue("Waiting to receive all events has timed out.",
- latch.await((1000 + MAX_LISTENERS * RECONNECT_DEFAULT) * getAsyncTimeoutMultiplier(),
- TimeUnit.MILLISECONDS));
+ assertTrue(latch.await((1000 + MAX_LISTENERS * RECONNECT_DEFAULT) * getAsyncTimeoutMultiplier(),
+ TimeUnit.MILLISECONDS), "Waiting to receive all events has timed out.");
// need to force disconnect on server in order for EventSource.close(...) to succeed with HttpUrlConnection
sendCommand(itemsTarget, "disconnect");
@@ -172,18 +173,18 @@ public void testItemsStore() throws Exception {
}
String postedItems = itemsTarget.request().get(String.class);
- items.forEach((item) -> assertTrue("Item '" + item + "' not stored on server.", postedItems.contains(item)));
+ items.forEach((item) -> assertTrue(postedItems.contains(item), "Item '" + item + "' not stored on server."));
final AtomicInteger queueId = new AtomicInteger(0);
indexQueues.forEach((indexes) -> {
for (int i = 0; i < items.size(); i++) {
- assertTrue("Event for '" + items.get(i) + "' not received in queue " + queueId.get(), indexes.contains(i));
+ assertTrue(indexes.contains(i), "Event for '" + items.get(i) + "' not received in queue " + queueId.get());
}
- assertEquals("Not received the expected number of events in queue " + queueId.get(), items.size(), indexes.size());
+ assertEquals(items.size(), indexes.size(), "Not received the expected number of events in queue " + queueId.get());
queueId.incrementAndGet();
});
- assertEquals("Number of received 'size' events does not match.", items.size() * MAX_LISTENERS, sizeEventsCount.get());
+ assertEquals(items.size() * MAX_LISTENERS, sizeEventsCount.get(), "Number of received 'size' events does not match.");
}
/**
@@ -248,9 +249,8 @@ public void testEventSourceReconnect() throws Exception {
sendCommand(itemsTarget, "reconnect now");
- assertTrue("Waiting to receive all events has timed out.",
- latch.await((1 + MAX_LISTENERS * (MAX_ITEMS + 1) * reconnectDelay) * getAsyncTimeoutMultiplier(),
- TimeUnit.SECONDS));
+ assertTrue(latch.await((1 + MAX_LISTENERS * (MAX_ITEMS + 1) * reconnectDelay) * getAsyncTimeoutMultiplier(),
+ TimeUnit.SECONDS), "Waiting to receive all events has timed out.");
// need to force disconnect on server in order for EventSource.close(...) to succeed with HttpUrlConnection
sendCommand(itemsTarget, "disconnect");
@@ -274,7 +274,7 @@ public void testEventSourceReconnect() throws Exception {
private static void postItem(final WebTarget itemsTarget, final String item) {
final Response response = itemsTarget.request().post(Entity.form(new Form("name", item)));
- assertEquals("Posting new item has failed.", 204, response.getStatus());
+ assertEquals(204, response.getStatus(), "Posting new item has failed.");
LOGGER.info("[-i-] POSTed item: '" + item + "'");
}
@@ -286,7 +286,7 @@ private static void close(final SseEventSource[] sources) {
int i = 0;
for (SseEventSource source : sources) {
if (source.isOpen()) {
- assertTrue("Waiting to close a source has timed out.", source.close(1, TimeUnit.SECONDS));
+ assertTrue(source.close(1, TimeUnit.SECONDS), "Waiting to close a source has timed out.");
// source.close(100, TimeUnit.MILLISECONDS);
LOGGER.info("[<--] SOURCE " + i++ + " closed.");
}
@@ -295,7 +295,7 @@ private static void close(final SseEventSource[] sources) {
private static void sendCommand(final WebTarget itemsTarget, final String command) {
final Response response = itemsTarget.path("commands").request().post(Entity.text(command));
- assertEquals("'" + command + "' command has failed.", 200, response.getStatus());
+ assertEquals(200, response.getStatus(), "'" + command + "' command has failed.");
LOGGER.info("[-!-] COMMAND '" + command + "' has been processed.");
}
}
diff --git a/examples/sse-item-store-jersey-webapp/src/test/java/org/glassfish/jersey/examples/sseitemstore/jersey/JerseyItemStoreResourceTest.java b/examples/sse-item-store-jersey-webapp/src/test/java/org/glassfish/jersey/examples/sseitemstore/jersey/JerseyItemStoreResourceTest.java
index a561f71113b..08f18cf11a5 100644
--- a/examples/sse-item-store-jersey-webapp/src/test/java/org/glassfish/jersey/examples/sseitemstore/jersey/JerseyItemStoreResourceTest.java
+++ b/examples/sse-item-store-jersey-webapp/src/test/java/org/glassfish/jersey/examples/sseitemstore/jersey/JerseyItemStoreResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -40,15 +40,15 @@
import org.glassfish.jersey.test.external.ExternalTestContainerFactory;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.describedAs;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.hasItems;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Item store test.
@@ -140,9 +140,8 @@ public void testItemsStore() throws Exception {
postItem(itemsTarget, item);
}
- assertTrue("Waiting to receive all events has timed out.",
- latch.await((1000 + MAX_LISTENERS * EventSource.RECONNECT_DEFAULT) * getAsyncTimeoutMultiplier(),
- TimeUnit.MILLISECONDS));
+ assertTrue(latch.await((1000 + MAX_LISTENERS * EventSource.RECONNECT_DEFAULT) * getAsyncTimeoutMultiplier(),
+ TimeUnit.MILLISECONDS), "Waiting to receive all events has timed out.");
// need to force disconnect on server in order for EventSource.close(...) to succeed with HttpUrlConnection
sendCommand(itemsTarget, "disconnect");
@@ -152,19 +151,19 @@ public void testItemsStore() throws Exception {
String postedItems = itemsTarget.request().get(String.class);
for (String item : items) {
- assertTrue("Item '" + item + "' not stored on server.", postedItems.contains(item));
+ assertTrue(postedItems.contains(item), "Item '" + item + "' not stored on server.");
}
int queueId = 0;
for (Queue indexes : indexQueues) {
for (int i = 0; i < items.size(); i++) {
- assertTrue("Event for '" + items.get(i) + "' not received in queue " + queueId, indexes.contains(i));
+ assertTrue(indexes.contains(i), "Event for '" + items.get(i) + "' not received in queue " + queueId);
}
- assertEquals("Not received the expected number of events in queue " + queueId, items.size(), indexes.size());
+ assertEquals(items.size(), indexes.size(), "Not received the expected number of events in queue " + queueId);
queueId++;
}
- assertEquals("Number of received 'size' events does not match.", items.size() * MAX_LISTENERS, sizeEventsCount.get());
+ assertEquals(items.size() * MAX_LISTENERS, sizeEventsCount.get(), "Number of received 'size' events does not match.");
}
/**
@@ -228,9 +227,8 @@ public void testEventSourceReconnect() throws Exception {
sendCommand(itemsTarget, "reconnect now");
- assertTrue("Waiting to receive all events has timed out.",
- latch.await((1 + MAX_LISTENERS * (MAX_ITEMS + 1) * reconnectDelay) * getAsyncTimeoutMultiplier(),
- TimeUnit.SECONDS));
+ assertTrue(latch.await((1 + MAX_LISTENERS * (MAX_ITEMS + 1) * reconnectDelay) * getAsyncTimeoutMultiplier(),
+ TimeUnit.SECONDS), "Waiting to receive all events has timed out.");
// need to force disconnect on server in order for EventSource.close(...) to succeed with HttpUrlConnection
sendCommand(itemsTarget, "disconnect");
@@ -254,7 +252,7 @@ public void testEventSourceReconnect() throws Exception {
private static void postItem(final WebTarget itemsTarget, final String item) {
final Response response = itemsTarget.request().post(Entity.form(new Form("name", item)));
- assertEquals("Posting new item has failed.", 204, response.getStatus());
+ assertEquals(204, response.getStatus(), "Posting new item has failed.");
LOGGER.info("[-i-] POSTed item: '" + item + "'");
}
@@ -270,7 +268,7 @@ private static void close(final EventSource[] sources) {
int i = 0;
for (EventSource source : sources) {
if (source.isOpen()) {
- assertTrue("Waiting to close a source has timed out.", source.close(1, TimeUnit.SECONDS));
+ assertTrue(source.close(1, TimeUnit.SECONDS), "Waiting to close a source has timed out.");
// source.close(100, TimeUnit.MILLISECONDS);
LOGGER.info("[<--] SOURCE " + i++ + " closed.");
}
@@ -279,7 +277,7 @@ private static void close(final EventSource[] sources) {
private static void sendCommand(final WebTarget itemsTarget, final String command) {
final Response response = itemsTarget.path("commands").request().post(Entity.text(command));
- assertEquals("'" + command + "' command has failed.", 200, response.getStatus());
+ assertEquals(200, response.getStatus(), "'" + command + "' command has failed.");
LOGGER.info("[-!-] COMMAND '" + command + "' has been processed.");
}
}
diff --git a/examples/system-properties-example/src/test/java/org/glassfish/jersey/examples/sysprops/SysPropsTest.java b/examples/system-properties-example/src/test/java/org/glassfish/jersey/examples/sysprops/SysPropsTest.java
index 21887fc80a8..54c96076940 100644
--- a/examples/system-properties-example/src/test/java/org/glassfish/jersey/examples/sysprops/SysPropsTest.java
+++ b/examples/system-properties-example/src/test/java/org/glassfish/jersey/examples/sysprops/SysPropsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -18,8 +18,8 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* System properties example unit test.
diff --git a/examples/xml-moxy/src/test/java/org/glassfish/jersey/examples/xmlmoxy/MoxyAppTest.java b/examples/xml-moxy/src/test/java/org/glassfish/jersey/examples/xmlmoxy/MoxyAppTest.java
index d154e1a17f9..d8fd49eba05 100644
--- a/examples/xml-moxy/src/test/java/org/glassfish/jersey/examples/xmlmoxy/MoxyAppTest.java
+++ b/examples/xml-moxy/src/test/java/org/glassfish/jersey/examples/xmlmoxy/MoxyAppTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -21,8 +21,8 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/src/test/java/org/glassfish/jersey/ext/cdi1x/hk2ban/EmptyHk2CustomInjectionTypeProviderTest.java b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/src/test/java/org/glassfish/jersey/ext/cdi1x/hk2ban/EmptyHk2CustomInjectionTypeProviderTest.java
index 4b6e83a07e7..5e379a9e682 100644
--- a/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/src/test/java/org/glassfish/jersey/ext/cdi1x/hk2ban/EmptyHk2CustomInjectionTypeProviderTest.java
+++ b/ext/cdi/jersey-cdi1x-ban-custom-hk2-binding/src/test/java/org/glassfish/jersey/ext/cdi1x/hk2ban/EmptyHk2CustomInjectionTypeProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,7 +21,7 @@
import org.glassfish.jersey.ext.cdi1x.spi.Hk2CustomBoundTypesProvider;
import org.glassfish.jersey.internal.ServiceFinder;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.emptyCollectionOf;
import static org.hamcrest.Matchers.instanceOf;
diff --git a/ext/cdi/jersey-cdi1x/pom.xml b/ext/cdi/jersey-cdi1x/pom.xml
index 61c5971980e..234bb1a4e5f 100644
--- a/ext/cdi/jersey-cdi1x/pom.xml
+++ b/ext/cdi/jersey-cdi1x/pom.xml
@@ -59,6 +59,12 @@
jmockit
test
+
+
+ org.hamcrest
+ hamcrest
+ test
+
diff --git a/ext/cdi/jersey-cdi1x/src/test/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderTest.java b/ext/cdi/jersey-cdi1x/src/test/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderTest.java
index 479d349d54b..4a14b8e5e96 100644
--- a/ext/cdi/jersey-cdi1x/src/test/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderTest.java
+++ b/ext/cdi/jersey-cdi1x/src/test/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,9 +33,9 @@
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.ext.MessageBodyReader;
-import org.junit.Test;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test for {@link CdiComponentProvider}.
diff --git a/ext/cdi/jersey-cdi1x/src/test/java/org/glassfish/jersey/ext/cdi1x/internal/CdiUtilTest.java b/ext/cdi/jersey-cdi1x/src/test/java/org/glassfish/jersey/ext/cdi1x/internal/CdiUtilTest.java
index 0f9fa518cd2..fb839f0fb27 100644
--- a/ext/cdi/jersey-cdi1x/src/test/java/org/glassfish/jersey/ext/cdi1x/internal/CdiUtilTest.java
+++ b/ext/cdi/jersey-cdi1x/src/test/java/org/glassfish/jersey/ext/cdi1x/internal/CdiUtilTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,10 +23,10 @@
import org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore;
import org.glassfish.jersey.internal.inject.InjectionManager;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import mockit.Mock;
import mockit.MockUp;
diff --git a/ext/entity-filtering/src/test/java/org/glassfish/jersey/message/filtering/SecurityAnnotationsTest.java b/ext/entity-filtering/src/test/java/org/glassfish/jersey/message/filtering/SecurityAnnotationsTest.java
index 8c5fa49ec9c..19112b90b89 100644
--- a/ext/entity-filtering/src/test/java/org/glassfish/jersey/message/filtering/SecurityAnnotationsTest.java
+++ b/ext/entity-filtering/src/test/java/org/glassfish/jersey/message/filtering/SecurityAnnotationsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,7 +16,7 @@
package org.glassfish.jersey.message.filtering;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/ext/entity-filtering/src/test/java/org/glassfish/jersey/message/filtering/SecurityEntityProcessorTest.java b/ext/entity-filtering/src/test/java/org/glassfish/jersey/message/filtering/SecurityEntityProcessorTest.java
index 21edda41c81..46c7bee946f 100644
--- a/ext/entity-filtering/src/test/java/org/glassfish/jersey/message/filtering/SecurityEntityProcessorTest.java
+++ b/ext/entity-filtering/src/test/java/org/glassfish/jersey/message/filtering/SecurityEntityProcessorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,8 +27,8 @@
import org.glassfish.jersey.message.filtering.spi.FilteringHelper;
import org.glassfish.jersey.message.filtering.spi.ScopeProvider;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
@@ -42,7 +42,7 @@ public class SecurityEntityProcessorTest {
private SecurityEntityProcessor processor;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
processor = new SecurityEntityProcessor();
}
diff --git a/ext/entity-filtering/src/test/java/org/glassfish/jersey/message/filtering/SecurityHelperTest.java b/ext/entity-filtering/src/test/java/org/glassfish/jersey/message/filtering/SecurityHelperTest.java
index e86b1d3eebd..75ce7d839e0 100644
--- a/ext/entity-filtering/src/test/java/org/glassfish/jersey/message/filtering/SecurityHelperTest.java
+++ b/ext/entity-filtering/src/test/java/org/glassfish/jersey/message/filtering/SecurityHelperTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,7 +29,7 @@
import org.glassfish.jersey.internal.inject.CustomAnnotationLiteral;
import org.glassfish.jersey.message.filtering.spi.FilteringHelper;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/ext/metainf-services/src/test/java/org/glassfish/jersey/message/MetaInfServicesTest.java b/ext/metainf-services/src/test/java/org/glassfish/jersey/message/MetaInfServicesTest.java
index e764ef5b67b..f1ad7da2f47 100644
--- a/ext/metainf-services/src/test/java/org/glassfish/jersey/message/MetaInfServicesTest.java
+++ b/ext/metainf-services/src/test/java/org/glassfish/jersey/message/MetaInfServicesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -42,18 +42,14 @@
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
+import org.junit.jupiter.api.Test;
+
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
/**
* @author Michal Gajdos
*/
-@RunWith(Suite.class)
-@Suite.SuiteClasses({MetaInfServicesTest.Enable.class, MetaInfServicesTest.DisableServer.class,
- MetaInfServicesTest.DisableClient.class})
public class MetaInfServicesTest {
public static class MetaInf {
diff --git a/ext/microprofile/mp-config/pom.xml b/ext/microprofile/mp-config/pom.xml
index dba9f6c6b32..151dbb5930d 100644
--- a/ext/microprofile/mp-config/pom.xml
+++ b/ext/microprofile/mp-config/pom.xml
@@ -70,8 +70,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/ext/microprofile/mp-config/src/test/java/org/glassfish/jersey/microprofile/config/ConfigurationProviderTest.java b/ext/microprofile/mp-config/src/test/java/org/glassfish/jersey/microprofile/config/ConfigurationProviderTest.java
index 6b2aecdd0a7..f269cff8ceb 100644
--- a/ext/microprofile/mp-config/src/test/java/org/glassfish/jersey/microprofile/config/ConfigurationProviderTest.java
+++ b/ext/microprofile/mp-config/src/test/java/org/glassfish/jersey/microprofile/config/ConfigurationProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,9 +16,9 @@
package org.glassfish.jersey.microprofile.config;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import java.util.Map;
@@ -26,7 +26,7 @@ public class ConfigurationProviderTest {
private static final String EMPTY_PROPERTY_NAME = "EMPTY_PROPERTY";
- @Before
+ @BeforeEach
public void before() {
System.setProperty(EMPTY_PROPERTY_NAME, "");
}
@@ -36,7 +36,7 @@ public void getEmptyPropertiesTest() {
final ConfigurationProvider provider = new ConfigurationProvider();
final Map properties = provider.getProperties();
- Assert.assertNull(properties.get(EMPTY_PROPERTY_NAME));
+ Assertions.assertNull(properties.get(EMPTY_PROPERTY_NAME));
}
}
\ No newline at end of file
diff --git a/ext/microprofile/mp-config/src/test/java/org/glassfish/jersey/microprofile/config/ExternalPropertiesConfigurationFactoryTest.java b/ext/microprofile/mp-config/src/test/java/org/glassfish/jersey/microprofile/config/ExternalPropertiesConfigurationFactoryTest.java
index 2c4e70b179c..8662d2dc464 100644
--- a/ext/microprofile/mp-config/src/test/java/org/glassfish/jersey/microprofile/config/ExternalPropertiesConfigurationFactoryTest.java
+++ b/ext/microprofile/mp-config/src/test/java/org/glassfish/jersey/microprofile/config/ExternalPropertiesConfigurationFactoryTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,8 +21,8 @@
import org.glassfish.jersey.test.jetty.JettyTestContainerFactory;
import org.glassfish.jersey.test.spi.TestContainerException;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.inject.Singleton;
import javax.ws.rs.GET;
@@ -84,7 +84,7 @@ public void readConfigTest() {
final Boolean responce = target("getPropertyValue/{key}")
.resolveTemplate("key", "jersey.config.disableMetainfServicesLookup").request().get(Boolean.class);
- Assert.assertEquals(Boolean.TRUE, responce);
+ Assertions.assertEquals(Boolean.TRUE, responce);
}
@Test
@@ -92,13 +92,13 @@ public void smallRyeConfigTest() {
final String responce = target("readProperty/{key}")
.resolveTemplate("key", "jersey.config.disableAutoDiscovery").request().get(String.class);
- Assert.assertEquals("1", responce);
+ Assertions.assertEquals("1", responce);
}
@Test
public void defaultHeaderValueTest() {
final String responce = target("readProperty/{key}")
.resolveTemplate("key", "jersey.config.disableJsonProcessing").request().get(String.class);
- Assert.assertEquals("true", responce);
+ Assertions.assertEquals("true", responce);
}
}
\ No newline at end of file
diff --git a/ext/microprofile/mp-rest-client/src/test/java/org/glassfish/jersey/microprofile/restclient/RestClientBuilderImplTest.java b/ext/microprofile/mp-rest-client/src/test/java/org/glassfish/jersey/microprofile/restclient/RestClientBuilderImplTest.java
index 685e53a32a8..bd4bf9cfb98 100644
--- a/ext/microprofile/mp-rest-client/src/test/java/org/glassfish/jersey/microprofile/restclient/RestClientBuilderImplTest.java
+++ b/ext/microprofile/mp-rest-client/src/test/java/org/glassfish/jersey/microprofile/restclient/RestClientBuilderImplTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Payara Foundation and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,8 +16,8 @@
package org.glassfish.jersey.microprofile.restclient;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import static org.glassfish.jersey.microprofile.restclient.RestClientBuilderImpl.createProxyString;
@@ -25,9 +25,9 @@ public class RestClientBuilderImplTest {
@Test
public void createProxyStringTest() {
- Assert.assertTrue(createProxyString("localhost", 8765).equals("http://localhost:8765"));
- Assert.assertTrue(createProxyString("http://localhost", 8765).equals("http://localhost:8765"));
- Assert.assertTrue(createProxyString("127.0.0.1", 8765).equals("http://127.0.0.1:8765"));
- Assert.assertTrue(createProxyString("http://192.168.1.1", 8765).equals("http://192.168.1.1:8765"));
+ Assertions.assertTrue(createProxyString("localhost", 8765).equals("http://localhost:8765"));
+ Assertions.assertTrue(createProxyString("http://localhost", 8765).equals("http://localhost:8765"));
+ Assertions.assertTrue(createProxyString("127.0.0.1", 8765).equals("http://127.0.0.1:8765"));
+ Assertions.assertTrue(createProxyString("http://192.168.1.1", 8765).equals("http://192.168.1.1:8765"));
}
}
diff --git a/ext/pom.xml b/ext/pom.xml
index f4109a6aeb8..104352590b6 100644
--- a/ext/pom.xml
+++ b/ext/pom.xml
@@ -65,8 +65,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/ext/proxy-client/src/test/java/org/glassfish/jersey/client/proxy/WebResourceFactoryTest.java b/ext/proxy-client/src/test/java/org/glassfish/jersey/client/proxy/WebResourceFactoryTest.java
index 1f51f17d5c9..3a05b8eb670 100644
--- a/ext/proxy-client/src/test/java/org/glassfish/jersey/client/proxy/WebResourceFactoryTest.java
+++ b/ext/proxy-client/src/test/java/org/glassfish/jersey/client/proxy/WebResourceFactoryTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,13 +34,13 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Martin Matula
@@ -62,6 +62,7 @@ protected ResourceConfig configure() {
return new ResourceConfig(MyResource.class);
}
+ @BeforeEach
@Override
public void setUp() throws Exception {
super.setUp();
@@ -161,7 +162,7 @@ public void testQueryParamsAsSortedSet() {
}
@Test
- @Ignore("See issue JERSEY-2441")
+ @Disabled("See issue JERSEY-2441")
public void testHeaderCookieAsList() {
final List list = new ArrayList<>();
list.add("a");
@@ -172,7 +173,7 @@ public void testHeaderCookieAsList() {
}
@Test
- @Ignore("See issue JERSEY-2441")
+ @Disabled("See issue JERSEY-2441")
public void testHeaderCookieAsSet() {
final Set set = new HashSet<>();
set.add("a");
@@ -184,7 +185,7 @@ public void testHeaderCookieAsSet() {
}
@Test
- @Ignore("See issue JERSEY-2441")
+ @Disabled("See issue JERSEY-2441")
public void testHeaderCookieAsSortedSet() {
final SortedSet set = new TreeSet<>();
set.add("a");
@@ -200,7 +201,7 @@ public void testHeaderCookieAsSortedSet() {
* lines in the request. Jersey has currently no possibility to do so. See JERSEY-2263.
*/
@Test
- @Ignore("See issue JERSEY-2263")
+ @Disabled("See issue JERSEY-2263")
public void testHeaderParamsAsList() {
final List list = new ArrayList<>();
list.add("a");
@@ -211,7 +212,7 @@ public void testHeaderParamsAsList() {
}
@Test
- @Ignore("See issue JERSEY-2263")
+ @Disabled("See issue JERSEY-2263")
public void testHeaderParamsAsSet() {
final Set set = new HashSet<>();
set.add("a");
@@ -223,7 +224,7 @@ public void testHeaderParamsAsSet() {
}
@Test
- @Ignore("See issue JERSEY-2263")
+ @Disabled("See issue JERSEY-2263")
public void testHeaderParamsAsSortedSet() {
final SortedSet set = new TreeSet<>();
set.add("a");
@@ -267,10 +268,10 @@ public void testMatrixParamsAsSortedSet() {
}
private void checkSet(final String result) {
- assertTrue("Set does not contain 3 items.", result.startsWith("3:["));
- assertTrue("Set does not contain 'a' item.", result.contains("a"));
- assertTrue("Set does not contain 'bb' item.", result.contains("bb"));
- assertTrue("Set does not contain 'ccc' item.", result.contains("ccc"));
+ assertTrue(result.startsWith("3:["), "Set does not contain 3 items.");
+ assertTrue(result.contains("a"), "Set does not contain 'a' item.");
+ assertTrue(result.contains("bb"), "Set does not contain 'bb' item.");
+ assertTrue(result.contains("ccc"), "Set does not contain 'ccc' item.");
}
@Test
@@ -307,13 +308,13 @@ public void testFormParamsAsSortedSet() {
@Test
public void testAcceptHeader() {
- assertTrue("Accept HTTP header does not match @Produces annotation", resource.isAcceptHeaderValid(null));
+ assertTrue(resource.isAcceptHeaderValid(null), "Accept HTTP header does not match @Produces annotation");
}
@Test
public void testPutWithExplicitContentType() {
- assertEquals("Content-Type HTTP header does not match explicitly provided type", resourceWithXML.putIt(new MyBean()),
- MediaType.APPLICATION_XML);
+ assertEquals(resourceWithXML.putIt(new MyBean()), MediaType.APPLICATION_XML,
+ "Content-Type HTTP header does not match explicitly provided type");
}
@Test
@@ -328,11 +329,11 @@ public void testToString() throws Exception {
public void testHashCode() throws Exception {
int h1 = resource.hashCode();
int h2 = resource2.hashCode();
- assertNotEquals("The hash codes should not match", h1, h2);
+ assertNotEquals(h1, h2, "The hash codes should not match");
}
@Test
public void testEquals() {
- assertFalse("The two resource instances should not be considered equals as they are unique", resource.equals(resource2));
+ assertFalse(resource.equals(resource2), "The two resource instances should not be considered equals as they are unique");
}
}
diff --git a/ext/rx/pom.xml b/ext/rx/pom.xml
index 83f755b2b68..b17d74161d3 100644
--- a/ext/rx/pom.xml
+++ b/ext/rx/pom.xml
@@ -44,8 +44,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/ext/rx/rx-client-guava/src/test/java/org/glassfish/jersey/client/rx/guava/RxListenableFutureTest.java b/ext/rx/rx-client-guava/src/test/java/org/glassfish/jersey/client/rx/guava/RxListenableFutureTest.java
index 43a97cf1ea6..9b27487c65c 100644
--- a/ext/rx/rx-client-guava/src/test/java/org/glassfish/jersey/client/rx/guava/RxListenableFutureTest.java
+++ b/ext/rx/rx-client-guava/src/test/java/org/glassfish/jersey/client/rx/guava/RxListenableFutureTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,13 +29,14 @@
import org.glassfish.jersey.process.JerseyProcessingUncaughtExceptionHandler;
import org.hamcrest.Matcher;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.core.Is.is;
+import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* @author Michal Gajdos
@@ -45,7 +46,7 @@ public class RxListenableFutureTest {
private Client client;
private ExecutorService executor;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
client = ClientBuilder.newClient().register(TerminalClientRequestFilter.class);
executor = new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder()
@@ -54,7 +55,7 @@ public void setUp() throws Exception {
.build());
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
executor.shutdown();
client = null;
@@ -72,47 +73,51 @@ public void testNotFoundResponse() throws Exception {
testInvoker(invoker, 404, false);
}
- @Test(expected = NotFoundException.class)
+ @Test
public void testNotFoundReadEntityViaClass() throws Throwable {
- client.register(RxListenableFutureInvokerProvider.class);
-
- try {
- client.target("http://jersey.java.net")
- .request()
- .header("Response-Status", 404)
- .rx(RxListenableFutureInvoker.class)
- .get(String.class)
- .get();
- } catch (final Exception expected) {
-
- // java.util.concurrent.ExecutionException
- throw expected
- // javax.ws.rs.NotFoundException
- .getCause();
- }
+ assertThrows(NotFoundException.class, () -> {
+ client.register(RxListenableFutureInvokerProvider.class);
+
+ try {
+ client.target("http://jersey.java.net")
+ .request()
+ .header("Response-Status", 404)
+ .rx(RxListenableFutureInvoker.class)
+ .get(String.class)
+ .get();
+ } catch (final Exception expected) {
+
+ // java.util.concurrent.ExecutionException
+ throw expected
+ // javax.ws.rs.NotFoundException
+ .getCause();
+ }
+ });
}
- @Test(expected = NotFoundException.class)
+ @Test
public void testNotFoundReadEntityViaGenericType() throws Throwable {
- client.register(RxListenableFutureInvokerProvider.class);
-
- try {
- client.target("http://jersey.java.net")
- .request()
- .header("Response-Status", 404)
- .rx(RxListenableFutureInvoker.class)
- .get(new GenericType() {
- })
- .get();
- } catch (final Exception expected) {
-
- expected.printStackTrace();
-
- // java.util.concurrent.ExecutionException
- throw expected
- // javax.ws.rs.NotFoundException
- .getCause();
- }
+ assertThrows(NotFoundException.class, () -> {
+ client.register(RxListenableFutureInvokerProvider.class);
+
+ try {
+ client.target("http://jersey.java.net")
+ .request()
+ .header("Response-Status", 404)
+ .rx(RxListenableFutureInvoker.class)
+ .get(new GenericType() {
+ })
+ .get();
+ } catch (final Exception expected) {
+
+ expected.printStackTrace();
+
+ // java.util.concurrent.ExecutionException
+ throw expected
+ // javax.ws.rs.NotFoundException
+ .getCause();
+ }
+ });
}
@Test
diff --git a/ext/rx/rx-client-rxjava/src/test/java/org/glassfish/jersey/client/rx/rxjava/RxObservableTest.java b/ext/rx/rx-client-rxjava/src/test/java/org/glassfish/jersey/client/rx/rxjava/RxObservableTest.java
index 0a6644b96bf..29fb0e55f08 100644
--- a/ext/rx/rx-client-rxjava/src/test/java/org/glassfish/jersey/client/rx/rxjava/RxObservableTest.java
+++ b/ext/rx/rx-client-rxjava/src/test/java/org/glassfish/jersey/client/rx/rxjava/RxObservableTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,12 +30,13 @@
import org.glassfish.jersey.internal.guava.ThreadFactoryBuilder;
import org.glassfish.jersey.process.JerseyProcessingUncaughtExceptionHandler;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.Is.is;
+import static org.junit.jupiter.api.Assertions.assertThrows;
import rx.Subscriber;
@@ -49,7 +50,7 @@ public class RxObservableTest {
private Client clientWithExecutor;
private ExecutorService executor;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
client = ClientBuilder.newClient().register(TerminalClientRequestFilter.class);
client.register(RxObservableInvokerProvider.class);
@@ -63,7 +64,7 @@ public void setUp() throws Exception {
clientWithExecutor.register(RxObservableInvokerProvider.class);
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
executor.shutdown();
@@ -91,47 +92,51 @@ public void testNotFoundWithCustomExecutor() throws Exception {
testInvoker(invoker, 404, true);
}
- @Test(expected = NotFoundException.class)
+ @Test
public void testNotFoundReadEntityViaClass() throws Throwable {
- try {
- client.target("http://jersey.java.net")
- .request()
- .header("Response-Status", 404)
- .rx(RxObservableInvoker.class)
- .get(String.class)
- .toBlocking()
- .toFuture()
- .get();
- } catch (final Exception expected) {
- // java.util.concurrent.ExecutionException
- throw expected
- // javax.ws.rs.ProcessingException
- // .getCause()
- // javax.ws.rs.NotFoundException
- .getCause();
- }
+ assertThrows(NotFoundException.class, () -> {
+ try {
+ client.target("http://jersey.java.net")
+ .request()
+ .header("Response-Status", 404)
+ .rx(RxObservableInvoker.class)
+ .get(String.class)
+ .toBlocking()
+ .toFuture()
+ .get();
+ } catch (final Exception expected) {
+ // java.util.concurrent.ExecutionException
+ throw expected
+ // javax.ws.rs.ProcessingException
+ // .getCause()
+ // javax.ws.rs.NotFoundException
+ .getCause();
+ }
+ });
}
- @Test(expected = NotFoundException.class)
+ @Test
public void testNotFoundReadEntityViaGenericType() throws Throwable {
- try {
- client.target("http://jersey.java.net")
- .request()
- .header("Response-Status", 404)
- .rx(RxObservableInvoker.class)
- .get(new GenericType() { })
- .toBlocking()
- .toFuture()
- .get();
- } catch (final Exception expected) {
-
- expected.printStackTrace();
-
- // java.util.concurrent.ExecutionException
- throw expected
- // javax.ws.rs.NotFoundException
- .getCause();
- }
+ assertThrows(NotFoundException.class, () -> {
+ try {
+ client.target("http://jersey.java.net")
+ .request()
+ .header("Response-Status", 404)
+ .rx(RxObservableInvoker.class)
+ .get(new GenericType() { })
+ .toBlocking()
+ .toFuture()
+ .get();
+ } catch (final Exception expected) {
+
+ expected.printStackTrace();
+
+ // java.util.concurrent.ExecutionException
+ throw expected
+ // javax.ws.rs.NotFoundException
+ .getCause();
+ }
+ });
}
@Test
diff --git a/ext/rx/rx-client-rxjava2/src/test/java/org/glassfish/jersey/client/rx/rxjava2/RxFlowableTest.java b/ext/rx/rx-client-rxjava2/src/test/java/org/glassfish/jersey/client/rx/rxjava2/RxFlowableTest.java
index 9151f0fac2b..1a7532443b5 100644
--- a/ext/rx/rx-client-rxjava2/src/test/java/org/glassfish/jersey/client/rx/rxjava2/RxFlowableTest.java
+++ b/ext/rx/rx-client-rxjava2/src/test/java/org/glassfish/jersey/client/rx/rxjava2/RxFlowableTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,14 +30,15 @@
import org.glassfish.jersey.internal.guava.ThreadFactoryBuilder;
import org.glassfish.jersey.process.JerseyProcessingUncaughtExceptionHandler;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.Is.is;
+import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* @author Pavel Bucek
@@ -48,7 +49,7 @@ public class RxFlowableTest {
private Client clientWithExecutor;
private ExecutorService executor;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
client = ClientBuilder.newClient().register(TerminalClientRequestFilter.class);
client.register(RxFlowableInvokerProvider.class);
@@ -62,7 +63,7 @@ public void setUp() throws Exception {
clientWithExecutor.register(RxFlowableInvokerProvider.class);
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
executor.shutdown();
@@ -90,33 +91,37 @@ public void testNotFoundWithCustomExecutor() throws Exception {
testInvoker(invoker, 404, true);
}
- @Test(expected = NotFoundException.class)
+ @Test
public void testNotFoundReadEntityViaClass() throws Throwable {
- try {
- client.target("http://jersey.java.net")
- .request()
- .header("Response-Status", 404)
- .rx(RxFlowableInvoker.class)
- .get(String.class)
- .blockingFirst();
- } catch (final Exception expected) {
- throw expected;
- }
+ assertThrows(NotFoundException.class, () -> {
+ try {
+ client.target("http://jersey.java.net")
+ .request()
+ .header("Response-Status", 404)
+ .rx(RxFlowableInvoker.class)
+ .get(String.class)
+ .blockingFirst();
+ } catch (final Exception expected) {
+ throw expected;
+ }
+ });
}
- @Test(expected = NotFoundException.class)
+ @Test
public void testNotFoundReadEntityViaGenericType() throws Throwable {
- try {
- client.target("http://jersey.java.net")
- .request()
- .header("Response-Status", 404)
- .rx(RxFlowableInvoker.class)
- .get(new GenericType() {
- })
- .blockingFirst();
- } catch (final Exception expected) {
- throw expected;
- }
+ assertThrows(NotFoundException.class, () -> {
+ try {
+ client.target("http://jersey.java.net")
+ .request()
+ .header("Response-Status", 404)
+ .rx(RxFlowableInvoker.class)
+ .get(new GenericType() {
+ })
+ .blockingFirst();
+ } catch (final Exception expected) {
+ throw expected;
+ }
+ });
}
@Test
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4JTest.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4JTest.java
index 6b64034a1f6..246763d2ace 100644
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4JTest.java
+++ b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4JTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,11 +19,11 @@
import javax.ws.rs.core.Application;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class Aspect4JTest extends JerseyTest {
@@ -31,7 +31,7 @@ public class Aspect4JTest extends JerseyTest {
private TestAspect testAspect;
- @Before
+ @BeforeEach
public void before() {
testAspect.reset();
}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTest.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTest.java
index 9ec3a54c545..4b349364172 100644
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTest.java
+++ b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,11 +20,11 @@
import org.glassfish.jersey.server.spring.SpringTestConfiguration;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class SpringFieldInjectionTest extends JerseyTest {
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/filter/FilterTest.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/filter/FilterTest.java
index 539b633ed7f..1a30131b004 100644
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/filter/FilterTest.java
+++ b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/filter/FilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,11 +20,11 @@
import org.glassfish.jersey.server.spring.SpringTestConfiguration;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class FilterTest extends JerseyTest {
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTest.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTest.java
index 5ce4fec7e4b..6bf586c83ad 100644
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTest.java
+++ b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,10 +16,10 @@
package org.glassfish.jersey.server.spring.methodinjection;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.glassfish.jersey.server.spring.SpringTestConfiguration;
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTest.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTest.java
index 35caa9885f7..451de46a79a 100644
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTest.java
+++ b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,13 +19,13 @@
import org.glassfish.jersey.server.spring.SpringTestConfiguration;
import org.glassfish.jersey.server.spring.fieldinjection.SpringFieldInjectionJerseyTestConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import javax.ws.rs.core.Application;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class SpringParameterInjectionTest extends JerseyTest {
@Override
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDefaultProfileResourceTest.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDefaultProfileResourceTest.java
index f390c5c95a6..fc90449fd95 100644
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDefaultProfileResourceTest.java
+++ b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDefaultProfileResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,8 +23,8 @@
import org.glassfish.jersey.server.spring.scope.RequestContextFilter;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
@@ -44,6 +44,6 @@ protected Application configure() {
@Test
public void shouldUseDefaultComponent() {
final String result = target("spring-resource").request().get(String.class);
- Assert.assertEquals("default", result);
+ Assertions.assertEquals("default", result);
}
}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDevProfileResourceTest.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDevProfileResourceTest.java
index 6c8450c2aa9..0a84fa8e515 100644
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDevProfileResourceTest.java
+++ b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDevProfileResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,8 +23,8 @@
import org.glassfish.jersey.server.spring.scope.RequestContextFilter;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class SpringDevProfileResourceTest extends JerseyTest {
@@ -44,6 +44,6 @@ protected Application configure() {
@Test
public void shouldUseDevProfileBean() {
final String result = target("spring-resource").request().get(String.class);
- Assert.assertEquals("dev", result);
+ Assertions.assertEquals("dev", result);
}
}
diff --git a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringProfilesTest.java b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringProfilesTest.java
index 8bccbe379c0..e871afb8c89 100644
--- a/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringProfilesTest.java
+++ b/ext/spring4/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringProfilesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,9 +16,9 @@
package org.glassfish.jersey.server.spring.profiles;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class SpringProfilesTest {
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4JTest.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4JTest.java
index 0831c1e8338..246763d2ace 100644
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4JTest.java
+++ b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/aspect4j/Aspect4JTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,11 +19,11 @@
import javax.ws.rs.core.Application;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class Aspect4JTest extends JerseyTest {
@@ -31,7 +31,7 @@ public class Aspect4JTest extends JerseyTest {
private TestAspect testAspect;
- @Before
+ @BeforeEach
public void before() {
testAspect.reset();
}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTest.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTest.java
index ccdd34b2316..4b349364172 100644
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTest.java
+++ b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/fieldinjection/SpringFieldInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,11 +20,11 @@
import org.glassfish.jersey.server.spring.SpringTestConfiguration;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class SpringFieldInjectionTest extends JerseyTest {
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/FilterTest.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/FilterTest.java
index 026a0a6b281..1a30131b004 100644
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/FilterTest.java
+++ b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/filter/FilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,11 +20,11 @@
import org.glassfish.jersey.server.spring.SpringTestConfiguration;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class FilterTest extends JerseyTest {
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTest.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTest.java
index cf79272c381..6bf586c83ad 100644
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTest.java
+++ b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/methodinjection/SpringMethodInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,10 +16,10 @@
package org.glassfish.jersey.server.spring.methodinjection;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.glassfish.jersey.server.spring.SpringTestConfiguration;
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTest.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTest.java
index 9af9049a370..451de46a79a 100644
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTest.java
+++ b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/parameterinjection/SpringParameterInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,13 +19,13 @@
import org.glassfish.jersey.server.spring.SpringTestConfiguration;
import org.glassfish.jersey.server.spring.fieldinjection.SpringFieldInjectionJerseyTestConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import javax.ws.rs.core.Application;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class SpringParameterInjectionTest extends JerseyTest {
@Override
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDefaultProfileResourceTest.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDefaultProfileResourceTest.java
index e95257f51fe..fc90449fd95 100644
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDefaultProfileResourceTest.java
+++ b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDefaultProfileResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,8 +23,8 @@
import org.glassfish.jersey.server.spring.scope.RequestContextFilter;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
@@ -44,6 +44,6 @@ protected Application configure() {
@Test
public void shouldUseDefaultComponent() {
final String result = target("spring-resource").request().get(String.class);
- Assert.assertEquals("default", result);
+ Assertions.assertEquals("default", result);
}
}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDevProfileResourceTest.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDevProfileResourceTest.java
index 4ccb36a6c77..0a84fa8e515 100644
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDevProfileResourceTest.java
+++ b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringDevProfileResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,8 +23,8 @@
import org.glassfish.jersey.server.spring.scope.RequestContextFilter;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class SpringDevProfileResourceTest extends JerseyTest {
@@ -44,6 +44,6 @@ protected Application configure() {
@Test
public void shouldUseDevProfileBean() {
final String result = target("spring-resource").request().get(String.class);
- Assert.assertEquals("dev", result);
+ Assertions.assertEquals("dev", result);
}
}
diff --git a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringProfilesTest.java b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringProfilesTest.java
index be0ac479aee..e871afb8c89 100644
--- a/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringProfilesTest.java
+++ b/ext/spring5/src/test/java/org/glassfish/jersey/server/spring/profiles/SpringProfilesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,9 +16,9 @@
package org.glassfish.jersey.server.spring.profiles;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class SpringProfilesTest {
diff --git a/incubator/cdi-inject-weld/pom.xml b/incubator/cdi-inject-weld/pom.xml
index 599099f584b..36cf9100d68 100644
--- a/incubator/cdi-inject-weld/pom.xml
+++ b/incubator/cdi-inject-weld/pom.xml
@@ -81,8 +81,13 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
+ test
+
+
+ org.hamcrest
+ hamcrest
test
diff --git a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/injector/CachedConstructorAnalyzerTest.java b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/injector/CachedConstructorAnalyzerTest.java
index eebc20decc8..10e10aecd04 100644
--- a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/injector/CachedConstructorAnalyzerTest.java
+++ b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/injector/CachedConstructorAnalyzerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,11 +23,13 @@
import javax.enterprise.inject.InjectionException;
import javax.ws.rs.MatrixParam;
+import javax.ws.rs.NotFoundException;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Context;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* Tests {@link CachedConstructorAnalyzer}.
@@ -127,14 +129,16 @@ public void testMultiAnnotatedConstructor() {
assertEquals(2, analyzer.getConstructor().getParameterCount());
}
- @Test(expected = InjectionException.class)
+ @Test
public void testUnknownAnnotatedConstructor() {
- new CachedConstructorAnalyzer<>(UnknownAnnotatedConstructor.class, ANNOTATIONS).getConstructor();
+ assertThrows(InjectionException.class,
+ () -> new CachedConstructorAnalyzer<>(UnknownAnnotatedConstructor.class, ANNOTATIONS).getConstructor());
}
- @Test(expected = InjectionException.class)
+ @Test
public void testSingleNonAnnotatedConstructor() {
- new CachedConstructorAnalyzer<>(SingleNonAnnotatedConstructor.class, ANNOTATIONS).getConstructor();
+ assertThrows(InjectionException.class,
+ () -> new CachedConstructorAnalyzer<>(SingleNonAnnotatedConstructor.class, ANNOTATIONS).getConstructor());
}
public static class DefaultConstructor {
diff --git a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/injector/JerseyProxyResolverTest.java b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/injector/JerseyProxyResolverTest.java
index 76fcd88e6f0..521b8056e4b 100644
--- a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/injector/JerseyProxyResolverTest.java
+++ b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/injector/JerseyProxyResolverTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,11 +32,11 @@
import org.glassfish.jersey.internal.inject.InjecteeImpl;
import org.glassfish.jersey.internal.inject.InjectionResolver;
-import org.junit.Test;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests Jersey Proxy Resolver.
diff --git a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/ClientInstanceInjectionTest.java b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/ClientInstanceInjectionTest.java
index 37ec79f53e6..7a7b9dc6fe0 100644
--- a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/ClientInstanceInjectionTest.java
+++ b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/ClientInstanceInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,8 +23,8 @@
import org.glassfish.jersey.inject.weld.managed.CdiInjectionManagerFactory;
import org.glassfish.jersey.internal.inject.InjectionManager;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Supplier;
@@ -49,16 +49,16 @@ public void testInject() {
});
InjectedBean bean = injectionManager.getInstance(InjectedBean.class);
- Assert.assertNotNull(bean);
- Assert.assertEquals("6", bean.get());
+ Assertions.assertNotNull(bean);
+ Assertions.assertEquals("6", bean.get());
InjectedBean bean1 = clientInjectionManager1.getInstance(InjectedBean.class);
- Assert.assertNotNull(bean1);
- Assert.assertEquals("11", bean1.get());
+ Assertions.assertNotNull(bean1);
+ Assertions.assertEquals("11", bean1.get());
InjectedBean bean2 = clientInjectionManager2.getInstance(InjectedBean.class);
- Assert.assertNotNull(bean2);
- Assert.assertEquals("16", bean2.get());
+ Assertions.assertNotNull(bean2);
+ Assertions.assertEquals("16", bean2.get());
injectionManager.shutdown();
clientInjectionManager1.shutdown();
@@ -104,16 +104,16 @@ public void testSupplierInject() {
});
InjectedSupplierBean bean = injectionManager.getInstance(InjectedSupplierBean.class);
- Assert.assertNotNull(bean);
- Assert.assertEquals("6", bean.get());
+ Assertions.assertNotNull(bean);
+ Assertions.assertEquals("6", bean.get());
InjectedSupplierBean bean1 = clientInjectionManager1.getInstance(InjectedSupplierBean.class);
- Assert.assertNotNull(bean1);
- Assert.assertEquals("11", bean1.get());
+ Assertions.assertNotNull(bean1);
+ Assertions.assertEquals("11", bean1.get());
InjectedSupplierBean bean2 = clientInjectionManager2.getInstance(InjectedSupplierBean.class);
- Assert.assertNotNull(bean2);
- Assert.assertEquals("16", bean2.get());
+ Assertions.assertNotNull(bean2);
+ Assertions.assertEquals("16", bean2.get());
}
@Dependent
@@ -173,12 +173,12 @@ public void testSupplierClassBeanOnClientAndServer() {
});
InjectedClientServerSupplierBean beanServer = injectionManager.getInstance(InjectedClientServerSupplierBean.class);
- Assert.assertNotNull(beanServer);
- Assert.assertEquals("SERVER", beanServer.get());
+ Assertions.assertNotNull(beanServer);
+ Assertions.assertEquals("SERVER", beanServer.get());
InjectedClientServerSupplierBean beanClient = clientInjectionManager.getInstance(InjectedClientServerSupplierBean.class);
- Assert.assertNotNull(beanClient);
- Assert.assertEquals("CLIENT", beanClient.get());
+ Assertions.assertNotNull(beanClient);
+ Assertions.assertEquals("CLIENT", beanClient.get());
}
@Dependent
diff --git a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/DisposableSupplierTest.java b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/DisposableSupplierTest.java
index 4ba137b8b68..478d49307c9 100644
--- a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/DisposableSupplierTest.java
+++ b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/DisposableSupplierTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,13 +31,13 @@
import org.glassfish.jersey.internal.inject.DisposableSupplier;
import org.glassfish.jersey.process.internal.RequestScope;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**
* Tests that {@link DisposableSupplier} is properly processed by {@link BeanHelper}.
@@ -58,7 +58,7 @@ public class DisposableSupplierTest extends TestParent {
private static AtomicBoolean onlyOnceGuard = new AtomicBoolean(false);
- @Before
+ @BeforeEach
public void bindInit() {
if (!onlyOnceGuard.getAndSet(true)) {
BindingTestHelper.bind(injectionManager, binder -> binder.bindFactory(new DisposableSupplierImpl())
diff --git a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/InjectionManagerTest.java b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/InjectionManagerTest.java
index 6cf10536049..db3390cb10a 100644
--- a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/InjectionManagerTest.java
+++ b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/InjectionManagerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,8 +22,8 @@
import org.glassfish.jersey.inject.weld.managed.CdiInjectionManagerFactory;
import org.glassfish.jersey.internal.inject.InjectionManager;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
public class InjectionManagerTest extends TestParent {
@@ -31,16 +31,16 @@ public class InjectionManagerTest extends TestParent {
public void injectionManagerTest() {
injectionManager.completeRegistration();
final InjectionManagerInjectedBean bean = injectionManager.getInstance(InjectionManagerInjectedBean.class);
- Assert.assertNotNull(bean);
+ Assertions.assertNotNull(bean);
InjectionManager got = bean.getInjectionManager();
- Assert.assertEquals(injectionManager, got);
+ Assertions.assertEquals(injectionManager, got);
final InjectionManager clientInjectionManager = new CdiInjectionManagerFactory().create(null, RuntimeType.CLIENT);
clientInjectionManager.completeRegistration();
final InjectionManagerInjectedBean clientBean = clientInjectionManager.getInstance(InjectionManagerInjectedBean.class);
- Assert.assertNotNull(clientBean);
+ Assertions.assertNotNull(clientBean);
InjectionManager gotClient = clientBean.getInjectionManager();
- Assert.assertEquals(clientInjectionManager, gotClient);
+ Assertions.assertEquals(clientInjectionManager, gotClient);
}
@Dependent
diff --git a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/ProviderInjectionTest.java b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/ProviderInjectionTest.java
index 3fe20cfbe6e..74da492b916 100644
--- a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/ProviderInjectionTest.java
+++ b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/ProviderInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,17 +29,17 @@
import org.glassfish.jersey.internal.inject.AbstractBinder;
import org.hamcrest.core.StringStartsWith;
-import org.junit.Assert;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
import java.util.function.Supplier;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
public class ProviderInjectionTest extends TestParent {
- @BeforeClass
+ @BeforeAll
public static void setup() {
SeContainerInitializer containerInitializer = SeContainerInitializer.newInstance();
containerInitializer.addExtensions(new ProviderInjectionTestExtension());
@@ -55,7 +55,7 @@ public void testProviderInject() {
// });
Greeting greeting = injectionManager.getInstance(Greeting.class);
- Assert.assertNotNull(greeting);
+ Assertions.assertNotNull(greeting);
ProviderInject instance = injectionManager.getInstance(ProviderInject.class);
assertThat(instance.greeting.get().getGreeting(), StringStartsWith.startsWith(CzechGreeting.GREETING));
diff --git a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/SupplierClassBindingTest.java b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/SupplierClassBindingTest.java
index bf100294576..3ab057101f3 100644
--- a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/SupplierClassBindingTest.java
+++ b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/SupplierClassBindingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,11 +30,11 @@
import org.glassfish.jersey.internal.inject.AbstractBinder;
import org.hamcrest.core.StringStartsWith;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests that {@link Supplier} can be registered as a class-factory.
@@ -44,7 +44,7 @@ public class SupplierClassBindingTest extends TestParent {
public static final String GREET = "Hi";
- @BeforeClass
+ @BeforeAll
public static void setup() {
SeContainerInitializer containerInitializer = SeContainerInitializer.newInstance();
containerInitializer.addExtensions(new SupplierClassBindingTestExtension());
diff --git a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/SupplierContractsTest.java b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/SupplierContractsTest.java
index 8f576e11d3c..9c399bd7ecb 100644
--- a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/SupplierContractsTest.java
+++ b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/SupplierContractsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,14 +30,15 @@
import org.glassfish.jersey.internal.inject.Injections;
import org.jboss.weld.exceptions.DeploymentException;
-import org.junit.After;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Test;
import java.util.function.Consumer;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertSame;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* Tests that {@link java.util.function.Supplier} can contain multiple contracts.
@@ -69,7 +70,7 @@ protected void configure() {
injectionManager = Injections.createInjectionManager();
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
if (container != null && container.isRunning()) {
container.close();
@@ -275,48 +276,54 @@ public void testInstanceFactoryMultipleContractsSingleton() {
assertSame(conversation.greetingSupplier, conversation.printableSupplier);
}
- @Test(expected = DeploymentException.class)
+ @Test
public void testClassFactoryFailedWrongImplementation() {
-// BindingTestHelper.bind(injectionManager, binder -> {
-// binder.bindFactory(SupplierGreeting.class).to(EnglishGreeting.class);
-// binder.bindAsContract(Conversation.class);
-// });
+ assertThrows(DeploymentException.class, () -> {
+// BindingTestHelper.bind(injectionManager, binder -> {
+// binder.bindFactory(SupplierGreeting.class).to(EnglishGreeting.class);
+// binder.bindAsContract(Conversation.class);
+// });
- setup((binder) -> {
- binder.bindFactory(SupplierGreeting.class).to(EnglishGreeting.class);
- binder.bindAsContract(Conversation.class);
- });
+ setup((binder) -> {
+ binder.bindFactory(SupplierGreeting.class).to(EnglishGreeting.class);
+ binder.bindAsContract(Conversation.class);
+ });
- injectionManager.getInstance(Conversation.class);
+ injectionManager.getInstance(Conversation.class);
+ });
}
- @Test(expected = DeploymentException.class)
+ @Test
public void testInstanceFactoryFailsWrongImplementation() {
- setup((binder) -> {
- binder.bindFactory(new SupplierGreeting()).to(EnglishGreeting.class);
- binder.bindAsContract(Conversation.class);
- });
+ assertThrows(DeploymentException.class, () -> {
+ setup((binder) -> {
+ binder.bindFactory(new SupplierGreeting()).to(EnglishGreeting.class);
+ binder.bindAsContract(Conversation.class);
+ });
+
+ BindingTestHelper.bind(injectionManager, binder -> {
+ binder.bindFactory(new SupplierGreeting()).to(EnglishGreeting.class);
+// binder.bindAsContract(Conversation.class);
+ });
- BindingTestHelper.bind(injectionManager, binder -> {
- binder.bindFactory(new SupplierGreeting()).to(EnglishGreeting.class);
-// binder.bindAsContract(Conversation.class);
+ injectionManager.getInstance(Conversation.class);
});
-
- injectionManager.getInstance(Conversation.class);
}
- @Test(expected = DeploymentException.class)
+ @Test
public void testFailsImplementationButInterfaceExpected() {
- setup((binder) -> {
- binder.bindFactory(new SupplierGreeting()).to(CzechGreeting.class);
- binder.bindAsContract(Conversation.class);
- });
+ assertThrows(DeploymentException.class, () -> {
+ setup((binder) -> {
+ binder.bindFactory(new SupplierGreeting()).to(CzechGreeting.class);
+ binder.bindAsContract(Conversation.class);
+ });
+
+ BindingTestHelper.bind(injectionManager, binder -> {
+ binder.bindFactory(new SupplierGreeting()).to(CzechGreeting.class);
+// binder.bindAsContract(Conversation.class);
+ });
- BindingTestHelper.bind(injectionManager, binder -> {
- binder.bindFactory(new SupplierGreeting()).to(CzechGreeting.class);
-// binder.bindAsContract(Conversation.class);
+ injectionManager.getInstance(Conversation.class);
});
-
- injectionManager.getInstance(Conversation.class);
}
}
diff --git a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/SupplierInstanceBindingTest.java b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/SupplierInstanceBindingTest.java
index eb90843eddf..2e1f2607a90 100644
--- a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/SupplierInstanceBindingTest.java
+++ b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/SupplierInstanceBindingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,14 +31,14 @@
import org.glassfish.jersey.internal.inject.AbstractBinder;
import org.hamcrest.core.StringStartsWith;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests that {@link Supplier} can be registered as a instance-factory.
@@ -51,14 +51,14 @@ public class SupplierInstanceBindingTest extends TestParent {
private static long supplierHit = 2;
private static AtomicBoolean runOnlyOnceGuard = new AtomicBoolean(false);
- @BeforeClass
+ @BeforeAll
public static void setup() {
SeContainerInitializer containerInitializer = SeContainerInitializer.newInstance();
containerInitializer.addExtensions(new SupplierInstanceBindingTestExtension());
container = containerInitializer.initialize();
}
- @Before
+ @BeforeEach
public void initBinding() {
if (!runOnlyOnceGuard.getAndSet(true)) {
MyVetoedLongSupplier supplier = new MyVetoedLongSupplier();
diff --git a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/TestParent.java b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/TestParent.java
index 0938dd239d1..0dfc70dd40d 100644
--- a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/TestParent.java
+++ b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/TestParent.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,27 +20,27 @@
import javax.enterprise.inject.se.SeContainerInitializer;
import org.glassfish.jersey.internal.inject.InjectionManager;
import org.glassfish.jersey.internal.inject.Injections;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.BeforeAll;
public class TestParent {
protected static SeContainer container;
protected InjectionManager injectionManager;
- @BeforeClass
+ @BeforeAll
public static void setup() {
SeContainerInitializer containerInitializer = SeContainerInitializer.newInstance();
container = containerInitializer.initialize();
}
- @Before
+ @BeforeEach
public void init() {
injectionManager = Injections.createInjectionManager();
}
- @AfterClass
+ @AfterAll
public static void tearDown() throws Exception {
container.close();
}
diff --git a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/ThreadScopeTest.java b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/ThreadScopeTest.java
index e3fc4d28641..a87f8f985dd 100644
--- a/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/ThreadScopeTest.java
+++ b/incubator/cdi-inject-weld/src/test/java/org/glassfish/jersey/inject/weld/internal/managed/ThreadScopeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,13 +29,13 @@
import org.glassfish.jersey.process.internal.RequestScope;
import org.hamcrest.core.StringStartsWith;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertThat;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Testing thread scope integration.
@@ -46,7 +46,7 @@ public class ThreadScopeTest extends TestParent {
private static AtomicBoolean runOnlyOnceGuard = new AtomicBoolean(false);
- @Before
+ @BeforeEach
public void initOnce() {
if (!runOnlyOnceGuard.getAndSet(true)) {
BindingTestHelper.bind(injectionManager, binder -> {
diff --git a/incubator/declarative-linking/pom.xml b/incubator/declarative-linking/pom.xml
index 56d220814ea..f0ea7647b74 100644
--- a/incubator/declarative-linking/pom.xml
+++ b/incubator/declarative-linking/pom.xml
@@ -63,8 +63,8 @@
provided
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/EntityDescriptorTest.java b/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/EntityDescriptorTest.java
index 5ed63fd4899..2cecb5552e1 100644
--- a/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/EntityDescriptorTest.java
+++ b/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/EntityDescriptorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,8 +24,8 @@
import org.glassfish.jersey.linking.mapping.ResourceMappingContext;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/FieldProcessorTest.java b/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/FieldProcessorTest.java
index e0afebaec17..17d42437f7a 100644
--- a/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/FieldProcessorTest.java
+++ b/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/FieldProcessorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -49,9 +49,9 @@
import org.glassfish.jersey.server.model.RuntimeResource;
import org.glassfish.jersey.uri.UriTemplate;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Mark Hadley
diff --git a/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/HeaderProcessorTest.java b/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/HeaderProcessorTest.java
index cf360ab0fdf..ef08c177db1 100644
--- a/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/HeaderProcessorTest.java
+++ b/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/HeaderProcessorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,9 +34,9 @@
import org.glassfish.jersey.server.model.RuntimeResource;
import org.glassfish.jersey.uri.UriTemplate;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
*
diff --git a/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/LinkELContextTest.java b/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/LinkELContextTest.java
index 89bf3f4d81c..03d3aacd75b 100644
--- a/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/LinkELContextTest.java
+++ b/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/LinkELContextTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,9 +19,9 @@
import javax.el.ExpressionFactory;
import javax.el.ValueExpression;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
*
diff --git a/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/integration/LinkingManualTest.java b/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/integration/LinkingManualTest.java
index 6375042797b..cf75afe0d36 100644
--- a/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/integration/LinkingManualTest.java
+++ b/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/integration/LinkingManualTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,7 +25,7 @@
import org.glassfish.jersey.linking.integration.app.LinkingManualApplication;
import org.glassfish.jersey.linking.integration.representations.OrderRequest;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.skyscreamer.jsonassert.JSONAssert;
public class LinkingManualTest extends JerseyTest {
diff --git a/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/integration/LinkingTest.java b/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/integration/LinkingTest.java
index 4c0e95883bf..d2996036a16 100644
--- a/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/integration/LinkingTest.java
+++ b/incubator/declarative-linking/src/test/java/org/glassfish/jersey/linking/integration/LinkingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,7 +25,7 @@
import org.glassfish.jersey.linking.integration.app.LinkingApplication;
import org.glassfish.jersey.linking.integration.representations.OrderRequest;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.skyscreamer.jsonassert.JSONAssert;
public class LinkingTest extends JerseyTest {
diff --git a/incubator/html-json/pom.xml b/incubator/html-json/pom.xml
index 1714b3401fa..af73db3a135 100644
--- a/incubator/html-json/pom.xml
+++ b/incubator/html-json/pom.xml
@@ -70,8 +70,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/AbstractTypeTester.java b/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/AbstractTypeTester.java
index 4e5c7711bc0..764ac2bc865 100644
--- a/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/AbstractTypeTester.java
+++ b/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/AbstractTypeTester.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -41,7 +41,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Abstract entity type tester base class.
@@ -145,7 +145,7 @@ protected static void _verify(byte[] in, byte[] out) {
assertEquals(in.length, out.length);
for (int i = 0; i < in.length; i++) {
if (in[i] != out[i]) {
- assertEquals("Index: " + i, in[i], out[i]);
+ assertEquals(in[i], out[i], "Index: " + i);
}
}
}
diff --git a/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ComputedPropertyTest.java b/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ComputedPropertyTest.java
index eb5a8395438..13023871ec1 100644
--- a/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ComputedPropertyTest.java
+++ b/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ComputedPropertyTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,8 +23,8 @@
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import net.java.html.json.ComputedProperty;
import net.java.html.json.Model;
diff --git a/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ModelEntityOnArrayTest.java b/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ModelEntityOnArrayTest.java
index a1e01c7fb3a..8a548fe07b7 100644
--- a/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ModelEntityOnArrayTest.java
+++ b/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ModelEntityOnArrayTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,9 +31,9 @@
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import net.java.html.json.Model;
@@ -113,9 +113,9 @@ public void doReadWrite() throws Exception {
final Class c = arr.getClass();
Object ret = new HtmlJsonProvider().readFrom(c, null, null, MediaType.APPLICATION_JSON_TYPE, null, is);
- assertTrue("It is array: " + ret, ret instanceof MyBean[]);
+ assertTrue(ret instanceof MyBean[], "It is array: " + ret);
MyBean[] res = (MyBean[]) ret;
- assertEquals("Two items: ", 2, res.length);
+ assertEquals(2, res.length, "Two items: ");
assertEquals(arr[0], res[0]);
assertEquals(arr[1], res[1]);
}
@@ -127,6 +127,6 @@ public void myBeanAndGet() {
assertEquals(200, response.getStatus());
final MyBean[] teb = response.readEntity(MyBean[].class);
- assertEquals("value", "hello", teb[0].getValue());
+ assertEquals("hello", teb[0].getValue(), "value");
}
}
diff --git a/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ModelEntityOnListTest.java b/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ModelEntityOnListTest.java
index 2dffdb7fde1..e742adef807 100644
--- a/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ModelEntityOnListTest.java
+++ b/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ModelEntityOnListTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,8 +34,8 @@
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import net.java.html.json.Model;
@@ -104,7 +104,7 @@ public void myBeanAndGet() {
GenericType> ge = new GenericType>() {};
List teb = response.readEntity(ge);
- assertEquals("one element in list: " + teb, 1, teb.size());
- assertEquals("value", "hello", teb.get(0).getValue());
+ assertEquals(1, teb.size(), "one element in list: " + teb);
+ assertEquals("hello", teb.get(0).getValue(), "value");
}
}
diff --git a/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ModelEntityTest.java b/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ModelEntityTest.java
index dfc996f5997..af23c64938b 100644
--- a/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ModelEntityTest.java
+++ b/incubator/html-json/src/test/java/org/glassfish/jersey/media/htmljson/ModelEntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import net.java.html.json.Model;
import net.java.html.json.Property;
@@ -88,6 +88,6 @@ public void myBeanAndGet() {
assertEquals(200, response.getStatus());
final MyBean teb = response.readEntity(MyBean.class);
- assertEquals("value", "hello", teb.getValue());
+ assertEquals("hello", teb.getValue(), "value");
}
}
diff --git a/incubator/kryo/src/test/java/org/glassfish/jersey/kryo/PersonResourceBaseTest.java b/incubator/kryo/src/test/java/org/glassfish/jersey/kryo/PersonResourceBaseTest.java
index 2bbedf80d87..76ad72a6c84 100644
--- a/incubator/kryo/src/test/java/org/glassfish/jersey/kryo/PersonResourceBaseTest.java
+++ b/incubator/kryo/src/test/java/org/glassfish/jersey/kryo/PersonResourceBaseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -17,12 +17,12 @@
package org.glassfish.jersey.kryo;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.Response;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public abstract class PersonResourceBaseTest extends JerseyTest {
diff --git a/incubator/kryo/src/test/java/org/glassfish/jersey/kryo/PersonResourceTest.java b/incubator/kryo/src/test/java/org/glassfish/jersey/kryo/PersonResourceTest.java
index dbbcbd64b87..39b4247b0b1 100644
--- a/incubator/kryo/src/test/java/org/glassfish/jersey/kryo/PersonResourceTest.java
+++ b/incubator/kryo/src/test/java/org/glassfish/jersey/kryo/PersonResourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,8 +25,8 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test for kryo resource.
diff --git a/incubator/open-tracing/pom.xml b/incubator/open-tracing/pom.xml
index 6e7450270c7..1178cbc15cb 100644
--- a/incubator/open-tracing/pom.xml
+++ b/incubator/open-tracing/pom.xml
@@ -60,8 +60,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/inject/cdi2-se/pom.xml b/inject/cdi2-se/pom.xml
index da9dcdc4666..a9e0e25a16f 100644
--- a/inject/cdi2-se/pom.xml
+++ b/inject/cdi2-se/pom.xml
@@ -50,8 +50,13 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
+ test
+
+
+ org.hamcrest
+ hamcrest
test
diff --git a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/DisposableSupplierTest.java b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/DisposableSupplierTest.java
index ed8215824c9..69d68eb2470 100644
--- a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/DisposableSupplierTest.java
+++ b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/DisposableSupplierTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,14 +33,14 @@
import org.glassfish.jersey.process.internal.RequestScope;
import org.glassfish.jersey.process.internal.RequestScoped;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**
* Tests that {@link DisposableSupplier} is properly processed by {@link BeanHelper}.
@@ -58,12 +58,12 @@ public class DisposableSupplierTest {
private InjectionManager injectionManager;
- @Before
+ @BeforeEach
public void setup() {
injectionManager = BindingTestHelper.createInjectionManager();
}
- @After
+ @AfterEach
public void teardown() {
injectionManager.shutdown();
}
diff --git a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/ProviderInjectionTest.java b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/ProviderInjectionTest.java
index 60cd4b294a7..d8315d42150 100644
--- a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/ProviderInjectionTest.java
+++ b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/ProviderInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,21 +24,21 @@
import org.glassfish.jersey.internal.inject.InjectionManager;
import org.hamcrest.core.StringStartsWith;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertThat;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.hamcrest.MatcherAssert.assertThat;
public class ProviderInjectionTest {
private InjectionManager injectionManager;
- @Before
+ @BeforeEach
public void setup() {
injectionManager = BindingTestHelper.createInjectionManager();
}
- @After
+ @AfterEach
public void teardown() {
injectionManager.shutdown();
}
diff --git a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/SupplierClassBindingTest.java b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/SupplierClassBindingTest.java
index e85a558664e..f20c20e24d6 100644
--- a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/SupplierClassBindingTest.java
+++ b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/SupplierClassBindingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,12 +24,12 @@
import org.glassfish.jersey.internal.inject.InjectionManager;
import org.hamcrest.core.StringStartsWith;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests that {@link Supplier} can be registered as a class-factory.
@@ -41,12 +41,12 @@ public class SupplierClassBindingTest {
private InjectionManager injectionManager;
- @Before
+ @BeforeEach
public void setup() {
injectionManager = BindingTestHelper.createInjectionManager();
}
- @After
+ @AfterEach
public void teardown() {
injectionManager.shutdown();
}
diff --git a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/SupplierContractsTest.java b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/SupplierContractsTest.java
index 3831e860c0a..0e5cde93f15 100644
--- a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/SupplierContractsTest.java
+++ b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/SupplierContractsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,12 +22,13 @@
import org.glassfish.jersey.internal.inject.InjectionManager;
import org.jboss.weld.exceptions.DeploymentException;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* Tests that {@link java.util.function.Supplier} can contain multiple contracts.
@@ -39,12 +40,12 @@ public class SupplierContractsTest {
private InjectionManager injectionManager;
- @Before
+ @BeforeEach
public void setup() {
injectionManager = BindingTestHelper.createInjectionManager();
}
- @After
+ @AfterEach
public void teardown() {
injectionManager.shutdown();
}
@@ -195,33 +196,39 @@ public void testInstanceFactoryMultipleContractsSingleton() {
assertSame(conversation.greetingSupplier, conversation.printableSupplier);
}
- @Test(expected = DeploymentException.class)
+ @Test
public void testClassFactoryFailedWrongImplementation() {
- BindingTestHelper.bind(injectionManager, binder -> {
- binder.bindFactory(SupplierGreeting.class).to(EnglishGreeting.class);
- binder.bindAsContract(Conversation.class);
- });
+ assertThrows(DeploymentException.class, () -> {
+ BindingTestHelper.bind(injectionManager, binder -> {
+ binder.bindFactory(SupplierGreeting.class).to(EnglishGreeting.class);
+ binder.bindAsContract(Conversation.class);
+ });
- injectionManager.getInstance(Conversation.class);
+ injectionManager.getInstance(Conversation.class);
+ });
}
- @Test(expected = DeploymentException.class)
+ @Test
public void testInstanceFactoryFailsWrongImplementation() {
- BindingTestHelper.bind(injectionManager, binder -> {
- binder.bindFactory(new SupplierGreeting()).to(EnglishGreeting.class);
- binder.bindAsContract(Conversation.class);
- });
+ assertThrows(DeploymentException.class, () -> {
+ BindingTestHelper.bind(injectionManager, binder -> {
+ binder.bindFactory(new SupplierGreeting()).to(EnglishGreeting.class);
+ binder.bindAsContract(Conversation.class);
+ });
- injectionManager.getInstance(Conversation.class);
+ injectionManager.getInstance(Conversation.class);
+ });
}
- @Test(expected = DeploymentException.class)
+ @Test
public void testFailsImplementationButInterfaceExpected() {
- BindingTestHelper.bind(injectionManager, binder -> {
- binder.bindFactory(new SupplierGreeting()).to(CzechGreeting.class);
- binder.bindAsContract(Conversation.class);
- });
+ assertThrows(DeploymentException.class, () -> {
+ BindingTestHelper.bind(injectionManager, binder -> {
+ binder.bindFactory(new SupplierGreeting()).to(CzechGreeting.class);
+ binder.bindAsContract(Conversation.class);
+ });
- injectionManager.getInstance(Conversation.class);
+ injectionManager.getInstance(Conversation.class);
+ });
}
}
diff --git a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/SupplierInstanceBindingTest.java b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/SupplierInstanceBindingTest.java
index 9c2575da80d..9a0151451af 100644
--- a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/SupplierInstanceBindingTest.java
+++ b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/SupplierInstanceBindingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,13 +25,13 @@
import org.glassfish.jersey.internal.inject.InjectionManager;
import org.hamcrest.core.StringStartsWith;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests that {@link Supplier} can be registered as a instance-factory.
@@ -43,12 +43,12 @@ public class SupplierInstanceBindingTest {
private InjectionManager injectionManager;
- @Before
+ @BeforeEach
public void setup() {
injectionManager = BindingTestHelper.createInjectionManager();
}
- @After
+ @AfterEach
public void teardown() {
injectionManager.shutdown();
}
diff --git a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/ThreadScopeTest.java b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/ThreadScopeTest.java
index 0a667bbba6b..1c3ded4c201 100644
--- a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/ThreadScopeTest.java
+++ b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/ThreadScopeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,12 +29,12 @@
import org.glassfish.jersey.process.internal.RequestScope;
import org.hamcrest.core.StringStartsWith;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertThat;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Testing thread scope integration.
diff --git a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/injector/CachedConstructorAnalyzerTest.java b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/injector/CachedConstructorAnalyzerTest.java
index 6f5e863de7e..8fa714bbff0 100644
--- a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/injector/CachedConstructorAnalyzerTest.java
+++ b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/injector/CachedConstructorAnalyzerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,8 +27,9 @@
import javax.enterprise.inject.InjectionException;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* Tests {@link CachedConstructorAnalyzer}.
@@ -128,14 +129,16 @@ public void testMultiAnnotatedConstructor() {
assertEquals(2, analyzer.getConstructor().getParameterCount());
}
- @Test(expected = InjectionException.class)
+ @Test
public void testUnknownAnnotatedConstructor() {
- new CachedConstructorAnalyzer<>(UnknownAnnotatedConstructor.class, ANNOTATIONS).getConstructor();
+ assertThrows(InjectionException.class,
+ () -> new CachedConstructorAnalyzer<>(UnknownAnnotatedConstructor.class, ANNOTATIONS).getConstructor());
}
- @Test(expected = InjectionException.class)
+ @Test
public void testSingleNonAnnotatedConstructor() {
- new CachedConstructorAnalyzer<>(SingleNonAnnotatedConstructor.class, ANNOTATIONS).getConstructor();
+ assertThrows(InjectionException.class,
+ () -> new CachedConstructorAnalyzer<>(SingleNonAnnotatedConstructor.class, ANNOTATIONS).getConstructor());
}
public static class DefaultConstructor {
diff --git a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/injector/JerseyProxyResolverTest.java b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/injector/JerseyProxyResolverTest.java
index 6726c8a9427..5f071b10104 100644
--- a/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/injector/JerseyProxyResolverTest.java
+++ b/inject/cdi2-se/src/test/java/org/glassfish/jersey/inject/cdi/se/injector/JerseyProxyResolverTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,11 +33,11 @@
import org.glassfish.jersey.internal.inject.InjecteeImpl;
import org.glassfish.jersey.internal.inject.InjectionResolver;
-import org.junit.Test;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests Jersey Proxy Resolver.
diff --git a/inject/hk2/pom.xml b/inject/hk2/pom.xml
index 195b4ecfa08..f33f72d2c43 100644
--- a/inject/hk2/pom.xml
+++ b/inject/hk2/pom.xml
@@ -61,8 +61,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/DisposableSupplierTest.java b/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/DisposableSupplierTest.java
index c3bb507fc45..9eefe4889a7 100644
--- a/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/DisposableSupplierTest.java
+++ b/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/DisposableSupplierTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,14 +31,14 @@
import org.glassfish.jersey.process.internal.RequestScope;
import org.glassfish.jersey.process.internal.RequestScoped;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**
* Tests that {@link org.glassfish.jersey.internal.inject.DisposableSupplier} is properly processed by {@link Hk2Helper}.
@@ -52,12 +52,12 @@ public class DisposableSupplierTest {
private InjectionManager injectionManager;
- @Before
+ @BeforeEach
public void setup() {
injectionManager = BindingTestHelper.createInjectionManager();
}
- @After
+ @AfterEach
public void teardown() {
injectionManager.shutdown();
}
diff --git a/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/InjectionManagerTest.java b/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/InjectionManagerTest.java
index 02be49fbfc9..57a5d49d10e 100644
--- a/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/InjectionManagerTest.java
+++ b/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/InjectionManagerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,10 +26,11 @@
import org.glassfish.hk2.utilities.ServiceLocatorUtilities;
import org.glassfish.hk2.utilities.binding.AbstractBinder;
-import org.junit.Test;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Petr Bouda
@@ -63,9 +64,11 @@ public void testInjectionManagerParent() {
assertNotNull(injectionManager.getInstance(EnglishGreeting.class));
}
- @Test(expected = IllegalArgumentException.class)
+ @Test
public void testUnknownParent() {
- Injections.createInjectionManager(new Object());
+ assertThrows(IllegalArgumentException.class, () -> {
+ Injections.createInjectionManager(new Object());
+ });
}
@Test
@@ -92,9 +95,11 @@ protected void configure() {
assertNotNull(injectionManager.getInstance(EnglishGreeting.class));
}
- @Test(expected = IllegalArgumentException.class)
+ @Test
public void testRegisterUnknownProvider() {
- InjectionManager injectionManager = Injections.createInjectionManager();
- injectionManager.register(new Object());
+ assertThrows(IllegalArgumentException.class, () -> {
+ InjectionManager injectionManager = Injections.createInjectionManager();
+ injectionManager.register(new Object());
+ });
}
}
diff --git a/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierClassBindingTest.java b/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierClassBindingTest.java
index 02a7938266d..0c538ac1a42 100644
--- a/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierClassBindingTest.java
+++ b/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierClassBindingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,12 +22,12 @@
import org.glassfish.jersey.internal.inject.InjectionManager;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**
* Tests that {@link java.util.function.Supplier} can be registered as a class-factory.
@@ -38,12 +38,12 @@ public class SupplierClassBindingTest {
private InjectionManager injectionManager;
- @Before
+ @BeforeEach
public void setup() {
injectionManager = BindingTestHelper.createInjectionManager();
}
- @After
+ @AfterEach
public void teardown() {
injectionManager.shutdown();
}
diff --git a/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierContractsTest.java b/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierContractsTest.java
index a43c04e3335..15101adbad8 100644
--- a/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierContractsTest.java
+++ b/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierContractsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,12 +22,13 @@
import org.glassfish.hk2.api.MultiException;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* Tests that {@link java.util.function.Supplier} can contain multiple contracts.
@@ -38,12 +39,12 @@ public class SupplierContractsTest {
private InjectionManager injectionManager;
- @Before
+ @BeforeEach
public void setup() {
injectionManager = BindingTestHelper.createInjectionManager();
}
- @After
+ @AfterEach
public void teardown() {
injectionManager.shutdown();
}
@@ -194,33 +195,39 @@ public void testInstanceFactoryMultipleContractsSingleton() {
assertSame(conversation.greetingSupplier, conversation.printableSupplier);
}
- @Test(expected = MultiException.class)
+ @Test
public void testClassFactoryFailedWrongImplementation() {
- BindingTestHelper.bind(injectionManager, binder -> {
- binder.bindFactory(SupplierGreeting.class).to(EnglishGreeting.class);
- binder.bindAsContract(Conversation.class);
- });
+ assertThrows(MultiException.class, () -> {
+ BindingTestHelper.bind(injectionManager, binder -> {
+ binder.bindFactory(SupplierGreeting.class).to(EnglishGreeting.class);
+ binder.bindAsContract(Conversation.class);
+ });
- injectionManager.getInstance(Conversation.class);
+ injectionManager.getInstance(Conversation.class);
+ });
}
- @Test(expected = MultiException.class)
+ @Test
public void testInstanceFactoryFailsWrongImplementation() {
- BindingTestHelper.bind(injectionManager, binder -> {
- binder.bindFactory(new SupplierGreeting()).to(EnglishGreeting.class);
- binder.bindAsContract(Conversation.class);
- });
+ assertThrows(MultiException.class, () -> {
+ BindingTestHelper.bind(injectionManager, binder -> {
+ binder.bindFactory(new SupplierGreeting()).to(EnglishGreeting.class);
+ binder.bindAsContract(Conversation.class);
+ });
- injectionManager.getInstance(Conversation.class);
+ injectionManager.getInstance(Conversation.class);
+ });
}
- @Test(expected = MultiException.class)
+ @Test
public void testFailsImplementationButInterfaceExpected() {
- BindingTestHelper.bind(injectionManager, binder -> {
- binder.bindFactory(new SupplierGreeting()).to(CzechGreeting.class);
- binder.bindAsContract(Conversation.class);
- });
+ assertThrows(MultiException.class, () -> {
+ BindingTestHelper.bind(injectionManager, binder -> {
+ binder.bindFactory(new SupplierGreeting()).to(CzechGreeting.class);
+ binder.bindAsContract(Conversation.class);
+ });
- injectionManager.getInstance(Conversation.class);
+ injectionManager.getInstance(Conversation.class);
+ });
}
}
diff --git a/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierInstanceBindingTest.java b/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierInstanceBindingTest.java
index 93ccc1053e3..5fdf2a0c612 100644
--- a/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierInstanceBindingTest.java
+++ b/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierInstanceBindingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,12 +23,12 @@
import org.glassfish.jersey.internal.inject.InjectionManager;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**
* Tests that {@link java.util.function.Supplier} can be registered as a instance-factory.
@@ -49,12 +49,12 @@ public Integer get() {
private InjectionManager injectionManager;
- @Before
+ @BeforeEach
public void setup() {
injectionManager = BindingTestHelper.createInjectionManager();
}
- @After
+ @AfterEach
public void teardown() {
injectionManager.shutdown();
}
diff --git a/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierProxyTest.java b/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierProxyTest.java
index 2604d27729b..79e9c9f26f8 100644
--- a/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierProxyTest.java
+++ b/inject/hk2/src/test/java/org/glassfish/jersey/inject/hk2/SupplierProxyTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,11 +18,11 @@
import org.glassfish.jersey.internal.inject.InjectionManager;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests that {@link java.util.function.Supplier} can contain proxies.
@@ -33,12 +33,12 @@ public class SupplierProxyTest {
private InjectionManager injectionManager;
- @Before
+ @BeforeEach
public void setup() {
injectionManager = BindingTestHelper.createInjectionManager();
}
- @After
+ @AfterEach
public void teardown() {
injectionManager.shutdown();
}
diff --git a/media/jaxb/pom.xml b/media/jaxb/pom.xml
index 61fae82b495..b2d691da00c 100644
--- a/media/jaxb/pom.xml
+++ b/media/jaxb/pom.xml
@@ -144,8 +144,13 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
+ test
+
+
+ org.hamcrest
+ hamcrest
test
diff --git a/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/AbstractJaxbProviderTest.java b/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/AbstractJaxbProviderTest.java
index 232c9d721ae..8be1403d43a 100644
--- a/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/AbstractJaxbProviderTest.java
+++ b/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/AbstractJaxbProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,13 +30,13 @@
import org.glassfish.jersey.internal.inject.InjectionManager;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
public class AbstractJaxbProviderTest {
private InjectionManager injectionManager;
- @Before
+ @BeforeEach
public void setUp() {
injectionManager = SaxParserFactoryInjectionProviderTest.createInjectionManager();
}
diff --git a/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/FeatureAndPropertySupplierTest.java b/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/FeatureAndPropertySupplierTest.java
index bc28e3a7d0c..74148fe94f0 100644
--- a/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/FeatureAndPropertySupplierTest.java
+++ b/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/FeatureAndPropertySupplierTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,10 +23,11 @@
import org.glassfish.jersey.jaxb.PropertySupplier;
import org.glassfish.jersey.message.MessageProperties;
import org.hamcrest.CoreMatchers;
-import org.junit.AfterClass;
-import org.junit.Assert;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.hamcrest.MatcherAssert;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
@@ -44,7 +45,6 @@
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.Collections;
import java.util.Map;
@@ -56,13 +56,13 @@ public class FeatureAndPropertySupplierTest {
private static PrintStream systemErrorStream;
private static ByteArrayOutputStream errorStream = new ByteArrayOutputStream();
- @BeforeClass
+ @BeforeAll
public static void setup() {
systemErrorStream = System.err;
System.setErr(new PrintStream(errorStream));
}
- @AfterClass
+ @AfterAll
public static void tearDown() {
System.setErr(systemErrorStream);
}
@@ -85,7 +85,7 @@ protected void configure() {
try {
injectionManager.getInstance(SAXParserFactory.class).newSAXParser().getXMLReader()
.parse(new InputSource(new ByteArrayInputStream(content.getBytes("us-ascii"))));
- Assert.fail("DOCTYPE is NOT disallowed when the feature \"disallow-doctype-decl\" is true");
+ Assertions.fail("DOCTYPE is NOT disallowed when the feature \"disallow-doctype-decl\" is true");
} catch (SAXParseException saxe) {
//expected
}
@@ -105,7 +105,7 @@ protected void configure() {
injectionManager.getInstance(SAXParserFactory.class).newSAXParser();
String warning = new String(errorStream.toByteArray());
errorStream.reset();
- Assert.assertThat(warning, CoreMatchers.containsString("Cannot set property \"Unknown-Property\""));
+ MatcherAssert.assertThat(warning, CoreMatchers.containsString("Cannot set property \"Unknown-Property\""));
}
@Test
@@ -132,7 +132,7 @@ protected void configure() {
injectionManager.getInstance(SAXParserFactory.class).newSAXParser();
String warning = new String(errorStream.toByteArray());
errorStream.reset();
- Assert.assertThat(warning, CoreMatchers.containsString("Cannot set property \"Unknown-Property\""));
+ MatcherAssert.assertThat(warning, CoreMatchers.containsString("Cannot set property \"Unknown-Property\""));
}
@Test
@@ -151,7 +151,7 @@ protected void configure() {
LogManager.getLogManager().reset();
String warning = new String(errorStream.toByteArray());
errorStream.reset();
- Assert.assertThat(warning, CoreMatchers.containsString("Cannot set property \"Unknown-Property\""));
+ MatcherAssert.assertThat(warning, CoreMatchers.containsString("Cannot set property \"Unknown-Property\""));
}
@Test
@@ -169,7 +169,7 @@ protected void configure() {
injectionManager.getInstance(TransformerFactory.class);
String warning = new String(errorStream.toByteArray());
errorStream.reset();
- Assert.assertThat(warning, CoreMatchers.containsString("Cannot set feature \"Unknown-Feature\""));
+ MatcherAssert.assertThat(warning, CoreMatchers.containsString("Cannot set feature \"Unknown-Feature\""));
}
@Test
@@ -187,7 +187,7 @@ protected void configure() {
injectionManager.getInstance(XMLInputFactory.class);
String warning = new String(errorStream.toByteArray());
errorStream.reset();
- Assert.assertThat(warning, CoreMatchers.containsString("Cannot set property \"Unknown-Property\""));
+ MatcherAssert.assertThat(warning, CoreMatchers.containsString("Cannot set property \"Unknown-Property\""));
}
@Test
@@ -205,7 +205,7 @@ protected void configure() {
injectionManager.getInstance(DocumentBuilderFactory.class);
String warning = new String(errorStream.toByteArray());
errorStream.reset();
- Assert.assertThat(warning, CoreMatchers.containsString("Cannot set property \"Unknown-Property\""));
+ MatcherAssert.assertThat(warning, CoreMatchers.containsString("Cannot set property \"Unknown-Property\""));
}
diff --git a/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/JaxbStringReaderProviderTest.java b/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/JaxbStringReaderProviderTest.java
index d906232044e..38793d85f03 100644
--- a/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/JaxbStringReaderProviderTest.java
+++ b/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/JaxbStringReaderProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -40,7 +40,7 @@
import org.glassfish.jersey.model.internal.CommonConfig;
import org.glassfish.jersey.model.internal.ComponentBag;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
public class JaxbStringReaderProviderTest {
diff --git a/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/SaxParserFactoryInjectionProviderTest.java b/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/SaxParserFactoryInjectionProviderTest.java
index 5a79737e04b..67e6e556fa5 100644
--- a/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/SaxParserFactoryInjectionProviderTest.java
+++ b/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/SaxParserFactoryInjectionProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -43,13 +43,13 @@
import org.glassfish.jersey.internal.inject.PerThread;
import org.glassfish.jersey.jaxb.FeatureSupplier;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import org.xml.sax.InputSource;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertSame;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**
* @author Martin Matula
@@ -61,7 +61,7 @@ public class SaxParserFactoryInjectionProviderTest {
private SAXParserFactory ff1;
private SAXParserFactory ff2;
- @Before
+ @BeforeEach
public void setUp() {
injectionManager = createInjectionManager();
}
diff --git a/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/SourceProviderTest.java b/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/SourceProviderTest.java
index 81e9cfe7d6a..9f4fa5b195b 100644
--- a/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/SourceProviderTest.java
+++ b/media/jaxb/src/test/java/org/glassfish/jersey/jaxb/internal/SourceProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,14 +32,14 @@
import org.glassfish.jersey.internal.inject.InjectionManager;
import org.glassfish.jersey.message.internal.SourceProvider;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
public class SourceProviderTest {
private InjectionManager injectionManager;
- @Before
+ @BeforeEach
public void setUp() {
injectionManager = SaxParserFactoryInjectionProviderTest.createInjectionManager(new AbstractBinder() {
@Override
diff --git a/media/json-binding/pom.xml b/media/json-binding/pom.xml
index 899e682bfd8..b83373cade3 100644
--- a/media/json-binding/pom.xml
+++ b/media/json-binding/pom.xml
@@ -113,8 +113,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/media/json-binding/src/test/java/org/glassfish/jersey/jsonb/internal/JsonBindingProviderTest.java b/media/json-binding/src/test/java/org/glassfish/jersey/jsonb/internal/JsonBindingProviderTest.java
index 1a8cf00bc14..b373b2e3406 100644
--- a/media/json-binding/src/test/java/org/glassfish/jersey/jsonb/internal/JsonBindingProviderTest.java
+++ b/media/json-binding/src/test/java/org/glassfish/jersey/jsonb/internal/JsonBindingProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Markus KARG
+ * Copyright (c) 2020, 2022 Markus KARG
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -38,7 +38,8 @@
import javax.ws.rs.ext.MessageBodyWriter;
import javax.ws.rs.ext.Providers;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* Unit Test for {@link JsonBindingProvider}.
@@ -47,18 +48,20 @@
*/
public final class JsonBindingProviderTest {
- @Test(expected = NoContentException.class)
+ @Test
public final void shouldThrowNoContentException() throws IOException {
- // given
- final Providers providers = new EmptyProviders();
- final MessageBodyReader mbr = (MessageBodyReader) new JsonBindingProvider(providers);
-
- // when
- mbr.readFrom(Foo.class, Foo.class, new Annotation[0], APPLICATION_JSON_TYPE,
- new MultivaluedHashMap<>(), new ByteArrayInputStream(new byte[0]));
-
- // then
- // should throw NoContentException
+ assertThrows(NoContentException.class, () -> {
+ // given
+ final Providers providers = new EmptyProviders();
+ final MessageBodyReader mbr = (MessageBodyReader) new JsonBindingProvider(providers);
+
+ // when
+ mbr.readFrom(Foo.class, Foo.class, new Annotation[0], APPLICATION_JSON_TYPE,
+ new MultivaluedHashMap<>(), new ByteArrayInputStream(new byte[0]));
+
+ // then
+ // should throw NoContentException
+ });
}
private static final class Foo {
diff --git a/media/json-gson/pom.xml b/media/json-gson/pom.xml
index 157e84f2242..374f13d33fb 100644
--- a/media/json-gson/pom.xml
+++ b/media/json-gson/pom.xml
@@ -73,8 +73,8 @@
gson
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/media/json-gson/src/test/java/org/glassfish/jersey/gson/internal/JsonGsonProviderTest.java b/media/json-gson/src/test/java/org/glassfish/jersey/gson/internal/JsonGsonProviderTest.java
index c7884d62993..db765f21bdb 100644
--- a/media/json-gson/src/test/java/org/glassfish/jersey/gson/internal/JsonGsonProviderTest.java
+++ b/media/json-gson/src/test/java/org/glassfish/jersey/gson/internal/JsonGsonProviderTest.java
@@ -32,16 +32,19 @@
import javax.ws.rs.ext.MessageBodyWriter;
import javax.ws.rs.ext.Providers;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertThrows;
public class JsonGsonProviderTest {
- @Test(expected = NoContentException.class)
+ @Test
public void shouldThrowNoContentException() throws IOException {
- Providers providers = new EmptyProviders();
- MessageBodyReader mbr = (MessageBodyReader) new JsonGsonProvider(providers);
- mbr.readFrom(Foo.class, Foo.class, new Annotation[0], APPLICATION_JSON_TYPE,
- new MultivaluedHashMap<>(), new ByteArrayInputStream(new byte[0]));
+ assertThrows(NoContentException.class, () -> {
+ Providers providers = new EmptyProviders();
+ MessageBodyReader mbr = (MessageBodyReader) new JsonGsonProvider(providers);
+ mbr.readFrom(Foo.class, Foo.class, new Annotation[0], APPLICATION_JSON_TYPE,
+ new MultivaluedHashMap<>(), new ByteArrayInputStream(new byte[0]));
+ });
}
private static final class Foo {
diff --git a/media/json-jackson/pom.xml b/media/json-jackson/pom.xml
index d99b90067ed..d51aa862728 100644
--- a/media/json-jackson/pom.xml
+++ b/media/json-jackson/pom.xml
@@ -135,8 +135,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJacksonJaxbJsonProviderTest.java b/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJacksonJaxbJsonProviderTest.java
index 281d4c404d4..388ca2abc23 100644
--- a/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJacksonJaxbJsonProviderTest.java
+++ b/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJacksonJaxbJsonProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,11 +19,11 @@
import org.glassfish.jersey.jackson.internal.model.ServiceTest;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.core.Application;
-import static junit.framework.TestCase.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public final class DefaultJacksonJaxbJsonProviderTest extends JerseyTest {
diff --git a/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForBothModulesTest.java b/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForBothModulesTest.java
index d8d43c0fe67..9d86b842b23 100644
--- a/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForBothModulesTest.java
+++ b/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForBothModulesTest.java
@@ -19,11 +19,11 @@
import org.glassfish.jersey.jackson.internal.model.ServiceTest;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.core.Application;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class DefaultJsonJacksonProviderForBothModulesTest extends JerseyTest {
@Override
diff --git a/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForDisabledModulesTest.java b/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForDisabledModulesTest.java
index 3a1bbe6876b..8d8075cbfc0 100644
--- a/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForDisabledModulesTest.java
+++ b/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForDisabledModulesTest.java
@@ -23,7 +23,7 @@
import org.glassfish.jersey.jackson.internal.model.ServiceTest;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
@@ -31,8 +31,8 @@
import javax.ws.rs.core.Configuration;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
public class DefaultJsonJacksonProviderForDisabledModulesTest extends JerseyTest {
@Override
diff --git a/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForEnabledModulesTest.java b/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForEnabledModulesTest.java
index 76b7dd9fc20..77092f6fb14 100644
--- a/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForEnabledModulesTest.java
+++ b/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/DefaultJsonJacksonProviderForEnabledModulesTest.java
@@ -19,11 +19,11 @@
import org.glassfish.jersey.jackson.internal.model.ServiceTest;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.core.Application;
-import static org.junit.Assert.assertNotEquals;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
public class DefaultJsonJacksonProviderForEnabledModulesTest extends JerseyTest {
@Override
diff --git a/media/json-jackson1/pom.xml b/media/json-jackson1/pom.xml
index ada3eaead00..571a1622496 100644
--- a/media/json-jackson1/pom.xml
+++ b/media/json-jackson1/pom.xml
@@ -86,8 +86,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/media/json-jettison/pom.xml b/media/json-jettison/pom.xml
index 2436a5e32e6..c475ffd9074 100644
--- a/media/json-jettison/pom.xml
+++ b/media/json-jettison/pom.xml
@@ -83,8 +83,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/media/json-processing/pom.xml b/media/json-processing/pom.xml
index f98abe3a690..3e624297280 100644
--- a/media/json-processing/pom.xml
+++ b/media/json-processing/pom.xml
@@ -86,8 +86,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/media/json-processing/src/test/java/org/glassfish/jersey/jsonp/JsonProcessingAutoDiscoverableClientTest.java b/media/json-processing/src/test/java/org/glassfish/jersey/jsonp/JsonProcessingAutoDiscoverableClientTest.java
index ffcde89d9fb..e309e5ab68e 100644
--- a/media/json-processing/src/test/java/org/glassfish/jersey/jsonp/JsonProcessingAutoDiscoverableClientTest.java
+++ b/media/json-processing/src/test/java/org/glassfish/jersey/jsonp/JsonProcessingAutoDiscoverableClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,8 +29,8 @@
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Michal Gajdos
diff --git a/media/json-processing/src/test/java/org/glassfish/jersey/jsonp/JsonProcessingAutoDiscoverableServerTest.java b/media/json-processing/src/test/java/org/glassfish/jersey/jsonp/JsonProcessingAutoDiscoverableServerTest.java
index 58da0e17414..5806b6bdd43 100644
--- a/media/json-processing/src/test/java/org/glassfish/jersey/jsonp/JsonProcessingAutoDiscoverableServerTest.java
+++ b/media/json-processing/src/test/java/org/glassfish/jersey/jsonp/JsonProcessingAutoDiscoverableServerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -35,8 +35,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.ServerProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Michal Gajdos
diff --git a/media/moxy/pom.xml b/media/moxy/pom.xml
index 64ee029adc6..9f6599e8d6a 100644
--- a/media/moxy/pom.xml
+++ b/media/moxy/pom.xml
@@ -120,8 +120,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/media/multipart/pom.xml b/media/multipart/pom.xml
index 9d6113c3701..d101439a229 100644
--- a/media/multipart/pom.xml
+++ b/media/multipart/pom.xml
@@ -100,8 +100,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/BodyPartTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/BodyPartTest.java
index 509d2974850..f5e721a0af1 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/BodyPartTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/BodyPartTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,13 +22,13 @@
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test case for {@link BodyPart}.
@@ -40,12 +40,12 @@
*/
public class BodyPartTest {
- @Before
+ @BeforeEach
public void setUp() throws Exception {
bodyPart = new BodyPart();
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
bodyPart = null;
}
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/FormDataBodyPartTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/FormDataBodyPartTest.java
index 40932f97d7f..79a222c9cbc 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/FormDataBodyPartTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/FormDataBodyPartTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,14 +18,14 @@
import javax.ws.rs.core.MediaType;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test case for {@link FormDataBodyPart}.
@@ -38,14 +38,14 @@
public class FormDataBodyPartTest extends BodyPartTest {
@Override
- @Before
+ @BeforeEach
public void setUp() throws Exception {
super.setUp();
bodyPart = new FormDataBodyPart();
}
@Override
- @After
+ @AfterEach
public void tearDown() throws Exception {
bodyPart = null;
super.tearDown();
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/FormDataMultiPartTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/FormDataMultiPartTest.java
index 7cf196a843a..1c48a39591d 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/FormDataMultiPartTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/FormDataMultiPartTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,11 +16,11 @@
package org.glassfish.jersey.media.multipart;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
/**
* Test case for {@link FormDataMultiPart}.
@@ -31,14 +31,14 @@
public class FormDataMultiPartTest extends MultiPartTest {
@Override
- @Before
+ @BeforeEach
public void setUp() throws Exception {
super.setUp();
multiPart = new FormDataMultiPart();
}
@Override
- @After
+ @AfterEach
public void tearDown() throws Exception {
multiPart = null;
super.tearDown();
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MultiPartMediaTypesTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MultiPartMediaTypesTest.java
index 7b5d3a90c0d..41b759c4083 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MultiPartMediaTypesTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MultiPartMediaTypesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,9 +18,9 @@
import javax.ws.rs.core.MediaType;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test case for {@link MultiPartMediaTypes}.
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MultiPartTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MultiPartTest.java
index 91cf08d67e7..fbfa600cf79 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MultiPartTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MultiPartTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,11 +18,11 @@
import javax.ws.rs.core.MediaType;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test case for {@link MultiPart}.
@@ -34,12 +34,12 @@ public class MultiPartTest {
protected MultiPart multiPart = null;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
multiPart = new MultiPart();
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
multiPart = null;
}
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MultipartMixedWithApacheClientTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MultipartMixedWithApacheClientTest.java
index 586749424eb..30748b8f4ae 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MultipartMixedWithApacheClientTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/MultipartMixedWithApacheClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -35,8 +35,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/ParameterizedHeadersMapTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/ParameterizedHeadersMapTest.java
index dee6da0d893..647100c930a 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/ParameterizedHeadersMapTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/ParameterizedHeadersMapTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,14 +26,14 @@
import org.glassfish.jersey.message.internal.ParameterizedHeader;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Unit tests for {@link ParameterizedHeadersMap}.
@@ -45,12 +45,12 @@ public class ParameterizedHeadersMapTest {
private ParameterizedHeadersMap map;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
map = new ParameterizedHeadersMap();
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
map = null;
}
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/StringKeyIgnoreCaseMultivaluedMapAsHeadersMapTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/StringKeyIgnoreCaseMultivaluedMapAsHeadersMapTest.java
index 40eaeefc8a9..39683682b03 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/StringKeyIgnoreCaseMultivaluedMapAsHeadersMapTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/StringKeyIgnoreCaseMultivaluedMapAsHeadersMapTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,14 +26,14 @@
import org.glassfish.jersey.internal.util.collection.StringKeyIgnoreCaseMultivaluedMap;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Unit tests for {@link StringKeyIgnoreCaseMultivaluedMap}.
@@ -43,12 +43,12 @@
*/
public class StringKeyIgnoreCaseMultivaluedMapAsHeadersMapTest {
- @Before
+ @BeforeEach
public void setUp() throws Exception {
map = new StringKeyIgnoreCaseMultivaluedMap();
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
map = null;
}
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/file/FileDataBodyPartTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/file/FileDataBodyPartTest.java
index 9d55e7d2b45..3721193f109 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/file/FileDataBodyPartTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/file/FileDataBodyPartTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,12 +22,12 @@
import org.glassfish.jersey.media.multipart.BodyPartTest;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test case for {@link FileDataBodyPart}.
@@ -39,14 +39,14 @@
public class FileDataBodyPartTest extends BodyPartTest {
@Override
- @Before
+ @BeforeEach
public void setUp() throws Exception {
super.setUp();
bodyPart = new FileDataBodyPart();
}
@Override
- @After
+ @AfterEach
public void tearDown() throws Exception {
bodyPart = null;
super.tearDown();
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/file/StreamDataBodyPartTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/file/StreamDataBodyPartTest.java
index 7da702b50dc..2b0d72b92fc 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/file/StreamDataBodyPartTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/file/StreamDataBodyPartTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,13 +24,13 @@
import org.glassfish.jersey.media.multipart.BodyPartTest;
import org.glassfish.jersey.media.multipart.ContentDisposition;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Tests for the {@link StreamDataBodyPart} class which checks the class' main
@@ -50,7 +50,7 @@ public class StreamDataBodyPartTest extends BodyPartTest {
private StreamDataBodyPart cut;
@Override
- @Before
+ @BeforeEach
public void setUp() throws Exception {
super.setUp();
cut = new StreamDataBodyPart();
@@ -60,7 +60,7 @@ public void setUp() throws Exception {
}
@Override
- @After
+ @AfterEach
public void tearDown() throws Exception {
bodyPart = null;
super.tearDown();
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/FormDataMultiPartBufferTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/FormDataMultiPartBufferTest.java
index 2eb6b1444b4..7222690fdf1 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/FormDataMultiPartBufferTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/FormDataMultiPartBufferTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -37,10 +37,10 @@
import org.glassfish.jersey.server.ContainerRequest;
import org.glassfish.jersey.server.ResourceConfig;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test cases for inspecting an {@code FormDataMultiPart} entity in a {@code RequestFilter} and following injection of this
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/FormDataMultiPartReaderWriterTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/FormDataMultiPartReaderWriterTest.java
index 693007ea4ef..9dcddf18258 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/FormDataMultiPartReaderWriterTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/FormDataMultiPartReaderWriterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -57,17 +57,15 @@
import org.glassfish.jersey.media.multipart.FormDataParam;
import org.glassfish.jersey.media.multipart.MultiPart;
-import org.junit.Test;
-import org.jvnet.mimepull.MIMEMessage;
-import org.jvnet.mimepull.MIMEParsingException;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Tests for multipart {@code MessageBodyReader} and {@code MessageBodyWriter} as well as {@code FormDataMultiPart} and {@code
@@ -754,7 +752,7 @@ private void checkEntity(final String expected, final BodyPartEntity entity) thr
}
private void checkMediaType(final MediaType expected, final MediaType actual) {
- assertEquals("Expected MediaType=" + expected, expected.getType(), actual.getType());
- assertEquals("Expected MediaType=" + expected, expected.getSubtype(), actual.getSubtype());
+ assertEquals(expected.getType(), actual.getType(), "Expected MediaType=" + expected);
+ assertEquals(expected.getSubtype(), actual.getSubtype(), "Expected MediaType=" + expected);
}
}
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/MultiPartHeaderModificationTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/MultiPartHeaderModificationTest.java
index e8cb04a98ba..c37065b75f5 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/MultiPartHeaderModificationTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/MultiPartHeaderModificationTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,7 +16,9 @@
package org.glassfish.jersey.media.multipart.internal;
+import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@@ -37,16 +39,17 @@
import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
import org.glassfish.jersey.media.multipart.MultiPart;
import org.glassfish.jersey.test.TestProperties;
+import org.glassfish.jersey.test.spi.TestHelper;
+import org.junit.jupiter.api.DynamicContainer;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestFactory;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
import static org.hamcrest.CoreMatchers.containsString;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* JERSEY-2123 reproducer.
@@ -55,81 +58,88 @@
*
* @author Libor Kramolis
*/
-@RunWith(Parameterized.class)
-public class MultiPartHeaderModificationTest extends MultiPartJerseyTest {
+public class MultiPartHeaderModificationTest {
- private final ConnectorProvider connectorProvider;
- private final boolean messageLogged;
-
- public MultiPartHeaderModificationTest(Class extends ConnectorProvider> connectorProviderClass,
- boolean messageLogged)
- throws InstantiationException, IllegalAccessException {
- this.connectorProvider = connectorProviderClass.newInstance();
- this.messageLogged = messageLogged;
- }
-
- @Parameterized.Parameters(name = "{index}: {0} / {1}")
public static List testData() {
return Arrays.asList(new Object[][] {
- {HttpUrlConnectorProvider.class, false},
- {GrizzlyConnectorProvider.class, true},
- {JettyConnectorProvider.class, true},
- {ApacheConnectorProvider.class, true},
+ {new HttpUrlConnectorProvider(), false},
+ {new GrizzlyConnectorProvider(), true},
+ {new JettyConnectorProvider(), true},
+ {new ApacheConnectorProvider(), true},
});
}
- @Override
- protected Set> getResourceClasses() {
- final HashSet> classes = new HashSet>();
- classes.add(MultiPartResource.class);
- return classes;
+ @TestFactory
+ public Collection generateTests() {
+ Collection tests = new ArrayList<>();
+ testData().forEach(arr -> {
+ MultiPartJerseyTemplateTest test = new MultiPartJerseyTemplateTest((ConnectorProvider) arr[0], (boolean) arr[1]) {};
+ tests.add(TestHelper.toTestContainer(test, arr[0].getClass().getSimpleName() + ", " + arr[1]));
+ });
+ return tests;
}
- @Override
- protected Application configure() {
- set(TestProperties.RECORD_LOG_LEVEL, Level.WARNING.intValue());
- return super.configure();
- }
+ public abstract static class MultiPartJerseyTemplateTest extends MultiPartJerseyTest {
- @Override
- protected void configureClient(ClientConfig clientConfig) {
- super.configureClient(clientConfig);
- clientConfig.connectorProvider(connectorProvider);
- }
+ private final ConnectorProvider connectorProvider;
+ private final boolean messageLogged;
- @Test
- public void testLogMessage() {
- final WebTarget target = target().path("multipart/ten");
-
- MultiPartBean bean = new MultiPartBean("myname", "myvalue");
- MultiPart entity = new MultiPart()
- .bodyPart(bean, new MediaType("x-application", "x-format"))
- .bodyPart("", MediaType.APPLICATION_OCTET_STREAM_TYPE);
-
- final String UNSENT_HEADER_CHANGES = "Unsent header changes";
- try {
- target.request("text/plain").put(Entity.entity(entity, "multipart/mixed"), String.class);
- assertFalse("BadRequestException can not be thrown just in case JERSEY-2341 is not fixed.",
- messageLogged);
- LogRecord logRecord = findLogRecord(UNSENT_HEADER_CHANGES);
- assertNull(logRecord);
- } catch (BadRequestException brex) {
- assertTrue("BadRequestException can be thrown just in case JERSEY-2341 is not fixed.",
- messageLogged);
- LogRecord logRecord = findLogRecord(UNSENT_HEADER_CHANGES);
- assertNotNull("Missing LogRecord for message '" + UNSENT_HEADER_CHANGES + "'.", logRecord);
- assertThat(logRecord.getMessage(), containsString("MIME-Version"));
- assertThat(logRecord.getMessage(), containsString("Content-Type"));
+ public MultiPartJerseyTemplateTest(ConnectorProvider connectorProvider, boolean messageLogged) {
+ this.connectorProvider = connectorProvider;
+ this.messageLogged = messageLogged;
+ }
+
+ @Override
+ protected Set> getResourceClasses() {
+ final HashSet> classes = new HashSet>();
+ classes.add(MultiPartResource.class);
+ return classes;
}
- }
- private LogRecord findLogRecord(String messageContains) {
- for (final LogRecord record : getLoggedRecords()) {
- if (record.getMessage().contains(messageContains)) {
- return record;
+ @Override
+ protected Application configure() {
+ set(TestProperties.RECORD_LOG_LEVEL, Level.WARNING.intValue());
+ return super.configure();
+ }
+
+ @Override
+ protected void configureClient(ClientConfig clientConfig) {
+ super.configureClient(clientConfig);
+ clientConfig.connectorProvider(connectorProvider);
+ }
+
+ @Test
+ public void testLogMessage() {
+ final WebTarget target = target().path("multipart/ten");
+
+ MultiPartBean bean = new MultiPartBean("myname", "myvalue");
+ MultiPart entity = new MultiPart()
+ .bodyPart(bean, new MediaType("x-application", "x-format"))
+ .bodyPart("", MediaType.APPLICATION_OCTET_STREAM_TYPE);
+
+ final String UNSENT_HEADER_CHANGES = "Unsent header changes";
+ try {
+ target.request("text/plain").put(Entity.entity(entity, "multipart/mixed"), String.class);
+ assertFalse(messageLogged, "BadRequestException can not be thrown just in case JERSEY-2341 is not fixed.");
+ LogRecord logRecord = findLogRecord(UNSENT_HEADER_CHANGES);
+ assertNull(logRecord);
+ } catch (BadRequestException brex) {
+ assertTrue(messageLogged,
+ "BadRequestException can be thrown just in case JERSEY-2341 is not fixed.");
+ LogRecord logRecord = findLogRecord(UNSENT_HEADER_CHANGES);
+ assertNotNull(logRecord, "Missing LogRecord for message '" + UNSENT_HEADER_CHANGES + "'.");
+ assertThat(logRecord.getMessage(), containsString("MIME-Version"));
+ assertThat(logRecord.getMessage(), containsString("Content-Type"));
}
}
- return null;
- }
+ private LogRecord findLogRecord(String messageContains) {
+ for (final LogRecord record : getLoggedRecords()) {
+ if (record.getMessage().contains(messageContains)) {
+ return record;
+ }
+ }
+ return null;
+ }
+ }
}
diff --git a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/MultiPartReaderWriterTest.java b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/MultiPartReaderWriterTest.java
index 32b02f3dc3a..a718780386e 100644
--- a/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/MultiPartReaderWriterTest.java
+++ b/media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/MultiPartReaderWriterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,11 +34,12 @@
import org.glassfish.jersey.media.multipart.BodyPartEntity;
import org.glassfish.jersey.media.multipart.MultiPart;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
+import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* Unit tests for {@link org.glassfish.jersey.media.multipart.internal.MultiPartReaderClientSide} (in the client) and
@@ -49,7 +50,7 @@ public class MultiPartReaderWriterTest extends MultiPartJerseyTest {
private static Path TMP_DIRECTORY;
private static String ORIGINAL_TMP_DIRECTORY;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
super.setUp();
@@ -59,7 +60,7 @@ public void setUp() throws Exception {
System.setProperty("java.io.tmpdir", TMP_DIRECTORY.toString());
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
super.tearDown();
@@ -201,14 +202,15 @@ public void testFourBiz() {
/**
* Test sending a completely empty MultiPart.
*/
- @Test(expected = ProcessingException.class)
+ @Test
public void testSix() {
- target()
- .path("multipart/six")
- .request("text/plain")
- .post(Entity.entity(new MultiPart(), "multipart/mixed"), String.class);
-
- fail("Should have thrown an exception about zero body parts");
+ assertThrows(ProcessingException.class, () -> {
+ target()
+ .path("multipart/six")
+ .request("text/plain")
+ .post(Entity.entity(new MultiPart(), "multipart/mixed"), String.class);
+ fail("Should have thrown an exception about zero body parts");
+ });
}
/**
@@ -312,14 +314,14 @@ private void checkEleven(final String seed, final int multiplier) throws Excepti
final MultiPart response = target.request("multipart/mixed")
.put(Entity.entity(entity, "multipart/mixed"), MultiPart.class);
final String actual = response.getBodyParts().get(0).getEntityAs(String.class);
- assertEquals("Length for multiplier " + multiplier, expected.length(), actual.length());
- assertEquals("Content for multiplier " + multiplier, expected, actual);
+ assertEquals(expected.length(), actual.length(), "Length for multiplier " + multiplier);
+ assertEquals(expected, actual, "Content for multiplier " + multiplier);
response.cleanup();
}
private void checkMediaType(final MediaType expected, final MediaType actual) {
- assertEquals("Expected MediaType=" + expected, expected.getType(), actual.getType());
- assertEquals("Expected MediaType=" + expected, expected.getSubtype(), actual.getSubtype());
+ assertEquals(expected.getType(), actual.getType(), "Expected MediaType=" + expected);
+ assertEquals(expected.getSubtype(), actual.getSubtype(), "Expected MediaType=" + expected);
}
}
diff --git a/media/sse/pom.xml b/media/sse/pom.xml
index ce434af3771..57f6b62fda8 100644
--- a/media/sse/pom.xml
+++ b/media/sse/pom.xml
@@ -45,8 +45,8 @@
${project.version}
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/media/sse/src/test/java/org/glassfish/jersey/media/sse/ClientCloseTest.java b/media/sse/src/test/java/org/glassfish/jersey/media/sse/ClientCloseTest.java
index 996d32e9463..ebd0792bdc5 100644
--- a/media/sse/src/test/java/org/glassfish/jersey/media/sse/ClientCloseTest.java
+++ b/media/sse/src/test/java/org/glassfish/jersey/media/sse/ClientCloseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,10 +33,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.TestCase.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Petr Janouch
diff --git a/media/sse/src/test/java/org/glassfish/jersey/media/sse/EmptyEventsTest.java b/media/sse/src/test/java/org/glassfish/jersey/media/sse/EmptyEventsTest.java
index c405777168e..2c99079deb0 100644
--- a/media/sse/src/test/java/org/glassfish/jersey/media/sse/EmptyEventsTest.java
+++ b/media/sse/src/test/java/org/glassfish/jersey/media/sse/EmptyEventsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,8 +33,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Tests handling of empty SSE events.
diff --git a/media/sse/src/test/java/org/glassfish/jersey/media/sse/EventSourceTest.java b/media/sse/src/test/java/org/glassfish/jersey/media/sse/EventSourceTest.java
index 842ae17ec13..d544746fd2a 100644
--- a/media/sse/src/test/java/org/glassfish/jersey/media/sse/EventSourceTest.java
+++ b/media/sse/src/test/java/org/glassfish/jersey/media/sse/EventSourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,10 +34,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.TestCase.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Pavel Bucek
diff --git a/media/sse/src/test/java/org/glassfish/jersey/media/sse/InboundEventReaderTest.java b/media/sse/src/test/java/org/glassfish/jersey/media/sse/InboundEventReaderTest.java
index ae522aef05c..bc9f05799f2 100644
--- a/media/sse/src/test/java/org/glassfish/jersey/media/sse/InboundEventReaderTest.java
+++ b/media/sse/src/test/java/org/glassfish/jersey/media/sse/InboundEventReaderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -37,9 +37,9 @@
import org.glassfish.jersey.model.internal.CommonConfig;
import org.glassfish.jersey.model.internal.ComponentBag;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Petr Bouda
@@ -56,7 +56,7 @@ public class InboundEventReaderTest {
HEADERS.put("Content-Type", Collections.singletonList("text/event-stream"));
}
- @Before
+ @BeforeEach
public void setup() {
injectionManager = Injections.createInjectionManager();
injectionManager.register(new TestBinder());
diff --git a/media/sse/src/test/java/org/glassfish/jersey/media/sse/OutboundEventTest.java b/media/sse/src/test/java/org/glassfish/jersey/media/sse/OutboundEventTest.java
index c5af425e4e8..001d1232984 100644
--- a/media/sse/src/test/java/org/glassfish/jersey/media/sse/OutboundEventTest.java
+++ b/media/sse/src/test/java/org/glassfish/jersey/media/sse/OutboundEventTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,11 +24,11 @@
import org.glassfish.jersey.internal.util.ReflectionHelper;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Basic set of unit tests for OutboundEvent creation.
diff --git a/media/sse/src/test/java/org/glassfish/jersey/media/sse/SseEventSinkCloseTest.java b/media/sse/src/test/java/org/glassfish/jersey/media/sse/SseEventSinkCloseTest.java
index f6afa45c3b0..5706eb5b923 100644
--- a/media/sse/src/test/java/org/glassfish/jersey/media/sse/SseEventSinkCloseTest.java
+++ b/media/sse/src/test/java/org/glassfish/jersey/media/sse/SseEventSinkCloseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -39,9 +39,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test, that {@code SseEventSink} and the connection is closed eventually after closing {@code SseEventSource} on client side.
@@ -99,9 +99,9 @@ public void testClose() throws InterruptedException {
}
// ... and wait for the events to be processed by the client side, then close the eventSource
- assertTrue("EventLatch timed out.", eventLatch.await(5, TimeUnit.SECONDS));
+ assertTrue(eventLatch.await(5, TimeUnit.SECONDS), "EventLatch timed out.");
eventSource.close();
- assertEquals("SseEventSource should have been already closed", false, eventSource.isOpen());
+ assertEquals(false, eventSource.isOpen(), "SseEventSource should have been already closed");
ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);
@@ -121,7 +121,7 @@ public void testClose() throws InterruptedException {
assertTrue(closeLatch.await(10000, TimeUnit.MILLISECONDS));
executor.shutdown();
- assertTrue("SseEventOutput should have been already closed.", output.isClosed());
+ assertTrue(output.isClosed(), "SseEventOutput should have been already closed.");
}
@Override
diff --git a/media/sse/src/test/java/org/glassfish/jersey/media/sse/SseEventSinkTest.java b/media/sse/src/test/java/org/glassfish/jersey/media/sse/SseEventSinkTest.java
index b6059ff0d22..77211056ad7 100644
--- a/media/sse/src/test/java/org/glassfish/jersey/media/sse/SseEventSinkTest.java
+++ b/media/sse/src/test/java/org/glassfish/jersey/media/sse/SseEventSinkTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,8 +34,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Pavel Bucek
diff --git a/media/sse/src/test/java/org/glassfish/jersey/media/sse/internal/JerseyEventSinkTest.java b/media/sse/src/test/java/org/glassfish/jersey/media/sse/internal/JerseyEventSinkTest.java
index 6b7da0d6cf0..98fbfff74a7 100644
--- a/media/sse/src/test/java/org/glassfish/jersey/media/sse/internal/JerseyEventSinkTest.java
+++ b/media/sse/src/test/java/org/glassfish/jersey/media/sse/internal/JerseyEventSinkTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -17,24 +17,21 @@
package org.glassfish.jersey.media.sse.internal;
import org.glassfish.jersey.media.sse.OutboundEvent;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.ExpectedException;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* @author Pavel Bucek
*/
public class JerseyEventSinkTest {
- @Rule
- public ExpectedException thrown = ExpectedException.none();
-
@Test
public void test() throws Exception {
- JerseyEventSink eventSink = new JerseyEventSink(null);
+ Assertions.assertThrows(IllegalStateException.class, () -> {
+ JerseyEventSink eventSink = new JerseyEventSink(null);
- eventSink.close();
- thrown.expect(IllegalStateException.class);
- eventSink.send(null);
+ eventSink.close();
+ eventSink.send(null);
+ });
}
}
diff --git a/media/sse/src/test/java/org/glassfish/jersey/media/sse/internal/JerseySseBroadcasterTest.java b/media/sse/src/test/java/org/glassfish/jersey/media/sse/internal/JerseySseBroadcasterTest.java
index 0e5c635c3eb..5fdeac24083 100644
--- a/media/sse/src/test/java/org/glassfish/jersey/media/sse/internal/JerseySseBroadcasterTest.java
+++ b/media/sse/src/test/java/org/glassfish/jersey/media/sse/internal/JerseySseBroadcasterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,10 +23,8 @@
import javax.ws.rs.sse.OutboundSseEvent;
import javax.ws.rs.sse.SseEventSink;
-import org.junit.Assert;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.ExpectedException;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* {@link javax.ws.rs.sse.SseBroadcaster} test.
@@ -35,27 +33,26 @@
*/
public class JerseySseBroadcasterTest {
- @Rule
- public ExpectedException thrown = ExpectedException.none();
-
private static final String TEST_EXCEPTION_MSG = "testException";
@Test
public void testOnErrorNull() {
- try (JerseySseBroadcaster broadcaster = new JerseySseBroadcaster()) {
+ Assertions.assertThrows(IllegalArgumentException.class, () -> {
+ try (JerseySseBroadcaster broadcaster = new JerseySseBroadcaster()) {
- thrown.expect(IllegalArgumentException.class);
- broadcaster.onError(null);
- }
+ broadcaster.onError(null);
+ }
+ });
}
@Test
public void testOnCloseNull() {
- try (JerseySseBroadcaster jerseySseBroadcaster = new JerseySseBroadcaster()) {
+ Assertions.assertThrows(IllegalArgumentException.class, () -> {
+ try (JerseySseBroadcaster jerseySseBroadcaster = new JerseySseBroadcaster()) {
- thrown.expect(IllegalArgumentException.class);
- jerseySseBroadcaster.onClose(null);
- }
+ jerseySseBroadcaster.onClose(null);
+ }
+ });
}
@Test
@@ -89,7 +86,7 @@ public void close() {
});
broadcaster.broadcast(new JerseySse().newEvent("ping"));
- Assert.assertTrue(latch.await(2000, TimeUnit.MILLISECONDS));
+ Assertions.assertTrue(latch.await(2000, TimeUnit.MILLISECONDS));
}
}
@@ -124,7 +121,7 @@ public void close() {
});
broadcaster.close();
- Assert.assertTrue(latch.await(2000, TimeUnit.MILLISECONDS));
+ Assertions.assertTrue(latch.await(2000, TimeUnit.MILLISECONDS));
}
}
diff --git a/media/sse/src/test/java/org/glassfish/jersey/media/sse/internal/JerseySseEventSourceTest.java b/media/sse/src/test/java/org/glassfish/jersey/media/sse/internal/JerseySseEventSourceTest.java
index 238ba827784..5509d7ed626 100644
--- a/media/sse/src/test/java/org/glassfish/jersey/media/sse/internal/JerseySseEventSourceTest.java
+++ b/media/sse/src/test/java/org/glassfish/jersey/media/sse/internal/JerseySseEventSourceTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,20 +16,15 @@
package org.glassfish.jersey.media.sse.internal;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.ExpectedException;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.sse.SseEventSource;
public class JerseySseEventSourceTest {
- @Rule
- public ExpectedException thrown = ExpectedException.none();
-
@Test
public void testNPEOnNull() {
- thrown.expect(NullPointerException.class);
- SseEventSource.target(null);
+ Assertions.assertThrows(NullPointerException.class, () -> SseEventSource.target(null));
}
}
diff --git a/pom.xml b/pom.xml
index 2ed2d538e5f..bf6aca5760b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -421,6 +421,14 @@
-Xmx${surefire.maxmem.argline}m -Dfile.encoding=UTF8 ${surefire.security.argline} ${surefire.coverage.argline}
${skip.tests}
+
+
+ junit.jupiter.execution.parallel.enabled=true
+ junit.jupiter.execution.parallel.mode.classes.default=same_thread
+ junit.jupiter.execution.parallel.mode.default=same_thread
+
+
+ 124
@@ -2014,12 +2022,6 @@
test
-
- junit
- junit
- 4.13.1
- test
-
org.junit.jupiter
junit-jupiter
@@ -2035,7 +2037,7 @@
org.testng
testng
- 6.9.6
+ 6.9.13.6
test
@@ -2058,8 +2060,8 @@
test
- xmlunit
- xmlunit
+ org.xmlunit
+ xmlunit-core
${xmlunit.version}
test
@@ -2164,7 +2166,7 @@
31.1-jre
2.2
1.0.3
- 1.6
+ 2.9.0
4.5.13
5.1.2
2.13.3
@@ -2175,10 +2177,12 @@
${jersey1.version}
1.3.7
1.10.2
- 1.44
- 5.6.0
+ 1.49
+ 5.9.1
+ 1.9.1
+ 4.13.2
4.0.1
- 3.9.0
+ 3.12.4
0.8.17
4.1.75.Final
1.6.7
@@ -2186,7 +2190,7 @@
6.0.0
1.10.0
5.0.0
- 4.13.4
+ 4.13.4
0.7.4
1.2.4
1.2.5
@@ -2196,7 +2200,7 @@
2.0.3
4.3.20.RELEASE
5.3.18
- 3.0.0-M5
+ 3.0.0-M7
6.2.0.Final
2.2.14.Final
3.1.7.SP1
diff --git a/security/oauth1-client/pom.xml b/security/oauth1-client/pom.xml
index 8da420c97e8..e0911083e20 100644
--- a/security/oauth1-client/pom.xml
+++ b/security/oauth1-client/pom.xml
@@ -67,8 +67,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/security/oauth1-server/pom.xml b/security/oauth1-server/pom.xml
index 777d8aa07d8..ca56a0bae67 100644
--- a/security/oauth1-server/pom.xml
+++ b/security/oauth1-server/pom.xml
@@ -46,8 +46,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/security/oauth1-server/src/test/java/org/glassfish/jersey/server/oauth1/NonceManagerTest.java b/security/oauth1-server/src/test/java/org/glassfish/jersey/server/oauth1/NonceManagerTest.java
index 25069ea5ff0..7d40786ce95 100644
--- a/security/oauth1-server/src/test/java/org/glassfish/jersey/server/oauth1/NonceManagerTest.java
+++ b/security/oauth1-server/src/test/java/org/glassfish/jersey/server/oauth1/NonceManagerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,11 +19,11 @@
import java.util.concurrent.TimeUnit;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Thomas Meire
diff --git a/security/oauth1-server/src/test/java/org/glassfish/jersey/server/oauth1/OAuth1ExceptionTest.java b/security/oauth1-server/src/test/java/org/glassfish/jersey/server/oauth1/OAuth1ExceptionTest.java
index aee7db558e5..591e5725760 100644
--- a/security/oauth1-server/src/test/java/org/glassfish/jersey/server/oauth1/OAuth1ExceptionTest.java
+++ b/security/oauth1-server/src/test/java/org/glassfish/jersey/server/oauth1/OAuth1ExceptionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,9 +19,9 @@
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.Response;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* {@link OAuth1Exception} unit tests.
diff --git a/security/oauth1-signature/pom.xml b/security/oauth1-signature/pom.xml
index 3a3d7a155f2..845c1800119 100644
--- a/security/oauth1-signature/pom.xml
+++ b/security/oauth1-signature/pom.xml
@@ -53,8 +53,8 @@
${project.version}
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/security/oauth1-signature/src/test/java/org/glassfish/jersey/oauth1/signature/OAuth1SignatureTest.java b/security/oauth1-signature/src/test/java/org/glassfish/jersey/oauth1/signature/OAuth1SignatureTest.java
index 3540eb4372c..2714c99ffda 100644
--- a/security/oauth1-signature/src/test/java/org/glassfish/jersey/oauth1/signature/OAuth1SignatureTest.java
+++ b/security/oauth1-signature/src/test/java/org/glassfish/jersey/oauth1/signature/OAuth1SignatureTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,8 +24,8 @@
import javax.ws.rs.core.MultivaluedHashMap;
import javax.ws.rs.core.MultivaluedMap;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
*
diff --git a/security/oauth1-signature/src/test/java/org/glassfish/jersey/oauth1/signature/OAuthBase64Test.java b/security/oauth1-signature/src/test/java/org/glassfish/jersey/oauth1/signature/OAuthBase64Test.java
index f72b0238178..3f0cb796829 100644
--- a/security/oauth1-signature/src/test/java/org/glassfish/jersey/oauth1/signature/OAuthBase64Test.java
+++ b/security/oauth1-signature/src/test/java/org/glassfish/jersey/oauth1/signature/OAuthBase64Test.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,8 +18,8 @@
import java.io.IOException;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
*
@@ -35,17 +35,17 @@ public void test() throws IOException {
final String encodedUtilStr = java.util.Base64.getEncoder().encodeToString(str.getBytes());
System.out.println(encoded);
- Assert.assertEquals(encoded, encodedUtil);
- Assert.assertEquals(encoded, encodedUtilStr);
+ Assertions.assertEquals(encoded, encodedUtil);
+ Assertions.assertEquals(encoded, encodedUtilStr);
final String decoded = new String(Base64.decode(encoded));
final String decodedUtil = new String(java.util.Base64.getDecoder().decode(encoded.getBytes()));
final String decodedUtilStr = new String(java.util.Base64.getDecoder().decode(encoded.getBytes()));
final String decodedUtilStr2 = new String(java.util.Base64.getDecoder().decode(encoded));
- Assert.assertEquals(decoded, decodedUtil);
- Assert.assertEquals(decoded, decodedUtilStr);
- Assert.assertEquals(decoded, decodedUtilStr2);
- Assert.assertEquals(decoded, str);
+ Assertions.assertEquals(decoded, decodedUtil);
+ Assertions.assertEquals(decoded, decodedUtilStr);
+ Assertions.assertEquals(decoded, decodedUtilStr2);
+ Assertions.assertEquals(decoded, str);
}
}
diff --git a/security/oauth1-signature/src/test/java/org/glassfish/jersey/oauth1/signature/SignatureTest.java b/security/oauth1-signature/src/test/java/org/glassfish/jersey/oauth1/signature/SignatureTest.java
index a433015b136..058975a90c0 100644
--- a/security/oauth1-signature/src/test/java/org/glassfish/jersey/oauth1/signature/SignatureTest.java
+++ b/security/oauth1-signature/src/test/java/org/glassfish/jersey/oauth1/signature/SignatureTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,10 +20,10 @@
import org.glassfish.jersey.internal.inject.Injections;
import org.glassfish.jersey.uri.UriComponent;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Paul C. Bryan
diff --git a/test-framework/core/pom.xml b/test-framework/core/pom.xml
index fe07d92bace..1c9a2e4656d 100644
--- a/test-framework/core/pom.xml
+++ b/test-framework/core/pom.xml
@@ -70,8 +70,9 @@
provided
- org.junit.jupiter
- junit-jupiter
+ junit
+ junit
+ ${junit4.version}
provided
diff --git a/test-framework/core/src/main/java/org/glassfish/jersey/test/JerseyTest.java b/test-framework/core/src/main/java/org/glassfish/jersey/test/JerseyTest.java
index de3ce0cbd83..1c94be19469 100644
--- a/test-framework/core/src/main/java/org/glassfish/jersey/test/JerseyTest.java
+++ b/test-framework/core/src/main/java/org/glassfish/jersey/test/JerseyTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,6 +28,7 @@
import java.util.Optional;
import java.util.Properties;
import java.util.Set;
+import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
import java.util.logging.Handler;
import java.util.logging.Level;
@@ -52,7 +53,6 @@
import org.glassfish.jersey.test.spi.TestContainer;
import org.glassfish.jersey.test.spi.TestContainerException;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-
import org.junit.After;
import org.junit.Before;
import org.junit.jupiter.api.AfterEach;
@@ -122,7 +122,6 @@
* @author Michal Gajdos
* @author Marek Potociar
*/
-@SuppressWarnings("UnusedDeclaration")
public abstract class JerseyTest {
private static final Logger LOGGER = Logger.getLogger(JerseyTest.class.getName());
@@ -169,6 +168,7 @@ public abstract class JerseyTest {
private JerseyTestLogHandler logHandler;
private final Map logLevelMap = new IdentityHashMap<>();
+ private final AtomicInteger activeThreadCount = new AtomicInteger(0);
/**
* Initialize JerseyTest instance.
@@ -187,7 +187,6 @@ public JerseyTest() {
// not be set soon enough
this.context = configureDeployment();
this.testContainerFactory = getTestContainerFactory();
- registerLogHandlerIfEnabled();
}
/**
@@ -209,7 +208,6 @@ public JerseyTest(final TestContainerFactory testContainerFactory) {
// not be set soon enough
this.context = configureDeployment();
this.testContainerFactory = testContainerFactory;
- registerLogHandlerIfEnabled();
}
/**
@@ -234,7 +232,6 @@ public JerseyTest(final TestContainerFactory testContainerFactory) {
public JerseyTest(final Application jaxrsApplication) {
this.context = DeploymentContext.newInstance(jaxrsApplication);
this.testContainerFactory = getTestContainerFactory();
- registerLogHandlerIfEnabled();
}
/**
@@ -618,14 +615,19 @@ public final Client client() {
@Before
@BeforeEach
public void setUp() throws Exception {
- final TestContainer testContainer = createTestContainer(context);
+ synchronized (this) {
+ if (activeThreadCount.getAndIncrement() == 0) {
+ registerLogHandlerIfEnabled();
+ final TestContainer testContainer = createTestContainer(context);
- // Set current instance of test container and start it.
- setTestContainer(testContainer);
- testContainer.start();
+ // Set current instance of test container and start it.
+ setTestContainer(testContainer);
+ testContainer.start();
- // Create an set new client.
- setClient(getClient(testContainer.getClientConfig()));
+ // Create an set new client.
+ setClient(getClient(testContainer.getClientConfig()));
+ }
+ }
}
/**
@@ -639,17 +641,21 @@ public void setUp() throws Exception {
@After
@AfterEach
public void tearDown() throws Exception {
- if (isLogRecordingEnabled()) {
- unregisterLogHandler();
- }
+ synchronized (this) {
+ if (activeThreadCount.decrementAndGet() == 0) {
+ if (isLogRecordingEnabled()) {
+ unregisterLogHandler();
+ }
- try {
- TestContainer oldContainer = setTestContainer(null);
- if (oldContainer != null) {
- oldContainer.stop();
+ try {
+ TestContainer oldContainer = setTestContainer(null);
+ if (oldContainer != null) {
+ oldContainer.stop();
+ }
+ } finally {
+ closeIfNotNull(setClient(null));
+ }
}
- } finally {
- closeIfNotNull(setClient(null));
}
}
diff --git a/test-framework/core/src/main/java/org/glassfish/jersey/test/package-info.java b/test-framework/core/src/main/java/org/glassfish/jersey/test/package-info.java
index 60b810511ce..1d2457d2227 100644
--- a/test-framework/core/src/main/java/org/glassfish/jersey/test/package-info.java
+++ b/test-framework/core/src/main/java/org/glassfish/jersey/test/package-info.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -51,7 +51,7 @@
* WebTarget t = target("root");
*
* String s = t.request().get(String.class);
- * Assert.assertEquals("GET", s);
+ * Assertions.assertEquals("GET", s);
* }
* }
*
@@ -86,7 +86,7 @@
* WebTarget t = target("root");
*
* String s = t.request().get(String.class);
- * Assert.assertEquals("GET", s);
+ * Assertions.assertEquals("GET", s);
* }
* }
*
diff --git a/test-framework/core/src/main/java/org/glassfish/jersey/test/spi/TestHelper.java b/test-framework/core/src/main/java/org/glassfish/jersey/test/spi/TestHelper.java
index 23809f63066..0aabca53a8b 100644
--- a/test-framework/core/src/main/java/org/glassfish/jersey/test/spi/TestHelper.java
+++ b/test-framework/core/src/main/java/org/glassfish/jersey/test/spi/TestHelper.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,7 +16,15 @@
package org.glassfish.jersey.test.spi;
+import java.lang.reflect.Method;
import java.net.URI;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+import org.junit.jupiter.api.DynamicContainer;
+import org.junit.jupiter.api.DynamicTest;
+import org.junit.platform.commons.util.ReflectionUtils;
/**
* Helper class for Jersey Test Framework.
@@ -43,4 +51,31 @@ public static String zeroPortToAvailablePort(final URI uri) {
*/
private TestHelper() {
}
+
+ public static DynamicContainer toTestContainer(Object test, String displayName) {
+ Class> klass = test.getClass();
+ List testMethods = ReflectionUtils.findMethods(klass,
+ method -> method.isAnnotationPresent(org.junit.jupiter.api.Test.class)
+ && !method.isAnnotationPresent(org.junit.jupiter.api.Disabled.class));
+ List beforeEachMethods = ReflectionUtils.findMethods(klass,
+ method -> method.isAnnotationPresent(org.junit.jupiter.api.BeforeEach.class));
+ List afterEachMethods = ReflectionUtils.findMethods(klass,
+ method -> method.isAnnotationPresent(org.junit.jupiter.api.AfterEach.class));
+ Collection children = new ArrayList<>();
+ for (Method method : testMethods) {
+ children.add(DynamicTest.dynamicTest(method.getName(), () -> {
+ try {
+ for (Method beforeEachMethod : beforeEachMethods) {
+ beforeEachMethod.invoke(test);
+ }
+ method.invoke(test);
+ } finally {
+ for (Method afterEachMethod : afterEachMethods) {
+ afterEachMethod.invoke(test);
+ }
+ }
+ }));
+ }
+ return DynamicContainer.dynamicContainer(displayName, children);
+ }
}
diff --git a/test-framework/core/src/test/java/org/glassfish/jersey/test/JerseyTestTest.java b/test-framework/core/src/test/java/org/glassfish/jersey/test/JerseyTestTest.java
index 08e873e5f89..ecbdf25cf60 100644
--- a/test-framework/core/src/test/java/org/glassfish/jersey/test/JerseyTestTest.java
+++ b/test-framework/core/src/test/java/org/glassfish/jersey/test/JerseyTestTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -30,8 +30,8 @@
import org.glassfish.jersey.test.spi.TestContainerException;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* {@link org.glassfish.jersey.test.JerseyTest} unit tests.
diff --git a/test-framework/maven/container-runner-maven-plugin/pom.xml b/test-framework/maven/container-runner-maven-plugin/pom.xml
index c7571c35b7f..efa0af1a1c8 100644
--- a/test-framework/maven/container-runner-maven-plugin/pom.xml
+++ b/test-framework/maven/container-runner-maven-plugin/pom.xml
@@ -160,6 +160,8 @@
junit
junit
+ ${junit4.version}
+ test
diff --git a/test-framework/maven/custom-enforcer-rules/pom.xml b/test-framework/maven/custom-enforcer-rules/pom.xml
index 46b9a43524c..e42e347fd85 100644
--- a/test-framework/maven/custom-enforcer-rules/pom.xml
+++ b/test-framework/maven/custom-enforcer-rules/pom.xml
@@ -70,8 +70,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
compile
diff --git a/test-framework/maven/custom-enforcer-rules/src/test/java/org/glassfish/jersey/test/maven/rule/FilePatternDoesNotExistRuleTest.java b/test-framework/maven/custom-enforcer-rules/src/test/java/org/glassfish/jersey/test/maven/rule/FilePatternDoesNotExistRuleTest.java
index 301369af132..0c2d91ad22f 100644
--- a/test-framework/maven/custom-enforcer-rules/src/test/java/org/glassfish/jersey/test/maven/rule/FilePatternDoesNotExistRuleTest.java
+++ b/test-framework/maven/custom-enforcer-rules/src/test/java/org/glassfish/jersey/test/maven/rule/FilePatternDoesNotExistRuleTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,7 +21,8 @@
import java.net.URISyntaxException;
import org.apache.maven.enforcer.rule.api.EnforcerRuleException;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* Basic sanity test of {@link FilePatternDoesNotExistRule} enforcer rule.
@@ -30,17 +31,19 @@
*/
public class FilePatternDoesNotExistRuleTest {
- @Test(expected = EnforcerRuleException.class)
+ @Test
public void testMatchedPath() throws URISyntaxException, EnforcerRuleException {
- final FilePatternDoesNotExistRule filePatternDoesNotExistRule = new FilePatternDoesNotExistRule();
+ assertThrows(EnforcerRuleException.class, () -> {
+ final FilePatternDoesNotExistRule filePatternDoesNotExistRule = new FilePatternDoesNotExistRule();
- final URI uri = getClass()
- .getResource("/org/glassfish/jersey/test/maven/rule/FilePatternDoesNotExistRule.class").toURI();
- final File file = new File(uri);
- final String pattern = file.getAbsolutePath().replace("PatternDoes", "*");
- filePatternDoesNotExistRule.files = new File[] {new File(pattern)};
+ final URI uri = getClass()
+ .getResource("/org/glassfish/jersey/test/maven/rule/FilePatternDoesNotExistRule.class").toURI();
+ final File file = new File(uri);
+ final String pattern = file.getAbsolutePath().replace("PatternDoes", "*");
+ filePatternDoesNotExistRule.files = new File[] {new File(pattern)};
- filePatternDoesNotExistRule.execute(null);
+ filePatternDoesNotExistRule.execute(null);
+ });
}
@Test
diff --git a/test-framework/maven/custom-enforcer-rules/src/test/java/org/glassfish/jersey/test/maven/rule/PatternNotMatchedInFileRuleTest.java b/test-framework/maven/custom-enforcer-rules/src/test/java/org/glassfish/jersey/test/maven/rule/PatternNotMatchedInFileRuleTest.java
index 1897a2b1bcd..681106a4f82 100644
--- a/test-framework/maven/custom-enforcer-rules/src/test/java/org/glassfish/jersey/test/maven/rule/PatternNotMatchedInFileRuleTest.java
+++ b/test-framework/maven/custom-enforcer-rules/src/test/java/org/glassfish/jersey/test/maven/rule/PatternNotMatchedInFileRuleTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,7 +20,8 @@
import java.net.URISyntaxException;
import org.apache.maven.enforcer.rule.api.EnforcerRuleException;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* Basic sanity test of {@link PatternNotMatchedInFileRule} enforcer rule.
@@ -29,9 +30,9 @@
*/
public class PatternNotMatchedInFileRuleTest {
- @Test(expected = EnforcerRuleException.class)
+ @Test
public void testMatchedPath() throws URISyntaxException, EnforcerRuleException {
- testFilePatternLineMatcher("/out_of_memory.dat");
+ assertThrows(EnforcerRuleException.class, () -> testFilePatternLineMatcher("/out_of_memory.dat"));
}
@Test
diff --git a/test-framework/memleak-test-common/pom.xml b/test-framework/memleak-test-common/pom.xml
index c51ef21c185..f63a583dd67 100644
--- a/test-framework/memleak-test-common/pom.xml
+++ b/test-framework/memleak-test-common/pom.xml
@@ -37,8 +37,13 @@
compile
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
+ compile
+
+
+ org.hamcrest
+ hamcrest
compile
diff --git a/test-framework/memleak-test-common/src/main/java/org/glassfish/jersey/test/memleak/common/AbstractMemoryLeakSimpleTest.java b/test-framework/memleak-test-common/src/main/java/org/glassfish/jersey/test/memleak/common/AbstractMemoryLeakSimpleTest.java
index 149405fee94..0388c39f7e2 100644
--- a/test-framework/memleak-test-common/src/main/java/org/glassfish/jersey/test/memleak/common/AbstractMemoryLeakSimpleTest.java
+++ b/test-framework/memleak-test-common/src/main/java/org/glassfish/jersey/test/memleak/common/AbstractMemoryLeakSimpleTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,7 +19,7 @@
import java.io.File;
import java.lang.management.ManagementFactory;
-import org.junit.Before;
+import org.junit.jupiter.api.BeforeEach;
/**
* An abstract test class that adds support for dump heap at the beginning of the test execution.
@@ -28,7 +28,7 @@
*/
public class AbstractMemoryLeakSimpleTest {
- @Before
+ @BeforeEach
public void dumpTheHeap() throws Exception {
final String heapDumpPath = System.getProperty(MemoryLeakUtils.JERSEY_CONFIG_TEST_MEMLEAK_HEAP_DUMP_PATH);
String heapDumpFile = "java_start_pid" + guessPid() + ".hprof";
diff --git a/test-framework/memleak-test-common/src/main/java/org/glassfish/jersey/test/memleak/common/AbstractMemoryLeakWebAppTest.java b/test-framework/memleak-test-common/src/main/java/org/glassfish/jersey/test/memleak/common/AbstractMemoryLeakWebAppTest.java
index faede8145ce..d1879bad4c6 100644
--- a/test-framework/memleak-test-common/src/main/java/org/glassfish/jersey/test/memleak/common/AbstractMemoryLeakWebAppTest.java
+++ b/test-framework/memleak-test-common/src/main/java/org/glassfish/jersey/test/memleak/common/AbstractMemoryLeakWebAppTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,7 +23,7 @@
import org.glassfish.jersey.test.DeploymentContext;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.After;
+import org.junit.jupiter.api.AfterEach;
/**
* Adds support for web application testing and memory leak detection in target JVM.
@@ -42,7 +42,7 @@ public class AbstractMemoryLeakWebAppTest extends JerseyTest {
*
* @throws IOException
*/
- @After
+ @AfterEach
public void verifyNoOutOfMemoryOccurred() throws IOException {
MemoryLeakUtils.verifyNoOutOfMemoryOccurred();
}
diff --git a/test-framework/memleak-test-common/src/main/java/org/glassfish/jersey/test/memleak/common/MemoryLeakSucceedingTimeout.java b/test-framework/memleak-test-common/src/main/java/org/glassfish/jersey/test/memleak/common/MemoryLeakSucceedingTimeout.java
index 200b10a0d15..3398707488a 100644
--- a/test-framework/memleak-test-common/src/main/java/org/glassfish/jersey/test/memleak/common/MemoryLeakSucceedingTimeout.java
+++ b/test-framework/memleak-test-common/src/main/java/org/glassfish/jersey/test/memleak/common/MemoryLeakSucceedingTimeout.java
@@ -1,60 +1,57 @@
-/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-package org.glassfish.jersey.test.memleak.common;
-
-import org.junit.internal.runners.statements.FailOnTimeout;
-import org.junit.rules.Timeout;
-import org.junit.runner.Description;
-import org.junit.runners.model.Statement;
-
-/**
- * @author Stepan Vavra
- */
-public class MemoryLeakSucceedingTimeout extends Timeout {
-
- private static final int DEFAULT_TIMEOUT_MILLIS = 300_000;
- private int millis;
-
- public MemoryLeakSucceedingTimeout() {
- this(DEFAULT_TIMEOUT_MILLIS);
- }
-
- public MemoryLeakSucceedingTimeout(final int defaultMillisTimeout) {
- super(defaultMillisTimeout);
-
- this.millis = Integer.getInteger(MemoryLeakUtils.JERSEY_CONFIG_TEST_MEMLEAK_TIMEOUT, defaultMillisTimeout);
- }
-
- @Override
- public Statement apply(final Statement base, final Description description) {
- return new FailOnTimeout(base, millis) {
- @Override
- public void evaluate() throws Throwable {
- try {
- super.evaluate();
- } catch (Throwable throwable) {
- if (throwable.getMessage().startsWith("test timed out after")) {
- MemoryLeakUtils.verifyNoOutOfMemoryOccurred();
- System.out.println("Test timed out after " + millis + " ms. Successfully ending.");
- } else {
- throw throwable;
- }
- }
- }
- };
- }
-}
+/*
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0, which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the
+ * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
+ * version 2 with the GNU Classpath Exception, which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ */
+
+package org.glassfish.jersey.test.memleak.common;
+
+import java.lang.reflect.Method;
+import java.time.Duration;
+
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.extension.ExtensionContext;
+import org.junit.jupiter.api.extension.InvocationInterceptor;
+import org.junit.jupiter.api.extension.ReflectiveInvocationContext;
+
+/**
+ * @author Stepan Vavra
+ */
+public class MemoryLeakSucceedingTimeout implements InvocationInterceptor {
+
+ private static final int DEFAULT_TIMEOUT_MILLIS = 300_000;
+ private int millis;
+
+ public MemoryLeakSucceedingTimeout() {
+ this(DEFAULT_TIMEOUT_MILLIS);
+ }
+
+ public MemoryLeakSucceedingTimeout(final int defaultMillisTimeout) {
+ this.millis = Integer.getInteger(MemoryLeakUtils.JERSEY_CONFIG_TEST_MEMLEAK_TIMEOUT, defaultMillisTimeout);
+ }
+
+ @Override
+ public void interceptTestMethod(Invocation invocation, ReflectiveInvocationContext invocationContext,
+ ExtensionContext extensionContext) throws Throwable {
+ try {
+ Assertions.assertTimeoutPreemptively(Duration.ofMillis(millis), invocation::proceed);
+ } catch (Throwable throwable) {
+ if (throwable.getMessage().startsWith("execution timed out after")) {
+ MemoryLeakUtils.verifyNoOutOfMemoryOccurred();
+ System.out.println("Test timed out after " + millis + " ms. Successfully ending.");
+ } else {
+ throw throwable;
+ }
+ }
+ }
+}
diff --git a/test-framework/pom.xml b/test-framework/pom.xml
index 638b3c1e61c..6cb762af907 100644
--- a/test-framework/pom.xml
+++ b/test-framework/pom.xml
@@ -42,8 +42,13 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
+ compile
+
+
+ org.hamcrest
+ hamcrest
compile
diff --git a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/AvailablePortGrizzlyTest.java b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/AvailablePortGrizzlyTest.java
index 264dc865c8a..af8163f45e4 100644
--- a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/AvailablePortGrizzlyTest.java
+++ b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/AvailablePortGrizzlyTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,8 +26,8 @@
import org.glassfish.jersey.test.TestProperties;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/BaseUriTest.java b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/BaseUriTest.java
index e08821d4508..4ba7aea6bae 100644
--- a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/BaseUriTest.java
+++ b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/BaseUriTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,8 +26,8 @@
import org.glassfish.jersey.test.TestProperties;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Grizzly test container base URI tests.
@@ -67,7 +67,7 @@ public void testGet() {
final WebTarget target = target("root");
final String s = target.request().get(String.class);
- Assert.assertEquals("GET", s);
+ Assertions.assertEquals("GET", s);
}
@Test
@@ -75,7 +75,7 @@ public void testGetSub() {
final WebTarget target = target("root/sub");
final String s = target.request().get(String.class);
- Assert.assertEquals("sub", s);
+ Assertions.assertEquals("sub", s);
}
}
diff --git a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/pckg/GrizzlyPackageTest.java b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/pckg/GrizzlyPackageTest.java
index cd2e4c7dda3..9c10b966380 100644
--- a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/pckg/GrizzlyPackageTest.java
+++ b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/pckg/GrizzlyPackageTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,8 +25,8 @@
import org.glassfish.jersey.test.grizzly.GrizzlyTestContainerFactory;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
diff --git a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/AvailablePortGrizzlyWebTest.java b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/AvailablePortGrizzlyWebTest.java
index c84db7ee82d..5bbf0df3f3f 100644
--- a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/AvailablePortGrizzlyWebTest.java
+++ b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/AvailablePortGrizzlyWebTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,7 +28,7 @@
import org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyRequestDispatchFilterTest.java b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyRequestDispatchFilterTest.java
index 603dccff482..51518c82657 100644
--- a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyRequestDispatchFilterTest.java
+++ b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyRequestDispatchFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -42,8 +42,8 @@
import org.glassfish.grizzly.servlet.HttpServletRequestImpl;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Reproducer for JERSEY-1893.
@@ -214,22 +214,22 @@ public void testGet() {
// check that the regular filter gets involved
s = target.path("direct").request().get(String.class);
- Assert.assertEquals("[DIRECT]", s);
+ Assertions.assertEquals("[DIRECT]", s);
// the regular filter should work for directly requested forward resource as well.
s = target.path("forward").request().get(String.class);
- Assert.assertEquals("[FORWARD]", s);
+ Assertions.assertEquals("[FORWARD]", s);
// forward action should enforce forward filter to be invoked
s = target.queryParam("action", "forward").request().get(String.class);
- Assert.assertEquals(">>FORWARD", s);
+ Assertions.assertEquals(">>FORWARD", s);
// direct call to the include resource
s = target.path("included").request().get(String.class);
- Assert.assertEquals("[INCLUDED]", s);
+ Assertions.assertEquals("[INCLUDED]", s);
// include call should involve both regular and include filter
s = target.path("included").queryParam("action", "include").request().get(String.class);
- Assert.assertEquals("[SOMETHING INCLUDED]", s);
+ Assertions.assertEquals("[SOMETHING INCLUDED]", s);
}
}
diff --git a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebFixedRequestSizeTest.java b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebFixedRequestSizeTest.java
index e786dce211b..05f3d2cd2f9 100644
--- a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebFixedRequestSizeTest.java
+++ b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebFixedRequestSizeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,9 +31,9 @@
import org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* @author Marek Potociar
diff --git a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebInjectionTest.java b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebInjectionTest.java
index 74f18a45dc3..351e0053691 100644
--- a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebInjectionTest.java
+++ b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -34,9 +34,9 @@
import org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Test injection support in the {@link org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory}.
diff --git a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebServletAndFilterTest.java b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebServletAndFilterTest.java
index 2bfca388dc3..eeccea3d0e5 100644
--- a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebServletAndFilterTest.java
+++ b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebServletAndFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -39,8 +39,8 @@
import org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Test {@link org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory} support for
@@ -130,10 +130,10 @@ public void testGet() {
WebTarget target = target("GrizzlyWebServletAndFilterTest");
String s = target.request().get(String.class);
- Assert.assertEquals("GET", s);
+ Assertions.assertEquals("GET", s);
- Assert.assertTrue(MyServlet.visited);
- Assert.assertTrue(MyFilter1.visited);
- Assert.assertTrue(MyFilter2.visited);
+ Assertions.assertTrue(MyServlet.visited);
+ Assertions.assertTrue(MyFilter1.visited);
+ Assertions.assertTrue(MyFilter2.visited);
}
}
diff --git a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebTest.java b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebTest.java
index 66199d8e681..f0824897bd7 100644
--- a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebTest.java
+++ b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/GrizzlyWebTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,8 +28,8 @@
import org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Basic GrizzlyWebTestContainerFactory unit tests.
@@ -69,7 +69,7 @@ public void testGet() {
WebTarget target = target("root");
String s = target.request().get(String.class);
- Assert.assertEquals("GET", s);
+ Assertions.assertEquals("GET", s);
}
@Test
@@ -77,6 +77,6 @@ public void testGetSub() {
WebTarget target = target("root/sub");
String s = target.request().get(String.class);
- Assert.assertEquals("sub", s);
+ Assertions.assertEquals("sub", s);
}
}
diff --git a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/context/GrizzlyWebContextPathTest.java b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/context/GrizzlyWebContextPathTest.java
index 3caf4a162e2..0d107c61753 100644
--- a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/context/GrizzlyWebContextPathTest.java
+++ b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/context/GrizzlyWebContextPathTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,8 +26,8 @@
import org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test support for context path in {@link org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory}.
diff --git a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/ssl/GrizzlyOneWaySslWebTest.java b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/ssl/GrizzlyOneWaySslWebTest.java
index cad2b1d4997..af0c2e31759 100644
--- a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/ssl/GrizzlyOneWaySslWebTest.java
+++ b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/ssl/GrizzlyOneWaySslWebTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,10 +20,8 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.grizzly.GrizzlyTestContainerFactory;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Assert;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.ExpectedException;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLParameters;
@@ -53,9 +51,6 @@ public class GrizzlyOneWaySslWebTest extends JerseyTest {
private SSLContext serverSslContext;
private SSLParameters serverSslParameters;
- @Rule
- public final ExpectedException exception = ExpectedException.none();
-
@Override
protected TestContainerFactory getTestContainerFactory() {
return new GrizzlyTestContainerFactory();
@@ -112,33 +107,33 @@ public void testGet() {
WebTarget target = client.target(getBaseUri()).path("secure");
String s = target.request().get(String.class);
- Assert.assertEquals("GET", s);
+ Assertions.assertEquals("GET", s);
}
@Test
public void testGetFailsWhenClientDoesNotTrustsServer() {
- SSLContext clientSslContext = SslUtils.createClientSslContext(false, false);
-
- Client client = ClientBuilder.newBuilder()
- .sslContext(clientSslContext)
- .build();
+ Assertions.assertThrows(ProcessingException.class, () -> {
+ SSLContext clientSslContext = SslUtils.createClientSslContext(false, false);
- WebTarget target = client.target(getBaseUri()).path("secure");
+ Client client = ClientBuilder.newBuilder()
+ .sslContext(clientSslContext)
+ .build();
- exception.expect(ProcessingException.class);
+ WebTarget target = client.target(getBaseUri()).path("secure");
- target.request().get(String.class);
+ target.request().get(String.class);
+ });
}
@Test
public void testGetFailsWhenClientExecutesRequestWithoutHavingSslConfigured() {
- Client client = ClientBuilder.newClient();
-
- WebTarget target = client.target(getBaseUri()).path("secure");
+ Assertions.assertThrows(ProcessingException.class, () -> {
+ Client client = ClientBuilder.newClient();
- exception.expect(ProcessingException.class);
+ WebTarget target = client.target(getBaseUri()).path("secure");
- target.request().get(String.class);
+ target.request().get(String.class);
+ });
}
}
diff --git a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/ssl/GrizzlyTwoWaySslWebTest.java b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/ssl/GrizzlyTwoWaySslWebTest.java
index a085095b334..2b0992e0f08 100644
--- a/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/ssl/GrizzlyTwoWaySslWebTest.java
+++ b/test-framework/providers/grizzly2/src/test/java/org/glassfish/jersey/test/grizzly/web/ssl/GrizzlyTwoWaySslWebTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,10 +20,8 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.grizzly.GrizzlyTestContainerFactory;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Assert;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.ExpectedException;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLParameters;
@@ -54,9 +52,6 @@ public class GrizzlyTwoWaySslWebTest extends JerseyTest {
private SSLContext serverSslContext;
private SSLParameters serverSslParameters;
- @Rule
- public final ExpectedException exception = ExpectedException.none();
-
@Override
protected TestContainerFactory getTestContainerFactory() {
return new GrizzlyTestContainerFactory();
@@ -113,48 +108,48 @@ public void testGet() {
WebTarget target = client.target(getBaseUri()).path("more-secure");
String s = target.request().get(String.class);
- Assert.assertEquals("GET", s);
+ Assertions.assertEquals("GET", s);
}
@Test
public void testGetFailsWhenClientDoesNotTrustsServer() {
- SSLContext clientSslContext = SslUtils.createClientSslContext(true, false);
+ Assertions.assertThrows(ProcessingException.class, () -> {
+ SSLContext clientSslContext = SslUtils.createClientSslContext(true, false);
- Client client = ClientBuilder.newBuilder()
- .sslContext(clientSslContext)
- .build();
+ Client client = ClientBuilder.newBuilder()
+ .sslContext(clientSslContext)
+ .build();
- WebTarget target = client.target(getBaseUri()).path("more-secure");
-
- exception.expect(ProcessingException.class);
+ WebTarget target = client.target(getBaseUri()).path("more-secure");
- target.request().get(String.class);
+ target.request().get(String.class);
+ });
}
@Test
public void testGetFailsWhenClientCanNotIdentifyItselfToTheServer() {
- SSLContext clientSslContext = SslUtils.createClientSslContext(false, true);
+ Assertions.assertThrows(ProcessingException.class, () -> {
+ SSLContext clientSslContext = SslUtils.createClientSslContext(false, true);
- Client client = ClientBuilder.newBuilder()
- .sslContext(clientSslContext)
- .build();
-
- WebTarget target = client.target(getBaseUri()).path("more-secure");
+ Client client = ClientBuilder.newBuilder()
+ .sslContext(clientSslContext)
+ .build();
- exception.expect(ProcessingException.class);
+ WebTarget target = client.target(getBaseUri()).path("more-secure");
- target.request().get(String.class);
+ target.request().get(String.class);
+ });
}
@Test
public void testGetFailsWhenClientExecutesRequestWithoutHavingSslConfigured() {
- Client client = ClientBuilder.newClient();
-
- WebTarget target = client.target(getBaseUri()).path("more-secure");
+ Assertions.assertThrows(ProcessingException.class, () -> {
+ Client client = ClientBuilder.newClient();
- exception.expect(ProcessingException.class);
+ WebTarget target = client.target(getBaseUri()).path("more-secure");
- target.request().get(String.class);
+ target.request().get(String.class);
+ });
}
}
diff --git a/test-framework/providers/inmemory/src/test/java/org/glassfish/jersey/test/inmemory/InMemoryContainerPackageTest.java b/test-framework/providers/inmemory/src/test/java/org/glassfish/jersey/test/inmemory/InMemoryContainerPackageTest.java
index bcbd3087898..247545b140d 100644
--- a/test-framework/providers/inmemory/src/test/java/org/glassfish/jersey/test/inmemory/InMemoryContainerPackageTest.java
+++ b/test-framework/providers/inmemory/src/test/java/org/glassfish/jersey/test/inmemory/InMemoryContainerPackageTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,10 +22,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Package scanning test for {@link org.glassfish.jersey.test.inmemory.InMemoryConnector}.
diff --git a/test-framework/providers/inmemory/src/test/java/org/glassfish/jersey/test/inmemory/InMemoryContainerTest.java b/test-framework/providers/inmemory/src/test/java/org/glassfish/jersey/test/inmemory/InMemoryContainerTest.java
index 59ecfada706..1072e8da674 100644
--- a/test-framework/providers/inmemory/src/test/java/org/glassfish/jersey/test/inmemory/InMemoryContainerTest.java
+++ b/test-framework/providers/inmemory/src/test/java/org/glassfish/jersey/test/inmemory/InMemoryContainerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,12 +32,12 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test class for {@link InMemoryConnector}.
diff --git a/test-framework/providers/inmemory/src/test/java/org/glassfish/jersey/test/inmemory/internal/FollowRedirectsTest.java b/test-framework/providers/inmemory/src/test/java/org/glassfish/jersey/test/inmemory/internal/FollowRedirectsTest.java
index 511cd420f96..5049dc48dc9 100644
--- a/test-framework/providers/inmemory/src/test/java/org/glassfish/jersey/test/inmemory/internal/FollowRedirectsTest.java
+++ b/test-framework/providers/inmemory/src/test/java/org/glassfish/jersey/test/inmemory/internal/FollowRedirectsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,8 +33,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* In-memory connector follow redirect tests.
diff --git a/test-framework/providers/jdk-http/src/test/java/org/glassfish/jersey/test/jdkhttp/AvailablePortJdkHttpServerTest.java b/test-framework/providers/jdk-http/src/test/java/org/glassfish/jersey/test/jdkhttp/AvailablePortJdkHttpServerTest.java
index 70fc98d1cb8..dea8e957267 100644
--- a/test-framework/providers/jdk-http/src/test/java/org/glassfish/jersey/test/jdkhttp/AvailablePortJdkHttpServerTest.java
+++ b/test-framework/providers/jdk-http/src/test/java/org/glassfish/jersey/test/jdkhttp/AvailablePortJdkHttpServerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,7 +25,7 @@
import org.glassfish.jersey.test.TestProperties;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/test-framework/providers/jdk-http/src/test/java/org/glassfish/jersey/test/jdkhttp/JdkHttpServerContainerTest.java b/test-framework/providers/jdk-http/src/test/java/org/glassfish/jersey/test/jdkhttp/JdkHttpServerContainerTest.java
index b79dde932a5..ed5e3beeacc 100644
--- a/test-framework/providers/jdk-http/src/test/java/org/glassfish/jersey/test/jdkhttp/JdkHttpServerContainerTest.java
+++ b/test-framework/providers/jdk-http/src/test/java/org/glassfish/jersey/test/jdkhttp/JdkHttpServerContainerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,8 +24,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test class for {@link JdkHttpHandlerContainer}.
@@ -70,7 +70,7 @@ public String getSomething() {
public void testJdkHttpServerContainerTarget() {
final Response response = target().path("one").request().get();
- assertEquals("Response status unexpected.", 200, response.getStatus());
- assertEquals("Response entity unexpected.", "get", response.readEntity(String.class));
+ assertEquals(200, response.getStatus(), "Response status unexpected.");
+ assertEquals("get", response.readEntity(String.class), "Response entity unexpected.");
}
}
diff --git a/test-framework/providers/jetty/src/test/java/org/glassfish/jersey/test/jetty/AvailablePortJettyTest.java b/test-framework/providers/jetty/src/test/java/org/glassfish/jersey/test/jetty/AvailablePortJettyTest.java
index 7ff587df099..ff13cd0c1d7 100644
--- a/test-framework/providers/jetty/src/test/java/org/glassfish/jersey/test/jetty/AvailablePortJettyTest.java
+++ b/test-framework/providers/jetty/src/test/java/org/glassfish/jersey/test/jetty/AvailablePortJettyTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,7 +25,7 @@
import org.glassfish.jersey.test.TestProperties;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/test-framework/providers/jetty/src/test/java/org/glassfish/jersey/test/jetty/JettyContainerTest.java b/test-framework/providers/jetty/src/test/java/org/glassfish/jersey/test/jetty/JettyContainerTest.java
index 4c1a9513d58..2e427ca2cce 100644
--- a/test-framework/providers/jetty/src/test/java/org/glassfish/jersey/test/jetty/JettyContainerTest.java
+++ b/test-framework/providers/jetty/src/test/java/org/glassfish/jersey/test/jetty/JettyContainerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -35,9 +35,9 @@
import org.jvnet.hk2.internal.ServiceLocatorImpl;
import org.eclipse.jetty.server.Server;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test class for {@link JettyHttpContainer}.
@@ -83,8 +83,8 @@ public String getSomething() {
public void testJettyContainerTarget() {
final Response response = target().path("one").request().get();
- assertEquals("Response status unexpected.", 200, response.getStatus());
- assertEquals("Response entity unexpected.", "get", response.readEntity(String.class));
+ assertEquals(200, response.getStatus(), "Response status unexpected.");
+ assertEquals("get", response.readEntity(String.class), "Response entity unexpected.");
}
/**
@@ -106,7 +106,7 @@ public void testParentServiceLocator() {
} else {
throw new RuntimeException("Invalid Hk2 InjectionManager");
}
- assertTrue("Application injection manager was expected to have defined parent locator",
- serviceLocator.getParent() == locator);
+ assertTrue(serviceLocator.getParent() == locator,
+ "Application injection manager was expected to have defined parent locator");
}
}
diff --git a/test-framework/providers/simple/src/test/java/org/glassfish/jersey/test/simple/AvailablePortSimpleTest.java b/test-framework/providers/simple/src/test/java/org/glassfish/jersey/test/simple/AvailablePortSimpleTest.java
index 09d2bb8a7d2..1e58dd4a801 100644
--- a/test-framework/providers/simple/src/test/java/org/glassfish/jersey/test/simple/AvailablePortSimpleTest.java
+++ b/test-framework/providers/simple/src/test/java/org/glassfish/jersey/test/simple/AvailablePortSimpleTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,7 +25,7 @@
import org.glassfish.jersey.test.TestProperties;
import org.glassfish.jersey.test.spi.TestContainerFactory;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/test-framework/providers/simple/src/test/java/org/glassfish/jersey/test/simple/SimpleContainerTest.java b/test-framework/providers/simple/src/test/java/org/glassfish/jersey/test/simple/SimpleContainerTest.java
index e396257e97f..4a32a60b4ae 100644
--- a/test-framework/providers/simple/src/test/java/org/glassfish/jersey/test/simple/SimpleContainerTest.java
+++ b/test-framework/providers/simple/src/test/java/org/glassfish/jersey/test/simple/SimpleContainerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,8 +24,8 @@
import org.glassfish.jersey.simple.SimpleContainer;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test class for {@link SimpleContainer}.
@@ -71,7 +71,7 @@ public String getSomething() {
public void testSimpleContainerTarget() {
final Response response = target().path("one").request().get();
- assertEquals("Response status unexpected.", 200, response.getStatus());
- assertEquals("Response entity unexpected.", "get", response.readEntity(String.class));
+ assertEquals(200, response.getStatus(), "Response status unexpected.");
+ assertEquals("get", response.readEntity(String.class), "Response entity unexpected.");
}
}
diff --git a/test-framework/util/pom.xml b/test-framework/util/pom.xml
index 2118bbd59b1..00f19b8dd15 100644
--- a/test-framework/util/pom.xml
+++ b/test-framework/util/pom.xml
@@ -43,5 +43,15 @@
jersey-client
${project.version}
+
+ junit
+ junit
+ ${junit4.version}
+
+
+ org.hamcrest
+ hamcrest
+ test
+
diff --git a/test-framework/util/src/main/java/org/glassfish/jersey/test/util/runner/ConcurrentParameterizedRunner.java b/test-framework/util/src/main/java/org/glassfish/jersey/test/util/runner/ConcurrentParameterizedRunner.java
index a62a586f622..38133806b22 100644
--- a/test-framework/util/src/main/java/org/glassfish/jersey/test/util/runner/ConcurrentParameterizedRunner.java
+++ b/test-framework/util/src/main/java/org/glassfish/jersey/test/util/runner/ConcurrentParameterizedRunner.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -44,8 +44,13 @@
* be merged into {@link ConcurrentRunner} in the future.
*
* @author Jakub Podlesak
+ *
+ * @deprecated in connection with transition to JUnit 5 usage of this class is obsolete. Alternatively can be used
+ * specific junit 5
+ * executions tools .
*/
@Beta
+@Deprecated
public class ConcurrentParameterizedRunner extends BlockJUnit4ClassRunner {
public final int FINISH_WAIT_CYCLE_MS = 2000;
diff --git a/test-framework/util/src/main/java/org/glassfish/jersey/test/util/runner/ConcurrentRunner.java b/test-framework/util/src/main/java/org/glassfish/jersey/test/util/runner/ConcurrentRunner.java
index f4f4d5fc21c..9540560d51b 100644
--- a/test-framework/util/src/main/java/org/glassfish/jersey/test/util/runner/ConcurrentRunner.java
+++ b/test-framework/util/src/main/java/org/glassfish/jersey/test/util/runner/ConcurrentRunner.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -55,9 +55,14 @@
* as if no special concurrent runner was involved.
*
* @author Jakub Podlesak
+ *
+ * @deprecated in connection with transition to JUnit 5 usage of this class is obsolete. Alternatively can be used
+ * specific junit 5
+ * executions tools .
*/
@Beta
+@Deprecated
public class ConcurrentRunner extends BlockJUnit4ClassRunner {
public final int FINISH_WAIT_CYCLE_MS = 2000;
diff --git a/test-framework/util/src/main/java/org/glassfish/jersey/test/util/runner/RunSeparately.java b/test-framework/util/src/main/java/org/glassfish/jersey/test/util/runner/RunSeparately.java
index 9dee0385659..49a474f8165 100644
--- a/test-framework/util/src/main/java/org/glassfish/jersey/test/util/runner/RunSeparately.java
+++ b/test-framework/util/src/main/java/org/glassfish/jersey/test/util/runner/RunSeparately.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,8 +27,13 @@
* by any of Jersey provided parallel test runner {@link ConcurrentRunner}.
*
* @author Jakub Podlesak
+ *
+ * @deprecated in connection with transition to JUnit 5 usage of this class is obsolete. Alternatively can be used
+ * specific junit 5
+ * executions tools .
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
+@Deprecated
public @interface RunSeparately {
}
diff --git a/test-framework/util/src/test/java/org/glassfish/jersey/test/util/client/LoopBackConnectorTest.java b/test-framework/util/src/test/java/org/glassfish/jersey/test/util/client/LoopBackConnectorTest.java
index 98b40ed89fc..040112c6a81 100644
--- a/test-framework/util/src/test/java/org/glassfish/jersey/test/util/client/LoopBackConnectorTest.java
+++ b/test-framework/util/src/test/java/org/glassfish/jersey/test/util/client/LoopBackConnectorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,12 +28,13 @@
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Basic {@link org.glassfish.jersey.test.util.client.LoopBackConnector} unit tests.
@@ -44,12 +45,12 @@ public class LoopBackConnectorTest {
private Client client;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
client = ClientBuilder.newClient(LoopBackConnectorProvider.getClientConfig());
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
if (client != null) {
client.close();
@@ -83,10 +84,12 @@ public void testEntityMediaType() throws Exception {
assertThat("Invalid content-type received", response.getMediaType(), is(new MediaType("foo", "bar")));
}
- @Test(expected = IllegalStateException.class)
+ @Test
public void testClose() throws Exception {
- client.close();
- client.target("baz").request().get();
+ Assertions.assertThrows(IllegalStateException.class, () -> {
+ client.close();
+ client.target("baz").request().get();
+ });
}
@Test
@@ -112,8 +115,9 @@ public void failed(final Throwable t) {
assertThat("Async request failed", throwable.get(), nullValue());
}
- @Test(expected = ProcessingException.class)
+ @Test
public void testInvalidEntity() throws Exception {
- client.target("baz").request().post(Entity.json(Arrays.asList("foo", "bar")));
+ Assertions.assertThrows(ProcessingException.class,
+ () -> client.target("baz").request().post(Entity.json(Arrays.asList("foo", "bar"))));
}
}
diff --git a/tests/e2e-client/pom.xml b/tests/e2e-client/pom.xml
index 4395a8cbbbc..9c17e491bdd 100644
--- a/tests/e2e-client/pom.xml
+++ b/tests/e2e-client/pom.xml
@@ -189,12 +189,6 @@
hamcrest
test
-
-
- xmlunit
- xmlunit
- test
-
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/AbortResponseClientTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/AbortResponseClientTest.java
index b3e1863f5fe..1be8789a30f 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/AbortResponseClientTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/AbortResponseClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -42,11 +42,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Tests aborting the request on the client side.
@@ -106,7 +106,7 @@ public void filter(ClientRequestContext requestContext,
assertEquals("123465", r.getEntityTag().getValue());
assertEquals("language", r.getLanguage().toString());
assertEquals(date.getTime(), r.getLastModified().getTime());
- // Assert.assertEquals("uri", r.getLink("link")); TODO: not supported yet
+ // Assertions.assertEquals("uri", r.getLink("link")); TODO: not supported yet
assertEquals("www.oracle.com", r.getLocation().toString());
assertEquals(MediaType.TEXT_HTML_TYPE, r.getMediaType());
assertEquals(99, r.getLength());
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/BasicClientTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/BasicClientTest.java
index 47267078dac..8d141a44a28 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/BasicClientTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/BasicClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -53,11 +53,11 @@
import org.glassfish.jersey.spi.ThreadPoolExecutorProvider;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotSame;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotSame;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
import static javax.ws.rs.client.Entity.text;
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/BufferingTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/BufferingTest.java
index 36887551342..6963634baa1 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/BufferingTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/BufferingTest.java
@@ -38,8 +38,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Tests chunk encoding and possibility of buffering the entity.
@@ -135,8 +135,8 @@ private void makeRequest(ClientConfig cc, String entity, String expected) {
WebTarget target = client.target(UriBuilder.fromUri(getBaseUri()).path("resource").build());
Response response = target.request().post(Entity.entity(entity, MediaType.TEXT_PLAIN_TYPE));
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals(expected, response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(expected, response.readEntity(String.class));
}
private void testWithChunkEncodingWithPropertyDefinition(ClientConfig cc) {
@@ -168,13 +168,13 @@ private void testWithChunkEncodingPerRequest(ClientConfig cc) {
String entity = getVeryLongString();
Response response = target.request().post(Entity.entity(entity, MediaType.TEXT_PLAIN_TYPE));
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("chunked", response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("chunked", response.readEntity(String.class));
response = target.property(ClientProperties.REQUEST_ENTITY_PROCESSING, RequestEntityProcessing.BUFFERED)
.request().post(Entity.entity(entity, MediaType.TEXT_PLAIN_TYPE));
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals(String.valueOf(entity.length()), response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(String.valueOf(entity.length()), response.readEntity(String.class));
}
public String getVeryLongString() {
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/CancelFutureClientTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/CancelFutureClientTest.java
index bd9990f9715..652e8344607 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/CancelFutureClientTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/CancelFutureClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,9 +31,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Tests the behaviour of the Async client when the {@link java.util.concurrent.Future} is cancelled.
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ChunkedInputStreamClosedPrematurelyTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ChunkedInputStreamClosedPrematurelyTest.java
index 5c74b8d1227..0e15ff07aaa 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ChunkedInputStreamClosedPrematurelyTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ChunkedInputStreamClosedPrematurelyTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -50,12 +50,12 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.google.common.util.concurrent.SettableFuture;
@@ -161,15 +161,14 @@ public void testUninterrupted() {
Response testResponse = target("test").queryParam(REQ_ID_PARAM_NAME, testReqId)
.request().post(Entity.entity("0123456789ABCDEF", MediaType.APPLICATION_OCTET_STREAM));
- assertEquals("Unexpected response status code.", 200, testResponse.getStatus());
- assertEquals("Unexpected response entity.", "16", testResponse.readEntity(String.class));
-
- assertTrue("POST request " + testReqId + " has not reached the server.",
- target("test").path("requestWasMade").queryParam(REQ_ID_PARAM_NAME, testReqId)
- .request().get(Boolean.class));
- assertFalse("POST request " + testReqId + " has caused an unexpected exception on the server.",
- target("test").path("requestCausedException").queryParam(REQ_ID_PARAM_NAME, testReqId)
- .request().get(Boolean.class));
+ assertEquals(200, testResponse.getStatus(), "Unexpected response status code.");
+ assertEquals("16", testResponse.readEntity(String.class), "Unexpected response entity.");
+
+ assertTrue(target("test").path("requestWasMade").queryParam(REQ_ID_PARAM_NAME, testReqId).request().get(Boolean.class),
+ "POST request " + testReqId + " has not reached the server.");
+ assertFalse(target("test").path("requestCausedException").queryParam(REQ_ID_PARAM_NAME, testReqId)
+ .request().get(Boolean.class), "POST request " + testReqId
+ + " has caused an unexpected exception on the server.");
}
/**
@@ -192,24 +191,23 @@ public void testInterruptedJerseyHttpUrlConnection() throws Exception {
connection.setChunkedStreamingMode(1024);
OutputStream entityStream = connection.getOutputStream();
ReaderWriter.writeTo(new ExceptionThrowingInputStream(BYTES_TO_SEND), entityStream);
- Assert.fail("Expected ProcessingException has not been thrown.");
+ Assertions.fail("Expected ProcessingException has not been thrown.");
} catch (IOException expected) {
// so far so good
} finally {
connection.disconnect();
}
// we should make it to the server, but there the exceptional behaviour should get noticed
- assertTrue("POST request " + testReqId + " has not reached the server.",
- target("test").path("requestWasMade").queryParam(REQ_ID_PARAM_NAME, testReqId).request().get(Boolean.class));
- assertTrue("POST request " + testReqId + " did not cause an expected exception on the server.",
- target("test").path("requestCausedException").queryParam(REQ_ID_PARAM_NAME, testReqId)
- .request().get(Boolean.class));
+ assertTrue(target("test").path("requestWasMade").queryParam(REQ_ID_PARAM_NAME, testReqId).request().get(Boolean.class),
+ "POST request " + testReqId + " has not reached the server.");
+ assertTrue(target("test").path("requestCausedException").queryParam(REQ_ID_PARAM_NAME, testReqId).request()
+ .get(Boolean.class), "POST request " + testReqId + " did not cause an expected exception on the server.");
}
/**
* This test reproduces the Jersey Client behavior reported in JERSEY-2705.
*/
- @Ignore
+ @Disabled
@Test
public void testInterruptedJerseyClient() {
final String testReqId = nextRequestId("testInterruptedJerseyClient");
@@ -217,16 +215,15 @@ public void testInterruptedJerseyClient() {
try {
target("test").queryParam(REQ_ID_PARAM_NAME, testReqId).request()
.post(Entity.entity(new ExceptionThrowingInputStream(BYTES_TO_SEND), MediaType.APPLICATION_OCTET_STREAM));
- Assert.fail("Expected ProcessingException has not been thrown.");
+ Assertions.fail("Expected ProcessingException has not been thrown.");
} catch (ProcessingException expected) {
// so far so good
}
// we should make it to the server, but there the exceptional behaviour should get noticed
- assertTrue("POST request " + testReqId + " has not reached the server.",
- target("test").path("requestWasMade").queryParam(REQ_ID_PARAM_NAME, testReqId).request().get(Boolean.class));
- assertTrue("POST request " + testReqId + " did not cause an expected exception on the server.",
- target("test").path("requestCausedException").queryParam(REQ_ID_PARAM_NAME, testReqId)
- .request().get(Boolean.class));
+ assertTrue(target("test").path("requestWasMade").queryParam(REQ_ID_PARAM_NAME, testReqId).request().get(Boolean.class),
+ "POST request " + testReqId + " has not reached the server.");
+ assertTrue(target("test").path("requestCausedException").queryParam(REQ_ID_PARAM_NAME, testReqId)
+ .request().get(Boolean.class), "POST request " + testReqId + " did not cause an expected exception on the server.");
}
private static String nextRequestId(String testMethodName) {
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientBufferingDisabledTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientBufferingDisabledTest.java
index f9c6adfa873..97676a3bc0b 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientBufferingDisabledTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientBufferingDisabledTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,12 +36,12 @@
import org.glassfish.jersey.client.HttpUrlConnectorProvider;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.glassfish.jersey.test.util.runner.ConcurrentRunner;
-
-import org.junit.Assert;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.runner.RunWith;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestInstance;
+import org.junit.jupiter.api.parallel.Execution;
+import org.junit.jupiter.api.parallel.ExecutionMode;
/**
* Tests possibility of disabling buffering of outgoing entity in
@@ -50,7 +50,7 @@
* @author Miroslav Fuksa
* @author Marek Potociar
*/
-@RunWith(ConcurrentRunner.class)
+@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class ClientBufferingDisabledTest extends JerseyTest {
private static final long LENGTH = 200000000L;
@@ -92,6 +92,7 @@ public long post(InputStream is) throws IOException {
* fix length streaming on {@code HttpURLConnection}.
*/
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testDisableBufferingWithFixedLengthViaProperty() {
postLatch = new CountDownLatch(1);
@@ -107,9 +108,9 @@ public void testDisableBufferingWithFixedLengthViaProperty() {
= client.target(getBaseUri()).path("resource")
.request().header(HttpHeaders.CONTENT_LENGTH, LENGTH).post(
Entity.entity(is, MediaType.APPLICATION_OCTET_STREAM));
- Assert.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(200, response.getStatus());
final long count = response.readEntity(long.class);
- Assert.assertEquals("Unexpected content length received.", LENGTH, count);
+ Assertions.assertEquals(LENGTH, count, "Unexpected content length received.");
}
/**
@@ -121,6 +122,7 @@ public void testDisableBufferingWithFixedLengthViaProperty() {
* fix length streaming on {@code HttpURLConnection}.
*/
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testDisableBufferingWithFixedLengthViaMethod() {
postLatch = new CountDownLatch(1);
@@ -136,9 +138,9 @@ public void testDisableBufferingWithFixedLengthViaMethod() {
= client.target(getBaseUri()).path("resource")
.request().header(HttpHeaders.CONTENT_LENGTH, LENGTH).post(
Entity.entity(is, MediaType.APPLICATION_OCTET_STREAM));
- Assert.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(200, response.getStatus());
final long count = response.readEntity(long.class);
- Assert.assertEquals("Unexpected content length received.", LENGTH, count);
+ Assertions.assertEquals(LENGTH, count, "Unexpected content length received.");
}
/**
@@ -152,7 +154,8 @@ public void testDisableBufferingWithFixedLengthViaMethod() {
*
*/
@Test
- @Ignore("fails unpredictable (see javadoc)")
+ @Execution(ExecutionMode.CONCURRENT)
+ @Disabled("fails unpredictable (see javadoc)")
public void testDisableBufferingWithChunkEncoding() {
postLatch = new CountDownLatch(1);
@@ -168,9 +171,9 @@ public void testDisableBufferingWithChunkEncoding() {
final Response response
= client.target(getBaseUri()).path("resource")
.request().post(Entity.entity(is, MediaType.APPLICATION_OCTET_STREAM));
- Assert.assertEquals(200, response.getStatus());
+ Assertions.assertEquals(200, response.getStatus());
final long count = response.readEntity(long.class);
- Assert.assertEquals("Unexpected content length received.", LENGTH, count);
+ Assertions.assertEquals(LENGTH, count, "Unexpected content length received.");
}
private InputStream getInputStream() {
@@ -183,7 +186,7 @@ public int read() throws IOException {
if (cnt > CHUNK * 10) {
try {
postLatch.await(3 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS);
- Assert.assertEquals("waiting for chunk on the server side time-outed", 0, postLatch.getCount());
+ Assertions.assertEquals(0, postLatch.getCount(), "waiting for chunk on the server side time-outed");
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientDestroyTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientDestroyTest.java
index afb4134d8d1..d9d5956d5fc 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientDestroyTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientDestroyTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -42,12 +42,12 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Assert that pre destroy method on providers is invoked.
@@ -59,7 +59,7 @@ public class ClientDestroyTest extends JerseyTest {
private static final Map destroyed = new HashMap<>();
@Override
- @Before
+ @BeforeEach
public void setUp() throws Exception {
destroyed.clear();
destroyed.put("filter", false);
@@ -228,22 +228,22 @@ public void testLifecycleListenerProvider() {
client.register(filterOnTarget); // instance registered into client
client.target(getBaseUri()).register(filterOnClient).request().get(String.class); // instance registration into target
- assertTrue("Filter registered on Client was expected to be already initialized.", filterOnClient.isInitialized());
- assertTrue("Filter registered on Target was expected to be already initialized.", filterOnTarget.isInitialized());
+ assertTrue(filterOnClient.isInitialized(), "Filter registered on Client was expected to be already initialized.");
+ assertTrue(filterOnTarget.isInitialized(), "Filter registered on Target was expected to be already initialized.");
client.target(getBaseUri()).register(FooListener.class).request().get(String.class); // class registration into target
- assertTrue("Class-registered filter was expected to be already initialized", FooListener.isInitialized());
+ assertTrue(FooListener.isInitialized(), "Class-registered filter was expected to be already initialized");
- assertFalse("Class-registered filter was expected to be still open.", FooListener.isClosed());
- assertFalse("Filter registered on Client was expected to be still open.", filterOnClient.isClosedByClientClose());
- assertFalse("Filter registered on Target was expected to be still open.", filterOnTarget.isClosedByClientClose());
+ assertFalse(FooListener.isClosed(), "Class-registered filter was expected to be still open.");
+ assertFalse(filterOnClient.isClosedByClientClose(), "Filter registered on Client was expected to be still open.");
+ assertFalse(filterOnTarget.isClosedByClientClose(), "Filter registered on Target was expected to be still open.");
client.close();
- assertTrue("Class-registered filter was expected to be closed.", FooListener.isClosed());
- assertTrue("Filter registered on Client was expected to be closed.", filterOnClient.isClosed());
- assertTrue("Filter registered on Target was expected to be closed.", filterOnTarget.isClosed());
+ assertTrue(FooListener.isClosed(), "Class-registered filter was expected to be closed.");
+ assertTrue(filterOnClient.isClosed(), "Filter registered on Client was expected to be closed.");
+ assertTrue(filterOnTarget.isClosed(), "Filter registered on Target was expected to be closed.");
}
private static boolean isCalledFromFinalizer() {
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientEntityAnnotationTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientEntityAnnotationTest.java
index 79288c73bf5..26c619121cf 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientEntityAnnotationTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientEntityAnnotationTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,8 +33,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Tests annotations of entity on the client side.
@@ -59,8 +59,8 @@ public void test() {
Entity post = Entity.entity("test", MediaType.WILDCARD_TYPE,
annotations);
final Response response = target().path("resource").request().post(post);
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("test", response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("test", response.readEntity(String.class));
}
@@ -69,8 +69,8 @@ public static class ClientFilter implements ClientRequestFilter {
@Override
public void filter(ClientRequestContext requestContext) throws IOException {
final Annotation[] entityAnnotations = requestContext.getEntityAnnotations();
- Assert.assertEquals(1, entityAnnotations.length);
- Assert.assertEquals(MyProvider.class.getAnnotation(Provider.class), entityAnnotations[0]);
+ Assertions.assertEquals(1, entityAnnotations.length);
+ Assertions.assertEquals(MyProvider.class.getAnnotation(Provider.class), entityAnnotations[0]);
}
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientExecutorCloseTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientExecutorCloseTest.java
index e6a09b6198a..70d583f307b 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientExecutorCloseTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientExecutorCloseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,11 +29,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Petr Janouch
@@ -46,7 +46,7 @@ public class ClientExecutorCloseTest extends JerseyTest {
* Tests that closing a client shuts down a corresponding client async executor service.
*/
@Test
- @Ignore("Jersey uses ForkJoin common pool by default, which shouldn't be closed when client closes.")
+ @Disabled("Jersey uses ForkJoin common pool by default, which shouldn't be closed when client closes.")
public void testCloseAsyncExecutor() throws InterruptedException {
assertFalse(clientExecutorThreadPresent());
target("resource").request().async().get();
@@ -56,14 +56,14 @@ public void testCloseAsyncExecutor() throws InterruptedException {
.build();
eventSource.register(System.out::println);
eventSource.open();
- assertTrue("Waiting for eventSource to open time-outed", cdl.await(5000, TimeUnit.MILLISECONDS));
- assertTrue("Client async executor thread not found.", clientExecutorThreadPresent());
- assertTrue("Scheduler thread not found.", schedulerFound);
+ assertTrue(cdl.await(5000, TimeUnit.MILLISECONDS), "Waiting for eventSource to open time-outed");
+ assertTrue(clientExecutorThreadPresent(), "Client async executor thread not found.");
+ assertTrue(schedulerFound, "Scheduler thread not found.");
client().close();
- assertFalse("Client async executor thread should have been already removed.",
- clientExecutorThreadPresent());
- assertFalse("Client background scheduler thread should have been already removed.",
- clientSchedulerThreadPresent());
+ assertFalse(clientExecutorThreadPresent(),
+ "Client async executor thread should have been already removed.");
+ assertFalse(clientSchedulerThreadPresent(),
+ "Client background scheduler thread should have been already removed.");
}
private boolean clientExecutorThreadPresent() {
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientExecutorTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientExecutorTest.java
index e1230cd785a..a20b28afbd7 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientExecutorTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientExecutorTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -43,8 +43,8 @@
import org.glassfish.jersey.spi.ExecutorServiceProvider;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
@@ -73,7 +73,7 @@ protected Application configure() {
private volatile StringBuilder threadName;
private volatile CountDownLatch latch;
- @Before
+ @BeforeEach
public void setUpThreadNameHolder() {
threadName = new StringBuilder();
latch = new CountDownLatch(1);
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientFilterTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientFilterTest.java
index 9918ad47763..f68f5415d64 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientFilterTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -38,10 +38,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* @author Pavel Bucek
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientPathTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientPathTest.java
index ee07bd7f0fe..85f74111e3c 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientPathTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientPathTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,8 +29,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test definition of path in client invocation.
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientPreInitTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientPreInitTest.java
index ad4d687b28f..b930cf24008 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientPreInitTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ClientPreInitTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -43,11 +43,11 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test pre initialization of the client.
@@ -110,7 +110,7 @@ public Integer readFrom(Class type, Type genericType, Annotation[] anno
}
}
- @Before
+ @BeforeEach
public void before() {
TestReader.initialized = false;
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/FollowRedirectHeadTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/FollowRedirectHeadTest.java
index 204ca15726b..fb85c61ed90 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/FollowRedirectHeadTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/FollowRedirectHeadTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,8 +32,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Tests that configuration of {@link ClientProperties#FOLLOW_REDIRECTS} works when HEAD method is used.
@@ -73,28 +73,28 @@ private WebTarget getTarget(boolean followRedirect) {
@Test
public void testDontFollowRedirectHead() throws Exception {
Response response = getTarget(false).request().head();
- Assert.assertEquals(303, response.getStatus());
- Assert.assertTrue(response.getLocation().toString().endsWith("/final"));
+ Assertions.assertEquals(303, response.getStatus());
+ Assertions.assertTrue(response.getLocation().toString().endsWith("/final"));
}
@Test
public void testDontFollowRedirectGet() throws Exception {
Response response = getTarget(false).request().get();
- Assert.assertEquals(303, response.getStatus());
- Assert.assertTrue(response.getLocation().toString().endsWith("/final"));
+ Assertions.assertEquals(303, response.getStatus());
+ Assertions.assertTrue(response.getLocation().toString().endsWith("/final"));
}
@Test
public void testFollowRedirectHead() throws Exception {
Response response = getTarget(true).request().head();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertFalse(response.hasEntity());
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertFalse(response.hasEntity());
}
@Test
public void testFollowRedirectGet() throws Exception {
Response response = getTarget(true).request().get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("final-entity", response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("final-entity", response.readEntity(String.class));
}
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/FollowRedirectsTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/FollowRedirectsTest.java
index 12610b12f67..07a6faf47b5 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/FollowRedirectsTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/FollowRedirectsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,8 +27,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Martin Matula
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/GenericResponseTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/GenericResponseTest.java
index 14dadcdb8fe..6dca5e73431 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/GenericResponseTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/GenericResponseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,8 +33,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Test {@link GenericType} with {@link Response}.
@@ -71,8 +71,8 @@ public void testPost() {
SyncInvoker sync = target.request();
Response response = sync.post(entity, generic);
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("entity", response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("entity", response.readEntity(String.class));
}
@Test
@@ -84,8 +84,8 @@ public void testAsyncPost() throws ExecutionException, InterruptedException {
final AsyncInvoker async = target.request().async();
Response response = async.post(entity, generic).get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("entity", response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("entity", response.readEntity(String.class));
}
@Test
@@ -95,8 +95,8 @@ public void testGet() {
WebTarget target = target("resource");
SyncInvoker sync = target.request();
Response response = sync.get(generic);
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("get", response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("get", response.readEntity(String.class));
}
@Test
@@ -106,8 +106,8 @@ public void testAsyncGet() throws ExecutionException, InterruptedException {
WebTarget target = target("resource");
final AsyncInvoker async = target.request().async();
Response response = async.get(generic).get();
- Assert.assertEquals(200, response.getStatus());
- Assert.assertEquals("get", response.readEntity(String.class));
+ Assertions.assertEquals(200, response.getStatus());
+ Assertions.assertEquals("get", response.readEntity(String.class));
}
@Test
@@ -117,6 +117,6 @@ public void testGetGenericString() {
WebTarget target = target("resource");
SyncInvoker sync = target.request();
final String entity = sync.get(generic);
- Assert.assertEquals("get", entity);
+ Assertions.assertEquals("get", entity);
}
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpAuthorizationTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpAuthorizationTest.java
index 57419880afe..753ecd9eb76 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpAuthorizationTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpAuthorizationTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -43,18 +43,18 @@
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.glassfish.jersey.test.util.runner.ConcurrentRunner;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.junit.runner.RunWith;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestInstance;
+import org.junit.jupiter.api.parallel.Execution;
+import org.junit.jupiter.api.parallel.ExecutionMode;
/**
* Tests {@link org.glassfish.jersey.client.authentication.HttpAuthenticationFeature}.
*
* @author Miroslav Fuksa
*/
-@RunWith(ConcurrentRunner.class)
+@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class HttpAuthorizationTest extends JerseyTest {
@NameBinding
@@ -253,6 +253,7 @@ public String alternating() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testBasicPreemptive() {
Response response = target().path("resource").path("basic")
.register(HttpAuthenticationFeature.basicBuilder().credentials("homer", "Homer").build())
@@ -261,6 +262,7 @@ public void testBasicPreemptive() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testBasicNonPreemptive() {
Response response = target().path("resource").path("basic")
.register(HttpAuthenticationFeature.basicBuilder().nonPreemptive().credentials("homer", "Homer").build())
@@ -269,6 +271,7 @@ public void testBasicNonPreemptive() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testBasicNonPreemptiveWithEmptyPassword() {
final WebTarget target = target().path("resource")
.register(HttpAuthenticationFeature.basicBuilder().nonPreemptive().build());
@@ -279,7 +282,7 @@ public void testBasicNonPreemptiveWithEmptyPassword() {
response = target().path("resource").path("basic")
.register(HttpAuthenticationFeature.basicBuilder().nonPreemptive().build())
.request().get();
- Assert.fail("should throw an exception as credentials are missing");
+ Assertions.fail("should throw an exception as credentials are missing");
} catch (Exception e) {
// ok
}
@@ -292,6 +295,7 @@ public void testBasicNonPreemptiveWithEmptyPassword() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testUniversalBasic() {
Response response = target().path("resource").path("basic")
.register(HttpAuthenticationFeature.universalBuilder().credentials("homer", "Homer").build())
@@ -304,6 +308,7 @@ public void testUniversalBasic() {
* insensitve.
*/
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testUniversalBasicCaseSensitivity() {
Response response;
@@ -330,6 +335,7 @@ public void testUniversalBasicCaseSensitivity() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testUniversalBasicWrongPassword() {
Response response = target().path("resource").path("basic")
.register(HttpAuthenticationFeature.universalBuilder().credentials("homer", "FOO").build())
@@ -338,6 +344,7 @@ public void testUniversalBasicWrongPassword() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testBasicWithDifferentCredentials() {
final WebTarget target = target().path("resource").path("basic")
.register(HttpAuthenticationFeature.basicBuilder().credentials("marge", "Marge").build());
@@ -346,6 +353,7 @@ public void testBasicWithDifferentCredentials() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testBasicUniversalWithDifferentCredentials() {
final WebTarget target = target().path("resource").path("basic")
.register(HttpAuthenticationFeature.universalBuilder().credentials("marge", "Marge").build());
@@ -378,6 +386,7 @@ public void _testBasicWithDifferentCredentials(WebTarget target) {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testDigest() {
Response response = target().path("resource").path("digest")
.register(HttpAuthenticationFeature.digest("homer", "Homer"))
@@ -386,6 +395,7 @@ public void testDigest() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testDigestWithPasswords() {
final WebTarget target = target().path("resource").path("digest")
.register(HttpAuthenticationFeature.digest("homer", "Homer"));
@@ -393,6 +403,7 @@ public void testDigestWithPasswords() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testUniversalDigestWithPasswords() {
final WebTarget target = target().path("resource").path("digest")
.register(HttpAuthenticationFeature.universalBuilder().credentials("homer", "Homer").build());
@@ -420,6 +431,7 @@ public void _testDigestWithPasswords(WebTarget target) {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testDigestWithEmptyDefaultPassword() {
final WebTarget target = target().path("resource")
.register(HttpAuthenticationFeature.digest());
@@ -427,6 +439,7 @@ public void testDigestWithEmptyDefaultPassword() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testDigestUniversalWithEmptyDefaultPassword() {
final WebTarget target = target().path("resource")
.register(HttpAuthenticationFeature.universalBuilder().build());
@@ -452,7 +465,7 @@ public void _testDigestWithEmptyDefaultPassword(WebTarget target) {
.property(HttpAuthenticationFeature.HTTP_AUTHENTICATION_BASIC_USERNAME, "bart")
.property(HttpAuthenticationFeature.HTTP_AUTHENTICATION_BASIC_PASSWORD, "Bart")
.get();
- Assert.fail("should throw an exception as no credentials were supplied for digest auth");
+ Assertions.fail("should throw an exception as no credentials were supplied for digest auth");
} catch (Exception e) {
// ok
}
@@ -464,15 +477,16 @@ public void _testDigestWithEmptyDefaultPassword(WebTarget target) {
}
private void check(Response response, int status, String entity) {
- Assert.assertEquals(status, response.getStatus());
- Assert.assertEquals(entity, response.readEntity(String.class));
+ Assertions.assertEquals(status, response.getStatus());
+ Assertions.assertEquals(entity, response.readEntity(String.class));
}
private void check(Response response, int status) {
- Assert.assertEquals(status, response.getStatus());
+ Assertions.assertEquals(status, response.getStatus());
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testDigestUniversalSimple() {
Response response = target().path("resource").path("digest")
.register(HttpAuthenticationFeature.universalBuilder().credentials("homer", "Homer").build())
@@ -481,6 +495,7 @@ public void testDigestUniversalSimple() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testDigestUniversalSimple2() {
Response response = target().path("resource").path("digest")
.register(HttpAuthenticationFeature.universalBuilder().credentialsForDigest("homer", "Homer").build())
@@ -489,6 +504,7 @@ public void testDigestUniversalSimple2() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testDigestUniversalSimple3() {
Response response = target().path("resource").path("digest")
.register(HttpAuthenticationFeature.universalBuilder()
@@ -500,6 +516,7 @@ public void testDigestUniversalSimple3() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testDigestUniversalSimple4() {
Response response = target().path("resource").path("digest")
.register(HttpAuthenticationFeature.universal("homer", "Homer"))
@@ -508,6 +525,7 @@ public void testDigestUniversalSimple4() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testUniversal() {
final WebTarget target = target().path("resource")
.register(HttpAuthenticationFeature.universal("homer", "Homer"));
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpDigestAuthFilterTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpDigestAuthFilterTest.java
index 8e6bfd905c3..f959cf68fa5 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpDigestAuthFilterTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpDigestAuthFilterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -38,8 +38,8 @@
import org.glassfish.jersey.test.TestProperties;
import org.glassfish.jersey.uri.UriComponent;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
*
@@ -117,7 +117,7 @@ private Response verify() {
ha2);
// this generates INTERNAL_SERVER_ERROR if not matching
- Assert.assertEquals(ncExpected, Integer.parseInt(getDigestAuthHeaderValue(authHeader, "nc=")));
+ Assertions.assertEquals(ncExpected, Integer.parseInt(getDigestAuthHeaderValue(authHeader, "nc=")));
if (response.equals(getDigestAuthHeaderValue(authHeader, "response="))) {
return Response.ok().build();
@@ -238,7 +238,7 @@ private void testRequest(final String path, final boolean addParams) {
ncExpected = 1;
final Response r1 = resource.request().get();
- Assert.assertEquals(Response.Status.fromStatusCode(r1.getStatus()), Response.Status.OK);
+ Assertions.assertEquals(Response.Status.fromStatusCode(r1.getStatus()), Response.Status.OK);
}
@@ -250,15 +250,15 @@ public void testPreemptive() {
ncExpected = 1;
final Response r1 = resource.request().get();
- Assert.assertEquals(Response.Status.fromStatusCode(r1.getStatus()), Response.Status.OK);
+ Assertions.assertEquals(Response.Status.fromStatusCode(r1.getStatus()), Response.Status.OK);
ncExpected = 2;
final Response r2 = resource.request().get();
- Assert.assertEquals(Response.Status.fromStatusCode(r2.getStatus()), Response.Status.OK);
+ Assertions.assertEquals(Response.Status.fromStatusCode(r2.getStatus()), Response.Status.OK);
ncExpected = 3;
final Response r3 = resource.request().get();
- Assert.assertEquals(Response.Status.fromStatusCode(r3.getStatus()), Response.Status.OK);
+ Assertions.assertEquals(Response.Status.fromStatusCode(r3.getStatus()), Response.Status.OK);
}
@@ -270,6 +270,6 @@ public void testAuthentication() {
ncExpected = 1;
final Response r1 = resource.request().get();
- Assert.assertEquals(Response.Status.fromStatusCode(r1.getStatus()), Response.Status.UNAUTHORIZED);
+ Assertions.assertEquals(Response.Status.fromStatusCode(r1.getStatus()), Response.Status.UNAUTHORIZED);
}
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpHeadersInjectionTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpHeadersInjectionTest.java
index b2ff0c73d96..65b86f0e556 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpHeadersInjectionTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpHeadersInjectionTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -18,7 +18,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpMethodEntityTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpMethodEntityTest.java
index 3a81437d0cd..ed51569ac39 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpMethodEntityTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/HttpMethodEntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -35,10 +35,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Tests HTTP methods and entity presence.
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/IgnoreExceptionResponseTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/IgnoreExceptionResponseTest.java
index 88125d8a212..f331878ad65 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/IgnoreExceptionResponseTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/IgnoreExceptionResponseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,16 +27,16 @@
import java.net.URI;
import java.util.concurrent.atomic.AtomicReference;
-import static junit.framework.TestCase.assertEquals;
-import static junit.framework.TestCase.assertFalse;
-import static junit.framework.TestCase.assertNull;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNull;
import org.glassfish.jersey.CommonProperties;
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
/**
* Tests ignoring of client responses in exceptions.
@@ -61,7 +61,7 @@ public IgnoreExceptionResponseTest() {
/**
* Sets ignore exception response as system property after enabling the provider.
*/
- @BeforeClass
+ @BeforeAll
public static void startUp() {
lastAllowSystemProperties = System.setProperty(CommonProperties.ALLOW_SYSTEM_PROPERTIES_PROVIDER, "true");
lastIgnoreExceptionResponse = System.setProperty(ClientProperties.IGNORE_EXCEPTION_RESPONSE, "true");
@@ -70,7 +70,7 @@ public static void startUp() {
/**
* Restores state after completion.
*/
- @AfterClass
+ @AfterAll
public static void cleanUp() {
if (lastIgnoreExceptionResponse != null) {
System.setProperty(ClientProperties.IGNORE_EXCEPTION_RESPONSE, lastIgnoreExceptionResponse);
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/InjectedClientBodyWorker.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/InjectedClientBodyWorker.java
index d747cd8e9ea..1414887acdc 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/InjectedClientBodyWorker.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/InjectedClientBodyWorker.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -43,7 +43,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/InjectionManagerProviderTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/InjectionManagerProviderTest.java
index 6ee393e82c8..9aa31da25ac 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/InjectionManagerProviderTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/InjectionManagerProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -46,8 +46,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests {@link InjectionManagerClientProvider}.
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/InvocationBuilderRxTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/InvocationBuilderRxTest.java
index 6c43026289d..a10359a8c70 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/InvocationBuilderRxTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/InvocationBuilderRxTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,9 +20,9 @@
import org.glassfish.jersey.client.JerseyInvocation;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
@@ -46,7 +46,7 @@ public class InvocationBuilderRxTest extends JerseyTest {
private static final String ECHO = "ECHO";
private CountDownLatch latch;
- @Before
+ @BeforeEach
public void beforeEach() {
latch = new CountDownLatch(1);
}
@@ -95,8 +95,8 @@ public void testMethodCallback() throws InterruptedException, ExecutionException
.method("GET", new TestCallback(latch));
latch.await(AWAIT_TIME, TimeUnit.MILLISECONDS);
- Assert.assertEquals(ECHO, future.get());
- Assert.assertEquals(0, latch.getCount());
+ Assertions.assertEquals(ECHO, future.get());
+ Assertions.assertEquals(0, latch.getCount());
}
@Test
@@ -105,8 +105,8 @@ public void testMethodEntityCallback() throws InterruptedException, ExecutionExc
.method("POST", Entity.entity(ECHO, MediaType.TEXT_PLAIN), new TestCallback(latch));
latch.await(AWAIT_TIME, TimeUnit.MILLISECONDS);
- Assert.assertEquals(ECHO + ECHO, future.get());
- Assert.assertEquals(0, latch.getCount());
+ Assertions.assertEquals(ECHO + ECHO, future.get());
+ Assertions.assertEquals(0, latch.getCount());
}
@Test
@@ -115,7 +115,7 @@ public void testMethodEntityResponseType() throws InterruptedException, Executio
.method("POST", Entity.entity(ECHO, MediaType.TEXT_PLAIN), Response.class);
try (Response response = stage.toCompletableFuture().get()) {
- Assert.assertEquals(ECHO + ECHO, response.readEntity(String.class));
+ Assertions.assertEquals(ECHO + ECHO, response.readEntity(String.class));
}
}
@@ -125,7 +125,7 @@ public void testMethodEntityGenericType() throws InterruptedException, Execution
.method("POST", Entity.entity(ECHO, MediaType.TEXT_PLAIN), new GenericType(){});
try (Response response = stage.toCompletableFuture().get()) {
- Assert.assertEquals(ECHO + ECHO, response.readEntity(String.class));
+ Assertions.assertEquals(ECHO + ECHO, response.readEntity(String.class));
}
}
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/JaxRsTimeoutTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/JaxRsTimeoutTest.java
index ebff0ea6081..987de6a11dd 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/JaxRsTimeoutTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/JaxRsTimeoutTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -31,9 +31,9 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Pavel Bucek
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/NonSuccessfulResponseTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/NonSuccessfulResponseTest.java
index 9075628bebd..a01a1798a8c 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/NonSuccessfulResponseTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/NonSuccessfulResponseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,8 +32,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Test no successful (3XX, 4XX, 5XX) responses with no empty body.
@@ -106,8 +106,8 @@ private void generalTestGet(int status) {
WebTarget target = target("resource").path(Integer.toString(status));
SyncInvoker sync = target.request();
Response response = sync.get(Response.class);
- Assert.assertEquals(status, response.getStatus());
- Assert.assertEquals("get", response.readEntity(String.class));
+ Assertions.assertEquals(status, response.getStatus());
+ Assertions.assertEquals("get", response.readEntity(String.class));
}
private void generalTestPost(int status) {
@@ -115,8 +115,8 @@ private void generalTestPost(int status) {
WebTarget target = target("resource").path(Integer.toString(status));
SyncInvoker sync = target.request();
Response response = sync.post(entity, Response.class);
- Assert.assertEquals(status, response.getStatus());
- Assert.assertEquals("entity", response.readEntity(String.class));
+ Assertions.assertEquals(status, response.getStatus());
+ Assertions.assertEquals("entity", response.readEntity(String.class));
}
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/RequestScopedReadEntityTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/RequestScopedReadEntityTest.java
index 9f5c926cfcf..f8bd405fcff 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/RequestScopedReadEntityTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/RequestScopedReadEntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -40,8 +40,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* TODO: javadoc.
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ResponseCloseTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ResponseCloseTest.java
index 69bdeda208f..44412ab8e33 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ResponseCloseTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ResponseCloseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,8 +25,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test for Response.close() method.
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ResponseReadAndBufferEntityTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ResponseReadAndBufferEntityTest.java
index b90b1296af9..e9aa6d0c149 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ResponseReadAndBufferEntityTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ResponseReadAndBufferEntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -40,12 +40,12 @@
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Buffered response entity tests.
@@ -267,13 +267,13 @@ public void filter(final ClientRequestContext requestContext, final ClientRespon
// Read entity should not fail - we silently consume the underlying IOException from closed input stream.
final String entity = response.readEntity(String.class, null);
assertThat("Unexpected response.", entity.toString(), equalTo(Resource.ENTITY));
- assertEquals("Close not invoked on underlying input stream.", 1, entityStream.getCloseCount());
+ assertEquals(1, entityStream.getCloseCount(), "Close not invoked on underlying input stream.");
// Close should not fail and should be idempotent
response.close();
response.close();
response.close();
- assertEquals("Close invoked too many times on underlying input stream.", 1, entityStream.getCloseCount());
+ assertEquals(1, entityStream.getCloseCount(), "Close invoked too many times on underlying input stream.");
try {
// UC-1.1 : Try to read an unbuffered entity from a closed context
@@ -307,7 +307,7 @@ public void filter(final ClientRequestContext requestContext, final ClientRespon
entityStream.setCorruptClose(true);
response.bufferEntity();
- assertEquals("Close not invoked on underlying input stream.", 1, entityStream.getCloseCount());
+ assertEquals(1, entityStream.getCloseCount(), "Close not invoked on underlying input stream.");
String entity;
entity = response.readEntity(String.class, null);
@@ -319,7 +319,7 @@ public void filter(final ClientRequestContext requestContext, final ClientRespon
response.close();
response.close();
response.close();
- assertEquals("Close invoked too many times on underlying input stream.", 1, entityStream.getCloseCount());
+ assertEquals(1, entityStream.getCloseCount(), "Close invoked too many times on underlying input stream.");
try {
// UC-2.1 : Try to read a buffered entity from a closed context
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ShutdownHookMemoryLeakTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ShutdownHookMemoryLeakTest.java
index 14220dc1d8e..85a63bdd988 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ShutdownHookMemoryLeakTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/ShutdownHookMemoryLeakTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -17,6 +17,7 @@
package org.glassfish.jersey.tests.e2e.client;
import java.lang.reflect.Field;
+import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
@@ -38,15 +39,15 @@
import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.glassfish.jersey.test.spi.TestHelper;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.DynamicContainer;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestFactory;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* Ensure Jersey connectors do not leak resources
@@ -57,27 +58,28 @@
*
* @author Jakub Podlesak
*/
-@RunWith(Parameterized.class)
-public class ShutdownHookMemoryLeakTest extends JerseyTest {
+public class ShutdownHookMemoryLeakTest {
private static final String PATH = "test";
private static final int ITERATIONS = 1000;
- private final ConnectorProvider connectorProvider;
-
- public ShutdownHookMemoryLeakTest(final ConnectorProvider cp) {
- connectorProvider = cp;
+ public static List connectionProviders() {
+ return Arrays.asList(
+ new GrizzlyConnectorProvider(),
+ new JettyConnectorProvider(),
+ new ApacheConnectorProvider(),
+ new HttpUrlConnectorProvider()
+ );
}
-
- @Parameterized.Parameters
- public static List connectionProviders() {
- return Arrays.asList(new ConnectorProvider[][] {
- {new GrizzlyConnectorProvider()},
- {new JettyConnectorProvider()},
- {new ApacheConnectorProvider()},
- {new HttpUrlConnectorProvider()}
+ @TestFactory
+ public Collection generateTests() {
+ Collection tests = new ArrayList<>();
+ connectionProviders().forEach(connectionProvider -> {
+ ShutdownHookMemoryLeakTemplateTest test = new ShutdownHookMemoryLeakTemplateTest(connectionProvider) {};
+ tests.add(TestHelper.toTestContainer(test, connectionProvider.getClass().getSimpleName()));
});
+ return tests;
}
@Path(PATH)
@@ -89,63 +91,72 @@ public String get() {
}
}
- @Override
- protected Application configure() {
- return new ResourceConfig(TestResource.class);
- }
+ public abstract static class ShutdownHookMemoryLeakTemplateTest extends JerseyTest {
+ private final ConnectorProvider connectorProvider;
- @Override
- protected void configureClient(ClientConfig config) {
- config.connectorProvider(connectorProvider);
- }
-
- @Test
- @Ignore("Unstable, ignored for now")
- public void testClientDoesNotLeakResources() throws Exception {
-
- final AtomicInteger listenersInitialized = new AtomicInteger(0);
- final AtomicInteger listenersClosed = new AtomicInteger(0);
-
- for (int i = 0; i < ITERATIONS; i++) {
- final Response response = target(PATH).property("another", "runtime").register(new ClientLifecycleListener() {
- @Override
- public void onInit() {
- listenersInitialized.incrementAndGet();
- }
-
- @Override
- public void onClose() {
- listenersClosed.incrementAndGet();
- }
- }).register(LoggingFeature.class).request().get();
- assertEquals("GET", response.readEntity(String.class));
+ public ShutdownHookMemoryLeakTemplateTest(final ConnectorProvider cp) {
+ connectorProvider = cp;
}
- Collection shutdownHooks = getShutdownHooks(client());
-
- assertThat(String.format(
- "%s: number of initialized listeners should be the same as number of total request count",
- connectorProvider.getClass()),
- listenersInitialized.get(), is(ITERATIONS));
-
-// the following check is fragile, as GC could break it easily
-// assertThat(String.format(
-// "%s: number of closed listeners should correspond to the number of missing hooks",
-// connectorProvider.getClass()),
-// listenersClosed.get(), is(ITERATIONS - shutdownHooks.size()));
+ @Override
+ protected Application configure() {
+ return new ResourceConfig(TestResource.class);
+ }
- client().close(); // clean up the rest
+ @Override
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(connectorProvider);
+ }
- assertThat(String.format(
- "%s: number of closed listeners should be the same as the number of total requests made",
- connectorProvider.getClass()),
- listenersClosed.get(), is(ITERATIONS));
- }
+ @Test
+ @Disabled("Unstable, ignored for now")
+ public void testClientDoesNotLeakResources() throws Exception {
+
+ final AtomicInteger listenersInitialized = new AtomicInteger(0);
+ final AtomicInteger listenersClosed = new AtomicInteger(0);
+
+ for (int i = 0; i < ITERATIONS; i++) {
+ final Response response = target(PATH).property("another", "runtime").register(new ClientLifecycleListener() {
+ @Override
+ public void onInit() {
+ listenersInitialized.incrementAndGet();
+ }
+
+ @Override
+ public void onClose() {
+ listenersClosed.incrementAndGet();
+ }
+ }).register(LoggingFeature.class).request().get();
+ assertEquals("GET", response.readEntity(String.class));
+ }
+
+ Collection shutdownHooks = getShutdownHooks(client());
+
+ assertThat(String.format(
+ "%s: number of initialized listeners should be the same as number of total request count",
+ connectorProvider.getClass()),
+ listenersInitialized.get(), is(ITERATIONS));
+
+// the following check is fragile, as GC could break it easily
+// assertThat(String.format(
+// "%s: number of closed listeners should correspond to the number of missing hooks",
+// connectorProvider.getClass()),
+// listenersClosed.get(), is(ITERATIONS - shutdownHooks.size()));
+
+ client().close(); // clean up the rest
+
+ assertThat(String.format(
+ "%s: number of closed listeners should be the same as the number of total requests made",
+ connectorProvider.getClass()),
+ listenersClosed.get(), is(ITERATIONS));
+ }
- private Collection getShutdownHooks(javax.ws.rs.client.Client client) throws NoSuchFieldException, IllegalAccessException {
- JerseyClient jerseyClient = (JerseyClient) client;
- Field shutdownHooksField = JerseyClient.class.getDeclaredField("shutdownHooks");
- shutdownHooksField.setAccessible(true);
- return (Collection) shutdownHooksField.get(jerseyClient);
+ private Collection getShutdownHooks(javax.ws.rs.client.Client client)
+ throws NoSuchFieldException, IllegalAccessException {
+ JerseyClient jerseyClient = (JerseyClient) client;
+ Field shutdownHooksField = JerseyClient.class.getDeclaredField("shutdownHooks");
+ shutdownHooksField.setAccessible(true);
+ return (Collection) shutdownHooksField.get(jerseyClient);
+ }
}
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/TimeoutTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/TimeoutTest.java
index 507321ff700..559258d7303 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/TimeoutTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/TimeoutTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,10 +29,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Martin Matula
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/HttpPatchTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/HttpPatchTest.java
index e9429ac14dd..3bca471561c 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/HttpPatchTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/HttpPatchTest.java
@@ -16,7 +16,9 @@
package org.glassfish.jersey.tests.e2e.client.connector;
+import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collection;
import java.util.List;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.Future;
@@ -42,121 +44,133 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
+import org.glassfish.jersey.test.spi.TestHelper;
+import org.junit.jupiter.api.DynamicContainer;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestFactory;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Pavel Bucek
*/
-@RunWith(Parameterized.class)
-public class HttpPatchTest extends JerseyTest {
+public class HttpPatchTest {
private static final Logger LOGGER = Logger.getLogger(RequestHeaderModificationsTest.class.getName());
- @Parameterized.Parameters(name = "{index}: {0}")
- public static List testData() {
- return Arrays.asList(new Object[][]{
+ public static List testData() {
+ return Arrays.asList(
// {HttpUrlConnectorProvider.class}, // cannot process PATCH without additional configuration
- {GrizzlyConnectorProvider.class},
- {JettyConnectorProvider.class}, // unstable.
- {ApacheConnectorProvider.class},
- {Apache5ConnectorProvider.class},
- {NettyConnectorProvider.class},
- {JdkConnectorProvider.class},
- });
+ new GrizzlyConnectorProvider(),
+ new JettyConnectorProvider(), // unstable.
+ new ApacheConnectorProvider(),
+ new Apache5ConnectorProvider(),
+ new NettyConnectorProvider(),
+ new JdkConnectorProvider()
+ );
}
- private final ConnectorProvider connectorProvider;
-
- public HttpPatchTest(Class extends ConnectorProvider> connectorProviderClass)
- throws IllegalAccessException, InstantiationException {
- this.connectorProvider = connectorProviderClass.newInstance();
+ @TestFactory
+ public Collection generateTests() {
+ Collection tests = new ArrayList<>();
+ for (ConnectorProvider provider : testData()) {
+ HttpPatchTemplateTest test = new HttpPatchTemplateTest(provider) {};
+ DynamicContainer container = TestHelper.toTestContainer(test,
+ String.format("httpPatchTest (%s)", provider.getClass().getSimpleName()));
+ tests.add(container);
+ }
+ return tests;
}
- @Override
- protected Application configure() {
- set(TestProperties.RECORD_LOG_LEVEL, Level.WARNING.intValue());
- enable(TestProperties.LOG_TRAFFIC);
- return new ResourceConfig(PatchResource.class)
- .register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.HEADERS_ONLY));
- }
+ public abstract static class HttpPatchTemplateTest extends JerseyTest {
+ private final ConnectorProvider connectorProvider;
- @Override
- protected void configureClient(ClientConfig clientConfig) {
- clientConfig.connectorProvider(connectorProvider);
- }
+ public HttpPatchTemplateTest(ConnectorProvider connectorProvider) {
+ this.connectorProvider = connectorProvider;
+ }
- @Test
- public void testPatchResponse() throws Exception {
- Response response = target().request().method("PATCH", Entity.text("patch"));
+ @Override
+ protected Application configure() {
+ set(TestProperties.RECORD_LOG_LEVEL, Level.WARNING.intValue());
+ enable(TestProperties.LOG_TRAFFIC);
+ return new ResourceConfig(PatchResource.class)
+ .register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.HEADERS_ONLY));
+ }
- assertEquals(200, response.getStatus());
- assertEquals("patch", response.readEntity(String.class));
- }
+ @Override
+ protected void configureClient(ClientConfig clientConfig) {
+ clientConfig.connectorProvider(connectorProvider);
+ }
- @Test
- public void testPatchEntity() throws Exception {
- String response = target().request().method("PATCH", Entity.text("patch"), String.class);
+ @Test
+ public void testPatchResponse() throws Exception {
+ Response response = target().request().method("PATCH", Entity.text("patch"));
- assertEquals("patch", response);
- }
+ assertEquals(200, response.getStatus());
+ assertEquals("patch", response.readEntity(String.class));
+ }
- @Test
- public void testPatchGenericType() throws Exception {
- String response = target().request().method("PATCH", Entity.text("patch"), new GenericType() {
- });
+ @Test
+ public void testPatchEntity() throws Exception {
+ String response = target().request().method("PATCH", Entity.text("patch"), String.class);
- assertEquals("patch", response);
- }
+ assertEquals("patch", response);
+ }
- @Test
- public void testAsyncPatchResponse() throws Exception {
- Future response = target().request().async().method("PATCH", Entity.text("patch"));
+ @Test
+ public void testPatchGenericType() throws Exception {
+ String response = target().request().method("PATCH", Entity.text("patch"), new GenericType() {
+ });
- assertEquals(200, response.get().getStatus());
- assertEquals("patch", response.get().readEntity(String.class));
- }
+ assertEquals("patch", response);
+ }
- @Test
- public void testAsyncPatchEntity() throws Exception {
- Future response = target().request().async().method("PATCH", Entity.text("patch"), String.class);
+ @Test
+ public void testAsyncPatchResponse() throws Exception {
+ Future response = target().request().async().method("PATCH", Entity.text("patch"));
- assertEquals("patch", response.get());
- }
+ assertEquals(200, response.get().getStatus());
+ assertEquals("patch", response.get().readEntity(String.class));
+ }
- @Test
- public void testAsyncPatchGenericType() throws Exception {
- Future response = target().request().async().method("PATCH", Entity.text("patch"), new GenericType() {
- });
+ @Test
+ public void testAsyncPatchEntity() throws Exception {
+ Future response = target().request().async().method("PATCH", Entity.text("patch"), String.class);
- assertEquals("patch", response.get());
- }
+ assertEquals("patch", response.get());
+ }
- @Test
- public void testRxPatchResponse() throws Exception {
- CompletionStage response = target().request().rx().method("PATCH", Entity.text("patch"));
+ @Test
+ public void testAsyncPatchGenericType() throws Exception {
+ Future response = target().request().async().method("PATCH", Entity.text("patch"), new GenericType() {
+ });
- assertEquals(200, response.toCompletableFuture().get().getStatus());
- assertEquals("patch", response.toCompletableFuture().get().readEntity(String.class));
- }
+ assertEquals("patch", response.get());
+ }
- @Test
- public void testRxPatchEntity() throws Exception {
- CompletionStage response = target().request().rx().method("PATCH", Entity.text("patch"), String.class);
+ @Test
+ public void testRxPatchResponse() throws Exception {
+ CompletionStage response = target().request().rx().method("PATCH", Entity.text("patch"));
- assertEquals("patch", response.toCompletableFuture().get());
- }
+ assertEquals(200, response.toCompletableFuture().get().getStatus());
+ assertEquals("patch", response.toCompletableFuture().get().readEntity(String.class));
+ }
+
+ @Test
+ public void testRxPatchEntity() throws Exception {
+ CompletionStage response = target().request().rx().method("PATCH", Entity.text("patch"), String.class);
- @Test
- public void testRxPatchGenericType() throws Exception {
- CompletionStage response = target().request().rx()
- .method("PATCH", Entity.text("patch"), new GenericType() {
- });
+ assertEquals("patch", response.toCompletableFuture().get());
+ }
+
+ @Test
+ public void testRxPatchGenericType() throws Exception {
+ CompletionStage response = target().request().rx()
+ .method("PATCH", Entity.text("patch"), new GenericType() {
+ });
- assertEquals("patch", response.toCompletableFuture().get());
+ assertEquals("patch", response.toCompletableFuture().get());
+ }
}
@Path("/")
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/RequestHeaderModificationsTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/RequestHeaderModificationsTest.java
index f0300778594..3d63a59c3be 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/RequestHeaderModificationsTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/RequestHeaderModificationsTest.java
@@ -21,7 +21,9 @@
import java.io.OutputStream;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
+import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collection;
import java.util.List;
import java.util.Scanner;
import java.util.concurrent.Future;
@@ -62,23 +64,23 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.glassfish.jersey.test.TestProperties;
+import org.glassfish.jersey.test.spi.TestHelper;
+import org.junit.jupiter.api.DynamicContainer;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestFactory;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
import static org.hamcrest.Matchers.containsString;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* JERSEY-2206 reproducer
*
* @author Libor Kramolis
*/
-@RunWith(Parameterized.class)
-public class RequestHeaderModificationsTest extends JerseyTest {
+public class RequestHeaderModificationsTest {
private static final Logger LOGGER = Logger.getLogger(RequestHeaderModificationsTest.class.getName());
private static final boolean GZIP = false; // change to true when JERSEY-2341 fixed
@@ -97,103 +99,117 @@ public class RequestHeaderModificationsTest extends JerseyTest {
private static final String REQUEST_HEADER_MODIFICATION_SUPPORTED = "modificationSupported";
private static final String PATH = "/resource";
- @Parameterized.Parameters(name = "{index}: {0} / modificationSupported= {1} / addHeader= {2}")
public static List testData() {
return Arrays.asList(new Object[][] {
- {HttpUrlConnectorProvider.class, true, false},
- {GrizzlyConnectorProvider.class, false, false}, // change to true when JERSEY-2341 fixed
- {JettyConnectorProvider.class, false, false}, // change to true when JERSEY-2341 fixed
- {ApacheConnectorProvider.class, false, false}, // change to true when JERSEY-2341 fixed
- {Apache5ConnectorProvider.class, false, false}, // change to true when JERSEY-2341 fixed
- {HttpUrlConnectorProvider.class, true, true},
- {GrizzlyConnectorProvider.class, false, true}, // change to true when JERSEY-2341 fixed
- {JettyConnectorProvider.class, false, true}, // change to true when JERSEY-2341 fixed
- {ApacheConnectorProvider.class, false, true}, // change to true when JERSEY-2341 fixed
- {Apache5ConnectorProvider.class, false, true}, // change to true when JERSEY-2341 fixed
+ {new HttpUrlConnectorProvider(), true, false},
+ {new GrizzlyConnectorProvider(), false, false}, // change to true when JERSEY-2341 fixed
+ {new JettyConnectorProvider(), false, false}, // change to true when JERSEY-2341 fixed
+ {new ApacheConnectorProvider(), false, false}, // change to true when JERSEY-2341 fixed
+ {new Apache5ConnectorProvider(), false, false}, // change to true when JERSEY-2341 fixed
+ {new HttpUrlConnectorProvider(), true, true},
+ {new GrizzlyConnectorProvider(), false, true}, // change to true when JERSEY-2341 fixed
+ {new JettyConnectorProvider(), false, true}, // change to true when JERSEY-2341 fixed
+ {new ApacheConnectorProvider(), false, true}, // change to true when JERSEY-2341 fixed
+ {new Apache5ConnectorProvider(), false, true}, // change to true when JERSEY-2341 fixed
});
}
- private final ConnectorProvider connectorProvider;
- private final boolean modificationSupported; // remove when JERSEY-2341 fixed
- private final boolean addHeader;
-
- public RequestHeaderModificationsTest(Class extends ConnectorProvider> connectorProviderClass,
- boolean modificationSupported, boolean addHeader)
- throws IllegalAccessException, InstantiationException {
- this.connectorProvider = connectorProviderClass.newInstance();
- this.modificationSupported = modificationSupported;
- this.addHeader = addHeader;
+ @TestFactory
+ public Collection generateTests() {
+ Collection tests = new ArrayList<>();
+ testData().forEach(arr -> {
+ RequestHeaderModificationsTemplateTest test = new RequestHeaderModificationsTemplateTest(
+ (ConnectorProvider) arr[0], (boolean) arr[1], (boolean) arr[2]) {};
+ tests.add(TestHelper.toTestContainer(test, String.format("%s (%s, %s, %s)",
+ RequestHeaderModificationsTemplateTest.class.getSimpleName(),
+ arr[0].getClass().getSimpleName(), arr[1], arr[2])));
+ });
+ return tests;
}
- @Override
- protected Application configure() {
- set(TestProperties.RECORD_LOG_LEVEL, Level.WARNING.intValue());
+ public abstract static class RequestHeaderModificationsTemplateTest extends JerseyTest {
+ private final ConnectorProvider connectorProvider;
+ private final boolean modificationSupported; // remove when JERSEY-2341 fixed
+ private final boolean addHeader;
- enable(TestProperties.LOG_TRAFFIC);
- if (DUMP_ENTITY) {
- enable(TestProperties.DUMP_ENTITY);
+ public RequestHeaderModificationsTemplateTest(ConnectorProvider connectorProvider,
+ boolean modificationSupported, boolean addHeader) {
+ this.connectorProvider = connectorProvider;
+ this.modificationSupported = modificationSupported;
+ this.addHeader = addHeader;
}
- return new ResourceConfig(TestResource.class).register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.HEADERS_ONLY));
- }
- @Override
- protected void configureClient(ClientConfig clientConfig) {
- clientConfig.register(MyClientRequestFilter.class);
- clientConfig.register(new MyWriterInterceptor(addHeader));
- clientConfig.register(new MyMessageBodyWriter(addHeader));
- clientConfig.connectorProvider(connectorProvider);
- }
+ @Override
+ protected Application configure() {
+ set(TestProperties.RECORD_LOG_LEVEL, Level.WARNING.intValue());
- @Test
- public void testWarningLogged() throws Exception {
- Response response = requestBuilder().post(requestEntity());
- assertResponse(response);
- }
+ enable(TestProperties.LOG_TRAFFIC);
+ if (DUMP_ENTITY) {
+ enable(TestProperties.DUMP_ENTITY);
+ }
+ return new ResourceConfig(TestResource.class)
+ .register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.HEADERS_ONLY));
+ }
- @Test
- public void testWarningLoggedAsync() throws Exception {
- AsyncInvoker asyncInvoker = requestBuilder().async();
- Future responseFuture = asyncInvoker.post(requestEntity());
- Response response = responseFuture.get();
- assertResponse(response);
- }
+ @Override
+ protected void configureClient(ClientConfig clientConfig) {
+ clientConfig.register(MyClientRequestFilter.class);
+ clientConfig.register(new MyWriterInterceptor(addHeader));
+ clientConfig.register(new MyMessageBodyWriter(addHeader));
+ clientConfig.connectorProvider(connectorProvider);
+ }
- private Invocation.Builder requestBuilder() {
- return target(PATH)
- .request()
- .header(REQUEST_HEADER_NAME_CLIENT, REQUEST_HEADER_VALUE_CLIENT)
- .header(REQUEST_HEADER_MODIFICATION_SUPPORTED, modificationSupported && addHeader)
- .header("hello", "double").header("hello", "value");
- }
+ @Test
+ public void testWarningLogged() throws Exception {
+ Response response = requestBuilder().post(requestEntity());
+ assertResponse(response);
+ }
- private Entity requestEntity() {
- return Entity.text(new MyEntity(QUESTION));
- }
+ @Test
+ public void testWarningLoggedAsync() throws Exception {
+ AsyncInvoker asyncInvoker = requestBuilder().async();
+ Future responseFuture = asyncInvoker.post(requestEntity());
+ Response response = responseFuture.get();
+ assertResponse(response);
+ }
- private void assertResponse(Response response) {
- if (!modificationSupported) {
- final String UNSENT_HEADER_CHANGES = "Unsent header changes";
- LogRecord logRecord = findLogRecord(UNSENT_HEADER_CHANGES);
- if (addHeader) {
- assertNotNull("Missing LogRecord for message '" + UNSENT_HEADER_CHANGES + "'.", logRecord);
- assertThat(logRecord.getMessage(), containsString(REQUEST_HEADER_NAME_INTERCEPTOR));
- assertThat(logRecord.getMessage(), containsString(REQUEST_HEADER_NAME_MBW));
- } else {
- assertNull("Unexpected LogRecord for message '" + UNSENT_HEADER_CHANGES + "'.", logRecord);
- }
+ private Invocation.Builder requestBuilder() {
+ return target(PATH)
+ .request()
+ .header(REQUEST_HEADER_NAME_CLIENT, REQUEST_HEADER_VALUE_CLIENT)
+ .header(REQUEST_HEADER_MODIFICATION_SUPPORTED, modificationSupported && addHeader)
+ .header("hello", "double").header("hello", "value");
}
- assertEquals(200, response.getStatus());
- assertEquals(ANSWER, response.readEntity(String.class));
- }
+ private Entity requestEntity() {
+ return Entity.text(new MyEntity(QUESTION));
+ }
+
+ private void assertResponse(Response response) {
+ if (!modificationSupported) {
+ final String UNSENT_HEADER_CHANGES = "Unsent header changes";
+ LogRecord logRecord = findLogRecord(UNSENT_HEADER_CHANGES);
+ if (addHeader) {
+ assertNotNull(logRecord, "Missing LogRecord for message '" + UNSENT_HEADER_CHANGES + "'.");
+ assertThat(logRecord.getMessage(), containsString(REQUEST_HEADER_NAME_INTERCEPTOR));
+ assertThat(logRecord.getMessage(), containsString(REQUEST_HEADER_NAME_MBW));
+ } else {
+ assertNull(logRecord, "Unexpected LogRecord for message '" + UNSENT_HEADER_CHANGES + "'.");
+ }
+ }
+
+ assertEquals(200, response.getStatus());
+ assertEquals(ANSWER, response.readEntity(String.class));
+ }
- private LogRecord findLogRecord(String messageContains) {
- for (final LogRecord record : getLoggedRecords()) {
- if (record.getMessage().contains(messageContains)) {
- return record;
+ private LogRecord findLogRecord(String messageContains) {
+ for (final LogRecord record : getLoggedRecords()) {
+ if (record.getMessage().contains(messageContains)) {
+ return record;
+ }
}
+ return null;
}
- return null;
}
@Path(PATH)
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxySelectorTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxySelectorTest.java
index a813e545c64..cb714f3c326 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxySelectorTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxySelectorTest.java
@@ -21,19 +21,13 @@
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.AbstractHandler;
-import org.glassfish.jersey.apache.connector.ApacheConnectorProvider;
-import org.glassfish.jersey.apache5.connector.Apache5ConnectorProvider;
import org.glassfish.jersey.client.ClientConfig;
-import org.glassfish.jersey.client.spi.ConnectorProvider;
-import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
import org.glassfish.jersey.netty.connector.NettyConnectorProvider;
-import org.junit.AfterClass;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -42,40 +36,20 @@
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.Response;
-import java.lang.reflect.InvocationTargetException;
-import java.util.Arrays;
import java.util.HashSet;
-import java.util.List;
import java.util.Set;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Moved from jetty-connector
* @author Marcelo Rubim
*/
-@RunWith(Parameterized.class)
public class ProxySelectorTest {
private static final String NO_PASS = "no-pass";
- @Parameterized.Parameters(name = "{index}: {0}")
- public static List testData() {
- return Arrays.asList(new Object[][]{
- // Apache, Grizzly, Jetty have the proxy set on constructor, i.e. ProxySelector cannot choose based on URI.
- // HttpUrlConnector ignores proxy on localhost.
- {NettyConnectorProvider.class},
- });
- }
-
- private final ConnectorProvider connectorProvider;
-
- public ProxySelectorTest(Class extends ConnectorProvider> connectorProviderClass)
- throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
- this.connectorProvider = connectorProviderClass.getConstructor().newInstance();
- }
-
protected void configureClient(ClientConfig config) {
- config.connectorProvider(connectorProvider);
+ config.connectorProvider(new NettyConnectorProvider());
}
@Test
@@ -90,12 +64,12 @@ public void testGet407() {
try (Response response = target("proxyTest").request().get()) {
assertEquals(407, response.getStatus());
} catch (ProcessingException pe) {
- Assert.assertTrue(pe.getMessage().contains("407")); // netty
+ Assertions.assertTrue(pe.getMessage().contains("407")); // netty
}
}
private static Server server;
- @BeforeClass
+ @BeforeAll
public static void startFakeProxy() {
server = new Server(9997);
server.setHandler(new ProxyHandler());
@@ -109,7 +83,7 @@ public static void startFakeProxy() {
System.setProperty("http.proxyPort", "9997");
}
- @AfterClass
+ @AfterAll
public static void tearDownProxy() {
try {
server.stop();
@@ -122,7 +96,7 @@ public static void tearDownProxy() {
}
private static Client client;
- @Before
+ @BeforeEach
public void beforeEach() {
ClientConfig config = new ClientConfig();
this.configureClient(config);
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java
index 69be5f65916..cdd1bbe2a4a 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/proxy/ProxyTest.java
@@ -30,13 +30,11 @@
import org.glassfish.jersey.grizzly.connector.GrizzlyConnectorProvider;
import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
import org.glassfish.jersey.netty.connector.NettyConnectorProvider;
-import org.junit.AfterClass;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -47,19 +45,16 @@
import javax.ws.rs.core.Response;
import java.lang.reflect.InvocationTargetException;
import java.nio.charset.Charset;
-import java.util.Arrays;
import java.util.Base64;
import java.util.HashSet;
-import java.util.List;
import java.util.Set;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Moved from jetty-connector
* @author Marcelo Rubim
*/
-@RunWith(Parameterized.class)
public class ProxyTest {
private static final Charset CHARACTER_SET = Charset.forName("iso-8859-1");
private static final String PROXY_URI = "http://127.0.0.1:9997";
@@ -67,94 +62,133 @@ public class ProxyTest {
private static final String PROXY_PASSWORD = "proxy-password";
private static final String NO_PASS = "no-pass";
- @Parameterized.Parameters(name = "{index}: {0}")
- public static List testData() {
- return Arrays.asList(new Object[][]{
- {ApacheConnectorProvider.class},
- {Apache5ConnectorProvider.class},
- {GrizzlyConnectorProvider.class},
- {JettyConnectorProvider.class},
- {NettyConnectorProvider.class},
- {HttpUrlConnectorProvider.class},
- });
+ public static class ApacheConnectorProviderProxyTest extends ProxyTemplateTest {
+ public ApacheConnectorProviderProxyTest()
+ throws NoSuchMethodException, InvocationTargetException, InstantiationException,
+ IllegalAccessException {
+ super(ApacheConnectorProvider.class);
+ }
}
- private final ConnectorProvider connectorProvider;
-
- public ProxyTest(Class extends ConnectorProvider> connectorProviderClass)
- throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
- this.connectorProvider = connectorProviderClass.getConstructor().newInstance();
+ public static class Apache5ConnectorProviderProxyTest extends ProxyTemplateTest {
+ public Apache5ConnectorProviderProxyTest()
+ throws NoSuchMethodException, InvocationTargetException, InstantiationException,
+ IllegalAccessException {
+ super(Apache5ConnectorProvider.class);
+ }
}
- protected void configureClient(ClientConfig config) {
- config.connectorProvider(connectorProvider);
+ public static class GrizzlyConnectorProviderProxyTest extends ProxyTemplateTest {
+ public GrizzlyConnectorProviderProxyTest()
+ throws NoSuchMethodException, InvocationTargetException, InstantiationException,
+ IllegalAccessException {
+ super(GrizzlyConnectorProvider.class);
+ }
}
- @Test
- public void testGetNoPass() {
- client().property(ClientProperties.PROXY_URI, ProxyTest.PROXY_URI);
- try (Response response = target("proxyTest").request().header(NO_PASS, 200).get()) {
- assertEquals(200, response.getStatus());
+ public static class JettyConnectorProviderProxyTest extends ProxyTemplateTest {
+ public JettyConnectorProviderProxyTest()
+ throws NoSuchMethodException, InvocationTargetException, InstantiationException,
+ IllegalAccessException {
+ super(JettyConnectorProvider.class);
}
}
- @Test
- public void testGet407() {
- // Grizzly sends (String)null password and username
- int expected = GrizzlyConnectorProvider.class.isInstance(connectorProvider) ? 400 : 407;
- client().property(ClientProperties.PROXY_URI, ProxyTest.PROXY_URI);
- try (Response response = target("proxyTest").request().get()) {
- assertEquals(expected, response.getStatus());
- } catch (ProcessingException pe) {
- Assert.assertTrue(pe.getMessage().contains("407")); // netty
+ public static class NettyConnectorProviderProxyTest extends ProxyTemplateTest {
+ public NettyConnectorProviderProxyTest()
+ throws NoSuchMethodException, InvocationTargetException, InstantiationException,
+ IllegalAccessException {
+ super(NettyConnectorProvider.class);
}
}
- @Test
- public void testGetSuccess() {
- client().property(ClientProperties.PROXY_URI, ProxyTest.PROXY_URI);
- client().property(ClientProperties.PROXY_USERNAME, ProxyTest.PROXY_USERNAME);
- client().property(ClientProperties.PROXY_PASSWORD, ProxyTest.PROXY_PASSWORD);
- Response response = target("proxyTest").request().get();
- response.bufferEntity();
- assertEquals(response.readEntity(String.class), 200, response.getStatus());
+ public static class HttpUrlConnectorProviderProxyTest extends ProxyTemplateTest {
+ public HttpUrlConnectorProviderProxyTest()
+ throws NoSuchMethodException, InvocationTargetException, InstantiationException,
+ IllegalAccessException {
+ super(HttpUrlConnectorProvider.class);
+ }
}
- private static Server server;
- @BeforeClass
- public static void startFakeProxy() {
- server = new Server(9997);
- server.setHandler(new ProxyHandler());
- try {
- server.start();
- } catch (Exception e) {
+ public abstract static class ProxyTemplateTest {
+ private final ConnectorProvider connectorProvider;
+ public ProxyTemplateTest(Class extends ConnectorProvider> connectorProviderClass)
+ throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
+ this.connectorProvider = connectorProviderClass.getConstructor().newInstance();
}
- }
- @AfterClass
- public static void tearDownProxy() {
- try {
- server.stop();
- } catch (Exception e) {
+ protected void configureClient(ClientConfig config) {
+ config.connectorProvider(connectorProvider);
}
- }
- private static Client client;
- @Before
- public void beforeEach() {
- ClientConfig config = new ClientConfig();
- this.configureClient(config);
- client = ClientBuilder.newClient(config);
- }
+ @Test
+ public void testGetNoPass() {
+ client().property(ClientProperties.PROXY_URI, ProxyTest.PROXY_URI);
+ try (Response response = target("proxyTest").request().header(NO_PASS, 200).get()) {
+ assertEquals(200, response.getStatus());
+ }
+ }
- private Client client() {
- return client;
- }
+ @Test
+ public void testGet407() {
+ // Grizzly sends (String)null password and username
+ int expected = GrizzlyConnectorProvider.class.isInstance(connectorProvider) ? 400 : 407;
+ client().property(ClientProperties.PROXY_URI, ProxyTest.PROXY_URI);
+ try (Response response = target("proxyTest").request().get()) {
+ assertEquals(expected, response.getStatus());
+ } catch (ProcessingException pe) {
+ Assertions.assertTrue(pe.getMessage().contains("407")); // netty
+ }
+ }
+
+ @Test
+ public void testGetSuccess() {
+ client().property(ClientProperties.PROXY_URI, ProxyTest.PROXY_URI);
+ client().property(ClientProperties.PROXY_USERNAME, ProxyTest.PROXY_USERNAME);
+ client().property(ClientProperties.PROXY_PASSWORD, ProxyTest.PROXY_PASSWORD);
+ Response response = target("proxyTest").request().get();
+ response.bufferEntity();
+ assertEquals(200, response.getStatus(), response.readEntity(String.class));
+ }
+
+ private static Server server;
+ @BeforeAll
+ public static void startFakeProxy() {
+ server = new Server(9997);
+ server.setHandler(new ProxyHandler());
+ try {
+ server.start();
+ } catch (Exception e) {
+
+ }
+ }
+
+ @AfterAll
+ public static void tearDownProxy() {
+ try {
+ server.stop();
+ } catch (Exception e) {
+
+ }
+ }
+
+ private static Client client;
+ @BeforeEach
+ public void beforeEach() {
+ ClientConfig config = new ClientConfig();
+ this.configureClient(config);
+ client = ClientBuilder.newClient(config);
+ }
- private WebTarget target(String path) {
- return client().target("http://localhost:9998").path(path);
+ private Client client() {
+ return client;
+ }
+
+ private WebTarget target(String path) {
+ return client().target("http://localhost:9998").path(path);
+ }
}
static class ProxyHandler extends AbstractHandler {
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/AbstractConnectorServerTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/AbstractConnectorServerTest.java
index bc8ad45981b..512e9fc4288 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/AbstractConnectorServerTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/AbstractConnectorServerTest.java
@@ -19,6 +19,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
+import java.util.stream.Stream;
import javax.net.ssl.SSLContext;
@@ -30,10 +31,8 @@
import org.glassfish.jersey.grizzly.connector.GrizzlyConnectorProvider;
import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
import com.google.common.io.ByteStreams;
@@ -42,7 +41,6 @@
*
* @author Petr Bouda
*/
-@RunWith(Parameterized.class)
public abstract class AbstractConnectorServerTest {
// Default truststore and keystore
@@ -55,24 +53,20 @@ public abstract class AbstractConnectorServerTest {
*
* @return test parameters.
*/
- @Parameterized.Parameters(name = "{index}: {0}")
- public static Iterable testData() {
- return Arrays.asList(new Object[][] {
- {new HttpUrlConnectorProvider()},
- {new GrizzlyConnectorProvider()},
- {new JettyConnectorProvider()},
- {new ApacheConnectorProvider()},
- {new Apache5ConnectorProvider()}
- });
+ public static Stream testData() {
+ return Stream.of(
+ new HttpUrlConnectorProvider(),
+ new GrizzlyConnectorProvider(),
+ new JettyConnectorProvider(),
+ new ApacheConnectorProvider(),
+ new Apache5ConnectorProvider()
+ );
}
- @Parameterized.Parameter(0)
- public ConnectorProvider connectorProvider;
-
private final Object serverGuard = new Object();
private Server server = null;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
synchronized (serverGuard) {
if (server != null) {
@@ -83,7 +77,7 @@ public void setUp() throws Exception {
}
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
synchronized (serverGuard) {
if (server == null) {
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslConnectorConfigurationTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslConnectorConfigurationTest.java
index 608ba06334e..d81b88aae35 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslConnectorConfigurationTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslConnectorConfigurationTest.java
@@ -25,13 +25,13 @@
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.authentication.HttpAuthenticationFeature;
+import org.glassfish.jersey.client.spi.ConnectorProvider;
import org.glassfish.jersey.logging.LoggingFeature;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.MethodSource;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* SSL connector tests.
@@ -40,7 +40,6 @@
* @author Arul Dhesiaseelan (aruld at acm.org)
* @author Marek Potociar
*/
-@RunWith(Parameterized.class)
public class SslConnectorConfigurationTest extends AbstractConnectorServerTest {
/**
@@ -48,8 +47,9 @@ public class SslConnectorConfigurationTest extends AbstractConnectorServerTest {
*
* @throws Exception in case of a test failure.
*/
- @Test
- public void testSSLWithAuth() throws Exception {
+ @ParameterizedTest
+ @MethodSource("testData")
+ public void testSSLWithAuth(ConnectorProvider connectorProvider) throws Exception {
final SSLContext sslContext = getSslContext();
final ClientConfig cc = new ClientConfig().connectorProvider(connectorProvider);
@@ -73,8 +73,9 @@ public void testSSLWithAuth() throws Exception {
*
* @throws Exception in case of a test failure.
*/
- @Test
- public void testHTTPBasicAuth1() throws Exception {
+ @ParameterizedTest
+ @MethodSource("testData")
+ public void testHTTPBasicAuth1(ConnectorProvider connectorProvider) throws Exception {
final SSLContext sslContext = getSslContext();
final ClientConfig cc = new ClientConfig().connectorProvider(connectorProvider);
@@ -96,8 +97,9 @@ public void testHTTPBasicAuth1() throws Exception {
*
* @throws Exception in case of a test failure.
*/
- @Test
- public void testSSLAuth1() throws Exception {
+ @ParameterizedTest
+ @MethodSource("testData")
+ public void testSSLAuth1(ConnectorProvider connectorProvider) throws Exception {
final SSLContext sslContext = getSslContext();
final ClientConfig cc = new ClientConfig().connectorProvider(connectorProvider);
@@ -121,8 +123,9 @@ public void testSSLAuth1() throws Exception {
/**
* Test that a response to an authentication challenge has the same SSL configuration as the original request.
*/
- @Test
- public void testSSLWithNonPreemptiveAuth() throws Exception {
+ @ParameterizedTest
+ @MethodSource("testData")
+ public void testSSLWithNonPreemptiveAuth(ConnectorProvider connectorProvider) throws Exception {
final SSLContext sslContext = getSslContext();
final ClientConfig cc = new ClientConfig().connectorProvider(connectorProvider);
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslConnectorHostnameVerifierTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslConnectorHostnameVerifierTest.java
index a41f2187e8d..bf4f9481385 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslConnectorHostnameVerifierTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslConnectorHostnameVerifierTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,18 +33,16 @@
import org.glassfish.jersey.grizzly.connector.GrizzlyConnectorProvider;
import org.glassfish.jersey.jetty.connector.JettyConnectorProvider;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.MethodSource;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* SSL connector hostname verification tests.
*
* @author Petr Bouda
*/
-@RunWith(Parameterized.class)
public class SslConnectorHostnameVerifierTest extends AbstractConnectorServerTest {
private static final String CLIENT_TRUST_STORE = "truststore-example_com-client";
@@ -65,10 +63,11 @@ protected String clientTrustStore() {
*
* @throws Exception in case of a test failure.
*/
- @Test
- public void testHostnameVerifierApplied() throws Exception {
+ @ParameterizedTest
+ @MethodSource("testData")
+ public void testHostnameVerifierApplied(ConnectorProvider connectorProvider) throws Exception {
// Grizzly and Jetty connectors don't support Hostname Verification
- if (isExcluded(Arrays.asList(GrizzlyConnectorProvider.class, JettyConnectorProvider.class))) {
+ if (isExcluded(Arrays.asList(GrizzlyConnectorProvider.class, JettyConnectorProvider.class), connectorProvider)) {
return;
}
@@ -93,7 +92,7 @@ public void testHostnameVerifierApplied() throws Exception {
}
}
- private boolean isExcluded(List> excluded) {
+ private boolean isExcluded(List> excluded, ConnectorProvider connectorProvider) {
for (Class> clazz : excluded) {
if (clazz.isAssignableFrom(connectorProvider.getClass())) {
return true;
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslHttpUrlConnectorTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslHttpUrlConnectorTest.java
index df3f1dcd4e2..9b22f48a147 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslHttpUrlConnectorTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/connector/ssl/SslHttpUrlConnectorTest.java
@@ -43,11 +43,15 @@
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.HttpUrlConnectorProvider;
import org.glassfish.jersey.client.authentication.HttpAuthenticationFeature;
+import org.glassfish.jersey.client.spi.ConnectorProvider;
import org.glassfish.jersey.logging.LoggingFeature;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.MethodSource;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test custom socket factory in HttpUrlConnection using SSL
@@ -94,8 +98,9 @@ public HttpURLConnection getConnection(final URL url) throws IOException {
*
* @author Kevin Conaway
*/
- @Test
- public void testConcurrentRequestsWithCustomSSLContext() throws Exception {
+ @ParameterizedTest
+ @MethodSource("testData")
+ public void testConcurrentRequestsWithCustomSSLContext(ConnectorProvider connectorProvider) throws Exception {
if (HttpUrlConnectorProvider.class.isInstance(connectorProvider)
|| (ApacheConnectorProvider.class.isInstance(connectorProvider))
|| (Apache5ConnectorProvider.class.isInstance(connectorProvider))) {
@@ -132,14 +137,9 @@ public void testConcurrentRequestsWithCustomSSLContext() throws Exception {
service.shutdown();
- assertTrue(
- service.awaitTermination(1, TimeUnit.MINUTES)
- );
+ assertTrue(service.awaitTermination(1, TimeUnit.MINUTES));
- assertTrue(
- toString(exceptions),
- exceptions.isEmpty()
- );
+ assertTrue(exceptions.isEmpty(), toString(exceptions));
}
private String toString(List exceptions) {
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/grizzlyconnector/NonBlockingTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/grizzlyconnector/NonBlockingTest.java
index 5006b190b2a..66414de9a33 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/grizzlyconnector/NonBlockingTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/grizzlyconnector/NonBlockingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,9 +29,9 @@
import org.glassfish.jersey.grizzly.connector.GrizzlyConnectorProvider;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Grizzly connector non blocking test.
@@ -82,9 +82,9 @@ public void failed(Throwable throwable) {
String response = future.get();
assertNotNull(response);
- assertTrue("Invocation callback was not invoked",
- countDownLatch.await(5, TimeUnit.SECONDS));
- assertTrue("Invocation callback is not executed on the NIO pool thread.",
- !invocationCallbackThreadName.contains("jersey-client-async-executor"));
+ assertTrue(countDownLatch.await(5, TimeUnit.SECONDS),
+ "Invocation callback was not invoked");
+ assertTrue(!invocationCallbackThreadName.contains("jersey-client-async-executor"),
+ "Invocation callback is not executed on the NIO pool thread.");
}
}
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/httpurlconnector/AsyncTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/httpurlconnector/AsyncTest.java
index a67f40937dc..43a8172de41 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/httpurlconnector/AsyncTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/httpurlconnector/AsyncTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -43,14 +43,14 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.hamcrest.Matchers;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.lessThanOrEqualTo;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Asynchronous connector test.
@@ -228,7 +228,7 @@ private void sleep() {
}
@Test
- @Ignore("Unstable test.")
+ @Disabled("Unstable test.")
public void testClientThreadPool() throws Exception {
final AsyncInvoker invoker = ClientBuilder
.newClient(new ClientConfig().property(ClientProperties.ASYNC_THREADPOOL_SIZE, 9))
diff --git a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/httpurlconnector/Expect100ContinueTest.java b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/httpurlconnector/Expect100ContinueTest.java
index 16168244783..e80fabdf695 100644
--- a/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/httpurlconnector/Expect100ContinueTest.java
+++ b/tests/e2e-client/src/test/java/org/glassfish/jersey/tests/e2e/client/httpurlconnector/Expect100ContinueTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,7 +23,7 @@
import org.glassfish.jersey.client.http.Expect100ContinueFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
@@ -33,7 +33,7 @@
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.Response;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class Expect100ContinueTest extends JerseyTest {
@@ -72,7 +72,7 @@ protected Application configure() {
@Test
public void testExpect100Continue() {
final Response response = target(RESOURCE_PATH).request().post(Entity.text(ENTITY_STRING));
- assertEquals("Expected 200", 200, response.getStatus()); //no Expect header sent - responce OK
+ assertEquals(200, response.getStatus(), "Expected 200"); //no Expect header sent - responce OK
}
@Test
@@ -80,7 +80,7 @@ public void testExpect100ContinueChunked() {
final Response response = target(RESOURCE_PATH).register(Expect100ContinueFeature.basic())
.property(ClientProperties.REQUEST_ENTITY_PROCESSING,
RequestEntityProcessing.CHUNKED).request().post(Entity.text(ENTITY_STRING));
- assertEquals("Expected 204", 204, response.getStatus()); //Expect header sent - No Content response
+ assertEquals(204, response.getStatus(), "Expected 204"); //Expect header sent - No Content response
}
@Test
@@ -89,7 +89,7 @@ public void testExpect100ContinueBuffered() {
.property(ClientProperties.REQUEST_ENTITY_PROCESSING,
RequestEntityProcessing.BUFFERED).request().header(HttpHeaders.CONTENT_LENGTH, 67000L)
.post(Entity.text(ENTITY_STRING));
- assertEquals("Expected 204", 204, response.getStatus()); //Expect header sent - No Content response
+ assertEquals(204, response.getStatus(), "Expected 204"); //Expect header sent - No Content response
}
@Test
@@ -97,7 +97,7 @@ public void testExpect100ContinueCustomLength() {
final Response response = target(RESOURCE_PATH).register(Expect100ContinueFeature.withCustomThreshold(100L))
.request().header(HttpHeaders.CONTENT_LENGTH, 101L)
.post(Entity.text(ENTITY_STRING));
- assertEquals("Expected 204", 204, response.getStatus()); //Expect header sent - No Content response
+ assertEquals(204, response.getStatus(), "Expected 204"); //Expect header sent - No Content response
}
@Test
@@ -105,7 +105,7 @@ public void testExpect100ContinueCustomLengthWrong() {
final Response response = target(RESOURCE_PATH).register(Expect100ContinueFeature.withCustomThreshold(100L))
.request().header(HttpHeaders.CONTENT_LENGTH, 99L)
.post(Entity.text(ENTITY_STRING));
- assertEquals("Expected 200", 200, response.getStatus()); //Expect header NOT sent - low request size
+ assertEquals(200, response.getStatus(), "Expected 200"); //Expect header NOT sent - low request size
}
@Test
@@ -115,7 +115,7 @@ public void testExpect100ContinueCustomLengthProperty() {
.register(Expect100ContinueFeature.basic())
.request().header(HttpHeaders.CONTENT_LENGTH, 666L)
.post(Entity.text(ENTITY_STRING));
- assertEquals("Expected 204", 204, response.getStatus()); //Expect header sent - No Content response
+ assertEquals(204, response.getStatus(), "Expected 204"); //Expect header sent - No Content response
}
@Test
@@ -125,6 +125,6 @@ public void testExpect100ContinueRegisterViaCustomProperty() {
.property(ClientProperties.EXPECT_100_CONTINUE, Boolean.TRUE)
.request().header(HttpHeaders.CONTENT_LENGTH, 44L)
.post(Entity.text(ENTITY_STRING));
- assertEquals("Expected 204", 204, response.getStatus()); //Expect header sent - No Content response
+ assertEquals(204, response.getStatus(), "Expected 204"); //Expect header sent - No Content response
}
}
diff --git a/tests/e2e-core-common/pom.xml b/tests/e2e-core-common/pom.xml
index fb49a82ab53..4163e869b80 100644
--- a/tests/e2e-core-common/pom.xml
+++ b/tests/e2e-core-common/pom.xml
@@ -39,8 +39,8 @@
test
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/TestRuntimeDelegate.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/TestRuntimeDelegate.java
index 4e5403d4fa4..a4d37363533 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/TestRuntimeDelegate.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/TestRuntimeDelegate.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,7 +28,7 @@
import org.glassfish.jersey.internal.AbstractRuntimeDelegate;
import org.glassfish.jersey.message.internal.MessagingBinders;
-import org.junit.Assert;
+import org.junit.jupiter.api.Assertions;
/**
* Test runtime delegate.
@@ -49,31 +49,31 @@ public T createEndpoint(Application application, Class endpointType)
public void testMediaType() {
MediaType m = new MediaType("text", "plain");
- Assert.assertNotNull(m);
+ Assertions.assertNotNull(m);
}
public void testUriBuilder() {
UriBuilder ub = RuntimeDelegate.getInstance().createUriBuilder();
- Assert.assertNotNull(ub);
+ Assertions.assertNotNull(ub);
}
public void testResponseBuilder() {
Response.ResponseBuilder rb = RuntimeDelegate.getInstance().createResponseBuilder();
- Assert.assertNotNull(rb);
+ Assertions.assertNotNull(rb);
}
public void testVariantListBuilder() {
Variant.VariantListBuilder vlb = RuntimeDelegate.getInstance().createVariantListBuilder();
- Assert.assertNotNull(vlb);
+ Assertions.assertNotNull(vlb);
}
public void testLinkBuilder() {
final Link.Builder linkBuilder = RuntimeDelegate.getInstance().createLinkBuilder();
- Assert.assertNotNull(linkBuilder);
+ Assertions.assertNotNull(linkBuilder);
}
public void testWebApplicationException() {
WebApplicationException wae = new WebApplicationException();
- Assert.assertNotNull(wae);
+ Assertions.assertNotNull(wae);
}
}
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/config/ServiceFinderBinderTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/config/ServiceFinderBinderTest.java
index 15b031ffd1e..2663dd9b383 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/config/ServiceFinderBinderTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/config/ServiceFinderBinderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,11 +28,11 @@
import org.glassfish.jersey.internal.inject.Injections;
import org.glassfish.jersey.internal.inject.Providers;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Service finder injection binder unit test.
@@ -46,7 +46,7 @@ public class ServiceFinderBinderTest {
public ServiceFinderBinderTest() {
}
- @BeforeClass
+ @BeforeAll
public static void setUpClass() throws Exception {
AbstractBinder binder = new AbstractBinder() {
@Override
@@ -60,7 +60,7 @@ protected void configure() {
injectionManager.completeRegistration();
}
- @AfterClass
+ @AfterAll
public static void tearDownClass() throws Exception {
}
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/ContextResolverFactoryTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/ContextResolverFactoryTest.java
index d69b010b078..d8d5dd6073a 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/ContextResolverFactoryTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/ContextResolverFactoryTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,10 +32,10 @@
import org.glassfish.jersey.internal.inject.ProviderBinder;
import org.glassfish.jersey.tests.e2e.common.TestRuntimeDelegate;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* Context resolvers factory unit test.
@@ -107,7 +107,7 @@ public ContextResolverFactoryTest() {
RuntimeDelegate.setInstance(new TestRuntimeDelegate());
}
- @Before
+ @BeforeEach
public void setUp() {
InjectionManager injectionManager = Injections.createInjectionManager();
ProviderBinder providerBinder = new ProviderBinder(injectionManager);
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/ExceptionMapperFactoryTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/ExceptionMapperFactoryTest.java
index 24b4ffac3e2..530662dd784 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/ExceptionMapperFactoryTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/ExceptionMapperFactoryTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,8 +27,8 @@
import org.glassfish.jersey.internal.inject.Injections;
import org.glassfish.jersey.spi.ExtendedExceptionMapper;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Unit test of {@link ExceptionMapperFactory}.
@@ -85,8 +85,8 @@ public void testFindMappingExtendedExceptions() throws Exception {
final ExceptionMapper mapper = mapperFactory.findMapping(new IllegalArgumentException());
- Assert.assertTrue("IllegalArgumentExceptionMapper should be returned",
- mapper instanceof IllegalArgumentExceptionMapper);
+ Assertions.assertTrue(mapper instanceof IllegalArgumentExceptionMapper,
+ "IllegalArgumentExceptionMapper should be returned");
}
/**
@@ -116,7 +116,7 @@ public void testFindMapping() throws Exception {
final ExceptionMapper mapper = mapperFactory.findMapping(new RuntimeException());
- Assert.assertTrue("RuntimeExceptionMapper should be returned", mapper instanceof RuntimeExceptionMapper);
+ Assertions.assertTrue(mapper instanceof RuntimeExceptionMapper, "RuntimeExceptionMapper should be returned");
}
/**
@@ -147,8 +147,7 @@ public void testFindExtendedExceptions() throws Exception {
final ExceptionMapper mapper = mapperFactory.find(IllegalArgumentException.class);
- Assert.assertTrue("IllegalStateExceptionMapper should be returned",
- mapper instanceof IllegalStateExceptionMapper);
+ Assertions.assertTrue(mapper instanceof IllegalStateExceptionMapper, "IllegalStateExceptionMapper should be returned");
}
/**
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/JaxrsProvidersTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/JaxrsProvidersTest.java
index 49f6cc482c3..37746780c99 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/JaxrsProvidersTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/JaxrsProvidersTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -44,9 +44,9 @@
import org.glassfish.jersey.process.internal.RequestScope;
import org.glassfish.jersey.tests.e2e.common.TestRuntimeDelegate;
-import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**®
* @author Marek Potociar
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/LocalizationMessagesTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/LocalizationMessagesTest.java
index 22c679f37b6..e05696435a5 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/LocalizationMessagesTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/LocalizationMessagesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -19,8 +19,8 @@
import org.glassfish.jersey.internal.LocalizationMessages;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Tests {@link org.glassfish.jersey.internal.LocalizationMessages}.
@@ -30,7 +30,7 @@ public class LocalizationMessagesTest {
@Test
public void test() {
- Assert.assertTrue(LocalizationMessages.COMPONENT_CONTRACTS_EMPTY_OR_NULL("TYPE")
+ Assertions.assertTrue(LocalizationMessages.COMPONENT_CONTRACTS_EMPTY_OR_NULL("TYPE")
.contains("Attempt to register component of type TYPE"));
}
}
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/ProviderBinderTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/ProviderBinderTest.java
index b17a6b21774..17d5e9ead67 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/ProviderBinderTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/ProviderBinderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -52,9 +52,9 @@
import org.glassfish.jersey.message.internal.MessagingBinders;
import org.glassfish.jersey.tests.e2e.common.TestRuntimeDelegate;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* ServiceProviders unit test.
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/inject/ReferencingFactoryTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/inject/ReferencingFactoryTest.java
index 76429b01509..4d84e0993c7 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/inject/ReferencingFactoryTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/internal/inject/ReferencingFactoryTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,8 +32,8 @@
import org.glassfish.jersey.internal.inject.ReferencingFactory;
import org.glassfish.jersey.internal.util.collection.Ref;
-import org.junit.Test;
-import static org.junit.Assert.assertSame;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertSame;
/**
* Referencing factory test.
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/AcceptableMediaTypeStringRepresentationTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/AcceptableMediaTypeStringRepresentationTest.java
index 2faf424a89e..740549ab6d5 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/AcceptableMediaTypeStringRepresentationTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/AcceptableMediaTypeStringRepresentationTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,19 +16,18 @@
package org.glassfish.jersey.tests.e2e.common.message.internal;
-import java.util.Arrays;
import java.util.HashMap;
-import java.util.List;
import java.util.Map;
+import java.util.stream.Stream;
import org.glassfish.jersey.message.internal.AcceptableMediaType;
import org.glassfish.jersey.message.internal.MediaTypeProvider;
import org.glassfish.jersey.message.internal.Quality;
-import org.junit.Assert;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
/**
@@ -36,38 +35,28 @@
*
* @author Adam Lindenthal
*/
-@RunWith(Parameterized.class)
public class AcceptableMediaTypeStringRepresentationTest {
- @Parameterized.Parameters
// expected result, acceptable media type
- public static List getParameters() {
+ public static Stream getParameters() {
final Map emptyParams = new HashMap();
final Map params = new HashMap();
params.put("myParam", "myValue");
- return Arrays.asList(new Object[][]{
- {"*/*", new AcceptableMediaType("*", "*")},
- {"*/*", new AcceptableMediaType("*", "*", Quality.DEFAULT, emptyParams)},
- {"*/*;q=0.75", new AcceptableMediaType("*", "*", 750, emptyParams)},
- {"text/html", new AcceptableMediaType("text", "html", Quality.DEFAULT, null)},
- {"text/html;q=0.5", new AcceptableMediaType("text", "html", 500, emptyParams)},
- {"image/*;myparam=myValue;q=0.8", new AcceptableMediaType("image", "*", 800, params)},
- });
+ return Stream.of(
+ Arguments.of("*/*", new AcceptableMediaType("*", "*")),
+ Arguments.of("*/*", new AcceptableMediaType("*", "*", Quality.DEFAULT, emptyParams)),
+ Arguments.of("*/*;q=0.75", new AcceptableMediaType("*", "*", 750, emptyParams)),
+ Arguments.of("text/html", new AcceptableMediaType("text", "html", Quality.DEFAULT, null)),
+ Arguments.of("text/html;q=0.5", new AcceptableMediaType("text", "html", 500, emptyParams)),
+ Arguments.of("image/*;myparam=myValue;q=0.8", new AcceptableMediaType("image", "*", 800, params))
+ );
}
- private final String expectedValue;
- private final AcceptableMediaType testedType;
-
- public AcceptableMediaTypeStringRepresentationTest(final String expectedValue,
- final AcceptableMediaType testedType) {
- this.expectedValue = expectedValue;
- this.testedType = testedType;
- }
-
- @Test
- public void testStringRepresentation() {
+ @ParameterizedTest
+ @MethodSource("getParameters")
+ public void testStringRepresentation(String expectedValue, AcceptableMediaType testedType) {
final MediaTypeProvider provider = new MediaTypeProvider();
- Assert.assertEquals(expectedValue, testedType.toString());
+ Assertions.assertEquals(expectedValue, testedType.toString());
provider.fromString(testedType.toString());
}
}
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/AcceptableMediaTypeTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/AcceptableMediaTypeTest.java
index 7821bfa617a..013d4100079 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/AcceptableMediaTypeTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/AcceptableMediaTypeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,57 +16,47 @@
package org.glassfish.jersey.tests.e2e.common.message.internal;
-import java.util.Arrays;
-import java.util.List;
+import java.util.stream.Stream;
import javax.ws.rs.core.MediaType;
import org.glassfish.jersey.message.internal.AcceptableMediaType;
-import org.junit.Assert;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
/**
* Acceptable media type unit tests.
*
* @author Marek Potociar
*/
-@RunWith(Parameterized.class)
public class AcceptableMediaTypeTest {
- @Parameterized.Parameters
// expected result, media type, acceptable media type
- public static List testBeds() {
- return Arrays.asList(new Object[][]{
- {Boolean.TRUE, MediaType.APPLICATION_JSON_TYPE, new AcceptableMediaType("application", "json")},
- {Boolean.TRUE, MediaType.APPLICATION_JSON_TYPE, new AcceptableMediaType("application", "json", 1000, null)},
- {Boolean.FALSE, MediaType.APPLICATION_JSON_TYPE, new AcceptableMediaType("application", "json", 500, null)},
- {Boolean.FALSE, MediaType.APPLICATION_JSON_TYPE, new AcceptableMediaType("application", "xml")}
- });
+ public static Stream testBeds() {
+ return Stream.of(
+ Arguments.of(Boolean.TRUE, MediaType.APPLICATION_JSON_TYPE, new AcceptableMediaType("application", "json")),
+ Arguments.of(Boolean.TRUE, MediaType.APPLICATION_JSON_TYPE,
+ new AcceptableMediaType("application", "json", 1000, null)),
+ Arguments.of(Boolean.FALSE, MediaType.APPLICATION_JSON_TYPE,
+ new AcceptableMediaType("application", "json", 500, null)),
+ Arguments.of(Boolean.FALSE, MediaType.APPLICATION_JSON_TYPE, new AcceptableMediaType("application", "xml"))
+ );
}
- private final boolean expectEquality;
- private final MediaType mediaType;
- private final AcceptableMediaType acceptableMediaType;
-
- public AcceptableMediaTypeTest(boolean expectEquality, MediaType mediaType, AcceptableMediaType acceptableMediaType) {
- this.expectEquality = expectEquality;
- this.mediaType = mediaType;
- this.acceptableMediaType = acceptableMediaType;
- }
-
- @Test
- public void testEquals() throws Exception {
+ @ParameterizedTest
+ @MethodSource("testBeds")
+ public void testEquals(boolean expectEquality, MediaType mediaType,
+ AcceptableMediaType acceptableMediaType) throws Exception {
if (expectEquality) {
- Assert.assertEquals("Types not equal.", mediaType, acceptableMediaType);
- Assert.assertEquals("Types not equal.", acceptableMediaType, mediaType);
- Assert.assertEquals(
- String.format("Hash codes not equal for %s and %s.", mediaType.toString(), acceptableMediaType.toString()),
- mediaType.hashCode(), acceptableMediaType.hashCode());
+ Assertions.assertEquals(mediaType, acceptableMediaType, "Types not equal.");
+ Assertions.assertEquals(acceptableMediaType, mediaType, "Types not equal.");
+ Assertions.assertEquals(mediaType.hashCode(), acceptableMediaType.hashCode(),
+ String.format("Hash codes not equal for %s and %s.", mediaType.toString(), acceptableMediaType.toString()));
} else {
- Assert.assertFalse(String.format("False equality of %s and %s", mediaType.toString(), acceptableMediaType.toString()),
- acceptableMediaType.equals(mediaType));
+ Assertions.assertFalse(acceptableMediaType.equals(mediaType),
+ String.format("False equality of %s and %s", mediaType.toString(), acceptableMediaType.toString()));
}
}
}
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/CommittingOutputStreamTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/CommittingOutputStreamTest.java
index 23f88b75167..fc49c618a66 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/CommittingOutputStreamTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/CommittingOutputStreamTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,11 +32,11 @@
import org.glassfish.jersey.model.internal.CommonConfig;
import org.glassfish.jersey.model.internal.ComponentBag;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test the {@link CommittingOutputStream}.
@@ -295,7 +295,7 @@ public OutputStream getOutputStream(int contentLength) throws IOException {
if (i >= expectedSize + 1) {
break;
} else {
- assertFalse("committed already with byte #" + i, passed.b);
+ assertFalse(passed.b, "committed already with byte #" + i);
}
}
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/CookiesParserTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/CookiesParserTest.java
index 77ce25b1283..540d44b7480 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/CookiesParserTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/CookiesParserTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,7 +23,7 @@
import org.glassfish.jersey.message.internal.CookiesParser;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/HeaderUtilsTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/HeaderUtilsTest.java
index bc370e4c8f5..3ac47823cda 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/HeaderUtilsTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/HeaderUtilsTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -32,14 +32,14 @@
import org.glassfish.jersey.message.internal.HeaderUtils;
import org.glassfish.jersey.tests.e2e.common.TestRuntimeDelegate;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* {@link HeaderUtils} unit tests.
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/InboundMessageContextTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/InboundMessageContextTest.java
index bd29bb4852e..9a3fdd71cea 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/InboundMessageContextTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/InboundMessageContextTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -35,11 +35,11 @@
import org.glassfish.jersey.message.internal.InboundMessageContext;
import org.glassfish.jersey.tests.e2e.common.TestRuntimeDelegate;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* {@link org.glassfish.jersey.message.internal.InboundMessageContext} test.
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/JerseyLinkTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/JerseyLinkTest.java
index 7e25df847af..7110355796a 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/JerseyLinkTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/JerseyLinkTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,11 +26,11 @@
import org.glassfish.jersey.tests.e2e.common.TestRuntimeDelegate;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Tests for LinkTest class.
@@ -55,12 +55,12 @@ public String notSelf() {
}
}
- @Before
+ @BeforeEach
public void setUp() throws Exception {
RuntimeDelegate.setInstance(new TestRuntimeDelegate());
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
RuntimeDelegate.setInstance(null);
}
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/LinkProviderTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/LinkProviderTest.java
index 0f8f3c7edc3..7691af79e54 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/LinkProviderTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/LinkProviderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -21,10 +21,10 @@
import org.glassfish.jersey.tests.e2e.common.TestRuntimeDelegate;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests for LinkProvider class.
@@ -33,12 +33,12 @@
*/
public class LinkProviderTest {
- @Before
+ @BeforeEach
public void setUp() throws Exception {
RuntimeDelegate.setInstance(new TestRuntimeDelegate());
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
RuntimeDelegate.setInstance(null);
}
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/MatchingEntityTagTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/MatchingEntityTagTest.java
index 19ad5e1ed4a..36dcc2326cd 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/MatchingEntityTagTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/MatchingEntityTagTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,14 +24,14 @@
import org.glassfish.jersey.message.internal.HttpHeaderReader;
import org.glassfish.jersey.message.internal.MatchingEntityTag;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* {@link MatchingEntityTag} unit tests ported from Jersey 1.x.
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/MediaTypesTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/MediaTypesTest.java
index 12dcd81210a..c9531a148d6 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/MediaTypesTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/MediaTypesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -27,10 +27,10 @@
import org.glassfish.jersey.message.internal.HttpHeaderReader;
import org.glassfish.jersey.message.internal.MediaTypes;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* MediaTypes utility method tests.
@@ -43,16 +43,16 @@ public class MediaTypesTest {
@Test
public void testConvertToString() {
final List emptyList = Collections.emptyList();
- Assert.assertEquals("", MediaTypes.convertToString(emptyList));
+ Assertions.assertEquals("", MediaTypes.convertToString(emptyList));
- Assert.assertEquals("\"text/plain\"", MediaTypes.convertToString(Collections.singleton(MediaType.TEXT_PLAIN_TYPE)));
+ Assertions.assertEquals("\"text/plain\"", MediaTypes.convertToString(Collections.singleton(MediaType.TEXT_PLAIN_TYPE)));
- Assert.assertEquals("\"text/plain\", \"application/json\"",
+ Assertions.assertEquals("\"text/plain\", \"application/json\"",
MediaTypes.convertToString(Arrays.asList(MediaType.TEXT_PLAIN_TYPE,
MediaType.APPLICATION_JSON_TYPE)));
- Assert.assertEquals("\"text/plain\", \"application/json\", \"text/html\"",
+ Assertions.assertEquals("\"text/plain\", \"application/json\", \"text/html\"",
MediaTypes.convertToString(Arrays.asList(MediaType.TEXT_PLAIN_TYPE,
MediaType.APPLICATION_JSON_TYPE,
MediaType.TEXT_HTML_TYPE)));
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/OutboundJaxrsResponseBuilderTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/OutboundJaxrsResponseBuilderTest.java
index f0257cdc32b..2a026dfae18 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/OutboundJaxrsResponseBuilderTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/OutboundJaxrsResponseBuilderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,8 +26,8 @@
import org.glassfish.jersey.message.internal.OutboundMessageContext;
import org.glassfish.jersey.tests.e2e.common.TestRuntimeDelegate;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* JaxrsResponseViewTest class.
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/OutboundJaxrsResponseTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/OutboundJaxrsResponseTest.java
index 3267ad2dc3f..d3c8621b41e 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/OutboundJaxrsResponseTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/OutboundJaxrsResponseTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -29,11 +29,11 @@
import org.glassfish.jersey.message.internal.OutboundMessageContext;
import org.glassfish.jersey.tests.e2e.common.TestRuntimeDelegate;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* OutboundJaxrsResponse unit tests.
@@ -96,7 +96,7 @@ public OutboundJaxrsResponseTest() {
RuntimeDelegate.setInstance(new TestRuntimeDelegate());
}
- @Before
+ @BeforeEach
public void setUp() {
rb = new OutboundJaxrsResponse.Builder(new OutboundMessageContext((Configuration) null)).status(Response.Status.OK);
}
@@ -110,7 +110,7 @@ public void testBufferEmptyEntity() {
final OutboundJaxrsResponse r = OutboundJaxrsResponse.from(rb.build(), null);
r.getContext().setStreamProvider(TEST_PROVIDER);
- assertFalse("Buffer entity should return 'false' if no entity.", r.bufferEntity());
+ assertFalse(r.bufferEntity(), "Buffer entity should return 'false' if no entity.");
}
/**
@@ -121,7 +121,7 @@ public void testBufferNonStreamEntity() {
final OutboundJaxrsResponse r = OutboundJaxrsResponse.from(rb.entity(new Object()).build(), null);
r.getContext().setStreamProvider(TEST_PROVIDER);
- assertFalse("Buffer entity should return 'false' for non-stream entity.", r.bufferEntity());
+ assertFalse(r.bufferEntity(), "Buffer entity should return 'false' for non-stream entity.");
}
/**
@@ -133,10 +133,10 @@ public void testBufferStreamEntity() {
final OutboundJaxrsResponse r = OutboundJaxrsResponse.from(rb.entity(tis).build(), null);
r.getContext().setStreamProvider(TEST_PROVIDER);
- assertTrue("Buffer entity should return 'true' for stream entity.", r.bufferEntity());
- assertTrue("Second call to buffer entity should return 'true' for stream entity.", r.bufferEntity()); // second call
- assertTrue("Buffered stream has not been fully read.", tis.isRead);
- assertTrue("Buffered stream has not been closed after buffering.", tis.isClosed);
+ assertTrue(r.bufferEntity(), "Buffer entity should return 'true' for stream entity.");
+ assertTrue(r.bufferEntity(), "Second call to buffer entity should return 'true' for stream entity."); // second call
+ assertTrue(tis.isRead, "Buffered stream has not been fully read.");
+ assertTrue(tis.isClosed, "Buffered stream has not been closed after buffering.");
}
/**
@@ -193,8 +193,8 @@ public void testCloseStreamEntity() {
}
r.close(); // second call should pass
- assertFalse("Unbuffered closed response stream entity should not be read.", tis.isRead);
- assertTrue("Closed response stream entity should have been closed.", tis.isClosed);
+ assertFalse(tis.isRead, "Unbuffered closed response stream entity should not be read.");
+ assertTrue(tis.isClosed, "Closed response stream entity should have been closed.");
}
/**
@@ -245,8 +245,8 @@ public void testCloseStreamEntityNoStreamProvider() {
}
r.close(); // second call should pass
- assertFalse("Unbuffered closed response stream entity should not be read.", tis.isRead);
- assertTrue("Closed response stream entity should have been closed.", tis.isClosed);
+ assertFalse(tis.isRead, "Unbuffered closed response stream entity should not be read.");
+ assertTrue(tis.isClosed, "Closed response stream entity should have been closed.");
}
}
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/OutboundMessageContextTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/OutboundMessageContextTest.java
index 28775941b26..537078079e5 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/OutboundMessageContextTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/OutboundMessageContextTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -36,15 +36,15 @@
import org.glassfish.jersey.message.internal.OutboundMessageContext;
import org.glassfish.jersey.tests.e2e.common.TestRuntimeDelegate;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.equalTo;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* {@link OutboundMessageContext} test.
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/QualitySourceMediaTypeTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/QualitySourceMediaTypeTest.java
index 1841774431b..8e20a44d6fb 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/QualitySourceMediaTypeTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/message/internal/QualitySourceMediaTypeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,57 +16,46 @@
package org.glassfish.jersey.tests.e2e.common.message.internal;
-import java.util.Arrays;
-import java.util.List;
+import java.util.stream.Stream;
import javax.ws.rs.core.MediaType;
import org.glassfish.jersey.message.internal.QualitySourceMediaType;
-import org.junit.Assert;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
/**
* Quality source media type unit tests.
*
* @author Marek Potociar
*/
-@RunWith(Parameterized.class)
public class QualitySourceMediaTypeTest {
- @Parameterized.Parameters
// expected result, media type, quality source media type
- public static List testBeds() {
- return Arrays.asList(new Object[][]{
- {Boolean.TRUE, MediaType.APPLICATION_JSON_TYPE, new QualitySourceMediaType("application", "json")},
- {Boolean.TRUE, MediaType.APPLICATION_JSON_TYPE, new QualitySourceMediaType("application", "json", 1000, null)},
- {Boolean.FALSE, MediaType.APPLICATION_JSON_TYPE, new QualitySourceMediaType("application", "json", 500, null)},
- {Boolean.FALSE, MediaType.APPLICATION_JSON_TYPE, new QualitySourceMediaType("application", "xml")}
- });
+ public static Stream testBeds() {
+ return Stream.of(
+ Arguments.of(Boolean.TRUE, MediaType.APPLICATION_JSON_TYPE, new QualitySourceMediaType("application", "json")),
+ Arguments.of(Boolean.TRUE, MediaType.APPLICATION_JSON_TYPE,
+ new QualitySourceMediaType("application", "json", 1000, null)),
+ Arguments.of(Boolean.FALSE, MediaType.APPLICATION_JSON_TYPE,
+ new QualitySourceMediaType("application", "json", 500, null)),
+ Arguments.of(Boolean.FALSE, MediaType.APPLICATION_JSON_TYPE, new QualitySourceMediaType("application", "xml"))
+ );
}
- private final boolean expectEquality;
- private final MediaType mediaType;
- private final QualitySourceMediaType qsMediaType;
-
- public QualitySourceMediaTypeTest(boolean expectEquality, MediaType mediaType, QualitySourceMediaType qsMediaType) {
- this.expectEquality = expectEquality;
- this.mediaType = mediaType;
- this.qsMediaType = qsMediaType;
- }
-
- @Test
- public void testEquals() throws Exception {
+ @ParameterizedTest
+ @MethodSource("testBeds")
+ public void testEquals(boolean expectEquality, MediaType mediaType, QualitySourceMediaType qsMediaType) throws Exception {
if (expectEquality) {
- Assert.assertEquals("Types not equal.", mediaType, qsMediaType);
- Assert.assertEquals("Types not equal.", qsMediaType, mediaType);
- Assert.assertEquals(
- String.format("Hash codes not equal for %s and %s.", mediaType.toString(), qsMediaType.toString()),
- mediaType.hashCode(), qsMediaType.hashCode());
+ Assertions.assertEquals(mediaType, qsMediaType, "Types not equal.");
+ Assertions.assertEquals(qsMediaType, mediaType, "Types not equal.");
+ Assertions.assertEquals(mediaType.hashCode(), qsMediaType.hashCode(),
+ String.format("Hash codes not equal for %s and %s.", mediaType.toString(), qsMediaType.toString()));
} else {
- Assert.assertFalse(String.format("False equality of %s and %s", mediaType.toString(), qsMediaType.toString()),
- qsMediaType.equals(mediaType));
+ Assertions.assertFalse(qsMediaType.equals(mediaType),
+ String.format("False equality of %s and %s", mediaType.toString(), qsMediaType.toString()));
}
}
}
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/model/internal/CommonConfigTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/model/internal/CommonConfigTest.java
index e9319121f00..fb1a982abad 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/model/internal/CommonConfigTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/model/internal/CommonConfigTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -52,21 +52,21 @@
import org.glassfish.jersey.model.internal.ManagedObjectsFinalizer;
import org.glassfish.jersey.model.internal.RankedComparator;
-import org.junit.Assert;
-import org.junit.Assume;
-import org.junit.Before;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Assumptions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.Matchers.lessThan;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Test cases for {@link javax.ws.rs.core.Configuration}.
@@ -77,7 +77,7 @@ public class CommonConfigTest {
private CommonConfig config;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
config = new CommonConfig(null, ComponentBag.INCLUDE_ALL);
}
@@ -442,9 +442,9 @@ public void testRegisterClassContracts() throws Exception {
final ContractProvider contractProvider = config.getComponentBag().getModel(ComplexEmptyProvider.class);
final Set> contracts = contractProvider.getContracts();
assertEquals(2, contracts.size());
- assertTrue(ReaderInterceptor.class + " is not registered.", contracts.contains(ReaderInterceptor.class));
- assertTrue(ContainerRequestFilter.class + " is not registered.", contracts.contains(ContainerRequestFilter.class));
- assertFalse(WriterInterceptor.class + " should not be registered.", contracts.contains(WriterInterceptor.class));
+ assertTrue(contracts.contains(ReaderInterceptor.class), ReaderInterceptor.class + " is not registered.");
+ assertTrue(contracts.contains(ContainerRequestFilter.class), ContainerRequestFilter.class + " is not registered.");
+ assertFalse(contracts.contains(WriterInterceptor.class), WriterInterceptor.class + " should not be registered.");
assertTrue(config.getInstances().isEmpty());
assertTrue(config.getClasses().contains(ComplexEmptyProvider.class));
@@ -466,9 +466,9 @@ public void testRegisterInstancesContracts() throws Exception {
final ContractProvider contractProvider = config.getComponentBag().getModel(ComplexEmptyProvider.class);
final Set> contracts = contractProvider.getContracts();
assertEquals(2, contracts.size());
- assertTrue(ReaderInterceptor.class + " is not registered.", contracts.contains(ReaderInterceptor.class));
- assertTrue(ContainerRequestFilter.class + " is not registered.", contracts.contains(ContainerRequestFilter.class));
- assertFalse(WriterInterceptor.class + " should not be registered.", contracts.contains(WriterInterceptor.class));
+ assertTrue(contracts.contains(ReaderInterceptor.class), ReaderInterceptor.class + " is not registered.");
+ assertTrue(contracts.contains(ContainerRequestFilter.class), ContainerRequestFilter.class + " is not registered.");
+ assertFalse(contracts.contains(WriterInterceptor.class), WriterInterceptor.class + " should not be registered.");
assertTrue(config.getInstances().contains(complexEmptyProvider));
assertTrue(config.getClasses().isEmpty());
@@ -689,7 +689,7 @@ private void _testCollectionsCommon(final String testName, final Collection<
throws Exception {
// Not null.
- assertNotNull(testName + " - returned collection is null.", collection);
+ assertNotNull(collection, testName + " - returned collection is null.");
// Immutability.
try {
@@ -965,7 +965,7 @@ protected void configure() {
@Test
public void testFeatureInjections() throws Exception {
- Assume.assumeTrue(Hk2InjectionManagerFactory.isImmediateStrategy());
+ Assumptions.assumeTrue(Hk2InjectionManagerFactory.isImmediateStrategy());
config.register(InjectIntoFeatureClass.class)
.register(new InjectIntoFeatureInstance())
@@ -985,7 +985,7 @@ protected void configure() {
}
@Test
- @Ignore
+ @Disabled
public void testFeatureInjectionsBindInFeature() throws Exception {
config.register(new BindInjectMeInFeature());
config.register(InjectIntoFeatureClass.class);
@@ -1078,9 +1078,9 @@ public void testBinderOrderingInGetClasses() {
config.configureMetaProviders(injectionManager, finalizer);
Object[] classes = config.getComponentBag().getClasses(contractProvider -> true).toArray();
- Assert.assertEquals(classes[0], ContractBinderOne.class);
- Assert.assertEquals(classes[1], ContractBinderTwo.class);
- Assert.assertEquals(classes[2], ContractBinder.class);
+ Assertions.assertEquals(classes[0], ContractBinderOne.class);
+ Assertions.assertEquals(classes[1], ContractBinderTwo.class);
+ Assertions.assertEquals(classes[2], ContractBinder.class);
}
@Test
@@ -1093,9 +1093,9 @@ public void testBinderOrderingInGetInstances() {
config.configureMetaProviders(injectionManager, finalizer);
Object[] instances = config.getComponentBag().getInstances(contractProvider -> true).toArray();
- Assert.assertEquals(instances[0], binders[2]);
- Assert.assertEquals(instances[1], binders[1]);
- Assert.assertEquals(instances[2], binders[0]);
+ Assertions.assertEquals(instances[0], binders[2]);
+ Assertions.assertEquals(instances[1], binders[1]);
+ Assertions.assertEquals(instances[2], binders[0]);
}
public static class ContractBinderOne extends ContractBinder {
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/process/internal/ExecutorProvidersTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/process/internal/ExecutorProvidersTest.java
index ccbc53d8e3f..f5b0b0a077f 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/process/internal/ExecutorProvidersTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/process/internal/ExecutorProvidersTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -40,10 +40,10 @@
import org.glassfish.jersey.spi.ThreadPoolExecutorProvider;
import org.hamcrest.Matchers;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* ExecutorProviders unit tests.
@@ -205,7 +205,7 @@ protected void configure() {
/**
* Set-up the tests.
*/
- @Before
+ @BeforeEach
public void setup() {
injectionManager = Injections.createInjectionManager(this);
ExecutorProviders.registerExecutorBindings(injectionManager);
@@ -262,8 +262,8 @@ public void testExecutorInjectionAndReleasing() throws Exception {
}
private void testShutDown(String name, ExecutorService executorService) throws InterruptedException {
- assertTrue(name + " not shutdown", executorService.isShutdown());
- assertTrue(name + " not terminated", executorService.isTerminated());
+ assertTrue(executorService.isShutdown(), name + " not shutdown");
+ assertTrue(executorService.isTerminated(), name + " not terminated");
}
}
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/process/internal/RequestScopeTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/process/internal/RequestScopeTest.java
index 36a23e9124c..758289401b9 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/process/internal/RequestScopeTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/process/internal/RequestScopeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,10 +25,10 @@
import org.glassfish.hk2.api.ServiceHandle;
import org.glassfish.hk2.utilities.AbstractActiveDescriptor;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Test of the {@link RequestScope request scope}.
diff --git a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/uri/internal/JerseyUriBuilderTest.java b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/uri/internal/JerseyUriBuilderTest.java
index 06799b8d4be..d9a391b6b9f 100644
--- a/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/uri/internal/JerseyUriBuilderTest.java
+++ b/tests/e2e-core-common/src/test/java/org/glassfish/jersey/tests/e2e/common/uri/internal/JerseyUriBuilderTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -37,11 +37,11 @@
import org.glassfish.jersey.uri.UriComponent;
import org.glassfish.jersey.uri.internal.JerseyUriBuilder;
-import org.junit.Assert;
-import org.junit.Ignore;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Uri builder implementation test.
@@ -314,7 +314,7 @@ public void testUriBuilderTemplatesSimple() {
}
@Test
- @Ignore
+ @Disabled
public void failingTests() {
testUri("a://#fragment"); // fails in JerseyUriBuilder
testUri("a://?query");
@@ -413,107 +413,107 @@ private void testUri(final String input) {
assertEquals(input, uri.toString());
}
- @org.junit.Test
+ @Test
public void testOpaqueUri() {
final URI uri = UriBuilder.fromUri("mailto:a@b").build();
- Assert.assertEquals("mailto:a@b", uri.toString());
+ Assertions.assertEquals("mailto:a@b", uri.toString());
}
@Test
public void testOpaqueUriReplaceSchemeSpecificPart() {
final URI uri = UriBuilder.fromUri("mailto:a@b").schemeSpecificPart("c@d").build();
- Assert.assertEquals("mailto:c@d", uri.toString());
+ Assertions.assertEquals("mailto:c@d", uri.toString());
}
@Test
public void testOpaqueReplaceUri() {
final URI uri = UriBuilder.fromUri("mailto:a@b").uri(URI.create("c@d")).build();
- Assert.assertEquals("mailto:c@d", uri.toString());
+ Assertions.assertEquals("mailto:c@d", uri.toString());
}
@Test
public void testReplaceScheme() {
URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").scheme("https").build();
- Assert.assertEquals("https://localhost:8080/a/b/c", uri.toString());
+ Assertions.assertEquals("https://localhost:8080/a/b/c", uri.toString());
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").scheme(null).build();
- Assert.assertEquals("//localhost:8080/a/b/c", uri.toString());
+ Assertions.assertEquals("//localhost:8080/a/b/c", uri.toString());
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").scheme(null).host(null).build();
- Assert.assertEquals("//:8080/a/b/c", uri.toString());
+ Assertions.assertEquals("//:8080/a/b/c", uri.toString());
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").scheme(null).host(null).port(-1).build();
- Assert.assertEquals("/a/b/c", uri.toString());
+ Assertions.assertEquals("/a/b/c", uri.toString());
}
@Test
public void testReplaceSchemeSpecificPart() {
final URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").schemeSpecificPart("//localhost:8080/a/b/c/d").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/d"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/d"), uri);
}
@Test
public void testNameAuthorityUri() {
final URI uri = UriBuilder.fromUri("http://x_y/a/b/c").build();
- Assert.assertEquals(URI.create("http://x_y/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://x_y/a/b/c"), uri);
}
@Test
public void testReplaceNameAuthorityUriWithHost() {
final URI uri = UriBuilder.fromUri("http://x_y.com/a/b/c").host("xy.com").build();
- Assert.assertEquals(URI.create("http://xy.com/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://xy.com/a/b/c"), uri);
}
@Test
public void testReplaceNameAuthorityUriWithSSP() {
URI uri = UriBuilder.fromUri("http://x_y.com/a/b/c").schemeSpecificPart("//xy.com/a/b/c").build();
- Assert.assertEquals(URI.create("http://xy.com/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://xy.com/a/b/c"), uri);
uri = UriBuilder.fromUri("http://x_y.com/a/b/c").schemeSpecificPart("//v_w.com/a/b/c").build();
- Assert.assertEquals(URI.create("http://v_w.com/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://v_w.com/a/b/c"), uri);
}
@Test
public void testReplaceUserInfo() {
final URI uri = UriBuilder.fromUri("http://bob@localhost:8080/a/b/c").userInfo("sue").build();
- Assert.assertEquals(URI.create("http://sue@localhost:8080/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://sue@localhost:8080/a/b/c"), uri);
}
@Test
public void testReplaceHost() {
URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").host("a.com").build();
- Assert.assertEquals(URI.create("http://a.com:8080/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://a.com:8080/a/b/c"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").host("[::FFFF:129.144.52.38]").build();
- Assert.assertEquals(URI.create("http://[::FFFF:129.144.52.38]:8080/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://[::FFFF:129.144.52.38]:8080/a/b/c"), uri);
}
@Test
public void testReplacePort() {
URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").port(9090).build();
- Assert.assertEquals(URI.create("http://localhost:9090/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:9090/a/b/c"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").port(-1).build();
- Assert.assertEquals(URI.create("http://localhost/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://localhost/a/b/c"), uri);
}
@Test
public void testReplacePath() {
final URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").replacePath("/x/y/z").build();
- Assert.assertEquals(URI.create("http://localhost:8080/x/y/z"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/x/y/z"), uri);
}
@Test
public void testReplacePathNull() {
final URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").replacePath(null).build();
- Assert.assertEquals(URI.create("http://localhost:8080"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080"), uri);
}
@Test
public void testReplaceMatrix() {
final URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c;a=x;b=y").replaceMatrix("x=a;y=b").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c;x=a;y=b"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c;x=a;y=b"), uri);
}
@Test
@@ -525,12 +525,12 @@ public void testReplaceMatrixParams() {
final List ps = UriComponent.decodePath(uri, true);
final MultivaluedMap mps = ps.get(2).getMatrixParameters();
final List a = mps.get("a");
- Assert.assertEquals(2, a.size());
- Assert.assertEquals("z", a.get(0));
- Assert.assertEquals("zz", a.get(1));
+ Assertions.assertEquals(2, a.size());
+ Assertions.assertEquals("z", a.get(0));
+ Assertions.assertEquals("zz", a.get(1));
final List b = mps.get("b");
- Assert.assertEquals(1, b.size());
- Assert.assertEquals("y", b.get(0));
+ Assertions.assertEquals(1, b.size());
+ Assertions.assertEquals("y", b.get(0));
}
{
@@ -538,12 +538,12 @@ public void testReplaceMatrixParams() {
final List ps = UriComponent.decodePath(uri, true);
final MultivaluedMap mps = ps.get(2).getMatrixParameters();
final List a = mps.get("a");
- Assert.assertEquals(2, a.size());
- Assert.assertEquals("_z_", a.get(0));
- Assert.assertEquals("_zz_", a.get(1));
+ Assertions.assertEquals(2, a.size());
+ Assertions.assertEquals("_z_", a.get(0));
+ Assertions.assertEquals("_zz_", a.get(1));
final List b = mps.get("b");
- Assert.assertEquals(1, b.size());
- Assert.assertEquals("y", b.get(0));
+ Assertions.assertEquals(1, b.size());
+ Assertions.assertEquals("y", b.get(0));
}
{
@@ -554,15 +554,15 @@ public void testReplaceMatrixParams() {
final List ps = UriComponent.decodePath(uri, true);
final MultivaluedMap mps = ps.get(2).getMatrixParameters();
final List a = mps.get("a");
- Assert.assertEquals(2, a.size());
- Assert.assertEquals("z", a.get(0));
- Assert.assertEquals("zz", a.get(1));
+ Assertions.assertEquals(2, a.size());
+ Assertions.assertEquals("z", a.get(0));
+ Assertions.assertEquals("zz", a.get(1));
final List b = mps.get("b");
- Assert.assertEquals(1, b.size());
- Assert.assertEquals("y", b.get(0));
+ Assertions.assertEquals(1, b.size());
+ Assertions.assertEquals("y", b.get(0));
final List c = mps.get("c");
- Assert.assertEquals(1, c.size());
- Assert.assertEquals("c", c.get(0));
+ Assertions.assertEquals(1, c.size());
+ Assertions.assertEquals("c", c.get(0));
}
{
@@ -573,24 +573,24 @@ public void testReplaceMatrixParams() {
MultivaluedMap mps = ps.get(0).getMatrixParameters();
List w = mps.get("w");
- Assert.assertEquals(1, w.size());
- Assert.assertEquals("123", w.get(0));
+ Assertions.assertEquals(1, w.size());
+ Assertions.assertEquals("123", w.get(0));
w = mps.get("q");
- Assert.assertEquals(1, w.size());
- Assert.assertEquals("15", w.get(0));
+ Assertions.assertEquals(1, w.size());
+ Assertions.assertEquals("15", w.get(0));
mps = ps.get(2).getMatrixParameters();
final List a = mps.get("a");
- Assert.assertEquals(2, a.size());
- Assert.assertEquals("z", a.get(0));
- Assert.assertEquals("zz", a.get(1));
+ Assertions.assertEquals(2, a.size());
+ Assertions.assertEquals("z", a.get(0));
+ Assertions.assertEquals("zz", a.get(1));
final List b = mps.get("b");
- Assert.assertEquals(1, b.size());
- Assert.assertEquals("y", b.get(0));
+ Assertions.assertEquals(1, b.size());
+ Assertions.assertEquals("y", b.get(0));
final List c = mps.get("c");
- Assert.assertEquals(1, c.size());
- Assert.assertEquals("c", c.get(0));
+ Assertions.assertEquals(1, c.size());
+ Assertions.assertEquals("c", c.get(0));
}
}
@@ -602,9 +602,9 @@ public void testReplaceMatrixParamsEmpty() {
final List ps = UriComponent.decodePath(uri, true);
final MultivaluedMap mps = ps.get(2).getMatrixParameters();
final List a = mps.get("a");
- Assert.assertEquals(2, a.size());
- Assert.assertEquals("z", a.get(0));
- Assert.assertEquals("zz", a.get(1));
+ Assertions.assertEquals(2, a.size());
+ Assertions.assertEquals("z", a.get(0));
+ Assertions.assertEquals("zz", a.get(1));
}
}
@@ -614,7 +614,7 @@ public void testReplaceMatrixParamsEncoded() throws URISyntaxException {
ubu.replaceMatrixParam("limit", 100);
final URI uri = ubu.build();
- Assert.assertEquals(URI.create("http://localhost/;limit=100;sql=select+*+from+users"), uri);
+ Assertions.assertEquals(URI.create("http://localhost/;limit=100;sql=select+*+from+users"), uri);
}
@Test
@@ -623,7 +623,7 @@ public void testMatrixParamsWithTheSameName() {
first = first.path("/child");
first = first.replaceMatrixParam("example", "another");
- Assert.assertEquals("http://www.com/;example=one;example=two/child;example=another", first.build().toString());
+ Assertions.assertEquals("http://www.com/;example=one;example=two/child;example=another", first.build().toString());
}
@Test
@@ -632,23 +632,23 @@ public void testMatrixParamsWithTheDifferentName() {
first = first.path("/child");
first = first.replaceMatrixParam("other", "another");
- Assert.assertEquals("http://www.com/;example=one;example=two/child;other=another", first.build().toString());
+ Assertions.assertEquals("http://www.com/;example=one;example=two/child;other=another", first.build().toString());
}
@Test
public void testReplaceQuery() {
final URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c?a=x&b=y").replaceQuery("x=a&y=b").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c?x=a&y=b"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c?x=a&y=b"), uri);
}
@Test
public void testBuildEncodedQuery() {
URI u = UriBuilder.fromPath("").queryParam("y", "1 %2B 2").build();
- Assert.assertEquals(URI.create("?y=1+%2B+2"), u);
+ Assertions.assertEquals(URI.create("?y=1+%2B+2"), u);
// Issue 216
u = UriBuilder.fromPath("http://localhost:8080").path("/{x}/{y}/{z}/{x}").buildFromEncoded("%xy", " ", "=");
- Assert.assertEquals(URI.create("http://localhost:8080/%25xy/%20/=/%25xy"), u);
+ Assertions.assertEquals(URI.create("http://localhost:8080/%25xy/%20/=/%25xy"), u);
}
@Test
@@ -661,15 +661,15 @@ public void testReplaceQueryParams() {
final MultivaluedMap qps = UriComponent.decodeQuery(uri, true);
final List a = qps.get("a");
- Assert.assertEquals(2, a.size());
- Assert.assertEquals("z", a.get(0));
- Assert.assertEquals("zz", a.get(1));
+ Assertions.assertEquals(2, a.size());
+ Assertions.assertEquals("z", a.get(0));
+ Assertions.assertEquals("zz", a.get(1));
final List b = qps.get("b");
- Assert.assertEquals(1, b.size());
- Assert.assertEquals("y", b.get(0));
+ Assertions.assertEquals(1, b.size());
+ Assertions.assertEquals("y", b.get(0));
final List c = qps.get("c");
- Assert.assertEquals(1, c.size());
- Assert.assertEquals("c", c.get(0));
+ Assertions.assertEquals(1, c.size());
+ Assertions.assertEquals("c", c.get(0));
}
{
@@ -677,15 +677,15 @@ public void testReplaceQueryParams() {
final MultivaluedMap qps = UriComponent.decodeQuery(uri, true);
final List a = qps.get("a");
- Assert.assertEquals(2, a.size());
- Assert.assertEquals("_z_", a.get(0));
- Assert.assertEquals("_zz_", a.get(1));
+ Assertions.assertEquals(2, a.size());
+ Assertions.assertEquals("_z_", a.get(0));
+ Assertions.assertEquals("_zz_", a.get(1));
final List b = qps.get("b");
- Assert.assertEquals(1, b.size());
- Assert.assertEquals("y", b.get(0));
+ Assertions.assertEquals(1, b.size());
+ Assertions.assertEquals("y", b.get(0));
final List c = qps.get("c");
- Assert.assertEquals(1, c.size());
- Assert.assertEquals("c", c.get(0));
+ Assertions.assertEquals(1, c.size());
+ Assertions.assertEquals("c", c.get(0));
}
// issue 257 - param is removed after setting it to null
@@ -693,10 +693,10 @@ public void testReplaceQueryParams() {
final URI u1 = UriBuilder.fromPath("http://localhost:8080").queryParam("x", "10")
.replaceQueryParam("x", (Object[]) null)
.build();
- Assert.assertTrue(u1.toString().equals("http://localhost:8080"));
+ Assertions.assertTrue(u1.toString().equals("http://localhost:8080"));
final URI u2 = UriBuilder.fromPath("http://localhost:8080").queryParam("x", "10").replaceQueryParam("x").build();
- Assert.assertTrue(u2.toString().equals("http://localhost:8080"));
+ Assertions.assertTrue(u2.toString().equals("http://localhost:8080"));
}
// issue 257 - IllegalArgumentException
@@ -709,7 +709,7 @@ public void testReplaceQueryParams() {
caught = true;
}
- Assert.assertTrue(caught);
+ Assertions.assertTrue(caught);
}
}
@@ -724,12 +724,12 @@ public void testReplaceQueryParamsEmpty() {
final MultivaluedMap qps = UriComponent.decodeQuery(uri, true);
final List a = qps.get("a");
- Assert.assertEquals(2, a.size());
- Assert.assertEquals("z", a.get(0));
- Assert.assertEquals("zz", a.get(1));
+ Assertions.assertEquals(2, a.size());
+ Assertions.assertEquals("z", a.get(0));
+ Assertions.assertEquals("zz", a.get(1));
final List c = qps.get("c");
- Assert.assertEquals(1, c.size());
- Assert.assertEquals("c", c.get(0));
+ Assertions.assertEquals(1, c.size());
+ Assertions.assertEquals("c", c.get(0));
}
}
@@ -739,7 +739,7 @@ public void testReplaceQueryParamsEncoded1() throws URISyntaxException {
ubu.replaceQueryParam("limit", 100);
final URI uri = ubu.build();
- Assert.assertEquals(URI.create("http://localhost/?limit=100&sql=select+%2A+from+users"), uri);
+ Assertions.assertEquals(URI.create("http://localhost/?limit=100&sql=select+%2A+from+users"), uri);
}
@Test
@@ -748,7 +748,7 @@ public void testReplaceQueryParamsEncoded2() throws URISyntaxException {
ubu.replaceQueryParam("limit", 100);
final URI uri = ubu.build();
- Assert.assertEquals(URI.create("http://localhost/?limit=100&sql=select+%2A+from+users"), uri);
+ Assertions.assertEquals(URI.create("http://localhost/?limit=100&sql=select+%2A+from+users"), uri);
}
@Test
@@ -757,7 +757,7 @@ public void testReplaceQueryParamsEncoded3() throws URISyntaxException {
ubu.replaceQueryParam("limit", 100);
final URI uri = ubu.build();
- Assert.assertEquals(URI.create("http://localhost/?limit=100&sql=select+%2A+from+users"), uri);
+ Assertions.assertEquals(URI.create("http://localhost/?limit=100&sql=select+%2A+from+users"), uri);
}
@Test
@@ -766,13 +766,13 @@ public void testReplaceQueryParamsEncoded4() throws URISyntaxException {
ubu.replaceQueryParam("limit", 100);
final URI uri = ubu.build();
- Assert.assertEquals(URI.create("http://localhost/?limit=100&sql=select+%2A+from+users"), uri);
+ Assertions.assertEquals(URI.create("http://localhost/?limit=100&sql=select+%2A+from+users"), uri);
}
@Test
public void testReplaceFragment() {
final URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c?a=x&b=y#frag").fragment("ment").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c?a=x&b=y#ment"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c?a=x&b=y#ment"), uri);
}
@Test
@@ -780,22 +780,22 @@ public void testReplaceUri() {
final URI u = URI.create("http://bob@localhost:8080/a/b/c?a=x&b=y#frag");
URI uri = UriBuilder.fromUri(u).uri(URI.create("https://bob@localhost:8080")).build();
- Assert.assertEquals(URI.create("https://bob@localhost:8080/a/b/c?a=x&b=y#frag"), uri);
+ Assertions.assertEquals(URI.create("https://bob@localhost:8080/a/b/c?a=x&b=y#frag"), uri);
uri = UriBuilder.fromUri(u).uri(URI.create("https://sue@localhost:8080")).build();
- Assert.assertEquals(URI.create("https://sue@localhost:8080/a/b/c?a=x&b=y#frag"), uri);
+ Assertions.assertEquals(URI.create("https://sue@localhost:8080/a/b/c?a=x&b=y#frag"), uri);
uri = UriBuilder.fromUri(u).uri(URI.create("https://sue@localhost:9090")).build();
- Assert.assertEquals(URI.create("https://sue@localhost:9090/a/b/c?a=x&b=y#frag"), uri);
+ Assertions.assertEquals(URI.create("https://sue@localhost:9090/a/b/c?a=x&b=y#frag"), uri);
uri = UriBuilder.fromUri(u).uri(URI.create("/x/y/z")).build();
- Assert.assertEquals(URI.create("http://bob@localhost:8080/x/y/z?a=x&b=y#frag"), uri);
+ Assertions.assertEquals(URI.create("http://bob@localhost:8080/x/y/z?a=x&b=y#frag"), uri);
uri = UriBuilder.fromUri(u).uri(URI.create("?x=a&b=y")).build();
- Assert.assertEquals(URI.create("http://bob@localhost:8080/a/b/c?x=a&b=y#frag"), uri);
+ Assertions.assertEquals(URI.create("http://bob@localhost:8080/a/b/c?x=a&b=y#frag"), uri);
uri = UriBuilder.fromUri(u).uri(URI.create("#ment")).build();
- Assert.assertEquals(URI.create("http://bob@localhost:8080/a/b/c?a=x&b=y#ment"), uri);
+ Assertions.assertEquals(URI.create("http://bob@localhost:8080/a/b/c?a=x&b=y#ment"), uri);
}
@Test
@@ -803,46 +803,46 @@ public void testSchemeSpecificPart() {
final URI u = URI.create("http://bob@localhost:8080/a/b/c?a=x&b=y#frag");
final URI uri = UriBuilder.fromUri(u).schemeSpecificPart("//sue@remotehost:9090/x/y/z?x=a&y=b").build();
- Assert.assertEquals(URI.create("http://sue@remotehost:9090/x/y/z?x=a&y=b#frag"), uri);
+ Assertions.assertEquals(URI.create("http://sue@remotehost:9090/x/y/z?x=a&y=b#frag"), uri);
}
@Test
public void testAppendPath() {
URI uri = UriBuilder.fromUri("http://localhost:8080").path("a/b/c").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/").path("a/b/c").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c"), uri);
uri = UriBuilder.fromUri("http://localhost:8080").path("/a/b/c").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c/").path("/").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c/").path("/x/y/z").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").path("/x/y/z").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").path("x/y/z").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").path("/").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").path("").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/a%20/b%20/c%20").path("/x /y /z ").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a%20/b%20/c%20/x%20/y%20/z%20"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a%20/b%20/c%20/x%20/y%20/z%20"), uri);
}
@Test
public void testAppendSegment() {
final URI uri = UriBuilder.fromUri("http://localhost:8080").segment("a/b/c;x").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a%2Fb%2Fc%3Bx"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a%2Fb%2Fc%3Bx"), uri);
}
@Test
@@ -889,65 +889,65 @@ public void testWhitespacesInQueryParamsByResolve() {
@Test
public void testRelativeFromUri() {
URI uri = UriBuilder.fromUri("a/b/c").build();
- Assert.assertEquals(URI.create("a/b/c"), uri);
+ Assertions.assertEquals(URI.create("a/b/c"), uri);
uri = UriBuilder.fromUri("a/b/c").path("d").build();
- Assert.assertEquals(URI.create("a/b/c/d"), uri);
+ Assertions.assertEquals(URI.create("a/b/c/d"), uri);
uri = UriBuilder.fromUri("a/b/c/").path("d").build();
- Assert.assertEquals(URI.create("a/b/c/d"), uri);
+ Assertions.assertEquals(URI.create("a/b/c/d"), uri);
uri = UriBuilder.fromUri("a/b/c").path("/d").build();
- Assert.assertEquals(URI.create("a/b/c/d"), uri);
+ Assertions.assertEquals(URI.create("a/b/c/d"), uri);
uri = UriBuilder.fromUri("a/b/c/").path("/d").build();
- Assert.assertEquals(URI.create("a/b/c/d"), uri);
+ Assertions.assertEquals(URI.create("a/b/c/d"), uri);
uri = UriBuilder.fromUri("").queryParam("x", "y").build();
- Assert.assertEquals(URI.create("?x=y"), uri);
+ Assertions.assertEquals(URI.create("?x=y"), uri);
}
@Test
public void testRelativefromPath() {
URI uri = UriBuilder.fromPath("a/b/c").build();
- Assert.assertEquals(URI.create("a/b/c"), uri);
+ Assertions.assertEquals(URI.create("a/b/c"), uri);
uri = UriBuilder.fromPath("a/b/c").path("d").build();
- Assert.assertEquals(URI.create("a/b/c/d"), uri);
+ Assertions.assertEquals(URI.create("a/b/c/d"), uri);
uri = UriBuilder.fromPath("a/b/c/").path("d").build();
- Assert.assertEquals(URI.create("a/b/c/d"), uri);
+ Assertions.assertEquals(URI.create("a/b/c/d"), uri);
uri = UriBuilder.fromPath("a/b/c").path("/d").build();
- Assert.assertEquals(URI.create("a/b/c/d"), uri);
+ Assertions.assertEquals(URI.create("a/b/c/d"), uri);
uri = UriBuilder.fromPath("a/b/c/").path("/d").build();
- Assert.assertEquals(URI.create("a/b/c/d"), uri);
+ Assertions.assertEquals(URI.create("a/b/c/d"), uri);
uri = UriBuilder.fromPath("").queryParam("x", "y").build();
- Assert.assertEquals(URI.create("?x=y"), uri);
+ Assertions.assertEquals(URI.create("?x=y"), uri);
}
@Test
public void testAppendQueryParams() throws URISyntaxException {
URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c?a=x&b=y").queryParam("c", "z").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c?a=x&b=y&c=z"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c?a=x&b=y&c=z"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c?a=x&b=y").queryParam("c= ", "z= ").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c?a=x&b=y&c%3D+=z%3D+"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c?a=x&b=y&c%3D+=z%3D+"), uri);
uri = UriBuilder.fromUri(new URI("http://localhost:8080/")).queryParam("c", "z").build();
- Assert.assertEquals(URI.create("http://localhost:8080/?c=z"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/?c=z"), uri);
uri = UriBuilder.fromUri(new URI("http://localhost:8080")).queryParam("c", "z").build();
- Assert.assertEquals(URI.create("http://localhost:8080/?c=z"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/?c=z"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/").queryParam("c", "z").build();
- Assert.assertEquals(URI.create("http://localhost:8080/?c=z"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/?c=z"), uri);
uri = UriBuilder.fromUri("http://localhost:8080").queryParam("c", "z").build();
- Assert.assertEquals(URI.create("http://localhost:8080/?c=z"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/?c=z"), uri);
try {
UriBuilder.fromPath("http://localhost:8080").queryParam("name", "x", null).build();
@@ -960,10 +960,10 @@ public void testAppendQueryParams() throws URISyntaxException {
@Test
public void testAppendMatrixParams() {
URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c;a=x;b=y").matrixParam("c", "z").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c;a=x;b=y;c=z"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c;a=x;b=y;c=z"), uri);
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c;a=x;b=y").matrixParam("c=/ ;", "z=/ ;").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c;a=x;b=y;c%3D%2F%20%3B=z%3D%2F%20%3B"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c;a=x;b=y;c%3D%2F%20%3B=z%3D%2F%20%3B"), uri);
}
@Test
@@ -971,7 +971,7 @@ public void testAppendPathAndMatrixParams() {
final URI uri = UriBuilder.fromUri("http://localhost:8080/").path(
"a").matrixParam("x", "foo").matrixParam("y", "bar").path("b").matrixParam("x", "foo").matrixParam("y", "bar")
.build();
- Assert.assertEquals(URI.create("http://localhost:8080/a;x=foo;y=bar/b;x=foo;y=bar"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a;x=foo;y=bar/b;x=foo;y=bar"), uri);
}
@Path("resource")
@@ -992,15 +992,15 @@ public Object locator() {
@Test
public void testResourceAppendPath() throws NoSuchMethodException {
URI ub = UriBuilder.fromUri("http://localhost:8080/base").path(Resource.class).build();
- Assert.assertEquals(URI.create("http://localhost:8080/base/resource"), ub);
+ Assertions.assertEquals(URI.create("http://localhost:8080/base/resource"), ub);
ub = UriBuilder.fromUri("http://localhost:8080/base").path(Resource.class, "get").build();
- Assert.assertEquals(URI.create("http://localhost:8080/base/method"), ub);
+ Assertions.assertEquals(URI.create("http://localhost:8080/base/method"), ub);
final Method get = Resource.class.getMethod("get");
final Method locator = Resource.class.getMethod("locator");
ub = UriBuilder.fromUri("http://localhost:8080/base").path(get).path(locator).build();
- Assert.assertEquals(URI.create("http://localhost:8080/base/method/locator"), ub);
+ Assertions.assertEquals(URI.create("http://localhost:8080/base/method/locator"), ub);
}
@Path("resource/{id}")
@@ -1021,15 +1021,15 @@ public Object locator() {
@Test
public void testResourceWithTemplateAppendPath() throws NoSuchMethodException {
URI ub = UriBuilder.fromUri("http://localhost:8080/base").path(ResourceWithTemplate.class).build("foo");
- Assert.assertEquals(URI.create("http://localhost:8080/base/resource/foo"), ub);
+ Assertions.assertEquals(URI.create("http://localhost:8080/base/resource/foo"), ub);
ub = UriBuilder.fromUri("http://localhost:8080/base").path(ResourceWithTemplate.class, "get").build("foo");
- Assert.assertEquals(URI.create("http://localhost:8080/base/method/foo"), ub);
+ Assertions.assertEquals(URI.create("http://localhost:8080/base/method/foo"), ub);
final Method get = ResourceWithTemplate.class.getMethod("get");
final Method locator = ResourceWithTemplate.class.getMethod("locator");
ub = UriBuilder.fromUri("http://localhost:8080/base").path(get).path(locator).build("foo", "bar");
- Assert.assertEquals(URI.create("http://localhost:8080/base/method/foo/locator/bar"), ub);
+ Assertions.assertEquals(URI.create("http://localhost:8080/base/method/foo/locator/bar"), ub);
}
@Path("resource/{id: .+}")
@@ -1050,15 +1050,15 @@ public Object locator() {
@Test
public void testResourceWithTemplateRegexAppendPath() throws NoSuchMethodException {
URI ub = UriBuilder.fromUri("http://localhost:8080/base").path(ResourceWithTemplateRegex.class).build("foo");
- Assert.assertEquals(URI.create("http://localhost:8080/base/resource/foo"), ub);
+ Assertions.assertEquals(URI.create("http://localhost:8080/base/resource/foo"), ub);
ub = UriBuilder.fromUri("http://localhost:8080/base").path(ResourceWithTemplateRegex.class, "get").build("foo");
- Assert.assertEquals(URI.create("http://localhost:8080/base/method/foo"), ub);
+ Assertions.assertEquals(URI.create("http://localhost:8080/base/method/foo"), ub);
final Method get = ResourceWithTemplateRegex.class.getMethod("get");
final Method locator = ResourceWithTemplateRegex.class.getMethod("locator");
ub = UriBuilder.fromUri("http://localhost:8080/base").path(get).path(locator).build("foo", "bar");
- Assert.assertEquals(URI.create("http://localhost:8080/base/method/foo/locator/bar"), ub);
+ Assertions.assertEquals(URI.create("http://localhost:8080/base/method/foo/locator/bar"), ub);
}
interface GenericInterface {
@@ -1081,20 +1081,20 @@ public Object find(@PathParam("id") final String s) {
public void testResourceWithGenericInterfaceAppendPath() {
final URI ub = UriBuilder.fromUri("http://localhost:8080/base").path(ResourceWithGenericInterface.class, "find")
.build("foo");
- Assert.assertEquals(URI.create("http://localhost:8080/base/foo"), ub);
+ Assertions.assertEquals(URI.create("http://localhost:8080/base/foo"), ub);
}
@Test
public void testBuildTemplates() {
URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").path("/{foo}/{bar}/{baz}/{foo}").build("x", "y", "z");
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x"), uri);
final Map m = new HashMap();
m.put("foo", "x");
m.put("bar", "y");
m.put("baz", "z");
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").path("/{foo}/{bar}/{baz}/{foo}").buildFromMap(m);
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x"), uri);
}
@Test
@@ -1107,20 +1107,20 @@ public void testBuildTemplatesByResolve() {
final URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").path("/{foo}/{bar}/{baz}/{foo}").resolveTemplates(m)
.build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x"), uri);
}
@Test
public void testBuildTemplatesWithNameAuthority() {
URI uri = UriBuilder.fromUri("http://x_y.com:8080/a/b/c").path("/{foo}/{bar}/{baz}/{foo}").build("x", "y", "z");
- Assert.assertEquals(URI.create("http://x_y.com:8080/a/b/c/x/y/z/x"), uri);
+ Assertions.assertEquals(URI.create("http://x_y.com:8080/a/b/c/x/y/z/x"), uri);
final Map m = new HashMap();
m.put("foo", "x");
m.put("bar", "y");
m.put("baz", "z");
uri = UriBuilder.fromUri("http://x_y.com:8080/a/b/c").path("/{foo}/{bar}/{baz}/{foo}").buildFromMap(m);
- Assert.assertEquals(URI.create("http://x_y.com:8080/a/b/c/x/y/z/x"), uri);
+ Assertions.assertEquals(URI.create("http://x_y.com:8080/a/b/c/x/y/z/x"), uri);
}
@Test
@@ -1131,7 +1131,7 @@ public void testBuildTemplatesWithNameAuthorityByResolve() {
m.put("baz", "z");
final URI uri = UriBuilder.fromUri("http://x_y.com:8080/a/b/c")
.path("/{foo}/{bar}/{baz}/{foo}").buildFromMap(m);
- Assert.assertEquals(URI.create("http://x_y.com:8080/a/b/c/x/y/z/x"), uri);
+ Assertions.assertEquals(URI.create("http://x_y.com:8080/a/b/c/x/y/z/x"), uri);
}
@Test
@@ -1152,7 +1152,7 @@ public void testBuildFromMap() {
caught = true;
}
- Assert.assertTrue(caught);
+ Assertions.assertTrue(caught);
}
@Test
@@ -1173,29 +1173,29 @@ public void testBuildFromMapByResolve() {
caught = true;
}
- Assert.assertTrue(caught);
+ Assertions.assertTrue(caught);
}
@Test
public void testBuildQueryTemplates() {
URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").queryParam("a", "{b}").build("=+&%xx%20");
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c?a=%3D%2B%26%25xx%2520"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c?a=%3D%2B%26%25xx%2520"), uri);
final Map m = new HashMap();
m.put("b", "=+&%xx%20");
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").queryParam("a", "{b}").buildFromMap(m);
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c?a=%3D%2B%26%25xx%2520"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c?a=%3D%2B%26%25xx%2520"), uri);
}
@Test
public void testBuildFromEncodedQueryTemplates() {
URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").queryParam("a", "{b}").buildFromEncoded("=+&%xx%20");
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c?a=%3D%2B%26%25xx%20"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c?a=%3D%2B%26%25xx%20"), uri);
final Map m = new HashMap();
m.put("b", "=+&%xx%20");
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").queryParam("a", "{b}").buildFromEncodedMap(m);
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c?a=%3D%2B%26%25xx%20"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c?a=%3D%2B%26%25xx%20"), uri);
}
@Test
@@ -1207,19 +1207,19 @@ public void testBuildFromEncodedSlashInParamValue() {
public void testResolveTemplateFromEncodedQueryTemplates() {
URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").queryParam("a", "{b}")
.resolveTemplateFromEncoded("b", "=+&%xx%20").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c?a=%3D%2B%26%25xx%20"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c?a=%3D%2B%26%25xx%20"), uri);
final Map m = new HashMap();
m.put("b", "=+&%xx%20");
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").queryParam("a", "{b}").resolveTemplatesFromEncoded(m).build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c?a=%3D%2B%26%25xx%20"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c?a=%3D%2B%26%25xx%20"), uri);
}
@Test
public void testBuildFragmentTemplates() {
URI uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").path("/{foo}/{bar}/{baz}/{foo}").fragment("{foo}")
.build("x", "y", "z");
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x#x"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x#x"), uri);
final Map m = new HashMap();
m.put("foo", "x");
@@ -1227,7 +1227,7 @@ public void testBuildFragmentTemplates() {
m.put("baz", "z");
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").path("/{foo}/{bar}/{baz}/{foo}").fragment("{foo}")
.buildFromMap(m);
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x#x"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x#x"), uri);
}
@Test
@@ -1236,7 +1236,7 @@ public void testResolveTemplateFromFragmentTemplates() {
.resolveTemplate("foo", "x").resolveTemplate("bar", "y")
.resolveTemplate("baz", "z").build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x#x"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x#x"), uri);
final Map m = new HashMap();
m.put("foo", "x");
@@ -1244,34 +1244,34 @@ public void testResolveTemplateFromFragmentTemplates() {
m.put("baz", "z");
uri = UriBuilder.fromUri("http://localhost:8080/a/b/c").path("/{foo}/{bar}/{baz}/{foo}").fragment("{foo}")
.resolveTemplates(m).build();
- Assert.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x#x"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/a/b/c/x/y/z/x#x"), uri);
}
@Test
public void testTemplatesDefaultPort() {
URI uri = UriBuilder.fromUri("http://localhost/a/b/c").path("/{foo}/{bar}/{baz}/{foo}").build("x", "y", "z");
- Assert.assertEquals(URI.create("http://localhost/a/b/c/x/y/z/x"), uri);
+ Assertions.assertEquals(URI.create("http://localhost/a/b/c/x/y/z/x"), uri);
final Map m = new HashMap();
m.put("foo", "x");
m.put("bar", "y");
m.put("baz", "z");
uri = UriBuilder.fromUri("http://localhost/a/b/c").path("/{foo}/{bar}/{baz}/{foo}").buildFromMap(m);
- Assert.assertEquals(URI.create("http://localhost/a/b/c/x/y/z/x"), uri);
+ Assertions.assertEquals(URI.create("http://localhost/a/b/c/x/y/z/x"), uri);
}
@Test
public void testResolveTemplatesDefaultPort() {
URI uri = UriBuilder.fromUri("http://localhost/a/b/c").path("/{foo}/{bar}/{baz}/{foo}").resolveTemplate("foo", "x")
.resolveTemplate("bar", "y").resolveTemplate("baz" + "", "z").build();
- Assert.assertEquals(URI.create("http://localhost/a/b/c/x/y/z/x"), uri);
+ Assertions.assertEquals(URI.create("http://localhost/a/b/c/x/y/z/x"), uri);
final Map m = new HashMap();
m.put("foo", "x");
m.put("bar", "y");
m.put("baz", "z");
uri = UriBuilder.fromUri("http://localhost/a/b/c").path("/{foo}/{bar}/{baz}/{foo}").resolveTemplates(m).build();
- Assert.assertEquals(URI.create("http://localhost/a/b/c/x/y/z/x"), uri);
+ Assertions.assertEquals(URI.create("http://localhost/a/b/c/x/y/z/x"), uri);
}
@Test
@@ -1280,8 +1280,8 @@ public void testClone() {
final URI full = ub.clone().path("b").build();
final URI base = ub.build();
- Assert.assertEquals(URI.create("http://user@localhost:8080/a?query#fragment"), base);
- Assert.assertEquals(URI.create("http://user@localhost:8080/a/b?query#fragment"), full);
+ Assertions.assertEquals(URI.create("http://user@localhost:8080/a?query#fragment"), base);
+ Assertions.assertEquals(URI.create("http://user@localhost:8080/a/b?query#fragment"), full);
}
@Test
@@ -1292,7 +1292,7 @@ public void testIllegalArgumentException() {
} catch (final IllegalArgumentException e) {
caught = true;
}
- Assert.assertTrue(caught);
+ Assertions.assertTrue(caught);
caught = false;
try {
@@ -1300,7 +1300,7 @@ public void testIllegalArgumentException() {
} catch (final IllegalArgumentException e) {
caught = true;
}
- Assert.assertTrue(caught);
+ Assertions.assertTrue(caught);
caught = false;
try {
@@ -1308,7 +1308,7 @@ public void testIllegalArgumentException() {
} catch (final IllegalArgumentException e) {
caught = true;
}
- Assert.assertTrue(caught);
+ Assertions.assertTrue(caught);
}
@Test
@@ -1334,7 +1334,7 @@ public void testVariableWithoutValue() {
} catch (final IllegalArgumentException e) {
caught = true;
}
- Assert.assertTrue(caught);
+ Assertions.assertTrue(caught);
}
@Test
@@ -1345,7 +1345,7 @@ public void testPortValue() {
} catch (final IllegalArgumentException e) {
caught = true;
}
- Assert.assertTrue(caught);
+ Assertions.assertTrue(caught);
}
@Test
@@ -1353,16 +1353,16 @@ public void testPortSetting() throws URISyntaxException {
URI uri;
uri = new JerseyUriBuilder().uri("http://localhost").port(8080).build();
- Assert.assertEquals(URI.create("http://localhost:8080"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080"), uri);
uri = new JerseyUriBuilder().uri(new URI("http://localhost")).port(8080).build();
- Assert.assertEquals(URI.create("http://localhost:8080"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080"), uri);
uri = new JerseyUriBuilder().uri("http://localhost/").port(8080).build();
- Assert.assertEquals(URI.create("http://localhost:8080/"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/"), uri);
uri = new JerseyUriBuilder().uri(new URI("http://localhost/")).port(8080).build();
- Assert.assertEquals(URI.create("http://localhost:8080/"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/"), uri);
}
@Test
@@ -1373,13 +1373,13 @@ public void testHostValue() {
} catch (final IllegalArgumentException e) {
caught = true;
}
- Assert.assertTrue(caught);
+ Assertions.assertTrue(caught);
URI uri = UriBuilder.fromPath("").host("abc").build();
- Assert.assertEquals(URI.create("//abc"), uri);
+ Assertions.assertEquals(URI.create("//abc"), uri);
uri = UriBuilder.fromPath("").host("abc").host(null).build();
- Assert.assertEquals(URI.create(""), uri);
+ Assertions.assertEquals(URI.create(""), uri);
}
/**
@@ -1392,7 +1392,7 @@ public void testHostValue() {
public void testEncodeTemplateNames() {
final URI uri = URI.create(UriComponent.encodeTemplateNames(UriBuilder.fromPath("http://localhost:8080").path(
"/{a}/{b}").replaceQuery("q={c}").toTemplate()));
- Assert.assertEquals(URI.create("http://localhost:8080/%7Ba%7D/%7Bb%7D?q=%7Bc%7D"), uri);
+ Assertions.assertEquals(URI.create("http://localhost:8080/%7Ba%7D/%7Bb%7D?q=%7Bc%7D"), uri);
}
@Test
@@ -1405,7 +1405,7 @@ public void resolveTemplateTest() {
m.put("a", "ignored-a");
m.put("b", "param-b");
m.put("q", "ignored-q");
- Assert.assertEquals(URI.create("http://localhost:8080/param-a/param-b?query=param-q"), uriBuilder.buildFromMap(m));
+ Assertions.assertEquals(URI.create("http://localhost:8080/param-a/param-b?query=param-q"), uriBuilder.buildFromMap(m));
}
@Test
@@ -1419,7 +1419,7 @@ public void resolveTemplateFromEncodedTest() {
m.put("a", "ignored-a");
m.put("b", "param-b/aaa");
m.put("q", "ignored-q");
- Assert.assertEquals("http://localhost:8080/x/y/z%3F%20/param-b/aaa/paramc1%2Fparamc2?query=q%3F%20%26",
+ Assertions.assertEquals("http://localhost:8080/x/y/z%3F%20/param-b/aaa/paramc1%2Fparamc2?query=q%3F%20%26",
uriBuilder.buildFromEncodedMap(m).toString());
}
@@ -1434,7 +1434,7 @@ public void resolveTemplateWithoutEncodedTest() {
m.put("a", "ignored-a");
m.put("b", "param-b/aaa");
m.put("q", "ignored-q");
- Assert.assertEquals("http://localhost:8080/x%2Fy%2Fz%253F%2520/param-b%2Faaa/paramc1%2Fparamc2?query=q%3F%2520%2526",
+ Assertions.assertEquals("http://localhost:8080/x%2Fy%2Fz%253F%2520/param-b%2Faaa/paramc1%2Fparamc2?query=q%3F%2520%2526",
uriBuilder.buildFromMap(m).toString());
}
@@ -1445,7 +1445,7 @@ public void resolveTemplateWithEncodedSlashTest() {
uriBuilder.resolveTemplate("a", "param-a/withSlash", false);
uriBuilder.resolveTemplate("b", "param-b/withEncodedSlash", true);
uriBuilder.resolveTemplate("q", "param-q", true);
- Assert.assertEquals(URI.create("http://localhost:8080/param-a/withSlash/param-b%2FwithEncodedSlash?query=param-q"),
+ Assertions.assertEquals(URI.create("http://localhost:8080/param-a/withSlash/param-b%2FwithEncodedSlash?query=param-q"),
uriBuilder.build());
uriBuilder.build();
}
@@ -1461,7 +1461,7 @@ public void resolveTemplatesTest() {
buildMap.put("a", "ignored-a");
buildMap.put("b", "param-b");
buildMap.put("q", "ignored-q");
- Assert.assertEquals(URI.create("http://localhost:8080/param-a/param-b?query=param-q"), uriBuilder.buildFromMap(buildMap));
+ Assertions.assertEquals(URI.create("http://localhost:8080/param-a/param-b?query=param-q"), uriBuilder.buildFromMap(buildMap));
}
@Test
@@ -1476,7 +1476,7 @@ public void resolveTemplatesFromEncodedTest() {
uriBuilder.resolveTemplatesFromEncoded(resolveMap);
final Map buildMap = new HashMap();
buildMap.put("b", "param-b/aaa");
- Assert.assertEquals("http://localhost:8080/x/y/z%3F%20/param-b/aaa/paramc1/paramc2?query=q%3F%20%26",
+ Assertions.assertEquals("http://localhost:8080/x/y/z%3F%20/param-b/aaa/paramc1/paramc2?query=q%3F%20%26",
uriBuilder.buildFromEncodedMap(buildMap).toString());
}
@@ -1492,7 +1492,7 @@ public void resolveTemplatesFromNotEncodedTest() {
uriBuilder.resolveTemplates(resolveMap);
final Map buildMap = new HashMap();
buildMap.put("b", "param-b/aaa");
- Assert.assertEquals("http://localhost:8080/x%2Fy%2Fz%253F%2520/param-b%2Faaa/paramc1%2Fparamc2?query=q%3F%2520%2526",
+ Assertions.assertEquals("http://localhost:8080/x%2Fy%2Fz%253F%2520/param-b%2Faaa/paramc1%2Fparamc2?query=q%3F%2520%2526",
uriBuilder.buildFromMap(buildMap).toString());
}
@@ -1508,7 +1508,7 @@ public void resolveTemplatesEncodeSlash() {
uriBuilder.resolveTemplates(resolveMap, false);
final Map buildMap = new HashMap();
buildMap.put("b", "param-b/aaa");
- Assert.assertEquals("http://localhost:8080/x/y/z%253F%2520/param-b/aaa/paramc1/paramc2?query=q%3F%2520%2526",
+ Assertions.assertEquals("http://localhost:8080/x/y/z%253F%2520/param-b/aaa/paramc1/paramc2?query=q%3F%2520%2526",
uriBuilder.buildFromMap(buildMap, false).toString());
}
@@ -1521,7 +1521,7 @@ public void resolveTemplatesWithEncodedSlashTest() {
resolveMap.put("q", "param-q");
uriBuilder.resolveTemplates(resolveMap, false);
uriBuilder.resolveTemplate("b", "param-b/withEncodedSlash", true);
- Assert.assertEquals(URI.create("http://localhost:8080/param-a/withSlash/param-b%2FwithEncodedSlash?query=param-q"),
+ Assertions.assertEquals(URI.create("http://localhost:8080/param-a/withSlash/param-b%2FwithEncodedSlash?query=param-q"),
uriBuilder.build());
uriBuilder.build();
}
@@ -1532,7 +1532,7 @@ public void resolveTemplateMultipleCall() {
.resolveTemplate("a", "first-a").path("{a}").resolveTemplate("a", "second-a")
.path("{a}/{a}").resolveTemplate("a", "twice-a");
- Assert.assertEquals(URI.create("http://localhost:8080/start-path/first-a/second-a/twice-a/twice-a"),
+ Assertions.assertEquals(URI.create("http://localhost:8080/start-path/first-a/second-a/twice-a/twice-a"),
uriBuilder.build("start-path"));
}
@@ -1541,7 +1541,7 @@ public void replaceWithEmtpySchemeFromUriTest() throws URISyntaxException {
final String uriOrig = "ftp://ftp.is.co.za/rfc/rfc1808.txt";
final URI uriReplace = new URI(null, "ftp.is.co.za", "/test/rfc1808.txt", null, null);
final URI uri = UriBuilder.fromUri(new URI(uriOrig)).uri(uriReplace).build();
- Assert.assertEquals("ftp://ftp.is.co.za/test/rfc1808.txt", uri.toString());
+ Assertions.assertEquals("ftp://ftp.is.co.za/test/rfc1808.txt", uri.toString());
}
@Test
@@ -1550,7 +1550,7 @@ public void replaceWithEmptySchemeFromStringTest() throws URISyntaxException {
final URI uriReplace = new URI(null, "ftp.is.co.za", "/test/rfc1808.txt", null, null);
final URI uri = UriBuilder.fromUri(new URI(uriOrig)).uri(uriReplace.toASCIIString()).build();
- Assert.assertEquals("ftp://ftp.is.co.za/test/rfc1808.txt", uri.toString());
+ Assertions.assertEquals("ftp://ftp.is.co.za/test/rfc1808.txt", uri.toString());
}
@Test
@@ -1559,7 +1559,7 @@ public void replaceWithEmptyQueryFromStringTest() throws URISyntaxException {
final URI uriReplace = new URI(null, "ftp.is.co.za", "/test/rfc1808.txt", null, null);
final URI uri = UriBuilder.fromUri(new URI(uriOrig)).uri(uriReplace.toASCIIString()).build();
- Assert.assertEquals("ftp://ftp.is.co.za/test/rfc1808.txt?a=1", uri.toString());
+ Assertions.assertEquals("ftp://ftp.is.co.za/test/rfc1808.txt?a=1", uri.toString());
}
@Test
@@ -1568,7 +1568,7 @@ public void replaceWithEmptyFragmentFromStringTest() throws URISyntaxException {
final URI uriReplace = new URI(null, "ftp.is.co.za", "/test/rfc1808.txt", null, null);
final URI uri = UriBuilder.fromUri(new URI(uriOrig)).uri(uriReplace.toASCIIString()).build();
- Assert.assertEquals("ftp://ftp.is.co.za/test/rfc1808.txt#myFragment", uri.toString());
+ Assertions.assertEquals("ftp://ftp.is.co.za/test/rfc1808.txt#myFragment", uri.toString());
}
@Test
@@ -1596,35 +1596,35 @@ public void replaceOpaqueUriWithNonOpaqueFromUriTest() throws URISyntaxException
public void testQueryParamEncoded() {
final UriBuilder uriBuilder = UriBuilder.fromUri("http://localhost:8080/path");
uriBuilder.queryParam("query", "%dummy23");
- Assert.assertEquals("http://localhost:8080/path?query=%25dummy23", uriBuilder.build().toString());
+ Assertions.assertEquals("http://localhost:8080/path?query=%25dummy23", uriBuilder.build().toString());
}
@Test
public void testQueryParamEncoded2() {
final UriBuilder uriBuilder = UriBuilder.fromUri("http://localhost:8080/path");
uriBuilder.queryParam("query", "{param}");
- Assert.assertEquals("http://localhost:8080/path?query=%25dummy23", uriBuilder.build("%dummy23").toString());
+ Assertions.assertEquals("http://localhost:8080/path?query=%25dummy23", uriBuilder.build("%dummy23").toString());
}
@Test
public void testQueryParamEncoded3() {
final UriBuilder uriBuilder = UriBuilder.fromUri("http://localhost:8080/path");
uriBuilder.queryParam("query", "{param}");
- Assert.assertEquals("http://localhost:8080/path?query=%2525test", uriBuilder.build("%25test").toString());
+ Assertions.assertEquals("http://localhost:8080/path?query=%2525test", uriBuilder.build("%25test").toString());
}
@Test
public void testQueryParamEncoded4() {
final UriBuilder uriBuilder = UriBuilder.fromUri("http://localhost:8080/path");
uriBuilder.queryParam("query", "{param}");
- Assert.assertEquals("http://localhost:8080/path?query=%25test", uriBuilder.buildFromEncoded("%25test").toString());
+ Assertions.assertEquals("http://localhost:8080/path?query=%25test", uriBuilder.buildFromEncoded("%25test").toString());
}
@Test
public void testQueryParamEncoded5() {
final UriBuilder uriBuilder = UriBuilder.fromUri("http://localhost:8080/path");
uriBuilder.queryParam("query", "! # $ & ' ( ) * + , / : ; = ? @ [ ]");
- Assert.assertEquals(
+ Assertions.assertEquals(
"http://localhost:8080/path?query=%21+%23+%24+%26+%27+%28+%29+%2A+%2B+%2C+%2F+%3A+%3B+%3D+%3F+%40+%5B+%5D",
uriBuilder.build().toString());
}
@@ -1664,7 +1664,7 @@ private void checkQueryFormat(String fromUri, JerseyQueryParamStyle queryParamSt
.queryParam("key2", "val1")
.queryParam("key1", "val3")
.build();
- Assert.assertEquals(expected, uri.getQuery());
+ Assertions.assertEquals(expected, uri.getQuery());
}
}
diff --git a/tests/e2e-entity/pom.xml b/tests/e2e-entity/pom.xml
index f4560b62f3d..be1e63642c9 100644
--- a/tests/e2e-entity/pom.xml
+++ b/tests/e2e-entity/pom.xml
@@ -175,16 +175,16 @@
jersey-test-framework-util
test
-
- org.hamcrest
- hamcrest
+ org.junit.platform
+ junit-platform-suite
+ ${junit-platform-suite.version}
test
- xmlunit
- xmlunit
+ org.hamcrest
+ hamcrest
test
diff --git a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/AbstractTypeTester.java b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/AbstractTypeTester.java
index 2ca9ddd64e2..5cf22c30915 100644
--- a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/AbstractTypeTester.java
+++ b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/AbstractTypeTester.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -44,7 +44,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Abstract entity type tester base class.
@@ -166,7 +166,7 @@ protected static void _verify(byte[] in, byte[] out) {
assertEquals(in.length, out.length);
for (int i = 0; i < in.length; i++) {
if (in[i] != out[i]) {
- assertEquals("Index: " + i, in[i], out[i]);
+ assertEquals(in[i], out[i], "Index: " + i);
}
}
}
diff --git a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/BeanStreamingTest.java b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/BeanStreamingTest.java
index 8882e6e2493..bf4ac93784d 100644
--- a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/BeanStreamingTest.java
+++ b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/BeanStreamingTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -42,10 +42,10 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Test;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Paul Sandoz
diff --git a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/CharsetTest.java b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/CharsetTest.java
index f81aa04c090..ed9e64f1fc3 100644
--- a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/CharsetTest.java
+++ b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/CharsetTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -46,8 +46,7 @@
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONObject;
-import org.glassfish.jersey.client.ClientResponse;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
/**
* @author Paul Sandoz
diff --git a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/ContextResolverMediaTypeTest.java b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/ContextResolverMediaTypeTest.java
index e9250e32469..0a7de6630a0 100644
--- a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/ContextResolverMediaTypeTest.java
+++ b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/ContextResolverMediaTypeTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,22 +33,20 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.experimental.runners.Enclosed;
-import org.junit.runner.RunWith;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Nested;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Paul Sandoz
* @author Martin Matula
*/
-@RunWith(Enclosed.class)
public class ContextResolverMediaTypeTest {
@Produces("text/plain")
@Provider
- @Ignore("This class is not a test class & must be ignored by the Enclosed test runner.")
+ @Disabled("This class is not a test class & must be ignored by the Enclosed test runner.")
public static class TextPlainContextResolver implements ContextResolver {
public String getContext(Class> objectType) {
@@ -58,7 +56,7 @@ public String getContext(Class> objectType) {
@Produces("text/*")
@Provider
- @Ignore("This class is not a test class & must be ignored by the Enclosed test runner.")
+ @Disabled("This class is not a test class & must be ignored by the Enclosed test runner.")
public static class TextContextResolver implements ContextResolver {
public String getContext(Class> objectType) {
@@ -68,7 +66,7 @@ public String getContext(Class> objectType) {
@Produces("*/*")
@Provider
- @Ignore("This class is not a test class & must be ignored by the Enclosed test runner.")
+ @Disabled("This class is not a test class & must be ignored by the Enclosed test runner.")
public static class WildcardContextResolver implements ContextResolver {
public String getContext(Class> objectType) {
@@ -78,7 +76,7 @@ public String getContext(Class> objectType) {
@Produces({"text/plain", "text/html"})
@Provider
- @Ignore("This class is not a test class & must be ignored by the Enclosed test runner.")
+ @Disabled("This class is not a test class & must be ignored by the Enclosed test runner.")
public static class TextPlainHtmlContextResolver implements ContextResolver {
public String getContext(Class> objectType) {
@@ -89,7 +87,7 @@ public String getContext(Class> objectType) {
@Produces("text/html")
@Provider
- @Ignore("This class is not a test class & must be ignored by the Enclosed test runner.")
+ @Disabled("This class is not a test class & must be ignored by the Enclosed test runner.")
public static class TextHtmlContextResolver implements ContextResolver {
public String getContext(Class> objectType) {
@@ -99,7 +97,7 @@ public String getContext(Class> objectType) {
}
@Path("/")
- @Ignore("This class is not a test class & must be ignored by the Enclosed test runner.")
+ @Disabled("This class is not a test class & must be ignored by the Enclosed test runner.")
public static class ContextResource {
@Context
@@ -125,6 +123,7 @@ public String get(@PathParam("id") MediaType m) {
}
}
+ @Nested
public static class ProduceTest extends JerseyTest {
@Override
@@ -151,6 +150,7 @@ public void testProduce() throws IOException {
}
}
+ @Nested
public static class ProducesTest extends JerseyTest {
@Override
@@ -177,6 +177,7 @@ public void testProduces() throws IOException {
}
}
+ @Nested
public static class ProducesSeparateTest extends JerseyTest {
@Override
@@ -204,6 +205,7 @@ public void testProducesSeparate() throws IOException {
}
}
+ @Nested
public static class ProducesXXXTest extends JerseyTest {
@Override
diff --git a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EmptyEntityTest.java b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EmptyEntityTest.java
index dac06e6e63d..9b64a7409c0 100644
--- a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EmptyEntityTest.java
+++ b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EmptyEntityTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -48,11 +48,11 @@
import org.glassfish.jersey.message.internal.ReaderWriter;
import org.glassfish.jersey.test.TestProperties;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertSame;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* JERSEY-1540.
diff --git a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EmptyRequestToEntityParamTest.java b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EmptyRequestToEntityParamTest.java
index 4b7865d14f9..50b7fa963b9 100644
--- a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EmptyRequestToEntityParamTest.java
+++ b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EmptyRequestToEntityParamTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,8 +26,8 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
/**
* Test for JERSEY-1579.
@@ -46,13 +46,13 @@ public static class EntityResource {
@DELETE
public void delete(Map entity) {
- Assert.assertNull(entity);
+ Assertions.assertNull(entity);
}
}
@Test
public void testEmptyRequest() {
Response response = target().request().delete(Response.class);
- Assert.assertEquals(204, response.getStatus());
+ Assertions.assertEquals(204, response.getStatus());
}
}
diff --git a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EmptyRequestWithJaxbTest.java b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EmptyRequestWithJaxbTest.java
index a7c4f0d811e..5588da69adc 100644
--- a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EmptyRequestWithJaxbTest.java
+++ b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EmptyRequestWithJaxbTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -39,22 +39,20 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.experimental.runners.Enclosed;
-import org.junit.runner.RunWith;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Nested;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Paul Sandoz
* @author Martin Matula
*/
-@RunWith(Enclosed.class)
public class EmptyRequestWithJaxbTest {
@SuppressWarnings("UnusedParameters")
@Path("/")
- @Ignore("This class is not a test class & must be ignored by the Enclosed test runner.")
+ @Disabled("This class is not a test class & must be ignored by the Enclosed test runner.")
public static class Resource {
@POST
@@ -88,6 +86,7 @@ public void arrayType(JaxbBeanType[] b) {
}
+ @Nested
public static class EmptyRequestTest extends JerseyTest {
@Override
@@ -129,7 +128,7 @@ public void testEmptyXmlRequest() {
}
}
- @Ignore("This class is not a test class & must be ignored by the Enclosed test runner.")
+ @Disabled("This class is not a test class & must be ignored by the Enclosed test runner.")
public abstract static class CR implements ContextResolver {
private final JAXBContext context;
@@ -153,6 +152,7 @@ public JAXBContext getContext(Class> objectType) {
}
}
+ @Nested
public static class MappedJettisonCRTest extends JerseyTest {
@Override
@@ -178,6 +178,7 @@ public void testMappedJettisonCR() {
}
}
+ @Nested
public static class BadgerFishCRTest extends JerseyTest {
@Override
diff --git a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EntityTypesTest.java b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EntityTypesTest.java
index 39ed8f202eb..2a289199093 100644
--- a/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EntityTypesTest.java
+++ b/tests/e2e-entity/src/test/java/org/glassfish/jersey/tests/e2e/entity/EntityTypesTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -73,24 +73,25 @@
import org.glassfish.jersey.jettison.JettisonFeature;
import org.glassfish.jersey.message.internal.FileProvider;
import org.glassfish.jersey.server.ResourceConfig;
-import org.glassfish.jersey.test.util.runner.ConcurrentRunner;
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONObject;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.runner.RunWith;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestInstance;
+import org.junit.jupiter.api.parallel.Execution;
+import org.junit.jupiter.api.parallel.ExecutionMode;
import org.w3c.dom.Document;
import org.xml.sax.InputSource;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.hamcrest.MatcherAssert.assertThat;
/**
* @author Paul Sandoz
* @author Martin Matula
*/
-@RunWith(ConcurrentRunner.class)
+@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class EntityTypesTest extends AbstractTypeTester {
@Path("InputStreamResource")
@@ -110,6 +111,7 @@ public InputStream post(final InputStream in) throws IOException {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testInputStream() {
final ByteArrayInputStream in = new ByteArrayInputStream("CONTENT".getBytes());
_test(in, InputStreamResource.class);
@@ -120,6 +122,7 @@ public static class StringResource extends AResource {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testString() {
_test("CONTENT", StringResource.class);
}
@@ -133,6 +136,7 @@ public static class ByteArrayResource extends AResource {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testByteArrayRepresentation() {
_test("CONTENT".getBytes(), ByteArrayResource.class);
}
@@ -144,6 +148,7 @@ public static class JaxbBeanResource extends AResource {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJaxbBeanRepresentation() {
_test(new JaxbBean("CONTENT"), JaxbBeanResource.class, MediaType.APPLICATION_XML_TYPE);
}
@@ -155,11 +160,13 @@ public static class JaxbBeanResourceMediaType extends AResource {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJaxbBeanRepresentationMediaType() {
_test(new JaxbBean("CONTENT"), JaxbBeanResourceMediaType.class, MediaType.valueOf("application/foo+xml"));
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJaxbBeanRepresentationError() {
final WebTarget target = target("JaxbBeanResource");
@@ -175,6 +182,7 @@ public static class JaxbBeanTextResource extends AResource {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJaxbBeanTextRepresentation() {
_test(new JaxbBean("CONTENT"), JaxbBeanTextResource.class, MediaType.TEXT_XML_TYPE);
}
@@ -186,6 +194,7 @@ public static class JAXBElementBeanResource extends AResource> getJAXBElementList() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJAXBElementListXMLRepresentation() {
_testListOrArray(true, MediaType.APPLICATION_XML_TYPE);
}
@@ -218,14 +228,15 @@ public void _testListOrArray(final boolean isList, final MediaType mt) {
.asList((JAXBElement[]) in);
final List> outList = isList ? ((List>) out) : Arrays
.asList((JAXBElement[]) out);
- assertEquals("Lengths differ", inList.size(), outList.size());
+ assertEquals(inList.size(), outList.size(), "Lengths differ");
for (int i = 0; i < inList.size(); i++) {
- assertEquals("Names of elements at index " + i + " differ", inList.get(i).getName(), outList.get(i).getName());
- assertEquals("Values of elements at index " + i + " differ", inList.get(i).getValue(), outList.get(i).getValue());
+ assertEquals(inList.get(i).getName(), outList.get(i).getName(), "Names of elements at index " + i + " differ");
+ assertEquals(inList.get(i).getValue(), outList.get(i).getValue(), "Values of elements at index " + i + " differ");
}
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJAXBElementListJSONRepresentation() {
_testListOrArray(true, MediaType.APPLICATION_JSON_TYPE);
}
@@ -244,11 +255,13 @@ private JAXBElement[] getJAXBElementArray() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJAXBElementArrayXMLRepresentation() {
_testListOrArray(false, MediaType.APPLICATION_XML_TYPE);
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJAXBElementArrayJSONRepresentation() {
_testListOrArray(false, MediaType.APPLICATION_JSON_TYPE);
}
@@ -260,11 +273,13 @@ public static class JAXBElementBeanResourceMediaType extends AResource
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJaxbBeanRepresentationMediaTypeAtom() {
_test(new JaxbBean("CONTENT"), JaxbBeanResourceAtom.class, MediaType.valueOf("application/atom+xml"));
}
@@ -318,6 +335,7 @@ protected void configureClient(final ClientConfig config) {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJAXBTypeRepresentation() {
final WebTarget target = target("JAXBTypeResource");
final JaxbBean in = new JaxbBean("CONTENT");
@@ -332,6 +350,7 @@ public static class JAXBTypeResourceMediaType extends JAXBTypeResource {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJAXBTypeRepresentationMediaType() {
final WebTarget target = target("JAXBTypeResourceMediaType");
final JaxbBean in = new JaxbBean("CONTENT");
@@ -365,6 +384,7 @@ public JAXBContext getContext(final Class> c) {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJAXBObjectRepresentation() {
final WebTarget target = target("JAXBObjectResource");
final Object in = new JaxbBean("CONTENT");
@@ -379,6 +399,7 @@ public static class JAXBObjectResourceMediaType extends JAXBObjectResource {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJAXBObjectRepresentationMediaType() {
final WebTarget target = target("JAXBObjectResourceMediaType");
final Object in = new JaxbBean("CONTENT");
@@ -387,6 +408,7 @@ public void testJAXBObjectRepresentationMediaType() {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testJAXBObjectRepresentationError() {
final WebTarget target = target("JAXBObjectResource");
@@ -400,6 +422,7 @@ public static class FileResource extends AResource {
}
@Test
+ @Execution(ExecutionMode.CONCURRENT)
public void testFileRepresentation() throws IOException {
final FileProvider fp = new FileProvider();
final File in = fp.readFrom(File.class, File.class, null, null, null,
@@ -415,6 +438,7 @@ public static class FormResource extends AResource