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 0000000000..2457e01cbc
--- /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 0000000000..7cd0e34f04
--- /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 0000000000..f06be725d7
--- /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 0000000000..e0fc24e1b6
--- /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 0000000000..c5597e5da8
--- /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 0000000000..d4da355f25
--- /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 0000000000..577c00f53e
--- /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 0000000000..8e2a2519e4
--- /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 0000000000..a5efdc5a21
--- /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 f76ab53b5d..6d6b039a4e 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 cd78fc9d44..4603572ae0 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 3d24d5032e..377e37ae59 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 39b9360f6c..e37eba9579 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 fa65eae744..2d88b34ad0 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 3c3c946340..f3ecf18de9 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 195c6755aa..481c20c3b7 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 72371288ed..da2d78749a 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 7d06f02d48..7aebd55951 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 0f7eb6f968..c4558a8c4c 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 424b1babfb..c3a2fcaef7 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 76a1515b0a..4be49dd0e3 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 601d6b2828..fd1791b7d8 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 b85b8dfbd1..3f3522e192 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 e6ed421d5f..f9b4d51a5d 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 9ebf17b6e5..1775c4c083 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 3f3522e192..45ed7343ca 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 9d42f002c5..7488e5152d 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 0000000000..ca9891446a
--- /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 52930aaee6..180b8213d9 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 ec14d86068..fb0b790b22 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 e4314ae059..e8c700d1fe 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 62d7adc8a3..aad1198727 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 5cb689572f..52d4199ca4 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 fb06cc0538..cee0d38638 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 17d288b43c..aecb50d450 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 ccd3eaf6ad..b789a5b8a6 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 efd62d4fa1..08c440a609 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 ea52217633..d44fe5a0d6 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 c995f48fb7..826c52f8b8 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 e37eba9579..426ec8a58b 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 eeb186a0c2..cf14a948ad 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 822b8a6711..5a1ebb5e72 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 f13ec2f7bc..fc0e19a7a6 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 9a1124f1bb..73c7cf2131 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 e639fb95dd..d54819dc91 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 684455a8d6..1776468200 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 e22af069b1..5d2cc16296 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 84d8735037..ce80a2e71e 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 5e635ea194..0599984b6a 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 c20582d8fc..5d6d2b983b 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 8c23d2391d..bcd11d5ab4 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 1780f966c1..cf66de835d 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 cb57dc86e6..c804bee61d 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 4bbaf5f739..5eca63fe28 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 f13e71c369..43fabebd76 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 0c4a305309..b8af7662a9 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 54f437b6c9..04e2cc9ef7 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 ddf4d532ec..63892cdb20 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 7e8cd2117b..cf3515d7a1 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 83bf515a13..32d989dda2 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 af1d92971e..95bb384d1f 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 209e822aa1..bddea9f108 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 0406650fc5..07459d7b75 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 48177f9a87..967c2d07ac 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 ec38922587..2aa24919af 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 b1d32dec3e..e5440a0817 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 86017ec191..e152f646f3 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 e47b273998..375227a8d2 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 b7a2eb5e70..329b1b5726 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 c92c5bf34b..77337b8ffc 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 af0c7e3aa3..459badbace 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 b72e906079..eb31c6b6aa 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 f7af29caa1..d211436fbe 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 775535b4ec..2da4ae3b9b 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 7e7c10de0c..93baa42135 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 1da44f9744..aa1540a6e5 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 0000000000..d1e8ee14ad
--- /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 0000000000..932155a058
--- /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 0000000000..a858e6732a
--- /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 ba3844a075..d2face2f8d 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 bffe705a15..97451e71b7 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 553e1b21b8..4a60f3213e 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 e55a8244a2..d50aee8150 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 1b516c3a09..4252efc714 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 c05cb9968a..14e233474a 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 7c0c31762c..bce2a0da56 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 908323864b..8173ba3eef 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 02fe0f2aa7..f44f63cd3f 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 5d361e9284..77e336a616 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 5d361e9284..77e336a616 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 5d361e9284..77e336a616 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 3a17677b94..ce367f5fbd 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 6cced30242..875f63c9e3 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 2cbc60ff71..63a3eac491 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 48bc397b18..d58341942e 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 c5c4cfea5e..b653b549cf 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 2f4da94d3a..a56f23bac3 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 eff570f858..7dd99c8f89 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 4bf816fd7f..86e97abfd4 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 2ae0ebc541..584193f5bd 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 9b94750675..c6bd602a75 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 426ec8a58b..dc41f0b93f 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 ae8422432b..c2146b486f 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 14ea61ec34..8d3e4b2f53 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 14ea61ec34..8d3e4b2f53 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 d773c46699..d6b4b48da5 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 dc41f0b93f..c723798a27 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 ca9891446a..12193c1307 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 2da4ae3b9b..c50199454c 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 8a91c46545..f50a744b02 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 2abb04d3c4..62bcb7be69 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 7b062886e5..fb56d5c4f9 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 d211436fbe..2746bf6d0b 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 944413f53b..ff94b7595b 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 cb47571cd7..b261c00f25 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 feaf63ac2b..dbe618fa3d 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 439888c289..2348e36b13 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 db15edeee9..578e1e1576 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 15537d30b0..f14891f875 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 6c79fb4d4e..efd62d4fa1 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 d50aee8150..876f4cff6b 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 18de2d603d..19ce489e1a 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 0000000000..669ac11e79
--- /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 0000000000..eac5be5f2f
--- /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 0000000000..ad23f2d53f
--- /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 0000000000..13b827910f
--- /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 0000000000..9a32a2ce3c
--- /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 0000000000..d179f5c620
--- /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 0000000000..0b05d4b425
--- /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 0000000000..16dbc30eca
--- /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 0000000000..50e8f6571f
--- /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 0000000000..f59c0cf9bf
--- /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 0000000000..0e619a661a
--- /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 0000000000..27caedad53
--- /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 0000000000..51bc6a007c
--- /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 0000000000..9377a0a741
--- /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 0000000000..0230ba14e0
--- /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 0000000000..e0f6612177
--- /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 0000000000..cad5ea8494
--- /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 0000000000..c63b7a87ee
--- /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 0000000000..00a45a15b6
--- /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 0000000000..35b38c3bdc
--- /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 0000000000..40f1b4136d
--- /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 0000000000..46ba4ee018
--- /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 0000000000..cdea49be4c
--- /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 0000000000..6254c430fc
--- /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 0000000000..ce6a377883
--- /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 0000000000..ea90e79879
--- /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 0000000000..7eab1b30b6
--- /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 0000000000..d95c2f21c8
--- /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 0000000000..8248fdd7d8
--- /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 0000000000..0c2e320b62
--- /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 8266de6355..18fce3cd15 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 e0fc24e1b6..3a4f9468a1 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 0d1a49957c..700f42e00b 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 06e0f94561..2e3a2635d1 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 dd13cbc7a1..12e882b6fd 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 132a5df4eb..5ec2c34b91 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 876f4cff6b..7754fe8dce 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 70b1805b9b..81b9f76cae 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 36af4089bd..5e0a1e8389 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 6f4a38a023..9687a61b99 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 d4cc5c5eab..8f9c9c4dd1 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 1b0698de14..65bdac5d03 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 3f10dc8cb1..feb1f4331f 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 aa3e28dfdb..03407dba02 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 ff94b7595b..763fb8d05f 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 17e55a937a..84b8da56fb 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 056ef31802..e2d4d35514 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 84b8da56fb..bf34699708 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 e2d4d35514..c97ea2e16c 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 fb21083445..df75a6ae8d 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 d5c2ff8a01..099fa31123 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 52059bb125..81e94b4b17 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 d92d490fb1..d97204fa62 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 eac5be5f2f..df4c8e059c 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 13b827910f..9d101055f2 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 9a32a2ce3c..7f5d882829 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 190232f94b..9e7acdd83e 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 65aec26b79..0e8e672b5a 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 7b860c3214..ef2c8bef11 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 46a938b555..780adc1e8a 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 e59ae71139..0d1e084226 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 5c3455ed12..b957da7398 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 2c6e1500d4..fa7003a00b 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 e436f3da1b..0000000000
--- 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 1158fc60ca..0000000000
--- 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 ec22efaeb6..0000000000
--- 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 a3ac9d1235..0000000000
--- 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 6fd0a06270..0000000000
--- 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 111361c378..0000000000
--- 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 5a8123cc42..0000000000
--- 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 792d9b85e8..0000000000
--- 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 9900cd476d..0000000000
--- 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 4506c7ecaf..0000000000
--- 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 9b96e32de1..0000000000
--- 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 bb5bf8aee7..0000000000
--- 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 141d16e789..0000000000
--- 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 941e311089..0000000000
--- 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 28de237b30..0000000000
--- 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 5a9d3b75f7..0000000000
--- 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 3f66478a95..0000000000
--- 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 8a16bbef63..0000000000
--- 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 b7c56c964b..0000000000
--- 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 040d05309a..0000000000
--- 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 dc3c99543e..0000000000
--- 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 3b1f6a8b69..0000000000
--- 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 2d7c5a184e..0000000000
--- 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 e05de3da6c..0000000000
--- 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 4647434fdd..0000000000
--- 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 e8df9402ad..0000000000
--- 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 c3bac70aef..0000000000
--- 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 6e7b71a767..0000000000
--- 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 de87d7e91d..0000000000
--- 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 49985aab7d..0000000000
--- 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 5aec207d97..0000000000
--- 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 fd6f52829a..0000000000
--- 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 d8d29a3c0b..0000000000
--- 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 25078b67e0..0000000000
--- 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 52fd0e3e11..0000000000
--- 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 458019992e..0000000000
--- 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 0eb367b5c3..0000000000
--- 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 3c33392daa..0000000000
--- 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 c8df018a81..0000000000
--- 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 7e624ef398..0000000000
--- 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 598618f6f9..0000000000
--- 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 e6b720e470..0000000000
--- 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 be0ac479ae..0000000000
--- 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 d5635b52d4..0000000000
--- 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 7abafe382c..0000000000
--- 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 0000000000..c7817c6b71
--- /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 0176470fce..229c054ed1 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 e15b2c5022..d4e3c8e864 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 61fc9b17a0..aca66c9652 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 07208f5dc7..358f488577 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 5a06926b94..b47ba09836 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 b33a69d9a2..8e21bdade2 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 ec22efaeb6..35a9e261a1 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 c32ddbc22f..4c2d0c2792 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 de87d7e91d..a489695202 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 16cfd51e9b..747c6072b7 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 0000000000..5f85ffb28a
--- /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 5a06926b94..15dd493a92 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 0000000000..9a41f804f8
--- /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 00e4dda7f6..b563fd32eb 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 19aa781494..6406f8de65 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 66764b8783..0000000000
--- 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 bd10b50320..0000000000
--- 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 851e21501c..0000000000
--- 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 e79d9bdfb5..0000000000
--- 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 0e5d2cfb85..0000000000
--- 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 d61ef3b479..0000000000
--- 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 ff689c6e4f..0000000000
--- 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 da45aeafab..0000000000
--- 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 b0f82c7d52..0000000000
--- 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 b815fe02f4..0000000000
--- 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 d50e5a6cc4..0000000000
--- 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 c7e421eaa3..0000000000
--- 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 79ade92c60..0000000000
--- 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 9a105f7bac..0000000000
--- 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 39dd5aa41c..0000000000
--- 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 80f5d8c1ae..0000000000
--- 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 424f1866e8..0000000000
--- 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 4004dd3c3c..0000000000
--- 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 77f2984d6c..0000000000
--- 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 5cc9fc750f..0000000000
--- 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 fa3d1a2ff4..0000000000
--- 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 08c4902e43..0000000000
--- 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 9b24994681..0000000000
--- 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 2b351f09de..0000000000
--- 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 0bfcd04b4e..0000000000
--- 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 fd31b990b1..0000000000
--- 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 8c837c8ac5..0000000000
--- 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 7a0712027f..e7df36c1d9 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 bd10b50320..ab54e71067 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 70d90b05d5..2a764dcaa4 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 b7fb876d15..58919af734 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 0e5d2cfb85..e6e8e437e4 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 39dd5aa41c..8cf0a7e6a3 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 da9f1707b7..53a9ef14e0 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 d61ef3b479..a1d8682e01 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 4b6bbf57ae..0fb4f768a4 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 3bde89d214..f55662ada9 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 a7b8fa8837..64ea0ba6d4 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 b0f82c7d52..e0f0c99317 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 b815fe02f4..52a8b6444d 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 d50e5a6cc4..75cf5afc5e 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 c7e421eaa3..c36223ca48 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 07c3dbeca6..b250915db6 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 f9b4d51a5d..214eaa2dfc 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 01e61a5e9d..84ca349bbd 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 fd1791b7d8..ec152508c9 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 b1c2c7b393..87cac240c1 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 b957da7398..2dd099d228 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 cbe231e8a6..88d5f4f471 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 b3bf59e8c8..9849f6ca5a 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 32bf17d055..8584f5132d 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 7e3c65c302..bd175fb442 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 cb8f60e8c2..0000000000
--- 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 c2f1ef073f..df184decb9 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 a3232c67a2..dcd681b0d4 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 1ba38d2d64..8d3fd7497e 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 4ffb0df942..bc123fe1b1 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 b52fcd74dd..e58048f55b 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 4a4fabed3a..bfc5bb03cf 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 d955ff300f..2299309257 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 f26fca912b..79d944d31a 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 1e21173258..e96268445e 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 176e4d3471..cae89b9628 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 98ea299fc6..efc7c814e4 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 93e20c25a3..af8fa5a158 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 bf34699708..671b08ff25 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 c97ea2e16c..ba1f8c2354 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 0000000000..bef04e1803
--- /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 bf12db6c02..9055d6277a 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 0000000000..269562297d
--- /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 2dd099d228..0f085eb6d4 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 88d5f4f471..1c8bdb0564 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 c0ef15f056..7a27297587 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 8ca2039014..0654582e49 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 7b386a06f2..472318f820 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 b0173c8141..cd4a6bb5ad 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 e3a5b605f2..8ebf594f64 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 81176b8cc9..de2c44194a 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 716d6b0fbe..64865d6d9a 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 77392c7fec..805aed5017 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 24f7f6182c..ea2e4e48ed 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 0089d06a4f..96675909fa 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 7850f21013..0a591eccd8 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 bab13adeb3..65cf92c9c8 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 dbe11cce59..ab8687e4e8 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 99c098134e..df41359f48 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 f975c4963c..9399ca7152 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 4f2ea78880..983da586ed 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 b250915db6..8b9b6fb042 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 87cac240c1..b0f8523b7c 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 0000000000..35459f9422
--- /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 235c34e779..eebaa713f3 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 a3f911c61f..f9cfac2163 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 a7310d048d..6f933cddcd 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 4510c53fc8..b9edb3022c 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 ade52847c5..c37f7670b1 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 fe776b9f40..5122435d85 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 1aa8b45495..81c1bd6c84 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 34c700e104..0749369a1f 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 3837377475..69b2e7e4cd 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 c4a26a7d98..33bd6a7dc5 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 02314ea784..c32e77caac 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 3bfe5db775..0f1d6d7e67 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 099ce70229..5d8a3ad16d 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 6454fc1732..2b61d4ae54 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 1af9a406bb..bfaad0e108 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 63453ee106..d1d5d2c40d 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 0000000000..553f76dc0d
--- /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 dcd681b0d4..46274bdf7c 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 55d8bb7fdd..9fac43cf6c 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 bc123fe1b1..e7db84fa3a 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 2831134475..974404c0a8 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 a3f911c61f..f9cfac2163 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 a7310d048d..6f933cddcd 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 4510c53fc8..b9edb3022c 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 ade52847c5..c37f7670b1 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 fe776b9f40..5122435d85 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 1aa8b45495..81c1bd6c84 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 34c700e104..0749369a1f 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 3837377475..69b2e7e4cd 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 c4a26a7d98..33bd6a7dc5 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 02314ea784..c32e77caac 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 3bfe5db775..0f1d6d7e67 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 099ce70229..5d8a3ad16d 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 6454fc1732..2b61d4ae54 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 1af9a406bb..bfaad0e108 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 63453ee106..d1d5d2c40d 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 0000000000..553f76dc0d
--- /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 dcd681b0d4..46274bdf7c 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 55d8bb7fdd..9fac43cf6c 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 bc123fe1b1..e7db84fa3a 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 2831134475..974404c0a8 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 b120e699a7..bd7c4d18f0 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 2e3a2635d1..007c9a5c49 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 0000000000..74b11537f5
--- /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 d5b4a02110..0000000000
--- 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 ba1f8c2354..6d67c9d867 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 0000000000..4580facf24
--- /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 0000000000..93e69c2124
--- /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 50fceb1df7..762a08b050 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 0f085eb6d4..3da415b49c 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 1c8bdb0564..e463997a61 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 547ac61f4a..2946993351 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 6515b8aa3a..67095bb87d 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 2b2267ab5b..6e9baffb3e 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 baa854d386..303ca19c1f 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 cc1c913802..aa3e96cc9c 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 2a36b2cbab..f590550e8e 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 1d8f55354f..a2d73bc1f3 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 23317baaf6..b898c4ede0 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 ca3a7a0976..4d4ca72038 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 3da415b49c..6bd970abad 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 a31bd683b2..ab7714f179 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 e33c51f5b7..f2c211d789 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 32d4a9a869..0929e9e3a4 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 5b395540d4..e219c6fc46 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 baba57c996..7e321187a6 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 e64e12fa02..cb2c090450 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 7e3c65c302..8738be2fc5 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 a3e5e7b414..6ad85d7166 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 a63892d9c5..c010f31fc5 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 7f1752ec71..4b42f10297 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 7389781ece..25a6d78cf5 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 443c8573ed..ef85fa8eaf 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 4bc0ae8e30..8e3823cde3 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 7cd91213bd..5bb7a78780 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 04ef1bd323..a8f6ec6eee 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 93e69c2124..b30d39e29c 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 94100297f0..f74a55da14 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 2ba8042961..1780d05a8d 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 61583d1667..307eb9769c 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 0000000000..0787a19e37
--- /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 81e94b4b17..60c5e83399 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 f0cc55b834..3b06461a3f 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 9d101055f2..da7ccdd5ce 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 16dbc30eca..1f6e4a6f9b 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 ced8f4376e..14a3e307b6 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 7fb050ec9d..2d577c6e9a 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 780adc1e8a..1456d4b5bd 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 15d9708e91..88cbe10eab 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 6d67c9d867..8bb117a966 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 9055d6277a..ba91c4f649 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 4b42f10297..e5600ce382 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 0000000000..00d407814a
--- /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 0000000000..016eea7163
--- /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 ef85fa8eaf..dc8af256b1 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 8e3823cde3..e66ceab304 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 4580facf24..a813e545c6 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 b30d39e29c..69be5f6591 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 a2d73bc1f3..44a98b1163 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 1f75a57fce..a9e39b62ca 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 909d37dced..afbbe10222 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 21f246ee85..71eca1909f 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 086d6e318c..3ad5b9ebb0 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 44a98b1163..cf11075bd6 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 a9e39b62ca..ce864fbb2a 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 afbbe10222..454813d907 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 a6c1535173..935cd8ffc1 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 b898c4ede0..0d093a21aa 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 fd0875bd78..0f9eacbdcd 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 f366855622..258ef18f32 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 6e2441819d..9d08082d24 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 a9327a5488..ba96bfdfcf 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 c3cb7147e2..49a7051320 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 71eca1909f..cc01f9962e 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 17e5f204be..18eddfb97e 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 8a14f5c259..c409a7c045 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 d0f8bb2493..f859654bd6 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 c7817c6b71..701fc992ff 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 7c09b331be..36b1f1ba80 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 cf11075bd6..ca17016add 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 ce864fbb2a..8306f9ff3c 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 1dce53c7e4..a286c36bf0 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 33b1fbb819..3298e5de6f 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 f26fca912b..7976f4dafe 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 c986c2c01f..20795c326e 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 195c6755aa..9dc66d9b27 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 72371288ed..42e549e8d6 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 0000000000..efbfe3c2e1
--- /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 0000000000..05f4d67b4e
--- /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 0000000000..ce32dc3aeb
--- /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 0000000000..8c1b3be51e
--- /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 6406f8de65..1d5f1b6337 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 ca17016add..7de8ef3746 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 23dbb1655e..0cd67c4b8c 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 0000000000..d1b45ea967
--- /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 0000000000..9e5cc55658
--- /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 0000000000..b9fa6e226a
--- /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 0000000000..3799af1ebc
--- /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 0000000000..12e6b90587
--- /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 0000000000..7f4e0ee8b1
--- /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 0000000000..b2ea26adc0
--- /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 0000000000..c7884d6299
--- /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 20fc3b49b0..4f0d77f237 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 2466f40215..4047aa127c 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 6b8f3aa732..2650a3d27e 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 0000000000..3d9f0850f6
--- /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 0000000000..724a32864b
--- /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 e7df36c1d9..6da46c5254 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 923552cbb4..40d94abe26 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 4d0eed33cf..498f041f8d 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 bad8dcae6e..a6eee5cf20 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 9ca5ce49fa..359309f352 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 a677436281..826fdc21f9 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 03729407a4..52d812fdd4 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 2650a3d27e..18cd641092 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 cf7ade3d68..fb4eafcb68 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 1456d4b5bd..89a0c05eb7 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 ee2a58324b..4164e3a40e 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 a31bd683b2..7b08a5d797 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 e33c51f5b7..d2465cf200 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 32d4a9a869..a01b557380 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 5b395540d4..0835b35608 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 baba57c996..0dc7eb8a36 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 889fc20a45..b7c6c23746 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 7e3c65c302..48ee372977 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 a6b8be3ce8..115fbb8e6f 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 e5a5b3c507..afbfea2d35 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 b993bc606d..0e74144804 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 258ef18f32..00037a9e5e 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 9d08082d24..33acac525d 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 ba96bfdfcf..4b831424d1 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 2da4ae3b9b..6d3bd70793 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 da0ccd9ce2..af84b3c324 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 41fb47c959..2d8f155c89 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 b7d5da7791..bc1c2fc52e 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 188cda3efc..c28a03a40e 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 ecfd83b7d7..37a48bba21 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 4bf9302e8b..93330ce6f5 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 5c628c8f4e..5124f5f6bc 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 dbe618fa3d..61aeca2beb 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 8a82c15ff6..42c5053857 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 2348e36b13..1b34dfdef8 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 578e1e1576..5625be021e 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 e601b0bbaa..23b83db84b 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 f14891f875..59047abf6f 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 77adb41a07..42fce178ec 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 1c074501ff..a72e67b6e4 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 3aa97bb644..48c6a2ee11 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 2b6a03a031..de848a9478 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 8b5bf6d6db..8aa59a9030 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 b72ee2fc73..fc9e567932 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 85973ee587..7c6e3db227 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 79586a9827..72e7cdee38 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 f37da94729..314a526608 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 1e2d0e6347..ac896b768b 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 101a8dc34a..9bc27de7c4 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 3b60b6c3b6..803704fc4f 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 88a81c0bea..757a61d8cb 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 3e7b73f7bc..1911d95e21 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 1bf96de3b5..333fc4ec41 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 0364ed7962..fa194f8a52 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 06ab0368e4..9ad95dbe25 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 0174dc93c3..b2ee846faf 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 a7f3486b54..36f1f9e145 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 1aefde365a..4f33f7e4d3 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 fb06cc0538..5a3e5b9bec 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 49a7051320..bccd416fb9 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 f8a99268e1..fe01e02dfa 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 bed881a990..c59bf44189 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 8c2475c876..0dff5f4553 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 96ffc6fbbf..48e53af962 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 7e4bcf8793..d847e01235 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 17d288b43c..77be841139 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 f26f9e5e68..5163a97f41 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 1dce28b37b..e12ab7919f 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 5595f4b50e..8168ae67d8 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 0a035c6082..5e697ee70a 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 ca1b4d6fbe..c9d6992bb6 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 d261beecb2..6c5f90fd0f 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 6c45a33885..96e1a5f389 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 067bf562d8..28191b1204 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 b894ff6a5a..71d4c6d1be 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 d503a987e9..3e5107eb2b 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 5a24b6c828..fd0966ef17 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 8e497aabe2..d82a49ed61 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 59a7ce9838..978098cc4e 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 d0aabc6ef5..b26f151cc0 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 053323f76f..4499f18a8e 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 7ed8acea4b..d335527ef8 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 622dd30521..61932cd912 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 2382e8aa9e..dfe98d0237 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 06fdad5aa2..e820ae0dae 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 9bbbb02098..920f8c01be 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 b507c8b63b..3e30e89435 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 608be823f7..50c7cefca8 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 cc01f9962e..faa3ba48ee 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 ec2697d452..6ff75fdfd2 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 c1f7a6f46a..b46186be03 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 76e6a3f42c..84deadb65b 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 6966efcef5..d9b9825771 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 75874bf055..e912af5d49 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 ccd3eaf6ad..2ae8999632 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 118742699d..600df69954 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 2b35463e4a..f3baa4fb16 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 61a1db54f1..6e990ebbbd 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 229c32c68c..f0f39e2af2 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 e1aa9c576f..e3021d554e 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 11cf0bf8ee..28b14a491a 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 b38ff1cf16..3d8c7da30f 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 9b4ca35564..df0fd76716 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 0da67c32d7..c2b0c40a2d 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 e41180e254..584a37ab70 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 ea52217633..421e9f47c0 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 0b2e73d0bb..f7e6ecca92 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 59682523e3..2369335e80 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 d7e47e2932..5e9d858f08 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 e147d37816..0060872daf 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 3eda788e87..972e8ffdcb 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 fadf66aae0..b657407cf7 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 7ee7130c72..3b45773148 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 53ac3d1be2..d8e47b5876 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 bbc627cf7b..4320934b84 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 69c0f15d27..5bc8ef4ecb 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 17b9c911e5..bdc37f7b37 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 4ce8ff6c5d..93ce305aa7 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 f176374d28..e9f65d9261 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 e31ca92505..01f385a61d 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 18eddfb97e..42b911ca94 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 ef2abf451a..0343429b45 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 c3e322207c..75d4ead287 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 013934e000..1de90cf690 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 97451e71b7..6e8aab5acf 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 cc11d33f93..c71aadd1e6 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 f75232d67a..86f1eee89c 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 8fe8ffe0fe..dfa4f0ee54 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 214c883c3c..7b87cdd46f 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 ccdea7095c..8c43a639af 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 c409a7c045..86ba7e7763 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 68d79ad8f1..870dec88e6 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 fa7003a00b..0b3835f172 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 26526f6622..bc59fb50db 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 f20bbbdc53..fe7275cdb2 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 71fe9a9239..f5eeab641d 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 39043ceace..2d024f81a3 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 f859654bd6..8aeca75a81 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 701fc992ff..1eb77f4ee5 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 e4f43c3856..b3c5481542 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 999ecbb108..7119199e84 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 1c2d64279f..12546fd072 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 b8b51b601f..9f04323459 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 3ad5b9ebb0..b2c50a8833 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 36b1f1ba80..91ee64e45e 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 f9a3775af5..0a8032d24b 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 9a9d6bc57d..687a2a62ce 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 f01855d727..037a284f2e 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 0f9eacbdcd..d63eca2bcd 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 57a755dcc7..33b9e6f966 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 2eaf52df49..4582109b72 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 3ae3b876b6..d6e67d5a22 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 8b2c2c5f09..2b13f050ff 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 9456ee6234..0272c3e686 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 9e69d1563e..6c7c944c3f 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 373b174952..174c3fb28e 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 f590550e8e..4aa2e73bc8 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 be3274697d..29479c857a 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 e738eb1ac8..6772328522 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 df3d62fcbd..8dae2df259 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 9469a2ca26..f4efce5576 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 11fd168ce3..2a81509d70 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 7af4fb9e57..52eb6ecafc 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 22055bc726..a9ff11f334 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 e55aca53ac..d481f04af4 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 c457f1000c..9276b6f979 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 eeb186a0c2..7402c88c69 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 8306f9ff3c..4eb586d156 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 454813d907..1100ab9c89 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 495bf2028b..57db6807c5 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 08b0dacd36..3a96db645a 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 c85640a995..551c451f12 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 0ede238912..a3d96071f4 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 e3979deec3..954e679674 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 75ce20d1b1..d72d9f3175 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 a7156f4ef5..8d88fb355f 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 01bc066849..424d164d79 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 399d3de65c..4393fdaffc 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 a95f15aa4f..fdfece4c58 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 724c29593a..8aefbabc56 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 69ba9fd4f3..73d54a7e3d 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 0bcd9b7b2a..0613fb17e4 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 a286c36bf0..7f3d09a3b7 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 b0ff4ebf58..05ec55a9d1 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 28d27472be..8d34489845 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 97697b21f6..e79430b0ff 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 ea644cd780..8ec2f4a705 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 df35d73128..e11b87af71 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 cc393e7c05..874e2a5b43 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 3500e1398b..0c1a829897 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 9a7fc56ae8..dec70523c8 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 567044b8f2..04d6fc764f 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 9ee983acef..beac81c6b5 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 1c46a019f1..175d08ee7e 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 cda9a70155..37cd9f280b 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 f64e309108..9daebabb82 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 548e446c33..b2fa018d0f 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 77ed551880..eec6743ab6 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 a4e72f1ec0..00e0a3a7f9 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 c1aee4d8f5..da36e341ac 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 c1925b89df..763c66f0a7 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 62ad425b7f..cdb58aa617 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 b89780385d..2288c27c92 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 8bbd89ab7a..94f820ce31 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 e5a76eadb0..184004e602 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 fd910a32d2..7cf789247c 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 041a1b5adc..5d3e8170b9 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 190ca83e1e..9171cd4730 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 8a5395db18..e757456756 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 7bd1175cff..54dd407bc7 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 670b8de770..dceca9e4f4 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 33514e670d..17df6e5bf1 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 39966aedaa..f25589e3c7 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 07b0452015..327bef2e1d 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 90d94f5e04..149e4c8687 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 3207806040..3897098290 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 36e34e6483..6d3cc9df09 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 e8f92151cc..e5db5da0ea 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 40c879fb96..fb6f88ea0b 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 32ee1603d8..24d6c5ef4e 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 8c9dd4cfb1..31aebf9b98 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 22c8c1c989..cc0238c815 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 f08831d68e..19f9b34fc0 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 491874016d..623970a429 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 0e315af07b..9a4cf833c0 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 5597e2052d..edb04905cd 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 1ca814ee8a..e27d329cf8 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 935cd8ffc1..a5724ee413 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 2e2d1459f9..d86acc3570 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 8d97ce9ab9..c0ef064b4a 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 822b8a6711..f72f1f921b 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 f13ec2f7bc..4972560c5c 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 f211d2e172..1fa21c23a3 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 46fa64368c..38572a9c0e 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 a222363e11..f45867d97c 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 9b77f25a76..626dadb4d6 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 9f31a72543..f84d52c76f 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 625feb55d1..34e3ddad2f 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 c57b49704a..30eae1b196 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 3b15586b28..39e474d160 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 218a99f761..43c1af659f 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 940b08b211..b02af02093 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 5463ed664b..64740c8b16 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 9a1124f1bb..8b113e298c 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 e639fb95dd..f54802e271 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 684455a8d6..16a71aa822 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 634324dbe9..2ee19c3316 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 2f4eafc5b8..c463348267 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 45f25d8488..9cc75fa5f1 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 e22af069b1..d2e9357847 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 3e23d4cf43..4bb12c9579 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 dbbf21560d..fd0cded3db 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 84d8735037..abfb270ab0 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 5e635ea194..d516e16fe0 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 31c51502f9..af44bf253f 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 4b9713d7f5..4ed0431213 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 81335ccc90..b7b3fb64a8 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 55e2bc7e6a..309b8a24d0 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 ce2c269422..c026c0203f 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 294dc90473..37cbacea1a 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 c20582d8fc..3fbb0dc4db 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 f8277b1f5b..a8cee6ff85 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 8c23d2391d..46be248d44 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 1780f966c1..c0586448a0 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 cb57dc86e6..8e2c0ef304 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 00442751dd..99e04e3269 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 86a684442f..7b10ff9b11 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 44b6dc5f61..0053bad356 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 61b1c9d35f..7bebaddee6 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 5aea57a9f6..af6fbb6e86 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 dd23d8e83d..0dcedae471 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 63e1b4449d..12882bfb6e 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 4bbaf5f739..da93965ac6 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 acbfbb9a93..a30a7dbf22 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 4c84ba5fdb..1523b2ec96 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 488d9ac897..1816bfc510 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 6cea96bb68..09ed63fd9f 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 1d8671b907..d78948d841 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 dad386b37a..802cf7186f 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 1bf9283072..1b29d9a6e3 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 f13e71c369..312bc32134 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 90b762815d..36497ca63d 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 efbfe3c2e1..2d726fdfa7 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 884540c680..415177e88c 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 4252efc714..f7e75d5a5d 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 16f7cdfb63..b7095cdfac 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 ed1d5edd28..4814e3155a 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 ef81370e9d..5bb89f1aba 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 14e233474a..d9ba331f75 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 bce2a0da56..c063e5e931 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 1d5f1b6337..49b222d95b 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 81c0dbb903..59ab9e8d25 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 a3bd18578a..431b3afd55 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 92abfb29eb..2176e22904 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 a6dd834860..72bce4f03a 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 c2fb0bb064..f64104fa0b 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 1e603bd131..2f290a2f6c 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 96f96610f7..9275f7606a 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 0c4a305309..091e5d880c 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 54f437b6c9..ed36ac5fef 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 dc45781a2a..4cf4bd0451 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 02ba933fba..b2b471bb16 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 0072028cb7..5b91fbf9cb 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 adc7d4946e..fa51ad1274 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 7f3ac5b7b3..27e48e6479 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 50fbc74d3e..a7ff29a5c7 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 e3973955f5..34e0d07e0b 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 ddf4d532ec..f817c9129a 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 7e8cd2117b..4055b1c123 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 83bf515a13..7f445eb8aa 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 dbafe7feca..e6add08b22 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 71619d6eae..4d67973100 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 70a99953d2..0dafcee84a 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 c5511749d4..0ebac0140d 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 f741e8f51d..7c2d31a929 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 af1d92971e..cc6658ec04 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 7c66926099..b127e1ec6c 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 ca8d028ed3..d8c421ea67 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 5a37057e5f..e1c39985b7 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 dde891b39e..65ebc71f9c 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 8adf7f68b5..b77080c3c7 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 59ec309e1c..c52e1929b4 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 5fdb6023bd..d92378b73a 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 f65d7c0390..6f31ce7c12 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 209e822aa1..6e60f707a3 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 0406650fc5..b0887741f9 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 48177f9a87..aecdc1b796 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 d71dd3aef0..42f10c11ac 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 7cca8ac5b9..3a2eb655ad 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 3437dbdab9..2c9f44e517 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 2ff1a47eea..3c4b9c0a00 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 b7a2eb5e70..6d8dfcc11c 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 9dfddc2c0f..b80ded83d6 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 e7df36c1d9..779b1c95df 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 384de24405..3d3e6b8383 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 74de78523e..617d98a04c 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 f18ef80081..9c020ad8a5 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 19c0244b2e..c5df19940e 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 e56381d8bb..3b7ec5fd8f 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 294bd3cd5a..127d60bae1 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 c92c5bf34b..0a818dc05a 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 af0c7e3aa3..100d335fb4 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 51ab9701d8..fa70a05886 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 3be0eba088..21b7b2bf42 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 29b013dfd1..5819634020 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 faa55ad6ba..fd40a6f99c 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 f6548b61ed..6e4f5cd94c 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 0d093a21aa..45a6c04100 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 989185ab4e..92753f4daf 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 07cbc44237..1452d5988f 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 05a862021c..58e7410a0d 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 6868a03667..fee46b061f 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 02b7c6dcd1..c271f497eb 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 ae8fe5f9ce..09668e9092 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 003a2ce98e..448f2d6020 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 8cdc81e9f5..91fea1b02d 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 19c273115d..a13437a63b 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 57378ead78..f6a84bebab 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 6afa505ab0..64e767535d 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 2ec1e087cc..36faf1c9aa 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 f340afd6a0..7812840754 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 e8b343b45e..e568999d7c 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 ea3f2a1125..cd68476e0d 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 fdada6df31..ab8b10e9e8 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 6b62603041..44454933de 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 9f94dd8d1f..dfa6086b6e 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 d8ed09428b..a3270faa60 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 77734a37f7..981c6ef768 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 409b6c3eed..b888e89f8c 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 b579a0bfc6..aee1eb2af7 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 98c2f34c43..fb4e2749d1 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 0d1a49957c..39955811fa 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 95a9b8876b..fa2434f6b4 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 7b08a5d797..b47b480e68 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 d2465cf200..a413d64fa0 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 a01b557380..24b37a46da 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 0835b35608..8b11c4ebc9 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 0dc7eb8a36..e8a31139d1 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 b7c6c23746..1083d28a38 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 48ee372977..083b14b139 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 115fbb8e6f..e171811f24 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 afbfea2d35..31d28b2523 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 0e74144804..5739d5eac1 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 00037a9e5e..269b753774 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 33acac525d..899e2911e5 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 4b831424d1..8d997a4ae4 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 6d3bd70793..0e06810598 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 af84b3c324..57d04215b1 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 2d8f155c89..8be410ed3f 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 bc1c2fc52e..1805490213 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 c28a03a40e..472101738f 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 37a48bba21..c9573115ad 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 93330ce6f5..97b7748050 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 5124f5f6bc..92ca31d232 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 61aeca2beb..727344d3c5 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 42c5053857..c9d95593f9 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 1b34dfdef8..edd2e9ba58 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 5625be021e..e066f5d541 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 23b83db84b..8ffde3c771 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 59047abf6f..373d004466 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 42fce178ec..8bdca8e03b 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 a72e67b6e4..d1d9d1f9f8 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 48c6a2ee11..442093fc47 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 de848a9478..e9a5124687 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 8aa59a9030..b6282d3816 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 fc9e567932..5eaea68a6a 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 7c6e3db227..509d6f2c69 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 72e7cdee38..3a9082c2c7 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 314a526608..43c1eb4d89 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 ac896b768b..51b37c22f7 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 9bc27de7c4..cfe9e6d253 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 803704fc4f..803c399f4f 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 757a61d8cb..6fab951dac 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 1911d95e21..5caf76ce42 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 333fc4ec41..910c6d5fad 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 fa194f8a52..a92d294e77 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 9ad95dbe25..986200ae1c 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 b2ee846faf..b6d5870b18 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 36f1f9e145..5986740b37 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 4f33f7e4d3..2373bd4e9e 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 5a3e5b9bec..9af7112d7d 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 bccd416fb9..2ac5de0aed 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 fe01e02dfa..888880182b 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 c59bf44189..11aba91aad 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 0dff5f4553..db6fe09c0c 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 48e53af962..eb267ee752 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 d847e01235..9a6627ecbe 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 77be841139..68a2419861 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 5163a97f41..e8e482c5cc 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 e12ab7919f..f66764823f 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 8168ae67d8..47b7302cf7 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 5e697ee70a..79f8f197dd 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 c9d6992bb6..d6274d192e 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 6c5f90fd0f..d034d5ffb3 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 96e1a5f389..da4693a55f 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 28191b1204..e24b2e6b0e 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 71d4c6d1be..e32726e564 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 3e5107eb2b..4702463cc6 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 fd0966ef17..979236e59f 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 d82a49ed61..4cdfb63939 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 978098cc4e..15a4e25e37 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 b26f151cc0..2ae80e1f8c 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 4499f18a8e..10993fc899 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 d335527ef8..64dac76588 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 61932cd912..e66fb18373 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 dfe98d0237..53ab47eaff 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 e820ae0dae..0583e891c9 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 920f8c01be..ac3e5f9ff0 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 3e30e89435..9cb43ffd94 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 50c7cefca8..3b4e9dfb18 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 faa3ba48ee..76a9ffa1c4 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 6ff75fdfd2..5156379221 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 b46186be03..f9f6a07039 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 84deadb65b..bdce8538d7 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 d9b9825771..b92f2e1614 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 e912af5d49..172dc08de0 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 2ae8999632..24f518f115 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 600df69954..70cf1629ce 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 f3baa4fb16..27427604cf 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 6e990ebbbd..f009bf06fc 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 f0f39e2af2..a32dbf4aef 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 e3021d554e..19447beabd 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 28b14a491a..8b857fcc79 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 3d8c7da30f..251316e440 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 df0fd76716..cdabf47a28 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 c2b0c40a2d..45f264ad4a 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 584a37ab70..af941b73b1 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 421e9f47c0..3c74fe0351 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 f7e6ecca92..ce9ef1d032 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 2369335e80..e65c1f505c 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 5e9d858f08..a57656dcdc 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 0060872daf..6adf1a8b45 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 972e8ffdcb..4f351e4a5e 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 b657407cf7..536e978b3a 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 3b45773148..814bbd71a4 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 d8e47b5876..980467e6c3 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 4320934b84..24c6d471c3 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 5bc8ef4ecb..ff5a5ce893 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 bdc37f7b37..2342ea19e7 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 93ce305aa7..b882baaf4b 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 e9f65d9261..7aba90ec63 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 01f385a61d..f51b1b19ad 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 42b911ca94..f8609bfa12 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 0343429b45..8653e97ef3 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 75d4ead287..1f2613523b 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 1de90cf690..7b43b47227 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 6e8aab5acf..7a49dfc055 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 c71aadd1e6..025f127bf7 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 86f1eee89c..215ca3879a 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 dfa4f0ee54..c874d2fc71 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 7b87cdd46f..f2355c8498 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 8c43a639af..1744cdf534 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 86ba7e7763..3a63b8c731 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 870dec88e6..58d93f5123 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 0b3835f172..93e409d478 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 bc59fb50db..4bf1460f80 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 fe7275cdb2..1a4de9a61d 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 f5eeab641d..b3f1087ff0 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 2d024f81a3..728bc60d75 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 8aeca75a81..cf705933dd 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 1eb77f4ee5..e6d718797d 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 b3c5481542..47a11c2211 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 7119199e84..b36d1dabce 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 12546fd072..97d9d54da7 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 9f04323459..28971e5681 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 b2c50a8833..2ad845b8e8 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 91ee64e45e..3911bf84fb 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 0a8032d24b..7994cab409 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 687a2a62ce..e82e47b7ee 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 037a284f2e..f740a9ca26 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 d63eca2bcd..c3c8b94b97 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 33b9e6f966..b43c0e318d 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 4582109b72..48560070e2 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 d6e67d5a22..f09590fecf 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 2b13f050ff..e57899b9da 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 0272c3e686..a0eb3bdeb6 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 6c7c944c3f..0efb107005 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 174c3fb28e..9f884eedfb 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 4aa2e73bc8..d1db2b3280 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 29479c857a..945e5d8762 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 6772328522..72a5ef6641 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 8dae2df259..812e7a6370 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 f4efce5576..cbfaafe2cb 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 2a81509d70..bf765dc1ca 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 52eb6ecafc..86b1409191 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 a9ff11f334..b1daa8b93f 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 d481f04af4..920e17f208 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 9276b6f979..a798df20da 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 7402c88c69..36b26335fd 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 4eb586d156..32d86a40eb 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 1100ab9c89..c690eef573 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 57db6807c5..84d353b880 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 3a96db645a..a9b8f3d74b 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 551c451f12..eadee509ec 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 a3d96071f4..adc29afeea 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 954e679674..11cddbc864 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 d72d9f3175..8b27f3a7d4 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 8d88fb355f..a7fb228a46 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 424d164d79..3876be4378 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 4393fdaffc..7b20b60901 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 fdfece4c58..38e56c787a 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 8aefbabc56..0da4a34cbc 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 73d54a7e3d..649b652dc9 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 0613fb17e4..569ab3e5c4 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 7f3d09a3b7..10c79d4f6e 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 05ec55a9d1..0c97c1f486 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 8d34489845..3c654b538a 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 e79430b0ff..37f6c7665e 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 8ec2f4a705..578e6e9b23 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 e11b87af71..cf8d651a84 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 874e2a5b43..a6dcfeb1df 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 0c1a829897..b82ce78e42 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 dec70523c8..8e137eecb5 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 04d6fc764f..da8b8d8a2c 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 beac81c6b5..31000df913 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 175d08ee7e..b258b0ab0e 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 37cd9f280b..dcbcb126a7 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 9daebabb82..fbcc5e486c 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 b2fa018d0f..06b90f8c03 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 eec6743ab6..1281b55d74 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 00e0a3a7f9..0e5399985b 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 da36e341ac..e67c62e364 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 763c66f0a7..3dee33d65f 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 cdb58aa617..676d3c5a3f 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 2288c27c92..2cb280fefd 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 94f820ce31..a2432f470c 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 184004e602..18ec287388 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 7cf789247c..421a999f06 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 5d3e8170b9..39156de90b 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 9171cd4730..dd515d77fd 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 e757456756..ad33e450d7 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 54dd407bc7..03ca8b022a 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 dceca9e4f4..722e892c7a 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 17df6e5bf1..acf68dab96 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 f25589e3c7..83084c2d2c 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 327bef2e1d..8391b2c536 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 149e4c8687..dc9172c49d 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 3897098290..d2d838fee7 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 6d3cc9df09..fe527f5e5f 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 e5db5da0ea..3bef14eb4c 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 fb6f88ea0b..c041b5a545 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 24d6c5ef4e..5fda3a23e0 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 31aebf9b98..f3f7de908b 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 cc0238c815..9d60c5d2fc 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 19f9b34fc0..9b583c2d5e 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 623970a429..d1527cd453 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 9a4cf833c0..0fb17710ad 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 edb04905cd..0791de9bd8 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 e27d329cf8..91ff812f48 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 a5724ee413..bdc4ce0065 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 d86acc3570..37d2588c5a 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 c0ef064b4a..34bce1499d 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 f72f1f921b..e35999a4cf 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 4972560c5c..a5a887eb45 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 1fa21c23a3..8eeeaa442a 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 38572a9c0e..3f74aa4a5b 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 f45867d97c..dc2dd9be86 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 626dadb4d6..145ab55c00 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 f84d52c76f..5ad88a2481 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 34e3ddad2f..0454541101 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 30eae1b196..77c48ae2a9 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 39e474d160..c35da56fee 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 43c1af659f..917e178bd1 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 b02af02093..4e48305099 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 64740c8b16..d532fc1993 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 8b113e298c..0b73e15580 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 f54802e271..d62a7dfa75 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 16a71aa822..61fb008e54 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 2ee19c3316..5c81daa8d4 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 c463348267..0522ff4f67 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 9cc75fa5f1..6453678cb3 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 d2e9357847..bd32729446 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 4bb12c9579..e333ee33b0 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 fd0cded3db..4bef57f746 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 abfb270ab0..e69b33dc15 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 d516e16fe0..67394390a5 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 af44bf253f..864bbda578 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 4ed0431213..5acef07879 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 b7b3fb64a8..ae251628aa 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 309b8a24d0..57272ef546 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 c026c0203f..4b3ed85e79 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 37cbacea1a..cc4ba0cb4c 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 3fbb0dc4db..7b89b88541 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 a8cee6ff85..5a8ce536f9 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 46be248d44..a09059f698 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 c0586448a0..5a73166f84 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 8e2c0ef304..3356c790a6 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 99e04e3269..3a8f6045da 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 7b10ff9b11..f5e47fda93 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 0053bad356..4f4bb9e176 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 7bebaddee6..1fba3f01eb 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 af6fbb6e86..a2c420f62a 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 0dcedae471..ed7425b8f1 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 12882bfb6e..2e23e7bd8e 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 da93965ac6..c555460dfb 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 a30a7dbf22..3a91fa6667 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 1523b2ec96..9c2c8be8cc 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 1816bfc510..8a11821c4b 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 09ed63fd9f..108d29d8ce 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 d78948d841..7bd6c4267b 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 802cf7186f..9a57421cee 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 1b29d9a6e3..699cad95c6 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 312bc32134..9899424ec8 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 36497ca63d..df426ac5bb 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 2d726fdfa7..7f97ce8159 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 415177e88c..4fd6edba78 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 f7e75d5a5d..47bca4af4b 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 b7095cdfac..3428dcce3f 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 4814e3155a..ef82e1e77e 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 5bb89f1aba..19e06d62bb 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 d9ba331f75..9e477b8bd8 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 c063e5e931..20e608714f 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 49b222d95b..7313f12ce4 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 59ab9e8d25..f98c25cee9 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 431b3afd55..cef7e0e93c 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 2176e22904..b6031de788 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 72bce4f03a..1c3d9390d6 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 f64104fa0b..170ebdc605 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 2f290a2f6c..75d0d9d169 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 9275f7606a..f5bde77bdd 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 091e5d880c..8881a1aa86 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 ed36ac5fef..7f73fa2db7 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 4cf4bd0451..a38fb5ab30 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 b2b471bb16..54ae982080 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 5b91fbf9cb..f46d5bc8f9 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 fa51ad1274..a2d1ae3058 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 27e48e6479..437f949927 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 a7ff29a5c7..43dc4e1441 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 34e0d07e0b..5c3c50feba 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 f817c9129a..9e080fb8a0 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 4055b1c123..6b99036dc7 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 7f445eb8aa..b9e12c58a3 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 e6add08b22..300e1eed8c 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 4d67973100..d305a505f1 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 0dafcee84a..4ea9c0416a 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 0ebac0140d..99405a2a0e 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 7c2d31a929..448e906362 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 cc6658ec04..b49c04d644 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 b127e1ec6c..3862f57778 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 d8c421ea67..66bbfaad71 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 e1c39985b7..d81772b1c5 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 65ebc71f9c..e2a8478d87 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 b77080c3c7..88ec528e7e 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 c52e1929b4..b059174668 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 d92378b73a..39661f9bd2 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 6f31ce7c12..9ab80e1f09 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 6e60f707a3..ed0a34a54f 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 b0887741f9..8c909b441a 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 aecdc1b796..9eca1fc6c9 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 42f10c11ac..ca82c6a288 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 3a2eb655ad..7a93a3f1b5 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 2c9f44e517..063f1bf977 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 3c4b9c0a00..2a6a980859 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 6d8dfcc11c..d20aa3fd26 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 b80ded83d6..6e5ad790cb 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 779b1c95df..63625f40c1 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 3d3e6b8383..1618cae39b 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 617d98a04c..b23e24ee52 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 9c020ad8a5..6f88b8c504 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 c5df19940e..d05070e2c8 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 3b7ec5fd8f..5fe32d4368 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 127d60bae1..465a1b116f 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 0a818dc05a..59a52b9e50 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 100d335fb4..0e0ebd4d6c 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 fa70a05886..f6e335b7bd 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 21b7b2bf42..929337bd8c 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 5819634020..4428ff7f3d 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 fd40a6f99c..40e375294e 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 6e4f5cd94c..3335fd2b42 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 45a6c04100..1b996666be 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 92753f4daf..0f6a61894c 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 1452d5988f..de3d43d789 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 58e7410a0d..684deafa4a 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 fee46b061f..1c55d8a29b 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 c271f497eb..96707a881f 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 09668e9092..0e174ef173 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 448f2d6020..08679af1fe 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 91fea1b02d..5fdc703dab 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 a13437a63b..c6457f06c0 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 f6a84bebab..3869ea2937 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 64e767535d..8cad5e337b 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 36faf1c9aa..2a179d3c6c 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 7812840754..05def3afe7 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 e568999d7c..99b7e0a4e3 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 cd68476e0d..110a87fe45 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 ab8b10e9e8..e6286ce24b 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 44454933de..44b96b2ea3 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 dfa6086b6e..e759a1d9fd 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 a3270faa60..ad3fc0d25c 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 981c6ef768..95a0032661 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 b888e89f8c..60c2b73279 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 aee1eb2af7..ab5a745604 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 fb4e2749d1..16ec2b20b4 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 39955811fa..946aa00deb 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 fa2434f6b4..f0e7ee2371 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 4047aa127c..dbc23b898a 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 8780e3298a..7cf46eeacc 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 5e536e6ee1..50573cb956 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 923552cbb4..40d94abe26 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 7488e5152d..6ff37b4c94 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 7aa34a8b82..00d7ae57a2 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 35ab06f692..d8681f2fff 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 bfa53a36f9..ee9ca27f80 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 3e5bf6c3fb..c3d1801abc 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 dcf359f42a..0edb6b8554 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 7c3f9ff093..a42997b475 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 568f867b3e..e6b1ca883c 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 abe4c82cc0..ec5920e491 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 b47b480e68..c0147752a9 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 a413d64fa0..506622a4eb 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 24b37a46da..0083bd4b2e 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 8b11c4ebc9..bb977e9ea8 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 e8a31139d1..1fbed6f1d5 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 1083d28a38..1d06442335 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 083b14b139..b1be342a37 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 e171811f24..7136c58766 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 a254d5316a..a1de755c28 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 5739d5eac1..36132b17fe 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 269b753774..bcb37d0538 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 899e2911e5..81343d0964 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 8d997a4ae4..a268ef4895 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 0e06810598..e70203785f 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 57d04215b1..4d7e00447d 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 8be410ed3f..7453e56dab 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 1805490213..4171721719 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 472101738f..e437616d61 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 c9573115ad..f5fce167c9 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 97b7748050..bfe1c28671 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 92ca31d232..96d5bf580c 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 727344d3c5..89ba2e5b07 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 c9d95593f9..75a68a27ec 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 edd2e9ba58..a1bdbc1eb6 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 e066f5d541..50e41199fe 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 8ffde3c771..c187c63ed2 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 373d004466..2567916ecc 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 8bdca8e03b..472153cd90 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 d1d9d1f9f8..6edc1e0b46 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 442093fc47..b672299d8c 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 e9a5124687..f23a27e250 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 b6282d3816..a1e7c7e286 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 5eaea68a6a..b7d0c49625 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 509d6f2c69..6b7a792ffe 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 3a9082c2c7..62005eb932 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 43c1eb4d89..7433e7666f 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 51b37c22f7..97190a63f5 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 cfe9e6d253..23a17c8f7f 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 803c399f4f..5e6f0f73b4 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 6fab951dac..1de032439a 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 5caf76ce42..6c81c7fe59 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 910c6d5fad..e3ab367279 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 a92d294e77..f2b0d117b8 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 986200ae1c..12969e52b1 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 b6d5870b18..31707e3995 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 5986740b37..3d11f0f84e 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 2373bd4e9e..765977d830 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 9af7112d7d..b870b696bb 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 2ac5de0aed..b23cde5971 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 888880182b..26ddb3d3a7 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 11aba91aad..15f7449ac1 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 db6fe09c0c..e51b1bdaea 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 eb267ee752..e831e8136a 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 9a6627ecbe..67a3923d19 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 68a2419861..d8b92d7635 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 e8e482c5cc..2338bf3014 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 f66764823f..082cd67c51 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 47b7302cf7..1a2631cb4e 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 79f8f197dd..9de9d3136a 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 d6274d192e..b3271806d8 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 d034d5ffb3..674002dca4 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 da4693a55f..c5836afc5e 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 e24b2e6b0e..4ca790bfe8 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 e32726e564..d35f2a0c05 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 4702463cc6..d2c9460a25 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 979236e59f..56c8bda116 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 4cdfb63939..6a93cd2f1d 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 15a4e25e37..5ae839ad2b 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 2ae80e1f8c..79793b766c 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 10993fc899..dc107770b2 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 64dac76588..2c6282c949 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 e66fb18373..25f7625002 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 53ab47eaff..03b4bde0c9 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 0583e891c9..cd056b9cab 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 ac3e5f9ff0..6d4c765639 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 9cb43ffd94..8cc8ebc93c 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 3b4e9dfb18..cf8d3aa409 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 76a9ffa1c4..5e5bc73375 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 5156379221..299a8fe6e9 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 f9f6a07039..1e21b17074 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 bdce8538d7..637f4c63f1 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 b92f2e1614..b21856779e 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 172dc08de0..f0d2491580 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 24f518f115..e0f3805fca 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 70cf1629ce..2135a4c7b9 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 27427604cf..9bfd60c669 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 f009bf06fc..d27412381d 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 a32dbf4aef..059d85ab2c 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 19447beabd..7c3b067f32 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 8b857fcc79..6a1939529c 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 251316e440..b64da0c13e 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 cdabf47a28..370215308d 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 45f264ad4a..8c9d910650 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 af941b73b1..5dfbbd8a35 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 3c74fe0351..32f73bef22 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 ce9ef1d032..362fa24837 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 e65c1f505c..475f2fd5b3 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 a57656dcdc..2467304f8e 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 6adf1a8b45..f1221dc88c 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 4f351e4a5e..0e9fef5a47 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 536e978b3a..7bcd9289f4 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 814bbd71a4..496ccadf64 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 980467e6c3..312a3ff162 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 24c6d471c3..575af58e61 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 ff5a5ce893..3bdc06ee41 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 2342ea19e7..c481615c38 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 b882baaf4b..0f76d02473 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 7aba90ec63..2ee06decab 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 f51b1b19ad..790ce09647 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 f8609bfa12..624099ce77 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 8653e97ef3..4444a724cf 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 1f2613523b..7a297d9f5b 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 7b43b47227..273721c3b1 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 7a49dfc055..8af5f4673c 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 025f127bf7..fc5df2daf8 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 215ca3879a..ebac4edfb1 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 c874d2fc71..8f32add161 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 f2355c8498..93b3600f5e 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 1744cdf534..c3151d1ab8 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 3a63b8c731..5d3acd8677 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 58d93f5123..7db19c4dbb 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 93e409d478..32186dd0c3 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 4bf1460f80..8edf6da747 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 1a4de9a61d..0c1a6241c9 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 b3f1087ff0..b6e22edfda 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 728bc60d75..0cb457d9a5 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 cf705933dd..954b796f1b 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 e6d718797d..4fe1bc2d14 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 47a11c2211..c190fdfe36 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 b36d1dabce..b32fb743ab 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 97d9d54da7..1dbd105597 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 28971e5681..3e72d97959 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 2ad845b8e8..940603f0c4 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 3911bf84fb..f20faabf6b 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 7994cab409..44b0ed7c35 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 e82e47b7ee..1a1309fefa 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 f740a9ca26..878566b549 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 c3c8b94b97..5b353b6f98 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 b43c0e318d..5f9300526a 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 48560070e2..522fbc0afb 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 f09590fecf..cc81d57591 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 e57899b9da..e3c0577cc6 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 a0eb3bdeb6..7f85d02dbc 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 0efb107005..89900bf7ae 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 9f884eedfb..a4cbc13766 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 d1db2b3280..2f9242d85a 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 945e5d8762..dd457eea29 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 72a5ef6641..ded533b160 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 812e7a6370..415d35357f 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 4a58948313..8bb3928a91 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 bf765dc1ca..5168719a46 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 86b1409191..1c4637e919 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 b1daa8b93f..272c09228b 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 920e17f208..ffb2bdbd14 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 a798df20da..8f1613ed31 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 36b26335fd..a2dc7ecbc5 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 32d86a40eb..e25581aa99 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 c690eef573..df21456672 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 84d353b880..98c02fecae 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 a9b8f3d74b..a6600e90fc 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 eadee509ec..68ababfb21 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 adc29afeea..81ebffe17a 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 11cddbc864..0c0c8a3303 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 8b27f3a7d4..ed7bbef7ec 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 a7fb228a46..f552ffe2bb 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 3876be4378..f6f1c69697 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 7b20b60901..eefdda81df 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 38e56c787a..e4ea8e1a0a 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 0da4a34cbc..db2002aa7f 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 649b652dc9..cfa2a7f5d4 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 569ab3e5c4..64f6c09b91 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 10c79d4f6e..f0bfb56545 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 0c97c1f486..84904f3f34 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 3c654b538a..e9b0a4e49e 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 37f6c7665e..6b469a5a84 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 578e6e9b23..f2c2436400 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 cf8d651a84..5a3f9c1efe 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 a6dcfeb1df..c31a093588 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 b82ce78e42..9e5a081e85 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 8e137eecb5..bcc8aef6e6 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 da8b8d8a2c..8f11cf6c94 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 31000df913..3573d14996 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 b258b0ab0e..95955129f4 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 dcbcb126a7..cd2bf6898a 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 fbcc5e486c..2e0698c3eb 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 06b90f8c03..8283cb742f 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 1281b55d74..2a75f8e471 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 0e5399985b..0a6546cc83 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 e67c62e364..12f50d87bd 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 3dee33d65f..51562708bd 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 676d3c5a3f..74adf795bf 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 2cb280fefd..a67513951e 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 a2432f470c..a3e1c208f0 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 18ec287388..c9ae898679 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 421a999f06..13a9ccc1dc 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 39156de90b..4a7569da4f 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 dd515d77fd..1bae661755 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 ad33e450d7..69ee8d0dda 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 03ca8b022a..f6f36f1475 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 722e892c7a..6ddefffab6 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 acf68dab96..451e2254d4 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 83084c2d2c..ef9d631658 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 8391b2c536..250e74bac3 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 dc9172c49d..0aa340016b 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 d2d838fee7..01c5cab25b 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 fe527f5e5f..582d3866f2 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 3bef14eb4c..2f01d80833 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 c041b5a545..dd27ebc5b8 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 5fda3a23e0..12991188dd 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 f3f7de908b..6849102b91 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 9d60c5d2fc..f5adf8b27b 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 9b583c2d5e..1ef85ca2ae 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 d1527cd453..c0359c2151 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 0fb17710ad..9d65622705 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 0791de9bd8..c3d0e84ade 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 91ff812f48..6d6e8280eb 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 bdc4ce0065..267ba935db 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 37d2588c5a..783af64500 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 34bce1499d..3268679dd7 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 e35999a4cf..ba47d81afc 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 a5a887eb45..614e3d0622 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 8eeeaa442a..503303af24 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 3f74aa4a5b..4e00c8f88d 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 dc2dd9be86..2809ae2c97 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 145ab55c00..6eebdbafab 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 5ad88a2481..4ab6d185b7 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 0454541101..fcbd466814 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 77c48ae2a9..93ff617bef 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 c35da56fee..9f0a5f75df 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 917e178bd1..edb5811550 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 4e48305099..de7f34e139 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 d532fc1993..e7ff553aeb 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 0b73e15580..054dfc869c 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 d62a7dfa75..e43a9e9fcf 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 61fb008e54..6f75e82447 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 5c81daa8d4..16dcf84db4 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 0522ff4f67..ff1d1c3bd2 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 6453678cb3..9af20bdb32 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 bd32729446..8165a9dec5 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 e333ee33b0..0429a21944 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 4bef57f746..9ddd250a12 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 e69b33dc15..79d80a4915 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 67394390a5..9c2b690e9c 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 864bbda578..a640b11883 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 5acef07879..c6ed03012e 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 ae251628aa..ee56121d86 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 57272ef546..feaa3e0837 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 4b3ed85e79..ac12142335 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 cc4ba0cb4c..88fc3d326c 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 7b89b88541..ce6a71710d 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 5a8ce536f9..e848c38b05 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 a09059f698..a6908e582e 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 5a73166f84..9799118c55 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 3356c790a6..84c5342619 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 3a8f6045da..0cc412c283 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 f5e47fda93..d7a9f15874 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 4f4bb9e176..a483614fde 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 1fba3f01eb..ab9d7c580f 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 a2c420f62a..a91e07da83 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 ed7425b8f1..c2d21d04b1 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 2e23e7bd8e..9fb7da7fa9 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 c555460dfb..6050b34e12 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 3a91fa6667..e19d3c1938 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 9c2c8be8cc..1ea2ae7653 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 8a11821c4b..e154435289 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 108d29d8ce..41054ee65d 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 7bd6c4267b..f6f0b37022 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 9a57421cee..b1b014a5a4 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 699cad95c6..c026496c63 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 9899424ec8..1fa5ea33ff 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 df426ac5bb..0918ab4027 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 7f97ce8159..f6e5d3c9ef 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 4fd6edba78..64b7feb643 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 47bca4af4b..1ba5058b96 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 3428dcce3f..63ef79329b 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 ef82e1e77e..12c9f6a7cd 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 19e06d62bb..00b3a0785e 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 9e477b8bd8..6791e4ad57 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 20e608714f..bcf61d1ca0 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 7313f12ce4..21dc7038d2 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 f98c25cee9..d613003ed1 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 cef7e0e93c..08160790ce 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 b6031de788..ba57c3afb4 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 1c3d9390d6..50d29d0982 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 170ebdc605..bf5bbfefff 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 75d0d9d169..3880acab2b 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 f5bde77bdd..bfaf83db09 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 8881a1aa86..858711eee4 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 7f73fa2db7..85ad4b3616 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 a38fb5ab30..e2d5fe9d2f 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 54ae982080..60d9d6193a 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 f46d5bc8f9..7cf8d550bd 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 a2d1ae3058..1020aa911e 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 437f949927..46b99dcdcb 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 43dc4e1441..885a2090fd 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 5c3c50feba..5c1761fe4d 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 9e080fb8a0..cb511155c7 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 6b99036dc7..2ddf66e54e 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 b9e12c58a3..25e51923fe 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 300e1eed8c..ba560ffae0 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 d305a505f1..28d9658622 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 4ea9c0416a..6300846408 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 99405a2a0e..e52dd0c210 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 448e906362..e72da4fd97 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 b49c04d644..6831ca126b 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 3862f57778..a283de0e12 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 66bbfaad71..2fcd05c0f1 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 d81772b1c5..2a4a457299 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 e2a8478d87..0f4903c85e 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 88ec528e7e..f6be0abcdb 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 b059174668..04cc904460 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 39661f9bd2..ae39d30b6c 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 9ab80e1f09..e053957aa2 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 ed0a34a54f..41e20b3e29 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 8c909b441a..c969795c95 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 9eca1fc6c9..a14660da4b 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 ca82c6a288..7f33adb2a9 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 7a93a3f1b5..c6931615e6 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 063f1bf977..afdc913f5b 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 2a6a980859..b466c54d95 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 d20aa3fd26..d1e4b71042 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 6e5ad790cb..1559818048 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 63625f40c1..1186c4b7dc 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 1618cae39b..35ae665efd 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 b23e24ee52..9b57c258af 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 6f88b8c504..5b94cacf39 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 d05070e2c8..b2ecf9aeba 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 5fe32d4368..2bad08c4f9 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 465a1b116f..ddc79f53f7 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 59a52b9e50..92a83c6ff4 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 0e0ebd4d6c..d9f677671f 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 f6e335b7bd..bafd8fb2fb 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 929337bd8c..e667307ec7 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 4428ff7f3d..9e0ac39856 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 40e375294e..8d5b36d0ec 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 3335fd2b42..969f1f8653 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 1b996666be..c519611918 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 0f6a61894c..512dabd4d8 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 de3d43d789..fd41347aca 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 684deafa4a..d4e53fee3c 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 1c55d8a29b..b753703e94 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 96707a881f..f11ecb9fca 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 0e174ef173..6305398e5b 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 08679af1fe..b393205258 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 5fdc703dab..2cab6b4cde 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 c6457f06c0..38726d55af 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 3869ea2937..9865acc91c 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 8cad5e337b..57650d2646 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 2a179d3c6c..e8b4468ef3 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 05def3afe7..e99531a193 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 99b7e0a4e3..49376dc5fa 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 110a87fe45..e82623a1f1 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 e6286ce24b..f272a42647 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 44b96b2ea3..8ff3c1070b 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 e759a1d9fd..63d42b88e4 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 ad3fc0d25c..c0e6535aba 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 95a0032661..b64c3b27e6 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 60c2b73279..39cc3645ef 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 ab5a745604..6c38eea932 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 16ec2b20b4..35f97c0218 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 946aa00deb..224d22cca1 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 f0e7ee2371..534c3ecdc5 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 c0147752a9..b47b480e68 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 506622a4eb..a413d64fa0 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 0083bd4b2e..24b37a46da 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 bb977e9ea8..8b11c4ebc9 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 1fbed6f1d5..e8a31139d1 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 1d06442335..1083d28a38 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 b1be342a37..083b14b139 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 7136c58766..e171811f24 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 a1de755c28..a254d5316a 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 36132b17fe..5739d5eac1 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 bcb37d0538..269b753774 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 81343d0964..899e2911e5 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 a268ef4895..8d997a4ae4 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 e70203785f..0e06810598 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 4d7e00447d..57d04215b1 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 7453e56dab..8be410ed3f 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 4171721719..1805490213 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 e437616d61..472101738f 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 f5fce167c9..c9573115ad 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 bfe1c28671..97b7748050 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 96d5bf580c..92ca31d232 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 89ba2e5b07..727344d3c5 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 75a68a27ec..c9d95593f9 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 a1bdbc1eb6..edd2e9ba58 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 50e41199fe..e066f5d541 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 c187c63ed2..8ffde3c771 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 2567916ecc..373d004466 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 472153cd90..8bdca8e03b 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 6edc1e0b46..d1d9d1f9f8 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 b672299d8c..442093fc47 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 f23a27e250..e9a5124687 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 a1e7c7e286..b6282d3816 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 b7d0c49625..5eaea68a6a 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 6b7a792ffe..509d6f2c69 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 62005eb932..3a9082c2c7 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 7433e7666f..43c1eb4d89 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 97190a63f5..51b37c22f7 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 23a17c8f7f..cfe9e6d253 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 5e6f0f73b4..803c399f4f 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 1de032439a..6fab951dac 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 6c81c7fe59..5caf76ce42 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 e3ab367279..910c6d5fad 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 f2b0d117b8..a92d294e77 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 12969e52b1..986200ae1c 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 31707e3995..b6d5870b18 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 3d11f0f84e..5986740b37 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 765977d830..2373bd4e9e 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 b870b696bb..9af7112d7d 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 b23cde5971..2ac5de0aed 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 26ddb3d3a7..888880182b 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 15f7449ac1..11aba91aad 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 e51b1bdaea..db6fe09c0c 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 e831e8136a..eb267ee752 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 67a3923d19..9a6627ecbe 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 d8b92d7635..68a2419861 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 2338bf3014..e8e482c5cc 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 082cd67c51..f66764823f 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 1a2631cb4e..47b7302cf7 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 9de9d3136a..79f8f197dd 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 b3271806d8..d6274d192e 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 674002dca4..d034d5ffb3 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 c5836afc5e..da4693a55f 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 4ca790bfe8..e24b2e6b0e 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 d35f2a0c05..e32726e564 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 d2c9460a25..4702463cc6 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 56c8bda116..979236e59f 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 6a93cd2f1d..4cdfb63939 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 5ae839ad2b..15a4e25e37 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 79793b766c..2ae80e1f8c 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 dc107770b2..10993fc899 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 2c6282c949..64dac76588 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 25f7625002..e66fb18373 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 03b4bde0c9..53ab47eaff 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 cd056b9cab..0583e891c9 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 6d4c765639..ac3e5f9ff0 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 8cc8ebc93c..9cb43ffd94 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 cf8d3aa409..3b4e9dfb18 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 5e5bc73375..76a9ffa1c4 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 299a8fe6e9..5156379221 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 1e21b17074..f9f6a07039 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 637f4c63f1..bdce8538d7 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 b21856779e..b92f2e1614 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 f0d2491580..172dc08de0 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 e0f3805fca..24f518f115 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 2135a4c7b9..70cf1629ce 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 9bfd60c669..27427604cf 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 d27412381d..f009bf06fc 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 059d85ab2c..a32dbf4aef 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 7c3b067f32..19447beabd 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 6a1939529c..8b857fcc79 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 b64da0c13e..251316e440 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 370215308d..cdabf47a28 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 8c9d910650..45f264ad4a 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 5dfbbd8a35..af941b73b1 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 32f73bef22..3c74fe0351 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 362fa24837..ce9ef1d032 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 475f2fd5b3..e65c1f505c 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 2467304f8e..a57656dcdc 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 f1221dc88c..6adf1a8b45 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 0e9fef5a47..4f351e4a5e 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 7bcd9289f4..536e978b3a 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 496ccadf64..814bbd71a4 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 312a3ff162..980467e6c3 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 575af58e61..24c6d471c3 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 3bdc06ee41..ff5a5ce893 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 c481615c38..2342ea19e7 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 0f76d02473..b882baaf4b 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 2ee06decab..7aba90ec63 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 790ce09647..f51b1b19ad 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 624099ce77..f8609bfa12 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 4444a724cf..8653e97ef3 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 7a297d9f5b..1f2613523b 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 273721c3b1..7b43b47227 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 8af5f4673c..7a49dfc055 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 fc5df2daf8..025f127bf7 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 ebac4edfb1..215ca3879a 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 8f32add161..c874d2fc71 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 93b3600f5e..f2355c8498 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 c3151d1ab8..1744cdf534 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 5d3acd8677..3a63b8c731 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 7db19c4dbb..58d93f5123 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 32186dd0c3..93e409d478 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 8edf6da747..4bf1460f80 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 0c1a6241c9..1a4de9a61d 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 b6e22edfda..b3f1087ff0 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 0cb457d9a5..728bc60d75 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 954b796f1b..cf705933dd 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 4fe1bc2d14..e6d718797d 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 c190fdfe36..47a11c2211 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 b32fb743ab..b36d1dabce 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 1dbd105597..97d9d54da7 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 3e72d97959..28971e5681 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 940603f0c4..2ad845b8e8 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 f20faabf6b..3911bf84fb 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 44b0ed7c35..7994cab409 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 1a1309fefa..e82e47b7ee 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 878566b549..f740a9ca26 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 5b353b6f98..c3c8b94b97 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 5f9300526a..b43c0e318d 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 522fbc0afb..48560070e2 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 cc81d57591..f09590fecf 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 e3c0577cc6..e57899b9da 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 7f85d02dbc..a0eb3bdeb6 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 89900bf7ae..0efb107005 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 a4cbc13766..9f884eedfb 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 2f9242d85a..d1db2b3280 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 dd457eea29..945e5d8762 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 ded533b160..72a5ef6641 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 415d35357f..812e7a6370 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 8bb3928a91..4a58948313 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 5168719a46..bf765dc1ca 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 1c4637e919..86b1409191 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 272c09228b..b1daa8b93f 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 ffb2bdbd14..920e17f208 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 8f1613ed31..a798df20da 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 a2dc7ecbc5..36b26335fd 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 e25581aa99..32d86a40eb 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 df21456672..c690eef573 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 98c02fecae..84d353b880 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 a6600e90fc..a9b8f3d74b 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 68ababfb21..eadee509ec 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 81ebffe17a..adc29afeea 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 0c0c8a3303..11cddbc864 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 ed7bbef7ec..8b27f3a7d4 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 f552ffe2bb..a7fb228a46 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 f6f1c69697..3876be4378 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 eefdda81df..7b20b60901 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 e4ea8e1a0a..38e56c787a 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 db2002aa7f..0da4a34cbc 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 cfa2a7f5d4..649b652dc9 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 64f6c09b91..569ab3e5c4 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 f0bfb56545..10c79d4f6e 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 84904f3f34..0c97c1f486 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 e9b0a4e49e..3c654b538a 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 6b469a5a84..37f6c7665e 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 f2c2436400..578e6e9b23 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 5a3f9c1efe..cf8d651a84 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 c31a093588..a6dcfeb1df 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 9e5a081e85..b82ce78e42 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 bcc8aef6e6..8e137eecb5 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 8f11cf6c94..da8b8d8a2c 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 3573d14996..31000df913 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 95955129f4..b258b0ab0e 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 cd2bf6898a..dcbcb126a7 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 2e0698c3eb..fbcc5e486c 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 8283cb742f..06b90f8c03 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 2a75f8e471..1281b55d74 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 0a6546cc83..0e5399985b 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 12f50d87bd..e67c62e364 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 51562708bd..3dee33d65f 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 74adf795bf..676d3c5a3f 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 a67513951e..2cb280fefd 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 a3e1c208f0..a2432f470c 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 c9ae898679..18ec287388 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 13a9ccc1dc..421a999f06 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 4a7569da4f..39156de90b 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 1bae661755..dd515d77fd 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 69ee8d0dda..ad33e450d7 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 f6f36f1475..03ca8b022a 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 6ddefffab6..722e892c7a 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 451e2254d4..acf68dab96 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 ef9d631658..83084c2d2c 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 250e74bac3..8391b2c536 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 0aa340016b..dc9172c49d 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 01c5cab25b..d2d838fee7 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 582d3866f2..fe527f5e5f 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 2f01d80833..3bef14eb4c 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 dd27ebc5b8..c041b5a545 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 12991188dd..5fda3a23e0 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 6849102b91..f3f7de908b 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 f5adf8b27b..9d60c5d2fc 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 1ef85ca2ae..9b583c2d5e 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 c0359c2151..d1527cd453 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 9d65622705..0fb17710ad 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 c3d0e84ade..0791de9bd8 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 6d6e8280eb..91ff812f48 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 267ba935db..bdc4ce0065 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 783af64500..37d2588c5a 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 3268679dd7..34bce1499d 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 ba47d81afc..e35999a4cf 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 614e3d0622..a5a887eb45 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 503303af24..8eeeaa442a 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 4e00c8f88d..3f74aa4a5b 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 2809ae2c97..dc2dd9be86 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 6eebdbafab..145ab55c00 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 4ab6d185b7..5ad88a2481 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 fcbd466814..0454541101 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 93ff617bef..77c48ae2a9 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 9f0a5f75df..c35da56fee 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 edb5811550..917e178bd1 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 de7f34e139..4e48305099 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 e7ff553aeb..d532fc1993 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 054dfc869c..0b73e15580 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 e43a9e9fcf..d62a7dfa75 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 6f75e82447..61fb008e54 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 16dcf84db4..5c81daa8d4 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 ff1d1c3bd2..0522ff4f67 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 9af20bdb32..6453678cb3 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 8165a9dec5..bd32729446 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 0429a21944..e333ee33b0 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 9ddd250a12..4bef57f746 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 79d80a4915..e69b33dc15 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 9c2b690e9c..67394390a5 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 a640b11883..864bbda578 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 c6ed03012e..5acef07879 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 ee56121d86..ae251628aa 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 feaa3e0837..57272ef546 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 ac12142335..4b3ed85e79 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 88fc3d326c..cc4ba0cb4c 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 ce6a71710d..7b89b88541 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 e848c38b05..5a8ce536f9 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 a6908e582e..a09059f698 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 9799118c55..5a73166f84 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 84c5342619..3356c790a6 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 0cc412c283..3a8f6045da 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 d7a9f15874..f5e47fda93 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 a483614fde..4f4bb9e176 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 ab9d7c580f..1fba3f01eb 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 a91e07da83..a2c420f62a 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 c2d21d04b1..ed7425b8f1 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 9fb7da7fa9..2e23e7bd8e 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 6050b34e12..c555460dfb 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 e19d3c1938..3a91fa6667 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 1ea2ae7653..9c2c8be8cc 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 e154435289..8a11821c4b 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 41054ee65d..108d29d8ce 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 f6f0b37022..7bd6c4267b 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 b1b014a5a4..9a57421cee 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 c026496c63..699cad95c6 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 1fa5ea33ff..9899424ec8 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 0918ab4027..df426ac5bb 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 f6e5d3c9ef..7f97ce8159 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 64b7feb643..4fd6edba78 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 1ba5058b96..47bca4af4b 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 63ef79329b..3428dcce3f 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 12c9f6a7cd..ef82e1e77e 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 00b3a0785e..19e06d62bb 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 6791e4ad57..9e477b8bd8 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 bcf61d1ca0..20e608714f 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 21dc7038d2..7313f12ce4 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 d613003ed1..f98c25cee9 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 08160790ce..cef7e0e93c 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 ba57c3afb4..b6031de788 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 50d29d0982..1c3d9390d6 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 bf5bbfefff..170ebdc605 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 3880acab2b..75d0d9d169 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 bfaf83db09..f5bde77bdd 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 858711eee4..8881a1aa86 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 85ad4b3616..7f73fa2db7 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 e2d5fe9d2f..a38fb5ab30 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 60d9d6193a..54ae982080 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 7cf8d550bd..f46d5bc8f9 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 1020aa911e..a2d1ae3058 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 46b99dcdcb..437f949927 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 885a2090fd..43dc4e1441 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 5c1761fe4d..5c3c50feba 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 cb511155c7..9e080fb8a0 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 2ddf66e54e..6b99036dc7 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 25e51923fe..b9e12c58a3 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 ba560ffae0..300e1eed8c 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 28d9658622..d305a505f1 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 6300846408..4ea9c0416a 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 e52dd0c210..99405a2a0e 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 e72da4fd97..448e906362 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 6831ca126b..b49c04d644 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 a283de0e12..3862f57778 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 2fcd05c0f1..66bbfaad71 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 2a4a457299..d81772b1c5 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 0f4903c85e..e2a8478d87 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 f6be0abcdb..88ec528e7e 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 04cc904460..b059174668 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 ae39d30b6c..39661f9bd2 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 e053957aa2..9ab80e1f09 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 41e20b3e29..ed0a34a54f 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 c969795c95..8c909b441a 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 a14660da4b..9eca1fc6c9 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 7f33adb2a9..ca82c6a288 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 c6931615e6..7a93a3f1b5 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 afdc913f5b..063f1bf977 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 b466c54d95..2a6a980859 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 d1e4b71042..d20aa3fd26 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 1559818048..6e5ad790cb 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 1186c4b7dc..63625f40c1 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 35ae665efd..1618cae39b 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 9b57c258af..b23e24ee52 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 5b94cacf39..6f88b8c504 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 b2ecf9aeba..d05070e2c8 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 2bad08c4f9..5fe32d4368 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 ddc79f53f7..465a1b116f 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 92a83c6ff4..59a52b9e50 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 d9f677671f..0e0ebd4d6c 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 bafd8fb2fb..f6e335b7bd 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 e667307ec7..929337bd8c 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 9e0ac39856..4428ff7f3d 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 8d5b36d0ec..40e375294e 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 969f1f8653..3335fd2b42 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 c519611918..1b996666be 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 512dabd4d8..0f6a61894c 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 fd41347aca..de3d43d789 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 d4e53fee3c..684deafa4a 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 b753703e94..1c55d8a29b 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 f11ecb9fca..96707a881f 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 6305398e5b..0e174ef173 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 b393205258..08679af1fe 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 2cab6b4cde..5fdc703dab 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 38726d55af..c6457f06c0 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 9865acc91c..3869ea2937 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 57650d2646..8cad5e337b 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 e8b4468ef3..2a179d3c6c 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 e99531a193..05def3afe7 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 49376dc5fa..99b7e0a4e3 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 e82623a1f1..110a87fe45 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 f272a42647..e6286ce24b 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 8ff3c1070b..44b96b2ea3 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 63d42b88e4..e759a1d9fd 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 c0e6535aba..ad3fc0d25c 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 b64c3b27e6..95a0032661 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 39cc3645ef..60c2b73279 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 6c38eea932..ab5a745604 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 35f97c0218..16ec2b20b4 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 224d22cca1..946aa00deb 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 534c3ecdc5..f0e7ee2371 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 00e1ab187e..51d88bf197 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 f9748482ec..705c979c40 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 d6ff4ccdbf..a18ea12b54 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 b5fa91b2c5..7d78cc07d8 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 b4feba74de..85f6771a3d 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 98f00bba3c..dfe9675d1d 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 2261e3aff2..62001d9fbf 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 60722a5d1c..2eb3cf78c1 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 ce8bf78089..060d0c2534 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 dbc23b898a..71b31037e5 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 0000000000..edfddfb4b5
--- /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 0000000000..c9bb4289a4
--- /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 0000000000..0d77c95489
--- /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 0000000000..8e39cc8aea
--- /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 0000000000..da49a8b447
--- /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 b164acb1d1..36b5a6ae65 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 82a32c600a..914251e428 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 8c01379d7b..c85a4b0ff9 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 c9bb4289a4..7228461549 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 0d77c95489..116e9230db 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 8e39cc8aea..2664778257 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 da49a8b447..fc3ea3a003 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 8f2806ee6a..c14ab61cf3 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 b47b480e68..a31bd683b2 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 a413d64fa0..e33c51f5b7 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 24b37a46da..32d4a9a869 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 8b11c4ebc9..5b395540d4 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 e8a31139d1..baba57c996 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 f0927fb0be..c5393d2b5d 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 cfebc8615c..bd175fb442 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 e171811f24..a6b8be3ce8 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 442e486077..80aa6ba575 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 5739d5eac1..b993bc606d 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 269b753774..258ef18f32 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 899e2911e5..9d08082d24 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 8d997a4ae4..ba96bfdfcf 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 40918bcdbc..c50199454c 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 7758d0ab8a..37a68e90a7 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 1a4c7b85f5..e7038d3aea 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 1805490213..b7d5da7791 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 613f559941..79ce0031d9 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 759a230b04..e75a337741 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 97b7748050..4bf9302e8b 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 9676bb6e69..bddcf006eb 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 ca1fb2e4f8..f44f63cd3f 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 981eef945b..4fb6f49381 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 f92b9c8a1d..2bcfc85a83 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 bc4b6439b7..b5244a6ced 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 bc61c19284..48523f240f 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 58d5b72fdc..aad1198727 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 d82b255be5..894c547c73 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 d1d9d1f9f8..1c074501ff 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 1bbbee083f..f9a3206461 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 e9a5124687..2b6a03a031 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 b301c480d9..6c4716cc5d 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 5eaea68a6a..b72ee2fc73 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 509d6f2c69..85973ee587 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 3a9082c2c7..79586a9827 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 43c1eb4d89..f37da94729 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 51b37c22f7..1e2d0e6347 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 0a74ec2655..52d4199ca4 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 803c399f4f..3b60b6c3b6 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 6fab951dac..88a81c0bea 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 5caf76ce42..3e7b73f7bc 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 910c6d5fad..1bf96de3b5 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 a92d294e77..0364ed7962 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 986200ae1c..06ab0368e4 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 b6d5870b18..0174dc93c3 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 5986740b37..a7f3486b54 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 2373bd4e9e..1aefde365a 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 c0f48c0a4b..cee0d38638 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 2ac5de0aed..49a7051320 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 888880182b..f8a99268e1 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 11aba91aad..bed881a990 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 db6fe09c0c..8c2475c876 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 eb267ee752..96ffc6fbbf 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 9a6627ecbe..7e4bcf8793 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 707ce0c991..aecb50d450 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 e8e482c5cc..f26f9e5e68 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 f66764823f..1dce28b37b 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 47b7302cf7..5595f4b50e 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 79f8f197dd..0a035c6082 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 f29722464b..14582e14ae 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 d034d5ffb3..d261beecb2 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 da4693a55f..6c45a33885 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 e24b2e6b0e..067bf562d8 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 e32726e564..b894ff6a5a 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 4702463cc6..d503a987e9 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 979236e59f..5a24b6c828 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 4cdfb63939..8e497aabe2 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 15a4e25e37..59a7ce9838 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 2ae80e1f8c..d0aabc6ef5 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 10993fc899..053323f76f 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 64dac76588..7ed8acea4b 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 e66fb18373..622dd30521 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 53ab47eaff..2382e8aa9e 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 0583e891c9..06fdad5aa2 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 ac3e5f9ff0..9bbbb02098 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 9cb43ffd94..b507c8b63b 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 3b4e9dfb18..608be823f7 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 76a9ffa1c4..cc01f9962e 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 5156379221..ec2697d452 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 f9f6a07039..c1f7a6f46a 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 bdce8538d7..76e6a3f42c 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 b92f2e1614..6966efcef5 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 172dc08de0..75874bf055 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 56f0cc4f30..b789a5b8a6 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 70cf1629ce..118742699d 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 27427604cf..2b35463e4a 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 f009bf06fc..61a1db54f1 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 a32dbf4aef..229c32c68c 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 19447beabd..e1aa9c576f 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 8b857fcc79..11cf0bf8ee 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 251316e440..b38ff1cf16 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 cdabf47a28..9b4ca35564 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 45f264ad4a..0da67c32d7 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 af941b73b1..e41180e254 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 5d2428b355..d44fe5a0d6 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 ce9ef1d032..0b2e73d0bb 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 e65c1f505c..59682523e3 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 a57656dcdc..d7e47e2932 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 6adf1a8b45..e147d37816 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 4f351e4a5e..3eda788e87 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 536e978b3a..fadf66aae0 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 814bbd71a4..7ee7130c72 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 2b7fa915bd..be3a887209 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 24c6d471c3..bbc627cf7b 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 ff5a5ce893..69c0f15d27 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 0ed5684d17..057251d9c1 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 17058f0ed5..5c7b4cd27c 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 7453c001b1..45701d1bef 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 59e7ce3321..0c2425d9f2 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 f8609bfa12..18eddfb97e 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 8653e97ef3..ef2abf451a 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 1f2613523b..c3e322207c 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 7b43b47227..013934e000 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 7a49dfc055..97451e71b7 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 025f127bf7..cc11d33f93 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 215ca3879a..f75232d67a 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 c874d2fc71..8fe8ffe0fe 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 4614b48675..9477666675 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 6e894ed9d7..6bf47a42c0 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 3a63b8c731..c409a7c045 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 4ceadf7905..3d2f274de2 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 93e409d478..fa7003a00b 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 4bf1460f80..26526f6622 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 1a4de9a61d..f20bbbdc53 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 b3f1087ff0..71fe9a9239 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 728bc60d75..39043ceace 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 cf705933dd..f859654bd6 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 84c9cd4b4c..4f28e9491c 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 47a11c2211..e4f43c3856 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 a79e117329..2ed9f7d24b 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 1188115b0a..2a6c8a5a7c 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 28971e5681..b8b51b601f 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 2ad845b8e8..3ad5b9ebb0 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 3911bf84fb..36b1f1ba80 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 7994cab409..f9a3775af5 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 e82e47b7ee..9a9d6bc57d 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 12fa43c2cf..d4d2c26dca 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 c3c8b94b97..0f9eacbdcd 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 b43c0e318d..57a755dcc7 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 48560070e2..2eaf52df49 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 f09590fecf..3ae3b876b6 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 e57899b9da..8b2c2c5f09 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 a0eb3bdeb6..9456ee6234 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 ae6d265626..6ff9a2160a 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 9f884eedfb..373b174952 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 d1db2b3280..f590550e8e 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 a9c49565d7..bb340e515d 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 72a5ef6641..e738eb1ac8 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 812e7a6370..df3d62fcbd 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 03f87884f0..d802b11162 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 bf765dc1ca..11fd168ce3 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 86b1409191..7af4fb9e57 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 b1daa8b93f..22055bc726 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 920e17f208..e55aca53ac 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 a798df20da..c457f1000c 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 a997e33c1c..cf14a948ad 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 819f36a67c..710dab3aaa 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 c690eef573..454813d907 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 84d353b880..495bf2028b 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 a9b8f3d74b..08b0dacd36 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 eadee509ec..c85640a995 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 adc29afeea..0ede238912 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 11cddbc864..e3979deec3 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 eb79c33ec9..b610451ac8 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 a7fb228a46..a7156f4ef5 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 3876be4378..01bc066849 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 6f18082153..e2c1af2a74 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 38e56c787a..a95f15aa4f 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 0da4a34cbc..724c29593a 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 649b652dc9..69ba9fd4f3 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 569ab3e5c4..0bcd9b7b2a 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 8bf775b91b..729a43353e 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 0c97c1f486..b0ff4ebf58 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 3c654b538a..28d27472be 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 37f6c7665e..97697b21f6 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 578e6e9b23..ea644cd780 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 cf8d651a84..df35d73128 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 a6dcfeb1df..cc393e7c05 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 b82ce78e42..3500e1398b 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 8e137eecb5..9a7fc56ae8 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 4ef8f9f4ae..ec78efae8c 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 31000df913..9ee983acef 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 62fec858bd..4db6da5675 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 dcbcb126a7..cda9a70155 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 fbcc5e486c..f64e309108 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 06b90f8c03..548e446c33 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 1281b55d74..77ed551880 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 0e5399985b..a4e72f1ec0 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 e67c62e364..c1aee4d8f5 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 3dee33d65f..c1925b89df 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 676d3c5a3f..62ad425b7f 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 2cb280fefd..b89780385d 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 a2432f470c..8bbd89ab7a 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 fd7511bb89..e4769b2174 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 421a999f06..fd910a32d2 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 39156de90b..041a1b5adc 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 23d316e8eb..4ebaa214c7 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 ad33e450d7..8a5395db18 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 03ca8b022a..7bd1175cff 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 722e892c7a..670b8de770 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 acf68dab96..33514e670d 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 83084c2d2c..39966aedaa 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 44636f4cc5..5fd8561531 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 dc9172c49d..90d94f5e04 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 d2d838fee7..3207806040 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 fe527f5e5f..36e34e6483 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 3bef14eb4c..e8f92151cc 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 c041b5a545..40c879fb96 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 5fda3a23e0..32ee1603d8 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 f3f7de908b..8c9dd4cfb1 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 9d60c5d2fc..22c8c1c989 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 9b583c2d5e..f08831d68e 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 d1527cd453..491874016d 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 0fb17710ad..0e315af07b 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 86c7e423f0..cb1ca1c070 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 91ff812f48..1ca814ee8a 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 bdc4ce0065..935cd8ffc1 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 37d2588c5a..2e2d1459f9 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 34bce1499d..8d97ce9ab9 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 9c4bb2ca3f..5a1ebb5e72 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 075cf5ff2b..fc0e19a7a6 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 8eeeaa442a..f211d2e172 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 3f74aa4a5b..46fa64368c 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 dc2dd9be86..a222363e11 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 de2f430927..08708517dc 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 5ad88a2481..9f31a72543 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 0454541101..625feb55d1 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 77c48ae2a9..c57b49704a 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 c35da56fee..3b15586b28 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 917e178bd1..218a99f761 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 4e48305099..940b08b211 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 d532fc1993..5463ed664b 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 839ea54896..73c7cf2131 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 88c0f61341..d54819dc91 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 4a08c4f3a5..1776468200 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 5c81daa8d4..634324dbe9 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 0522ff4f67..2f4eafc5b8 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 6453678cb3..45f25d8488 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 3d49b8aa8c..5d2cc16296 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 e333ee33b0..3e23d4cf43 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 4bef57f746..dbbf21560d 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 b545f241a0..ce80a2e71e 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 b3eb673246..0599984b6a 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 864bbda578..31c51502f9 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 967f2214cf..309f71fc8f 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 ae251628aa..81335ccc90 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 57272ef546..55e2bc7e6a 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 4b3ed85e79..ce2c269422 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 cc4ba0cb4c..294dc90473 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 a9099a75ff..5d6d2b983b 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 5a8ce536f9..f8277b1f5b 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 0c4b09d6c2..bcd11d5ab4 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 48d18109df..cf66de835d 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 673d322df5..c804bee61d 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 3a8f6045da..00442751dd 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 f5e47fda93..86a684442f 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 4f4bb9e176..44b6dc5f61 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 1fba3f01eb..61b1c9d35f 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 a2c420f62a..5aea57a9f6 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 ed7425b8f1..dd23d8e83d 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 2e23e7bd8e..63e1b4449d 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 1e23c00177..5eca63fe28 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 3a91fa6667..acbfbb9a93 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 9c2c8be8cc..4c84ba5fdb 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 8a11821c4b..488d9ac897 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 108d29d8ce..6cea96bb68 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 7bd6c4267b..1d8671b907 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 9a57421cee..dad386b37a 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 699cad95c6..1bf9283072 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 e2aa43820c..43fabebd76 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 df426ac5bb..90b762815d 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 7f97ce8159..efbfe3c2e1 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 4fd6edba78..884540c680 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 47bca4af4b..4252efc714 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 3428dcce3f..16f7cdfb63 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 ef82e1e77e..ed1d5edd28 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 19e06d62bb..ef81370e9d 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 9e477b8bd8..14e233474a 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 20e608714f..bce2a0da56 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 cc8b9dbe70..c0289fbf4b 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 f98c25cee9..81c0dbb903 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 cef7e0e93c..a3bd18578a 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 b6031de788..92abfb29eb 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 1c3d9390d6..a6dd834860 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 170ebdc605..c2fb0bb064 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 75d0d9d169..1e603bd131 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 f5bde77bdd..96f96610f7 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 ded36f79cb..b8af7662a9 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 be302070f8..04e2cc9ef7 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 a38fb5ab30..dc45781a2a 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 54ae982080..02ba933fba 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 f46d5bc8f9..0072028cb7 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 a2d1ae3058..adc7d4946e 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 437f949927..7f3ac5b7b3 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 43dc4e1441..50fbc74d3e 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 5c3c50feba..e3973955f5 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 6423047886..63892cdb20 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 598e4e7084..cf3515d7a1 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 65804ef1f5..32d989dda2 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 300e1eed8c..dbafe7feca 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 d305a505f1..71619d6eae 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 4ea9c0416a..70a99953d2 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 99405a2a0e..c5511749d4 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 448e906362..f741e8f51d 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 7aff2b2ce5..95bb384d1f 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 3862f57778..7c66926099 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 66bbfaad71..ca8d028ed3 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 d81772b1c5..5a37057e5f 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 e2a8478d87..dde891b39e 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 88ec528e7e..8adf7f68b5 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 b059174668..59ec309e1c 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 39661f9bd2..5fdb6023bd 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 9ab80e1f09..f65d7c0390 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 3eef199439..bddea9f108 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 a782024a32..07459d7b75 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 d51e0ceb81..967c2d07ac 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 ca82c6a288..d71dd3aef0 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 73ab9c3b90..2aa24919af 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 61f9b517c8..52761de8e2 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 7567115032..1d0a4838ef 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 2370cdae33..329b1b5726 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 6e5ad790cb..9dfddc2c0f 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 892549801d..6da46c5254 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 1618cae39b..384de24405 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 b23e24ee52..74de78523e 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 6f88b8c504..f18ef80081 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 d05070e2c8..19c0244b2e 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 5fe32d4368..e56381d8bb 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 465a1b116f..294bd3cd5a 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 7eba4132fd..77337b8ffc 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 ae5fa4de2a..459badbace 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 f6e335b7bd..51ab9701d8 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 929337bd8c..3be0eba088 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 4428ff7f3d..29b013dfd1 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 40e375294e..faa55ad6ba 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 3335fd2b42..f6548b61ed 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 cf4799f74c..10fc8629e1 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 0f6a61894c..989185ab4e 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 de3d43d789..07cbc44237 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 684deafa4a..05a862021c 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 1c55d8a29b..6868a03667 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 96707a881f..02b7c6dcd1 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 0e174ef173..ae8fe5f9ce 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 08679af1fe..003a2ce98e 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 5fdc703dab..8cdc81e9f5 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 c6457f06c0..19c273115d 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 3869ea2937..57378ead78 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 8cad5e337b..6afa505ab0 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 2a179d3c6c..2ec1e087cc 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 05def3afe7..f340afd6a0 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 99b7e0a4e3..e8b343b45e 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 110a87fe45..ea3f2a1125 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 e6286ce24b..fdada6df31 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 44b96b2ea3..6b62603041 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 805b2a09e7..b046d5635b 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 ad3fc0d25c..d8ed09428b 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 95a0032661..77734a37f7 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 60c2b73279..409b6c3eed 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 ab5a745604..b579a0bfc6 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 16ec2b20b4..98c2f34c43 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 e1308121f2..700f42e00b 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 f0e7ee2371..95a9b8876b 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 b47b480e68..4e03169ccc 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 a413d64fa0..4cf594e09c 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 24b37a46da..7c6b3f8809 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 8b11c4ebc9..870dcd6e8e 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 e8a31139d1..6a85224454 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 1083d28a38..364dba4501 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 083b14b139..bb81b99c2a 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 e171811f24..54c045a6e3 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 a254d5316a..e979d95459 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 5739d5eac1..e75e9c041e 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 269b753774..5e2239560a 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 899e2911e5..481fa342e8 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 8d997a4ae4..02644c2efb 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 0e06810598..0c3456e8d8 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 57d04215b1..156ff87408 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 8be410ed3f..f600530861 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 1805490213..b035440b8c 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 472101738f..2a949e4629 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 c9573115ad..b3280f2cb6 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 97b7748050..665ff74c0d 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 92ca31d232..01d9fed920 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 727344d3c5..c95575104a 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 c9d95593f9..a7d2ebc8e2 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 edd2e9ba58..21a4057e03 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 e066f5d541..c96d84d809 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 8ffde3c771..e05421f101 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 373d004466..452673b16c 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 8bdca8e03b..2d1d9c997b 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 d1d9d1f9f8..f92aa997cc 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 442093fc47..f60833225c 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 e9a5124687..5669f42d3c 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 b6282d3816..d9145caf62 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 5eaea68a6a..60c72fc717 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 509d6f2c69..dab91b3208 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 3a9082c2c7..5c7a298c26 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 43c1eb4d89..63ebc65a85 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 51b37c22f7..4862b0facf 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 cfe9e6d253..4284fb8451 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 803c399f4f..a70e8d4409 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 6fab951dac..14c8e81655 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 5caf76ce42..45941a47f0 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 910c6d5fad..b04e5cbabc 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 a92d294e77..4d326541fe 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 986200ae1c..5e3294baab 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 b6d5870b18..ddc7cfb51b 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 5986740b37..ecb0ccf91e 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 2373bd4e9e..b7f94dcc92 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 9af7112d7d..5dc24b5de9 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 76965f890c..aa762c52f6 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 888880182b..340a2b8c03 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 11aba91aad..8443ccb1ff 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 db6fe09c0c..949a9e5004 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 eb267ee752..d8f00af1c0 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 9a6627ecbe..b0f4d3a9be 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 68a2419861..a7cff9481c 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 e8e482c5cc..a4c3e763e7 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 f66764823f..5ac06b235d 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 47b7302cf7..f53677644a 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 79f8f197dd..c72ac3e9b3 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 d6274d192e..ba92cf2c04 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 d034d5ffb3..692c63a6cf 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 da4693a55f..29d7690aaa 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 e24b2e6b0e..3aece25d8b 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 e32726e564..18d8d5545d 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 4702463cc6..08344b7fc0 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 979236e59f..53c8c412c1 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 4cdfb63939..588a00981e 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 15a4e25e37..f55d8f8777 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 2ae80e1f8c..4cb9db172c 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 10993fc899..3b3d2b9561 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 64dac76588..be01818b5e 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 e66fb18373..24942caeed 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 53ab47eaff..827b1a568e 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 0583e891c9..a1a8794a4f 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 ac3e5f9ff0..dc03d213bf 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 9cb43ffd94..f7d7acd40f 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 3b4e9dfb18..c385ba3a1c 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 76a9ffa1c4..1328ed2b0b 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 5156379221..67c6e093e8 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 f9f6a07039..bb1983e68c 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 bdce8538d7..0840247230 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 b92f2e1614..1053f3cae8 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 172dc08de0..f05049dc71 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 24f518f115..1c30e0f5f3 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 70cf1629ce..5487dc58bf 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 27427604cf..69ce8ddc31 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 f009bf06fc..34df2bb57e 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 a32dbf4aef..4ef81dfcc5 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 19447beabd..acb008bae3 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 8b857fcc79..ca6fc5c7f0 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 251316e440..3caf1f24dd 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 cdabf47a28..4f70e727e6 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 45f264ad4a..e9bd13cde0 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 af941b73b1..51eedcdbb9 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 3c74fe0351..a10ca32755 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 ce9ef1d032..6d148c2290 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 e65c1f505c..d8707c0dac 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 a57656dcdc..e7c961e9cb 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 6adf1a8b45..6a3e78f775 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 4f351e4a5e..fd959ebe68 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 536e978b3a..5dc608a8eb 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 814bbd71a4..94ecdab2fe 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 914251e428..6eabec1a01 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 e766bd0773..6e7e2c3d7c 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 ff5a5ce893..009dfc2808 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 c476fdb740..c859ff7a1c 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 d09e336cd1..dbc00d5485 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 020f804bb4..86c94fdce7 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 874234ff8f..296dcede6d 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 f8609bfa12..bf32d0a2e4 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 8653e97ef3..a4b55160ab 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 1f2613523b..eed77fa726 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 7b43b47227..f97eee3de7 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 7a49dfc055..3a1179e6d5 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 c85a4b0ff9..8868024ee3 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 215ca3879a..13212cb5d7 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 c874d2fc71..a2a80dd04d 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 f2355c8498..b81fa1ae09 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 1744cdf534..9d88ae7619 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 3a63b8c731..b13c8df5ed 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 58d93f5123..5d2f14efde 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 93e409d478..c8147b449d 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 4bf1460f80..0189a06f8b 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 1a4de9a61d..828f49188d 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 b3f1087ff0..d63ffc6590 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 728bc60d75..ec60790510 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 cf705933dd..1657e28af5 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 e6d718797d..1634cd938e 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 47a11c2211..dad58996fb 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 331b92f17e..3d5c0c9ed5 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 97d9d54da7..e7d6c126aa 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 28971e5681..18e83d345b 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 2ad845b8e8..827d47f91c 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 3911bf84fb..f0d9466626 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 7994cab409..39579274e5 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 e82e47b7ee..d94a71ad94 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 77e227088e..eade7b115d 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 c3c8b94b97..49e439e8ad 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 b43c0e318d..71bdcad6a3 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 48560070e2..a9b64b36f7 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 f09590fecf..700f32f606 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 e57899b9da..929ef1bead 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 a0eb3bdeb6..6d1a3d6dae 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 0efb107005..59d4699d10 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 9f884eedfb..b6898a656c 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 d1db2b3280..56fafdcb25 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 945e5d8762..3124a2627c 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 72a5ef6641..3833a35afb 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 812e7a6370..d962ef922b 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 eda140e8fa..ee993a3245 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 bf765dc1ca..8e6f2befae 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 86b1409191..67ae9b6592 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 b1daa8b93f..1c9a0a87e3 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 920e17f208..78a4a54156 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 a798df20da..db8cb8d40d 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 36b26335fd..239f1f7ac2 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 32d86a40eb..71c9ad4919 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 c690eef573..7d9acc2e45 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 84d353b880..b59296b75d 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 a9b8f3d74b..d2bc9c11ea 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 eadee509ec..b9f5da7e7b 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 adc29afeea..b6d7185363 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 11cddbc864..5a11437ce3 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 8b27f3a7d4..e8f6a67205 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 a7fb228a46..d27381df6a 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 3876be4378..af777cb5c5 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 7b20b60901..028fdb2d9b 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 38e56c787a..96f43b9594 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 0da4a34cbc..0c13ce88bd 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 649b652dc9..b907619cd4 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 569ab3e5c4..f222f17da6 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 10c79d4f6e..68ec2912d0 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 0c97c1f486..0c9a0a1b1b 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 3c654b538a..d07909c461 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 37f6c7665e..2b9ed9829e 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 578e6e9b23..f0849685a1 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 cf8d651a84..4a088cf9c1 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 a6dcfeb1df..4cdcbbbf10 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 b82ce78e42..1b161eceee 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 8e137eecb5..b950e5a646 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 da8b8d8a2c..8d04acaa0c 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 31000df913..29541e5b79 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 b258b0ab0e..0a415cf5b6 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 dcbcb126a7..2a786f9c39 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 fbcc5e486c..44e53bb71a 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 06b90f8c03..972825fc09 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 1281b55d74..4edbb2eca1 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 0e5399985b..82349618e0 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 e67c62e364..25df372324 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 3dee33d65f..e9bb3f0c33 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 676d3c5a3f..ffa6c843d7 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 2cb280fefd..c6e5e3a7c5 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 a2432f470c..4d9d893177 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 18ec287388..0dc4dd7fde 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 421a999f06..1d0dee8524 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 39156de90b..11a120874f 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 dd515d77fd..04bac33a07 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 ad33e450d7..e1e69101ba 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 03ca8b022a..e18b8e7f36 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 722e892c7a..de9ba0ab0e 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 acf68dab96..feb63b3a4c 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 83084c2d2c..2762437240 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 8391b2c536..c52161df81 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 7228461549..2d4e8cb2e5 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 c14ab61cf3..1b7246df36 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 d2d838fee7..a25e105e9e 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 fe527f5e5f..96ba7ce0ed 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 3bef14eb4c..459411ad0c 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 c041b5a545..069ebca472 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 5fda3a23e0..d06c979b45 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 f3f7de908b..1455820124 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 9d60c5d2fc..a806b74498 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 9b583c2d5e..d178715247 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 d1527cd453..789a7ae427 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 0fb17710ad..9f90ff1e40 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 0791de9bd8..d223276708 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 91ff812f48..9d7b448795 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 bdc4ce0065..308bd438aa 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 37d2588c5a..b590978d68 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 34bce1499d..deed4aa939 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 e35999a4cf..0c7b84dd83 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 a5a887eb45..f6499b0ae2 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 8eeeaa442a..da544f6058 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 3f74aa4a5b..b3ff64e4c5 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 dc2dd9be86..4efb73d70b 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 145ab55c00..c54dab7e73 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 5ad88a2481..0cf0042146 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 0454541101..6808ef44aa 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 77c48ae2a9..d9fe380297 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 c35da56fee..42e74f3143 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 917e178bd1..41353434d3 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 4e48305099..ee9c7f4771 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 d532fc1993..8a764abe1c 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 0b73e15580..ed43cfa249 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 d62a7dfa75..68935ad5cd 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 61fb008e54..bada292318 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 5c81daa8d4..326a4329d2 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 0522ff4f67..f14d3be0a5 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 6453678cb3..8810813cfa 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 bd32729446..b07a1afb51 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 e333ee33b0..e3d8d3f39f 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 4bef57f746..042bad64ca 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 e69b33dc15..9a2eb4103c 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 67394390a5..1602efe196 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 864bbda578..d8a20ed84f 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 5acef07879..b57d1f8c4c 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 ae251628aa..368c6258a6 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 57272ef546..4078bdc1ec 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 4b3ed85e79..7f50535bbb 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 cc4ba0cb4c..455411c8f7 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 7b89b88541..d9f5da40ca 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 5a8ce536f9..873009dffb 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 a09059f698..1b3faedbf1 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 5a73166f84..90b87d6d21 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 3356c790a6..feac179aaa 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 3a8f6045da..0f132ebd93 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 f5e47fda93..a6f4cc2953 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 4f4bb9e176..d7ed0014fa 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 1fba3f01eb..1add30f952 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 a2c420f62a..22b3cd7af6 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 ed7425b8f1..b132870021 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 2e23e7bd8e..2bb54e9a99 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 c555460dfb..c53bc75568 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 3a91fa6667..52d147729e 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 9c2c8be8cc..3827be9da6 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 8a11821c4b..34f24c588c 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 108d29d8ce..a2ccb6988a 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 7bd6c4267b..2223f08c47 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 9a57421cee..4426ceb635 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 699cad95c6..5e2d1f2c23 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 9899424ec8..0bf3afe914 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 df426ac5bb..85228370d6 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 7f97ce8159..5e3e1bd204 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 4fd6edba78..eac110fe60 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 47bca4af4b..6eec0bfd89 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 3428dcce3f..e0874d9c77 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 ef82e1e77e..b9a395ce21 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 19e06d62bb..2d18923070 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 9e477b8bd8..a0e694ddf4 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 20e608714f..079d5b2ebf 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 7313f12ce4..721a8f1425 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 1d1ca19b1d..a39e5bf4e1 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 cef7e0e93c..44fb7ac106 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 b6031de788..c5c281d74d 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 1c3d9390d6..6f34361609 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 170ebdc605..5d77c7eef3 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 75d0d9d169..3b58137458 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 f5bde77bdd..b496c4bba9 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 8881a1aa86..d67b0db94a 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 7f73fa2db7..4353b7cf28 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 a38fb5ab30..15d642cf9e 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 54ae982080..1bc65ffe9e 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 f46d5bc8f9..47b8391704 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 a2d1ae3058..9c3db1f6f2 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 437f949927..bac666a140 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 43dc4e1441..1ab856f528 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 5c3c50feba..2886cfa1f2 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 9e080fb8a0..2120421db8 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 6b99036dc7..3548d1a057 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 b9e12c58a3..165bbc32b2 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 300e1eed8c..f180a72a8b 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 d305a505f1..36f51832cc 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 4ea9c0416a..a73931ca9b 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 99405a2a0e..54751fa5a9 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 448e906362..1c570a8dfb 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 b49c04d644..902d12d827 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 3862f57778..d4d6132c10 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 66bbfaad71..f90feafb67 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 d81772b1c5..6672dd090b 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 e2a8478d87..63c04fc82d 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 88ec528e7e..7e9bc96b48 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 b059174668..8d8330cf4e 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 39661f9bd2..af7367ae23 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 9ab80e1f09..365e851a44 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 ed0a34a54f..b1d83f50ce 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 8c909b441a..8a3f184e9a 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 9eca1fc6c9..7e07d30f0e 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 ca82c6a288..edde83cbc3 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 7a93a3f1b5..b543182c99 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 063f1bf977..d399294bf9 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 2a6a980859..4c83d53946 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 d20aa3fd26..7ed27edd37 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 6e5ad790cb..504c17d8a5 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 63625f40c1..e2ee3dff59 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 1618cae39b..c7b2f8b2aa 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 b23e24ee52..5a6c6121d7 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 6f88b8c504..0a2da1fad8 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 d05070e2c8..a2dc2f0ca7 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 5fe32d4368..ed3f224771 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 465a1b116f..ba2029c160 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 59a52b9e50..e0dc992bd3 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 0e0ebd4d6c..7816fc0745 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 f6e335b7bd..b48178485d 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 929337bd8c..13d817c509 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 4428ff7f3d..8b3adafc74 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 40e375294e..581d2ee147 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 3335fd2b42..92f13d92fd 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 1b996666be..2126670cf4 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 0f6a61894c..38dbff48f5 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 de3d43d789..85c154a668 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 684deafa4a..173ce2bbe1 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 1c55d8a29b..443ecda194 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 96707a881f..f2d70b40dd 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 0e174ef173..7d1a32431e 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 08679af1fe..77089b1f1b 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 5fdc703dab..fa7057931c 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 c6457f06c0..02d8e493b4 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 3869ea2937..2a11595d05 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 8cad5e337b..9f569ef420 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 2a179d3c6c..8dd3628880 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 05def3afe7..38b1eb670c 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 99b7e0a4e3..f9be2c4840 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 110a87fe45..0599ef5bef 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 e6286ce24b..0fcd716f40 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 44b96b2ea3..4d1e0487ba 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 e759a1d9fd..6b8322fd6e 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 ad3fc0d25c..7a6685ee9f 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 95a0032661..1d210ff61a 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 60c2b73279..c2bb882860 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 ab5a745604..fa3708ced2 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 16ec2b20b4..5bbdcdba49 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 946aa00deb..2f63efd0ff 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 f0e7ee2371..8903423ee9 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 4e03169ccc..b47b480e68 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 4cf594e09c..a413d64fa0 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 7c6b3f8809..24b37a46da 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 870dcd6e8e..8b11c4ebc9 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 6a85224454..e8a31139d1 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 364dba4501..1083d28a38 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 bb81b99c2a..083b14b139 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 54c045a6e3..e171811f24 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 e979d95459..a254d5316a 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 e75e9c041e..5739d5eac1 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 5e2239560a..269b753774 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 481fa342e8..899e2911e5 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 02644c2efb..8d997a4ae4 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 0c3456e8d8..0e06810598 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 156ff87408..57d04215b1 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 f600530861..8be410ed3f 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 b035440b8c..1805490213 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 2a949e4629..472101738f 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 b3280f2cb6..c9573115ad 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 665ff74c0d..97b7748050 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 01d9fed920..92ca31d232 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 c95575104a..727344d3c5 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 a7d2ebc8e2..c9d95593f9 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 21a4057e03..edd2e9ba58 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 c96d84d809..e066f5d541 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 e05421f101..8ffde3c771 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 452673b16c..373d004466 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 2d1d9c997b..8bdca8e03b 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 f92aa997cc..d1d9d1f9f8 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 f60833225c..442093fc47 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 5669f42d3c..e9a5124687 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 d9145caf62..b6282d3816 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 60c72fc717..5eaea68a6a 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 dab91b3208..509d6f2c69 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 5c7a298c26..3a9082c2c7 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 63ebc65a85..43c1eb4d89 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 4862b0facf..51b37c22f7 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 4284fb8451..cfe9e6d253 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 a70e8d4409..803c399f4f 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 14c8e81655..6fab951dac 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 45941a47f0..5caf76ce42 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 b04e5cbabc..910c6d5fad 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 4d326541fe..a92d294e77 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 5e3294baab..986200ae1c 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 ddc7cfb51b..b6d5870b18 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 ecb0ccf91e..5986740b37 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 b7f94dcc92..2373bd4e9e 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 5dc24b5de9..9af7112d7d 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 aa762c52f6..76965f890c 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 340a2b8c03..888880182b 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 8443ccb1ff..11aba91aad 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 949a9e5004..db6fe09c0c 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 d8f00af1c0..eb267ee752 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 b0f4d3a9be..9a6627ecbe 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 a7cff9481c..68a2419861 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 a4c3e763e7..e8e482c5cc 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 5ac06b235d..f66764823f 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 f53677644a..47b7302cf7 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 c72ac3e9b3..79f8f197dd 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 ba92cf2c04..d6274d192e 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 692c63a6cf..d034d5ffb3 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 29d7690aaa..da4693a55f 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 3aece25d8b..e24b2e6b0e 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 18d8d5545d..e32726e564 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 08344b7fc0..4702463cc6 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 53c8c412c1..979236e59f 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 588a00981e..4cdfb63939 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 f55d8f8777..15a4e25e37 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 4cb9db172c..2ae80e1f8c 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 3b3d2b9561..10993fc899 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 be01818b5e..64dac76588 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 24942caeed..e66fb18373 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 827b1a568e..53ab47eaff 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 a1a8794a4f..0583e891c9 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 dc03d213bf..ac3e5f9ff0 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 f7d7acd40f..9cb43ffd94 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 c385ba3a1c..3b4e9dfb18 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 1328ed2b0b..76a9ffa1c4 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 67c6e093e8..5156379221 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 bb1983e68c..f9f6a07039 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 0840247230..bdce8538d7 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 1053f3cae8..b92f2e1614 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 f05049dc71..172dc08de0 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 1c30e0f5f3..24f518f115 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 5487dc58bf..70cf1629ce 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 69ce8ddc31..27427604cf 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 34df2bb57e..f009bf06fc 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 4ef81dfcc5..a32dbf4aef 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 acb008bae3..19447beabd 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 ca6fc5c7f0..8b857fcc79 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 3caf1f24dd..251316e440 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 4f70e727e6..cdabf47a28 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 e9bd13cde0..45f264ad4a 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 51eedcdbb9..af941b73b1 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 a10ca32755..3c74fe0351 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 6d148c2290..ce9ef1d032 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 d8707c0dac..e65c1f505c 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 e7c961e9cb..a57656dcdc 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 6a3e78f775..6adf1a8b45 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 fd959ebe68..4f351e4a5e 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 5dc608a8eb..536e978b3a 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 94ecdab2fe..814bbd71a4 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 6eabec1a01..914251e428 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 6e7e2c3d7c..e766bd0773 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 009dfc2808..ff5a5ce893 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 c859ff7a1c..c476fdb740 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 dbc00d5485..d09e336cd1 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 86c94fdce7..020f804bb4 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 296dcede6d..874234ff8f 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 bf32d0a2e4..f8609bfa12 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 a4b55160ab..8653e97ef3 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 eed77fa726..1f2613523b 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 f97eee3de7..7b43b47227 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 3a1179e6d5..7a49dfc055 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 8868024ee3..c85a4b0ff9 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 13212cb5d7..215ca3879a 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 a2a80dd04d..c874d2fc71 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 b81fa1ae09..f2355c8498 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 9d88ae7619..1744cdf534 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 b13c8df5ed..3a63b8c731 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 5d2f14efde..58d93f5123 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 c8147b449d..93e409d478 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 0189a06f8b..4bf1460f80 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 828f49188d..1a4de9a61d 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 d63ffc6590..b3f1087ff0 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 ec60790510..728bc60d75 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 1657e28af5..cf705933dd 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 1634cd938e..e6d718797d 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 dad58996fb..47a11c2211 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 3d5c0c9ed5..331b92f17e 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 e7d6c126aa..97d9d54da7 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 18e83d345b..28971e5681 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 827d47f91c..2ad845b8e8 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 f0d9466626..3911bf84fb 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 39579274e5..7994cab409 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 d94a71ad94..e82e47b7ee 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 eade7b115d..77e227088e 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 49e439e8ad..c3c8b94b97 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 71bdcad6a3..b43c0e318d 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 a9b64b36f7..48560070e2 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 700f32f606..f09590fecf 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 929ef1bead..e57899b9da 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 6d1a3d6dae..a0eb3bdeb6 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 59d4699d10..0efb107005 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 b6898a656c..9f884eedfb 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 56fafdcb25..d1db2b3280 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 3124a2627c..945e5d8762 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 3833a35afb..72a5ef6641 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 d962ef922b..812e7a6370 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 ee993a3245..eda140e8fa 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 8e6f2befae..bf765dc1ca 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 67ae9b6592..86b1409191 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 1c9a0a87e3..b1daa8b93f 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 78a4a54156..920e17f208 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 db8cb8d40d..a798df20da 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 239f1f7ac2..36b26335fd 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 71c9ad4919..32d86a40eb 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 7d9acc2e45..c690eef573 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 b59296b75d..84d353b880 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 d2bc9c11ea..a9b8f3d74b 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 b9f5da7e7b..eadee509ec 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 b6d7185363..adc29afeea 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 5a11437ce3..11cddbc864 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 e8f6a67205..8b27f3a7d4 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 d27381df6a..a7fb228a46 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 af777cb5c5..3876be4378 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 028fdb2d9b..7b20b60901 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 96f43b9594..38e56c787a 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 0c13ce88bd..0da4a34cbc 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 b907619cd4..649b652dc9 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 f222f17da6..569ab3e5c4 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 68ec2912d0..10c79d4f6e 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 0c9a0a1b1b..0c97c1f486 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 d07909c461..3c654b538a 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 2b9ed9829e..37f6c7665e 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 f0849685a1..578e6e9b23 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 4a088cf9c1..cf8d651a84 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 4cdcbbbf10..a6dcfeb1df 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 1b161eceee..b82ce78e42 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 b950e5a646..8e137eecb5 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 8d04acaa0c..da8b8d8a2c 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 29541e5b79..31000df913 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 0a415cf5b6..b258b0ab0e 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 2a786f9c39..dcbcb126a7 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 44e53bb71a..fbcc5e486c 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 972825fc09..06b90f8c03 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 4edbb2eca1..1281b55d74 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 82349618e0..0e5399985b 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 25df372324..e67c62e364 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 e9bb3f0c33..3dee33d65f 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 ffa6c843d7..676d3c5a3f 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 c6e5e3a7c5..2cb280fefd 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 4d9d893177..a2432f470c 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 0dc4dd7fde..18ec287388 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 1d0dee8524..421a999f06 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 11a120874f..39156de90b 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 04bac33a07..dd515d77fd 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 e1e69101ba..ad33e450d7 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 e18b8e7f36..03ca8b022a 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 de9ba0ab0e..722e892c7a 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 feb63b3a4c..acf68dab96 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 2762437240..83084c2d2c 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 c52161df81..8391b2c536 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 2d4e8cb2e5..7228461549 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 1b7246df36..c14ab61cf3 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 a25e105e9e..d2d838fee7 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 96ba7ce0ed..fe527f5e5f 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 459411ad0c..3bef14eb4c 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 069ebca472..c041b5a545 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 d06c979b45..5fda3a23e0 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 1455820124..f3f7de908b 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 a806b74498..9d60c5d2fc 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 d178715247..9b583c2d5e 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 789a7ae427..d1527cd453 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 9f90ff1e40..0fb17710ad 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 d223276708..0791de9bd8 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 9d7b448795..91ff812f48 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 308bd438aa..bdc4ce0065 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 b590978d68..37d2588c5a 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 deed4aa939..34bce1499d 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 0c7b84dd83..e35999a4cf 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 f6499b0ae2..a5a887eb45 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 da544f6058..8eeeaa442a 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 b3ff64e4c5..3f74aa4a5b 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 4efb73d70b..dc2dd9be86 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 c54dab7e73..145ab55c00 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 0cf0042146..5ad88a2481 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 6808ef44aa..0454541101 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 d9fe380297..77c48ae2a9 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 42e74f3143..c35da56fee 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 41353434d3..917e178bd1 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 ee9c7f4771..4e48305099 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 8a764abe1c..d532fc1993 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 ed43cfa249..0b73e15580 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 68935ad5cd..d62a7dfa75 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 bada292318..61fb008e54 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 326a4329d2..5c81daa8d4 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 f14d3be0a5..0522ff4f67 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 8810813cfa..6453678cb3 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 b07a1afb51..bd32729446 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 e3d8d3f39f..e333ee33b0 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 042bad64ca..4bef57f746 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 9a2eb4103c..e69b33dc15 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 1602efe196..67394390a5 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 d8a20ed84f..864bbda578 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 b57d1f8c4c..5acef07879 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 368c6258a6..ae251628aa 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 4078bdc1ec..57272ef546 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 7f50535bbb..4b3ed85e79 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 455411c8f7..cc4ba0cb4c 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 d9f5da40ca..7b89b88541 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 873009dffb..5a8ce536f9 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 1b3faedbf1..a09059f698 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 90b87d6d21..5a73166f84 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 feac179aaa..3356c790a6 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 0f132ebd93..3a8f6045da 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 a6f4cc2953..f5e47fda93 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 d7ed0014fa..4f4bb9e176 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 1add30f952..1fba3f01eb 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 22b3cd7af6..a2c420f62a 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 b132870021..ed7425b8f1 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 2bb54e9a99..2e23e7bd8e 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 c53bc75568..c555460dfb 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 52d147729e..3a91fa6667 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 3827be9da6..9c2c8be8cc 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 34f24c588c..8a11821c4b 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 a2ccb6988a..108d29d8ce 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 2223f08c47..7bd6c4267b 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 4426ceb635..9a57421cee 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 5e2d1f2c23..699cad95c6 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 0bf3afe914..9899424ec8 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 85228370d6..df426ac5bb 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 5e3e1bd204..7f97ce8159 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 eac110fe60..4fd6edba78 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 6eec0bfd89..47bca4af4b 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 e0874d9c77..3428dcce3f 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 b9a395ce21..ef82e1e77e 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 2d18923070..19e06d62bb 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 a0e694ddf4..9e477b8bd8 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 079d5b2ebf..20e608714f 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 721a8f1425..7313f12ce4 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 a39e5bf4e1..1d1ca19b1d 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 44fb7ac106..cef7e0e93c 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 c5c281d74d..b6031de788 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 6f34361609..1c3d9390d6 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 5d77c7eef3..170ebdc605 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 3b58137458..75d0d9d169 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 b496c4bba9..f5bde77bdd 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 d67b0db94a..8881a1aa86 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 4353b7cf28..7f73fa2db7 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 15d642cf9e..a38fb5ab30 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 1bc65ffe9e..54ae982080 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 47b8391704..f46d5bc8f9 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 9c3db1f6f2..a2d1ae3058 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 bac666a140..437f949927 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 1ab856f528..43dc4e1441 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 2886cfa1f2..5c3c50feba 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 2120421db8..9e080fb8a0 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 3548d1a057..6b99036dc7 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 165bbc32b2..b9e12c58a3 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 f180a72a8b..300e1eed8c 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 36f51832cc..d305a505f1 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 a73931ca9b..4ea9c0416a 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 54751fa5a9..99405a2a0e 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 1c570a8dfb..448e906362 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 902d12d827..b49c04d644 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 d4d6132c10..3862f57778 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 f90feafb67..66bbfaad71 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 6672dd090b..d81772b1c5 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 63c04fc82d..e2a8478d87 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 7e9bc96b48..88ec528e7e 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 8d8330cf4e..b059174668 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 af7367ae23..39661f9bd2 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 365e851a44..9ab80e1f09 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 b1d83f50ce..ed0a34a54f 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 8a3f184e9a..8c909b441a 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 7e07d30f0e..9eca1fc6c9 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 edde83cbc3..ca82c6a288 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 b543182c99..7a93a3f1b5 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 d399294bf9..063f1bf977 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 4c83d53946..2a6a980859 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 7ed27edd37..d20aa3fd26 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 504c17d8a5..6e5ad790cb 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 e2ee3dff59..63625f40c1 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 c7b2f8b2aa..1618cae39b 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 5a6c6121d7..b23e24ee52 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 0a2da1fad8..6f88b8c504 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 a2dc2f0ca7..d05070e2c8 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 ed3f224771..5fe32d4368 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 ba2029c160..465a1b116f 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 e0dc992bd3..59a52b9e50 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 7816fc0745..0e0ebd4d6c 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 b48178485d..f6e335b7bd 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 13d817c509..929337bd8c 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 8b3adafc74..4428ff7f3d 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 581d2ee147..40e375294e 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 92f13d92fd..3335fd2b42 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 2126670cf4..1b996666be 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 38dbff48f5..0f6a61894c 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 85c154a668..de3d43d789 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 173ce2bbe1..684deafa4a 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 443ecda194..1c55d8a29b 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 f2d70b40dd..96707a881f 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 7d1a32431e..0e174ef173 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 77089b1f1b..08679af1fe 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 fa7057931c..5fdc703dab 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 02d8e493b4..c6457f06c0 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 2a11595d05..3869ea2937 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 9f569ef420..8cad5e337b 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 8dd3628880..2a179d3c6c 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 38b1eb670c..05def3afe7 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 f9be2c4840..99b7e0a4e3 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 0599ef5bef..110a87fe45 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 0fcd716f40..e6286ce24b 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 4d1e0487ba..44b96b2ea3 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 6b8322fd6e..e759a1d9fd 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 7a6685ee9f..ad3fc0d25c 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 1d210ff61a..95a0032661 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 c2bb882860..60c2b73279 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 fa3708ced2..ab5a745604 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 5bbdcdba49..16ec2b20b4 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 2f63efd0ff..946aa00deb 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 8903423ee9..f0e7ee2371 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 b2cd08ab4b..ea9db625e5 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 448e0c2c62..d6cfecdfc0 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 844149953f..7a698c3c6a 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 195b6c3eac..bd07c6c8cf 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 66c0909eab..6bb32453bc 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 743886ab5b..52efc85391 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 dc30852a28..5246bdbd3b 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 71b31037e5..7b5da0af6b 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 2ffd3e959e..7989f31ff1 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 ef2c8bef11..aa7a77bd83 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 89a0c05eb7..111022d89a 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 21469f4d9c..48c5bed5c1 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 a0104c9446..0ac6bc6c95 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 7228461549..95c5bd7a7a 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 331b92f17e..ccfb4cdcb7 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 e57899b9da..eaa7d25ab5 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 eda140e8fa..edfec7ec64 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 aa7a77bd83..b6817dc556 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 6bd970abad..56fd939ceb 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 e463997a61..a7291624c0 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 63e6780f2e..cec2cf5fef 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 71a23917c6..26fe299dee 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 35560347b3..d1451c8765 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 d4e1eeef9f..7948f93dae 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 4ca8d6c5dd..a0deb27430 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 9b947887a1..652e763dfe 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 70cf1629ce..7edd695773 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 ed43c080c7..0000000000
--- 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 578d96442d..308d34215a 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 7fd33a4983..01899fa895 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 447f2f3c5e..c62a4871e4 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 ad185f3ffe..c1092ff868 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 e15e8c0c35..6a5128ece7 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 f61b50732a..a05709cb03 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 0cd67c4b8c..ab1ca37680 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 5306e7eb31..2db2231dc9 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 915995c6ce..455f01ced8 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 c3d1801abc..6dab769590 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 0e20fcdbb4..f6abf5d287 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 c5e08efa66..95af1e2680 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 6ff296597a..bd53d6af67 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 4c373f28dc..981f33dbc9 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 5767a62823..e51fcefa24 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 e5a5d6dced..258db509ee 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 ea9db625e5..bd968e4388 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 d6cfecdfc0..2667358e18 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 7a698c3c6a..629b101f15 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 a7c8e407e9..1227ef4b20 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 e6e59445ba..54bf68ba67 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 2257a8a877..82d4ade588 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 42b40e7a54..7d84a9ebdf 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 6ee66df4d0..ecd65cd9ef 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 dd4db7b6e9..8019ca1062 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 7b5479e945..cc03dd0be8 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 bd07c6c8cf..ae2389e3ce 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 6bb32453bc..7926b1a99d 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 bb44c1e0bc..c99a668687 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 99acf96058..4a45e68388 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 a3e30c1400..ab9fa68fb7 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 5f4bbcb75f..35bab5a6c6 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 fcbd51abe1..9c9c658ac8 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 b550b3f891..4ba86f1ed3 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 1a5b8bfe53..fbd5884b94 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 a3bb7f91ca..3c1b2a92d5 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 d30d5f063b..897b66afd6 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 b5e704d8d9..76e0fe69a6 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 ff2ba0b04c..c33eb9a17f 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 5dff92dc2b..d8bb7d4d2c 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 faddd30cf6..7fbb9235c1 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 270dc4883a..cb446be180 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 d86abd5d33..85ea1f04b2 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 8021acd0c8..8fa15d3900 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 910801b213..6b91ce03d2 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 56775016ff..4febee4843 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 a875568814..c3aaa9a353 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 9b381ec77d..3b11d1d458 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 4c99467c99..c456696f55 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 e6b1ca883c..05c20c69e0 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 73687ad162..138f0b1bfa 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 4f6c7e16b1..3c7cee169f 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 64b4e46688..794d437148 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 f87cbc1544..4d1c4d3367 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 d6b00f9edd..2ea65c4dd3 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 68afcf96a8..69bae30640 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 e1e9c0aa5b..815ffa49c8 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 64732d4f23..ffb3ffe239 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 ac6d15e7d3..08892dfa63 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 54104a81bd..3b35c3a8a1 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 7154f05273..b9f203537b 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 368e51438a..71cb7a2ef0 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 bd8536d513..39fada1351 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 736135ecf8..78517563a6 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 978e8b58b3..1bf044f1f7 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 d9988d3ddd..b07cb8f90c 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 8f38727eb8..4ae2da7104 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 1ae8325b39..b29021006f 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 daa3430b7d..fefaedb4a8 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 705fd894ab..3701caa880 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 e4c4c77f58..ade469dee1 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 239300f848..1248e1ff1e 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 dc1f824030..3a2d96a95f 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 4e10c644c9..730d98bab1 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 7052f0d3b6..aa6cf9a964 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 20510e2210..5915f2e180 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 6e08ed5976..33efaea651 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 00d1d674d2..41ee20a38f 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 ee5483faad..a4f0b1f061 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 1079515684..7785f04893 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 ca2d01725b..8dc4be4e67 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 d7795e9c49..6bf97ebb25 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 2640d910a6..3840b39c72 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 91d2a1842a..29522bcb64 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 8150efefde..f5f44c53bf 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 9f3ccf021a..c5072549e1 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 c6fa87b27e..f0c233ee2d 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 d4e828428d..d66dc6a97f 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 941376a856..3cd1039d7f 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 144f0af641..01d38f66cc 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 5036a61824..af031787c7 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 760e1b89bf..6606fde345 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 d25ab1edf7..9b9d850687 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 bbb4956a99..ff178e17be 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 08a36c7867..b3b71375a4 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 1f3e958e8b..3264f95791 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 d5d7e273e7..180faa5702 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 e9cedac2fb..854bd950b5 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 fdb483607e..c5cf297484 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 1ab814edaa..a852cb45ba 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 bf7ca29c23..9e9af16c04 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 018cb9a0bf..44c2f63c33 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 1d7fbae5aa..2479ba2f47 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 cd3de9e4e2..c7993cd682 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 0001264832..3e566bf4ce 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 5fc28483ba..c8135da29e 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 a2276bd540..bba6c22407 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 6bd18953d6..2fa2b0c10a 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 57fcebefae..a765b26ec8 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 51d88bf197..9ab4e3396e 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 705c979c40..838df15528 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 19b6330bf0..3b81395673 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 a18ea12b54..840f1ddb8d 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 7d78cc07d8..18ac4dcb9e 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 85f6771a3d..adf0ea8807 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 dfe9675d1d..4b6c138ec4 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 b8ede1a8be..7aa0a81932 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 de66badd01..56644bc83b 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 3ad36f8c16..63478a44d7 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 124ed06b10..66781aa772 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 ce27dd6b48..a474e01f55 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 62001d9fbf..e4b5082cae 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 8bfd115ee0..7c587026e3 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 c1880dd0ff..021d9c93bf 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 4192d52779..d60cdc2484 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 c106cf5c1e..eff5cae8b2 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 f2364f62cb..f4eed323b5 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 090526fba3..3493de69b9 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 cf8b352354..6a41f777fc 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 78383ac6af..b997fc14e5 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 c91b24e936..063b279082 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 260ac94620..35d2f0824c 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 d17d179662..60a7c69485 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 ff2b8a5b77..7a0cdb79fc 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 17294170ae..6732e4b992 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 8f5b59e9c8..fd0248267e 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 ef661704e8..a8b6b02089 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 fed5f9b275..026e4c6fd9 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 2eb3cf78c1..9505689c15 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 52efc85391..9029dbbeb9 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 a76bf542e7..8e43a73126 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 db56764517..e1a69b1e4a 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 5246bdbd3b..f65379a697 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 d29b5b1146..3c1ba7fb75 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 fcfc9178bb..0d92b431e6 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 060d0c2534..c11924d946 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 9451adcdf3..d61a2de93c 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 5d8d54293b..9baff4b17a 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 109c69a566..03f8c5a639 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 08077a6beb..21897850b0 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 d1b45ea967..45ff0f3061 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 d495846c99..5967ba18d7 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 1e16c118c3..a911644aae 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 73193b0230..38de36935a 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 e52ffcad40..fee7d035c1 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 13e55c7b70..b88514e591 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 5e7293952e..fc6db99a82 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 4f0d77f237..d91692ef78 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 6e9f660789..7d74fd6f21 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 7b5da0af6b..dce893ff23 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 ee8001fbc0..228b3fc566 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 e3cab9220c..7b62d048f4 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 df31b23811..2863748918 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 5cc5d8291d..1384f0834f 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 24c9919574..dec8f451bb 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 6c775db43a..eb9f291391 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 83da834a48..e3f5a65234 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 714ba7e3ad..e4c0809e10 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 3811671b13..44f5f34308 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 4821f2b9c2..a4e4913baa 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 39432232ac..6d1339d50d 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 7e1efbee1f..17ebc4d21e 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 6e344be094..983acaf925 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 b7a00b4328..4bf5f833ad 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 89e59b6cef..9aa81f18d8 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 d0f2e30a24..7576e64044 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 7989f31ff1..267b4ee060 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 8c2e2c50ee..1897b2dad7 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 45074bb4fe..9a1bc47047 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 a1780ae714..c5c4b65716 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 834c04cdec..15512ed3b7 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 ebfc75e647..a1fdd8c17a 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 145065ed7e..b5e744f9a5 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 7964d4b32b..ee106aa468 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 7be753f1a1..9b3553593f 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 63d1f7c345..eff74ce698 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 98e6c25952..0f34099d11 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 dbabf54b0f..1794063dfb 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 18cd641092..4ab0c49bdc 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 806e19505a..694a4ca075 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 d6f0ad9ca5..8c5ac64d11 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 75bdf5ad30..ff2d8f65ea 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 203a65dbdf..613ac3b956 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 64fc3595ce..a1de1d3076 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 1a80e0d587..6be5239705 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 59b0147784..d6d53a75a1 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 4efae7438d..6968335c21 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 6c00cf805a..860c34bc94 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 af590d9cd3..29e88bc4d3 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 d9efe505c6..c434891741 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 c805d5dcb2..7bdbe13eff 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 f05ab0e29a..65e38d97dd 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 ab8ce27299..91aa66a70b 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 337748d098..0194b44f33 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 854a0bd4a1..8cc1c99350 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 bbf5ca624a..0d60bb8ea6 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 d0b30d4572..32b7687b81 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 e79982b8bf..816a47c286 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 d4dec61543..e6bd39b0d4 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 c318374088..fd95acb5ef 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 098501b98a..8b80870750 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 52d5ddc914..8f788e4f7d 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 cd0087d28d..ed145027a5 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 c9bb4289a4..64a4d05197 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 36b5a6ae65..2115d9e7d7 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 c0b8d18efa..deac9057e7 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 f443243411..3a5a847f02 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 0da93a62e4..083a6acdec 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 0f8ffb32bc..6870895f1a 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 4a87e09459..c3546c9a63 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 434402cefc..6c7b1a618b 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 a0b464b34b..e5897b71ed 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 883da24ea8..cd5c07405e 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 54f42f73c7..d8edd742dd 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 c4a935b31a..4be0f0933d 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 3e7941d582..9fe5562375 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 dc50d8f211..7c3de1d5fd 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 7291244afb..6dacee3a21 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 c251f33f80..f376067705 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 44c7c65fa9..c39a9f9a89 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 fa4b8d6847..24bac76d8c 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 5df36c6ff3..03eca938e8 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 ee3b864fdc..b05084ab17 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 3c49c7679e..5e4a172aea 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 5abdd99312..aae6b3c569 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 fafff70594..9341337a8c 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 d42dbd1b0e..25b9806206 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 0fa33d5310..8f7e7d59cb 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 7e4e13cbce..b97c748350 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 7578d1449a..481808c065 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 3545d28ac5..4105ff7a1e 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 b193e89323..393c552a98 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 0a28d8de60..80e4f209d6 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 a76d5f5947..ad93b23273 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 ea545388f6..1d4fb448f8 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 5ae7c1b8f7..a8b6b2c10c 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 3fca886c98..5dad60db15 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 823fa98519..6548c6eca5 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 e50befeb42..a3069651a4 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 0a9d01af6b..f278b24d97 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 14b6cdadf3..401c10bfb6 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 e25bb2cd44..7c35370fab 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 c4ffbec29a..0949ff9d97 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 6529f4f8a6..8de21e1bfe 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 8e44c69db1..8a4894cec7 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 beff8eba2a..a1d9458435 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 c4928343ae..35ba58f07e 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 b76138b30e..e48e84f3b2 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 b0efeabae1..86409e96aa 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 fbaf12604b..eb7c4013bd 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 eb7bf9ea2d..a5b32879c6 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 c544d1b464..fc4a1b114c 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 f60c21b9d8..afaccde738 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 140396fb5b..9deb351eaf 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 8f4848563e..c65d457a90 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 de39e1e9f4..bf86249310 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 aec4a72056..7a023d007a 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 52d424dc26..5fe1874f08 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 606f98f71f..a4174c33cd 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 0b2e62311b..000677f853 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 47f12366a1..73046f0352 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 a14f70f8b5..037373e7db 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 4ed478ddbf..8484364716 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 7be22f8e32..bdefd7886e 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 933beb7606..2b9d76514d 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 b1130886ba..51334ad4df 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 64ae3989bf..820a69d171 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 49ce3c61ca..1685148240 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 47bec72a74..1a057632ce 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 da316ceff3..1c0424af16 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 c708659683..fcc0986550 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 9fd7556810..54f89e0330 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 c71703afd9..dbc1d78387 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 de5142de50..33b68c506d 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 9028c5ce1f..14c385b35a 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 50a2318bbe..8ac59ebc2c 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 400cba95da..3f8016a79a 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 e21d974e7c..7fcd5392d1 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 067ae93040..75ae4d4703 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 707543d358..101c619247 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 5886112b13..4b99829994 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 e3863a4ad7..a2e6dc160c 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 e03e916d43..b326d3cd6f 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 007a89119a..1dd06cdff6 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 ec5920e491..10c329212c 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 4612f9464d..ee8a6ccd87 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 a5d9cc3ab3..3f32e00e8c 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 768a8c953d..6cdbdfdfef 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 aa770d8180..c98b79d4af 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 1f3cd86756..bc2ec474c3 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 c5888e0bf4..0963856d0a 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 3ac5f2e924..7444748e2a 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 1237fe833e..e76284976e 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 d7d2e4ff67..af5bf1b8ba 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 727a21dba3..bc2b5c0b50 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 2d4fa3eaa6..fcc5c7bfc7 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 e87c91a07a..d826c0e7a7 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 4eb29f71c1..5b96352f8a 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 360093bc9b..3a34b54280 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 9118695e61..6ca834007b 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 4bd54b76c9..443d66b5c4 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 b15c305153..d7f2b4e2c8 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 78bc1ab3e6..b1f9a2f68e 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 e635443d60..974d214445 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 d670e105da..f8024b604c 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 574a775478..fbd3dadc3d 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 ae5909e3bb..96c35d7c31 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 2a447466ba..0677e3bbc2 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 c914be1147..2de8738fd0 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 b76b82f6c2..2b43c48525 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 39675d570b..cafba981dd 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 19b9be9511..0d8729b6db 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 711baeb097..c7d52875d3 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 809bb3acbb..3c992039e4 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 85177afc19..e23cb64813 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 721b5418e5..179accf0d5 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 2598947fb0..ebd016f101 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 11decf9d55..54049bd2e7 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 0ba59684c8..f166b1368e 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 bf10c46210..dbd3493bcf 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 e7b973cca5..ce6cb53427 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 a34ceb7e10..d0009d08dc 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 552245196e..a1d5b2724d 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 343a63ab24..a25865afec 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 b9fd3c3026..5079e03f77 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 bc6eeccd5e..9657f61cfa 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 fed8b4d8bc..806ea1a202 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 7b5eba7b21..0c201c8918 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 39d2968bc9..377965d8ef 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 665f23637f..4017b31be2 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 f4ea077e23..b5c6917633 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 98bd97eb45..bf69a773f9 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 c60aa9061c..93e40b0d10 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 f42b20dbff..a576ff8e6e 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 50c79ee5a0..3aa602653a 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 d22a8a265c..5d1509f40b 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 52cd7ac3ca..ff982accec 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 a2b92f2b00..81f3bd1ad6 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 16d88fd80e..3a0fb39baa 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 493111f824..04412d3622 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 cae2318bf0..65494217e9 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 4afe7aa9ba..0a836d7246 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 108bd74a21..200b8b5a65 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 162bbdcb7e..f8bff50353 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 f496160225..3fc64bf095 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 c5dc34d4e9..37f9c13102 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 14c04a43e6..c2a9e7717e 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 dc18a249bd..0e0df602c0 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 3a292fc63e..6e4c353bc1 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 598018aa96..bd2a76d6f5 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 625018082b..36d1c4d925 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 0108197b62..4d9bd8ea1f 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 f36bcccb21..59b7197d3a 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 33ce1370c9..dac8df7c64 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 1074ec89c0..1b445132d6 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 b0fccbcf64..84cbba3d4a 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 7d7b0d22e0..86f39b4004 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 58107319b5..999c8de898 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 7735218613..358517bfd5 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 62011de1be..5d7cf87607 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 f9cb0b5d3a..878faf906d 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 00c113e18b..e0bf07725c 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 a3999ed8d6..d899397bac 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 e26cd4ad58..0b0c2ebcae 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 34a0561edb..a78f6c6dc9 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 64d6dc884d..60759caabc 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 1935a23a9d..848f11c592 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 01899fa895..23bd25f36f 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 c62a4871e4..3260c1b2c7 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 c1092ff868..7b3646ae4f 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 6a5128ece7..a6aacfe547 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 a05709cb03..494e192d8a 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 ab1ca37680..ba3ff9c900 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 2db2231dc9..539ca85c1b 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 455f01ced8..63b1e4e238 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 6dab769590..48fc483a22 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 f6abf5d287..1b40b8ddcd 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 95af1e2680..afe1d1b8f9 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 bd53d6af67..8181d947e9 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 981f33dbc9..b89499525e 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 e51fcefa24..118b6ab5dd 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 258db509ee..b701ebdd14 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 bd968e4388..2e8e98b477 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 2667358e18..6f0073c461 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 629b101f15..d3a0f47f9b 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 1227ef4b20..1a0cff6f89 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 54bf68ba67..690a86a3cb 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 82d4ade588..4cdd86855e 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 7d84a9ebdf..9290e69532 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 ecd65cd9ef..a2d341d7d0 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 8019ca1062..092158dadc 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 cc03dd0be8..be1fee8d36 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 ae2389e3ce..86ea4683b1 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 7926b1a99d..1b4be011e0 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 c99a668687..524ad3f351 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 4a45e68388..5e9e98fd72 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 ab9fa68fb7..d75aa7a8e4 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 35bab5a6c6..196cca9684 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 9c9c658ac8..223109f556 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 4ba86f1ed3..0c0689ed3f 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 fbd5884b94..6af661940f 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 3c1b2a92d5..4fd4c75f98 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 897b66afd6..ba2c96a182 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 76e0fe69a6..0f2485f9d8 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 c33eb9a17f..b826f6fe81 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 d8bb7d4d2c..44288dad89 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 7fbb9235c1..42a1dc64e0 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 cb446be180..e814c4c9ac 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 85ea1f04b2..ec0c90d1d1 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 8fa15d3900..79ba621b0c 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 6b91ce03d2..463b10f9f6 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 4febee4843..6c15e19bb5 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 c3aaa9a353..cdfaa59786 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 3b11d1d458..736b9975cb 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 c456696f55..c10519328c 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 05c20c69e0..ccc4956d6f 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 138f0b1bfa..a52a2ee086 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 3c7cee169f..7d068c9ab0 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 794d437148..99ec59d5a5 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 4d1c4d3367..140198a72a 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 2ea65c4dd3..4bc69166b7 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 69bae30640..cb1342d96b 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 815ffa49c8..0610019755 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 ffb3ffe239..2c7c32a5fa 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 08892dfa63..64b5befd07 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 3b35c3a8a1..db2aeef24d 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 b9f203537b..b153aba5b9 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 71cb7a2ef0..705dea826a 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 39fada1351..c96284fffd 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 78517563a6..05aa3b712f 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 1bf044f1f7..e157768c32 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 b07cb8f90c..4c90044264 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 4ae2da7104..d43a2f71d2 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 b29021006f..91728e76ea 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 fefaedb4a8..be437d9a17 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 3701caa880..5be93367fa 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 ade469dee1..0892f0dce7 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 1248e1ff1e..3d49d38805 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 3a2d96a95f..91a38dcac8 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 730d98bab1..f47b13c053 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 aa6cf9a964..78a6293402 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 5915f2e180..36990aa8ec 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 33efaea651..957ee2250a 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 41ee20a38f..8201b4ed18 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 a4f0b1f061..474a10db57 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 7785f04893..8479b6d863 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 8dc4be4e67..092209111d 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 6bf97ebb25..1bf2dc13af 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 3840b39c72..e8fbea2752 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 29522bcb64..6e1a9d9d25 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 f5f44c53bf..dc12eaab08 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 c5072549e1..1fe07c6ff0 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 f0c233ee2d..e639b6e54f 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 d66dc6a97f..1fade78206 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 3cd1039d7f..80395b1579 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 01d38f66cc..2777ad5dbd 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 af031787c7..e40f9deca3 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 6606fde345..2b77201958 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 9b9d850687..144c0f6dd0 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 ff178e17be..124c64edbc 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 b3b71375a4..0ca77f478e 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 3264f95791..567abdcc6e 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 180faa5702..582f7f4fd4 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 854bd950b5..fe234d63ec 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 c5cf297484..d28d3353df 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 a852cb45ba..d434d742a6 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 9e9af16c04..5b6bf6f4e5 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 44c2f63c33..bfb5b614c9 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 2479ba2f47..178ed26f1e 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 c7993cd682..30f3f69a59 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 3e566bf4ce..b21601c30d 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 c8135da29e..96daf38e14 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 bba6c22407..9a358f2814 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 2fa2b0c10a..09f128167c 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 a765b26ec8..32bfc40b38 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 9ab4e3396e..0ca19e0fd1 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 838df15528..68505d2b0e 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 3b81395673..583a5b4be6 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 840f1ddb8d..6efc68f32f 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 18ac4dcb9e..35715dc359 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 adf0ea8807..2cd335fb9c 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 4b6c138ec4..61c5971980 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 7aa0a81932..ef83d2bb94 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 56644bc83b..9b91cd43f5 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 63478a44d7..a47bb80913 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 66781aa772..14d42315e4 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 a474e01f55..dba9f6c6b3 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 e4b5082cae..6265c0776a 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 7c587026e3..fc64587942 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 021d9c93bf..a695504ca3 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 d60cdc2484..e94d5b6d1a 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 eff5cae8b2..681b7ba08f 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 f4eed323b5..a216815e39 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 3493de69b9..84ef08a614 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 6a41f777fc..f4109a6aeb 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 b997fc14e5..693e3fad2b 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 063b279082..83f755b2b6 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 35d2f0824c..ab36ecc956 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 60a7c69485..1472121af9 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 7a0cdb79fc..40c9d51aee 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 6732e4b992..6b741340b9 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 fd0248267e..4ac0dc6513 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 a8b6b02089..28e99c21af 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 026e4c6fd9..2de8aab75c 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 9505689c15..599099f584 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 9029dbbeb9..56d220814e 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 8e43a73126..0d70902d97 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 e1a69b1e4a..16026364da 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 f65379a697..30d86d5858 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 3c1ba7fb75..6e7450270c 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 0d92b431e6..1a362714fa 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 c11924d946..da9dcdc466 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 d61a2de93c..195b4ecfa0 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 9baff4b17a..46846c8ec2 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 03f8c5a639..61fae82b49 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 21897850b0..899e682bfd 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 45ff0f3061..157e84f224 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 5967ba18d7..ccfb15ac64 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 a911644aae..ada3eaead0 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 38de36935a..2436a5e32e 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 fee7d035c1..f98abe3a69 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 b88514e591..64ee029adc 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 fc6db99a82..9d6113c370 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 d91692ef78..98fcf4e9db 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 7d74fd6f21..ce434af377 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 dce893ff23..0f08664574 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 228b3fc566..8da420c97e 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 7b62d048f4..777d8aa07d 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 2863748918..3a3d7a155f 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 1384f0834f..e9f8c7fe0c 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 dec8f451bb..13f50f322a 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 eb9f291391..fe07d92bac 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 e3f5a65234..4b98928027 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 e4c0809e10..ad2c6fe192 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 44f5f34308..c1358670ad 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 a4e4913baa..c51ef21c18 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 6d1339d50d..638b3c1e61 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 17ebc4d21e..057f0b6470 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 983acaf925..fc985796e0 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 4bf5f833ad..ed152d9e0c 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 9aa81f18d8..5db4fbe92c 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 7576e64044..314c402fb5 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 267b4ee060..4d664e0d90 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 1897b2dad7..09125c514a 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 9a1bc47047..162c4162e2 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 c5c4b65716..98c40c54f2 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 15512ed3b7..2118bbd59b 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 a1fdd8c17a..4395a8cbbb 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 b5e744f9a5..fb49a82ab5 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 ee106aa468..f4560b62f3 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 9b3553593f..46c3cd6a90 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 eff74ce698..4af136d12d 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 0f34099d11..bd12a42559 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 1794063dfb..c0990e3991 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 4ab0c49bdc..2579e9ee5d 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 694a4ca075..18164b694c 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 8c5ac64d11..5d22471a60 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 ff2d8f65ea..90980d0512 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 613ac3b956..9c4250067c 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 a1de1d3076..474e4571a7 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 6be5239705..66f7b3deec 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 d6d53a75a1..ae4fadc5a2 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 6968335c21..9c08c95468 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 860c34bc94..8a848f7b63 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 29e88bc4d3..e0c3892de5 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 c434891741..154002b246 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 7bdbe13eff..115ed366fe 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 65e38d97dd..aa18be0960 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 91aa66a70b..3eda963b48 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 0194b44f33..dcffa9c1f0 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 8cc1c99350..c1e3ada712 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 0d60bb8ea6..17c611fc32 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 32b7687b81..516a66682b 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 816a47c286..9fbfc1eda8 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 e6bd39b0d4..3d7d1b3bb3 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 fd95acb5ef..9da9931b53 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 8b80870750..07cf257db7 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 8f788e4f7d..96e4c250ae 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 ed145027a5..2b86d78914 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 64a4d05197..dc889cf4c3 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 2115d9e7d7..68dae24448 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 deac9057e7..caefaf8ee7 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 3a5a847f02..d89adb0069 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 083a6acdec..76971867da 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 6870895f1a..f2cae8fc2d 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 c3546c9a63..313f8ab193 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 6c7b1a618b..2176992489 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 e5897b71ed..ef55df9bba 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 cd5c07405e..c30e089360 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 d8edd742dd..47312eae9e 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 4be0f0933d..f183be7f59 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 9fe5562375..05651d432c 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 7c3de1d5fd..05e8225cf2 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 6dacee3a21..0e49f70cc1 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 f376067705..bf2de7fd7f 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 c39a9f9a89..d4ba647efa 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 24bac76d8c..d5cd11c4c8 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 03eca938e8..ddbdd35544 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 b05084ab17..a1c2d55a6c 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 5e4a172aea..79b550d806 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 aae6b3c569..8ba74b0eab 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 9341337a8c..0214133e4e 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 25b9806206..0a5c499d75 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 8f7e7d59cb..ed757a4430 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 b97c748350..24a974fc1f 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 481808c065..0b0631807b 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 4105ff7a1e..0a13221493 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 393c552a98..2e0eb95d99 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 80e4f209d6..6054948a3f 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 ad93b23273..a56348c81e 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 1d4fb448f8..3840e7d055 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 a8b6b2c10c..119b28023b 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 5dad60db15..4f80ab2bef 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 6548c6eca5..54bb2b1070 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 a3069651a4..d9875516e6 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 f278b24d97..84328f130a 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 401c10bfb6..ee9d24e189 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 7c35370fab..04144c5600 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 0949ff9d97..81b043bc20 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 8de21e1bfe..8bd3b90d4e 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 8a4894cec7..7c25807afd 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 a1d9458435..3fb1c90508 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 35ba58f07e..efc59e2ef2 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 e48e84f3b2..98fb9d741c 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 86409e96aa..50afcf600d 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 eb7c4013bd..e3328978e2 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 a5b32879c6..2d58cd6b63 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 fc4a1b114c..2c0448a31d 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 afaccde738..6e765d5f94 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 9deb351eaf..ddbe6e9e2e 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 c65d457a90..b6409a5f6e 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 bf86249310..7e0dc5826f 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 7a023d007a..4e6b1298bb 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 5fe1874f08..8774a12576 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 a4174c33cd..2fbb3da786 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 000677f853..6947a0f73b 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 73046f0352..b6c17d0645 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 037373e7db..0d7dbb71c1 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 8484364716..346bc4b4ef 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 bdefd7886e..fc87d260d3 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 2b9d76514d..f20af09584 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 51334ad4df..883d53a3d4 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 820a69d171..d4eddac3cb 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 1685148240..83afd412f6 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 1a057632ce..031b8ee17a 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 1c0424af16..b5147cfefa 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 fcc0986550..35da8d3bec 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 54f89e0330..da7ad2ae27 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 dbc1d78387..ce94b121da 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 33b68c506d..258a4cec68 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 14c385b35a..2b04641b88 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 8ac59ebc2c..f29acbb1f1 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 3f8016a79a..7ef9a9df09 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 7fcd5392d1..b58f943575 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 75ae4d4703..cb75aca9d9 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 101c619247..e5b78cf2d7 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 4b99829994..fc40862acd 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 a2e6dc160c..47c6706b54 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 b326d3cd6f..797451e156 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 1dd06cdff6..83b4934713 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 10c329212c..ee47d73a87 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 ee8a6ccd87..c8807bd154 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 3f32e00e8c..021862adce 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 6cdbdfdfef..901deaa82f 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 c98b79d4af..ded8800dc2 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 bc2ec474c3..b0e282b648 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 0963856d0a..6522d365c3 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 7444748e2a..ceba5fdc59 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 e76284976e..8d8666fdd6 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 af5bf1b8ba..5a1142a282 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 bc2b5c0b50..bb892b39c9 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 fcc5c7bfc7..7db66641da 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 d826c0e7a7..572f515a39 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 5b96352f8a..3a554525c2 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 3a34b54280..13983b9e93 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 6ca834007b..24b0e02639 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 443d66b5c4..bcce47ac43 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 d7f2b4e2c8..4361ec1091 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 b1f9a2f68e..29cf88be4c 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 974d214445..d4b75bf420 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 f8024b604c..7d7ca24040 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 fbd3dadc3d..4f488350f3 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 96c35d7c31..4c81e4c6ad 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 0677e3bbc2..9cc01640ed 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 2de8738fd0..1ccfa0b8a7 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 2b43c48525..68173630b6 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 cafba981dd..e76eb65f53 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 0d8729b6db..e3a45f36a5 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 c7d52875d3..7643f575f8 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 3c992039e4..65598097e9 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 e23cb64813..c93de7018d 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 179accf0d5..35989e90b5 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 ebd016f101..a42dd658e1 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 54049bd2e7..e094428deb 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 f166b1368e..57e4a30c90 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 dbd3493bcf..5b65ad641d 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 ce6cb53427..a664751715 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 d0009d08dc..92b96116fd 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 a1d5b2724d..467e1db5e3 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 a25865afec..1fb1d85be9 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 5079e03f77..00c1bbd9e9 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 9657f61cfa..5cf4724d36 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 806ea1a202..65385e1305 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 0c201c8918..dafd41466e 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 377965d8ef..720e48c38f 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 4017b31be2..7c1a51afe8 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 b5c6917633..2ab550e3cc 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 bf69a773f9..0ef11b6581 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 93e40b0d10..9644177369 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 a576ff8e6e..982080a5ea 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 3aa602653a..a194954439 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 5d1509f40b..fd2b7bb369 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 ff982accec..3062ac6d25 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 81f3bd1ad6..cf35a9eb75 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 3a0fb39baa..a92234d49d 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 04412d3622..7ee44f6275 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 65494217e9..ff2009eca5 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 0a836d7246..681e8fdd89 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 200b8b5a65..19d1b3d79d 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 f8bff50353..b8b6a67744 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 3fc64bf095..69f10fb992 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 37f9c13102..df26e0649f 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 c2a9e7717e..091940c6e2 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 0e0df602c0..52096259bc 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 6e4c353bc1..fd00bd9378 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 bd2a76d6f5..89e00ad73f 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 36d1c4d925..43e8def32b 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 4d9bd8ea1f..25e30e1ce8 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 59b7197d3a..c442b0221e 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 dac8df7c64..9171b11495 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 1b445132d6..6a174444a5 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 84cbba3d4a..1f99a4e6b8 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 86f39b4004..3704b8e7a0 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 999c8de898..09f6c05d86 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 358517bfd5..45b40c5a6d 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 5d7cf87607..6f1adeef7f 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 878faf906d..c31776d14f 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 e0bf07725c..5345f1ca77 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 d899397bac..762090cf88 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 0b0c2ebcae..828b3162f9 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 a78f6c6dc9..3e52b643dd 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 60759caabc..616ec16b46 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 848f11c592..460e0e42d1 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 632050c05f..df4093ab4d 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 47f3af8ea0..b3e84c86a4 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 df184decb9..6f520ce9f1 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 9c3097b3a0..43552bf942 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 cb166d5094..7530c4ec93 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 0000000000..12199c23bd
--- /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 0000000000..413342f30f
--- /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 0000000000..44f0ff4afe
--- /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 0000000000..ca01f33684
--- /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 0000000000..075bbba0ef
--- /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 0000000000..eb80bafcd2
--- /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 0000000000..97ade809f5
--- /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 0000000000..230e27a9f9
--- /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 0000000000..1b247709f2
--- /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 0000000000..6ec5746978
--- /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 0000000000..73d9807e80
--- /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 0000000000..5b7498c08c
--- /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 0000000000..b543e77647
--- /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 0000000000..e00ff9c53c
--- /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 0000000000..7c45854c80
--- /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 31a35835dd..2e276ff36a 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 2e727eb9fa..ad1383087d 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 43552bf942..3a48d2c69a 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 0082d54317..10d860d289 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 dae7cb5033..702c511922 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 ca01f33684..6c86d6340b 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 a9a9847225..d1acba3fc8 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 6f520ce9f1..6fdd9cb8c3 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 6608c1031f..67cdc8984b 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 1743925469..f31235998d 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 3519624652..5bd8b1f68d 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 4f6cb30260..d1ebf61fa6 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 522ba333d8..a454d61162 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 06687ec48b..ccc2fe7a7a 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 ac4bf4ef03..f21bd7ebef 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 3561eab14f..04e7f2ca58 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 36fc6103b8..4d5fd1c2ee 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 981514c585..086bcda208 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 6ff37b4c94..ff63759604 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 6265c0776a..a07cb3012e 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 da291dfd43..9787cfe432 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 e3746abec0..3c00646137 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 a3bea1ae43..5d40bfaa87 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 3a8d44d40f..6411310ba7 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 5a71084448..3a46d60f4f 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 0f08664574..1fe9764aae 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 0d77c95489..dc4aa36f6f 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 8e39cc8aea..d7a0c8f493 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 da49a8b447..078cf64a75 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 68505d2b0e..537fb2ac28 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 a6d2e09bb1..34668520f2 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 0000000000..f238f5356d
--- /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 0000000000..56f4e9f5cb
--- /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 ff63759604..5595b8a370 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 5b4de38711..4f441232c2 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 6a546fbe6b..e4daf19819 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 0000000000..ec501286fa
--- /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 0000000000..96430197f7
--- /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 0000000000..57fa75a6c5
--- /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 0000000000..21996ccdba
--- /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 0000000000..acddb888e1
--- /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 0000000000..90cb656acb
--- /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 0000000000..c3a77c7ce3
--- /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 0654582e49..3dd95b3f2d 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 bd090e6a41..f63fc71708 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 cd4a6bb5ad..d6e90a7349 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 8b462010b7..fefcfe7329 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 8ebf594f64..44c6535cd4 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 de2c44194a..7bb6ab075f 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 629d52f35b..9e7b98c658 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 64865d6d9a..a75ad5f30b 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 69188e0efa..60aeb0fd04 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 5ce29f4ea2..303579bdb1 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 805aed5017..269b034d93 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 96675909fa..aba02832fe 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 0a591eccd8..63963b05c3 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 65cf92c9c8..e753339dc6 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 ab8687e4e8..6808aba692 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 df41359f48..420db8f3c7 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 9399ca7152..f06adebb15 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 1fe9764aae..5d47d1b85e 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 3df2ae9d7c..95bb518aad 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 a42997b475..5cf0b4681c 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 bd175fb442..7b71c1b112 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 a6b8be3ce8..1a0de6d3bc 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 c50199454c..3b34c1dcb8 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 10d860d289..c979b32054 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 d1acba3fc8..43462c74a8 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 3a46d60f4f..94d5f8c2e5 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 2a7bcdc6b9..35f59e16d6 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 e69de29bb2..0000000000
diff --git a/ext/spring4/pom.xml b/ext/spring4/pom.xml
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/ext/spring5/pom.xml b/ext/spring5/pom.xml
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/tests/integration/jetty-response-close/pom.xml b/tests/integration/jetty-response-close/pom.xml
deleted file mode 100644
index e69de29bb2..0000000000
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 e69de29bb2..0000000000
diff --git a/tests/integration/portability-jersey-1/pom.xml b/tests/integration/portability-jersey-1/pom.xml
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/tests/integration/portability-jersey-2/pom.xml b/tests/integration/portability-jersey-2/pom.xml
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/tests/integration/spring4/pom.xml b/tests/integration/spring4/pom.xml
deleted file mode 100644
index e69de29bb2..0000000000
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 757b834213..aff60335dd 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 0000000000..ffc049293c
--- /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 1a0cff6f89..8d3da14db7 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 2b6a03a031..a50b9ab850 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 96ffc6fbbf..82bc4fd609 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 7e4bcf8793..6a1aa08382 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 1dce28b37b..aaf086e861 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 76e6a3f42c..4b0a83cc1f 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 29f843bcee..9f6073b44c 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 67f99ff7ce..a4741d3076 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 a31bd683b2..48eda1e667 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 e33c51f5b7..1b1f377986 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 32d4a9a869..17923f1a2a 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 5b395540d4..42432d4707 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 baba57c996..c97fc1644f 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 c5393d2b5d..f6e4c09053 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 7b71c1b112..85d7c5764a 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 1a0de6d3bc..a9a126d7bc 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 80aa6ba575..9691d6478d 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 b993bc606d..7f8ebb00ff 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 258ef18f32..de0072ad7e 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 9d08082d24..9163fb39c6 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 ba96bfdfcf..4858726ca0 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 3b34c1dcb8..0fc1a88565 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 37a68e90a7..951a368753 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 a8564f1e79..5c5103a5c1 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 6fdd9cb8c3..cc56166da7 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 ebaf7b99fb..83235dae5c 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 79ce0031d9..174e81686b 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 e75a337741..510ab78d69 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 4bf9302e8b..13c8856e34 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 bddcf006eb..f339055065 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 f44f63cd3f..a2aa91f295 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 4fb6f49381..a8b04f5d73 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 2bcfc85a83..f53f265d7e 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 b5244a6ced..4f2869cf5d 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 903bd17828..1223ef8605 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 8053e9defa..8d1241a278 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 894c547c73..fba8ca5486 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 1c074501ff..69a3be2650 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 f9a3206461..c458f6fe9d 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 a50b9ab850..95a4a047bc 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 6c4716cc5d..135e8ea67e 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 b72ee2fc73..ce11650b63 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 85973ee587..37b4c2d25b 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 79586a9827..0041829a32 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 f37da94729..cb6828b8da 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 1e2d0e6347..9695b1e4b0 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 52d4199ca4..cb7e685017 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 3b60b6c3b6..a20c06ddbc 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 88a81c0bea..55aff5123b 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 3e7b73f7bc..26342a7048 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 1bf96de3b5..b40e2d643e 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 0364ed7962..879ec16bd8 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 06ab0368e4..99c3ac49de 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 0174dc93c3..26d2f26e22 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 a7f3486b54..e5c5956d50 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 1aefde365a..10bef77d17 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 cee0d38638..c1959f8bcb 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 96db61836a..5f8b198e8b 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 f8a99268e1..06241badc0 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 bed881a990..050107db03 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 8c2475c876..932065a466 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 82bc4fd609..fc0ca1cd0d 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 6a1aa08382..fef937d96b 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 df4093ab4d..226901fee7 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 b3e84c86a4..79e2ed8421 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 aecb50d450..9e391a67d1 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 f26f9e5e68..4761ebd4d8 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 aaf086e861..8526081664 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 5595f4b50e..d2222cfda7 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 0a035c6082..aa1508e2b1 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 14582e14ae..188d3381fa 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 d261beecb2..b97fb513c6 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 6c45a33885..694f17fd31 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 067bf562d8..6b709d26bd 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 b894ff6a5a..ff1004ce8b 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 d503a987e9..89851af0d0 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 5a24b6c828..b756ba925a 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 8e497aabe2..e97d19e6e9 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 59a7ce9838..94f639cd20 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 d0aabc6ef5..09fa19b608 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 053323f76f..d1830d8f84 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 7ed8acea4b..39454b96b7 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 622dd30521..0a5a42534b 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 2382e8aa9e..5576182aca 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 06fdad5aa2..4f68db37d1 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 9bbbb02098..15716186f0 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 b507c8b63b..bf40487b2f 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 608be823f7..d8ea7243fa 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 cc01f9962e..ceb75e5b75 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 ec2697d452..1c4b1ddf6c 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 c1f7a6f46a..24ad2af4da 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 4b0a83cc1f..9ae71ee594 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 6966efcef5..532296d32e 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 75874bf055..db90fb1d05 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 b789a5b8a6..18f13da911 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 08786e6bb2..015f180753 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 2b35463e4a..6bc7c614a9 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 61a1db54f1..46cdb6967a 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 229c32c68c..ac62f34a61 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 e1aa9c576f..992f38fb40 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 11cf0bf8ee..16baf164f2 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 b38ff1cf16..c4e697867b 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 9b4ca35564..03ab713ae1 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 0da67c32d7..897473a84c 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 e41180e254..6e70d58bca 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 d44fe5a0d6..86a83f9e78 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 0b2e73d0bb..d524dd1098 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 59682523e3..fe0951f03f 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 d7e47e2932..9ac5a98beb 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 e147d37816..17f2456ec5 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 3eda788e87..e1d27853f6 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 fadf66aae0..dd9816accd 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 7ee7130c72..cf169b61c1 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 95125e9a36..3aa230db21 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 af60eb2cbe..e3a12f1dc5 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 69c0f15d27..33d415c90f 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 76f6ca17bc..3ccb69ca1f 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 54d5e12d9d..93be5ecff0 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 1e0300751b..a48770aa70 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 119f8cba69..5b66ec292d 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 18eddfb97e..c7cc4e0a0e 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 ef2abf451a..f3aa50dbcf 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 c3e322207c..661902a5e4 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 013934e000..5942ee4f39 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 97451e71b7..2e12b1b70e 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 61e9f0fdb7..77e5bb6d6d 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 f75232d67a..b9bcf33233 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 8fe8ffe0fe..bc391255a9 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 9477666675..d41824aa13 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 6bf47a42c0..19adcd9512 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 c409a7c045..c75fcff767 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 3d2f274de2..fe4a39b45f 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 fa7003a00b..2a89a06be1 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 26526f6622..32612a188c 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 f20bbbdc53..c78449cccc 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 71fe9a9239..6b6080ac5d 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 39043ceace..b43da9bd8f 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 f859654bd6..00089e4f71 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 4f28e9491c..086c3d6b9d 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 e4f43c3856..744ff9b23d 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 c75400c1fa..d4563e72fb 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 0138a0ab95..3a28599e7e 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 b8b51b601f..78de2782eb 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 3ad5b9ebb0..0cd85c2fd1 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 d1459862b6..511e29ace0 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 f9a3775af5..43241118d7 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 9a9d6bc57d..962dad728b 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 af080ab7f8..a1009517c9 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 0f9eacbdcd..336ed100aa 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 57a755dcc7..6990d260c0 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 2eaf52df49..dba83c52c3 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 3ae3b876b6..2d3b055eb1 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 85b4de1522..c4ddcf97dd 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 9456ee6234..621dafd1cd 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 6ff9a2160a..e56a7eba43 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 373b174952..d0a9cc279c 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 f590550e8e..c46a6dd833 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 bb340e515d..44aadab349 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 e738eb1ac8..7e7439085e 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 df3d62fcbd..776d668d7e 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 a4741d3076..db29664159 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 11fd168ce3..72f0b04270 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 7af4fb9e57..39a34bc188 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 22055bc726..e8720d3e4c 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 e55aca53ac..edf92aa2e7 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 c457f1000c..72e3424987 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 cf14a948ad..69cb38f61a 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 710dab3aaa..442ea68e22 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 454813d907..e7f655388b 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 495bf2028b..b93405a501 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 08b0dacd36..1bb4724e13 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 c85640a995..eb1ab02d8c 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 0ede238912..ee960b9340 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 e3979deec3..00cea8141b 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 b610451ac8..bdcbfe2dd8 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 a7156f4ef5..97a7c170d4 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 01bc066849..6aae42a3f5 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 e2c1af2a74..2d9ebafac9 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 a95f15aa4f..5357154c7d 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 724c29593a..f47c0d1bfc 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 69ba9fd4f3..fdc9779aa5 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 0bcd9b7b2a..3722f09836 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 729a43353e..9f42477478 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 b0ff4ebf58..3dea23383e 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 28d27472be..04d3f39539 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 97697b21f6..31da247f6a 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 ea644cd780..4cf04093fa 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 df35d73128..ff269b0dfb 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 cc393e7c05..0f905faec2 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 3500e1398b..3f05fd71f9 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 9a7fc56ae8..9277820534 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 ec78efae8c..fc59ec70fc 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 9ee983acef..c3c9ed08a0 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 4db6da5675..c939f0976a 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 cda9a70155..abc471a552 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 f64e309108..6cf50b9482 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 548e446c33..749efda7e9 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 77ed551880..c84e69e9db 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 a4e72f1ec0..317b4d1220 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 c1aee4d8f5..02c40eaf75 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 c1925b89df..585a28b1f2 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 62ad425b7f..9c075cbada 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 b89780385d..cd55dc754e 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 8bbd89ab7a..4263b96e6f 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 e4769b2174..3662ef7d88 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 fd910a32d2..94d3028894 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 041a1b5adc..39303db13e 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 4ebaa214c7..6a31d445af 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 8a5395db18..4839ad07c0 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 7bd1175cff..3187270193 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 670b8de770..dff506b3b2 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 33514e670d..c9f32d24f0 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 39966aedaa..338656f04c 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 5fd8561531..b04f589e3c 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 95c5bd7a7a..bb0d827241 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 c332949f0f..bc8958f060 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 3207806040..abfc0602de 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 36e34e6483..07fe495dc6 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 e8f92151cc..a7af9c477a 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 40c879fb96..b21e58bd14 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 32ee1603d8..87b31119c3 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 8c9dd4cfb1..dbfc636241 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 22c8c1c989..4cf0aa0554 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 f08831d68e..f747f5f1c8 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 491874016d..8c67f543cb 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 0e315af07b..77b21a6ef9 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 cb1ca1c070..1baeb2d9ca 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 1ca814ee8a..57c6a74d9b 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 935cd8ffc1..f16086ec4b 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 2e2d1459f9..07edf13015 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 8d97ce9ab9..478ca0c83c 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 5a1ebb5e72..743a6e91ea 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 fc0e19a7a6..6db7677e9a 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 f211d2e172..d5e631943d 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 46fa64368c..8986ce8dca 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 a222363e11..ddf62daf14 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 08708517dc..9bdf4afb98 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 9f31a72543..ec5296c6fa 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 625feb55d1..2523425f26 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 c57b49704a..b09d24b13f 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 3b15586b28..6f717c0788 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 218a99f761..299da31895 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 940b08b211..bad13368a3 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 5463ed664b..1170ff6d37 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 73c7cf2131..6cb905c33c 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 d54819dc91..4807150a69 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 1776468200..4beabff84f 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 634324dbe9..4608bee109 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 2f4eafc5b8..51c815b7ad 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 45f25d8488..1452856ef0 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 5d2cc16296..7570efe5bf 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 3e23d4cf43..a6eb23b0af 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 dbbf21560d..8f3fb216cf 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 ce80a2e71e..c82c63bde9 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 0599984b6a..35ce2ee7b8 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 31c51502f9..e26a96add3 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 309f71fc8f..c137480cb9 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 81335ccc90..9e4edaafd8 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 55e2bc7e6a..68aca8a592 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 ce2c269422..97f80dc4b1 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 294dc90473..4eeff8838c 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 5d6d2b983b..c3add91d2a 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 f8277b1f5b..9e03b7b385 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 bcd11d5ab4..12f19b8392 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 cf66de835d..eb54f43ee2 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 c804bee61d..1550ca6d3f 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 00442751dd..aed02ed88c 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 86a684442f..8b9f5edfaf 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 44b6dc5f61..3073f2033d 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 61b1c9d35f..a9f658d1a8 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 5aea57a9f6..9ff08ef475 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 dd23d8e83d..1295fdd95c 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 63e1b4449d..e6cd6da86a 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 5eca63fe28..ccc6c1e4b2 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 acbfbb9a93..a8b23f7e44 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 4c84ba5fdb..4ba41513ca 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 488d9ac897..5f89e27b7a 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 6cea96bb68..00ffd74a01 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 1d8671b907..f2854b61c6 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 dad386b37a..f4552fb2da 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 1bf9283072..483fcb48ff 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 43fabebd76..42a6179ea3 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 90b762815d..21109f01ec 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 efbfe3c2e1..3d3fc76974 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 884540c680..bf745a7243 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 4252efc714..2452353912 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 16f7cdfb63..0e35bd3f37 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 ed1d5edd28..bfe1646ade 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 ef81370e9d..1c40372d9d 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 14e233474a..7e8c542c0a 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 bce2a0da56..f171f6a14b 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 c0289fbf4b..fb6fce8c1e 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 b52a704760..6d83592283 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 a3bd18578a..256f6ebfa3 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 92abfb29eb..28db96f9d3 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 a6dd834860..9cb14b2b56 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 c2fb0bb064..828b5a511c 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 1e603bd131..e87f1c330a 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 96f96610f7..d226975ffc 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 b8af7662a9..ee7aa1f98c 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 04e2cc9ef7..07072bb671 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 dc45781a2a..464f21713d 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 02ba933fba..b4cc5b316a 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 0072028cb7..5a52ef7564 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 adc7d4946e..1ecfbe5329 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 7f3ac5b7b3..b0f42ce657 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 50fbc74d3e..5ce4b86d80 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 e3973955f5..cf6da4e098 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 63892cdb20..fdeef897c5 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 cf3515d7a1..70c6b7c2f0 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 32d989dda2..c9c9c30776 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 dbafe7feca..838f0ddd20 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 71619d6eae..f40fc29452 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 70a99953d2..130e201b68 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 c5511749d4..69ce6a65b8 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 f741e8f51d..2eb92a93ff 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 95bb384d1f..f7008d226a 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 7c66926099..9c5a044f2e 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 ca8d028ed3..196380fef8 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 5a37057e5f..b1bf220080 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 dde891b39e..a6488338f5 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 8adf7f68b5..f633aa617b 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 59ec309e1c..8e34c9c6f7 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 5fdb6023bd..0cbda95c44 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 f65d7c0390..a88ed6a020 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 bddea9f108..c00298579d 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 07459d7b75..3c440b9364 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 967c2d07ac..7c8e591507 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 d71dd3aef0..93b54afe85 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 2aa24919af..54b6a2db90 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 52761de8e2..a7fac76a4e 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 1d0a4838ef..87a7da58c3 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 329b1b5726..acdf0a907c 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 9dfddc2c0f..0a99bf85f4 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 6da46c5254..3c0201adae 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 8f9f511e01..dee3715339 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 384de24405..0e629bcb20 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 74de78523e..0b45449b6a 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 f18ef80081..3bf3bd5f92 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 19c0244b2e..bd04c1644e 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 e56381d8bb..89af4f0a52 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 294bd3cd5a..27fa6a73c1 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 77337b8ffc..ab34908045 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 459badbace..b92ec84cde 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 51ab9701d8..47adbd8cd1 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 3be0eba088..56422c6100 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 29b013dfd1..8d6d655895 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 faa55ad6ba..da31354c71 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 f6548b61ed..975e020147 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 10fc8629e1..fd167cddfd 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 989185ab4e..10db9b015e 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 07cbc44237..2a92a4802e 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 05a862021c..b12e7d2e2d 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 6868a03667..0190f83e31 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 02b7c6dcd1..45419fba25 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 ae8fe5f9ce..ca375d4a5e 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 003a2ce98e..6bc1a89719 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 8cdc81e9f5..e33a428882 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 19c273115d..b2c6bbd407 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 57378ead78..79736426b5 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 6afa505ab0..ef08dd8ffd 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 2ec1e087cc..5104dfd2c1 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 f340afd6a0..fc4e3a3a59 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 e8b343b45e..92d4373f78 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 ea3f2a1125..a4b085cacc 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 fdada6df31..e1035a0640 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 6b62603041..0bd7d98ff8 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 b046d5635b..df556089b0 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 d8ed09428b..d37c5b78f0 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 77734a37f7..3fe2467790 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 409b6c3eed..7be22bf34a 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 b579a0bfc6..c6d456b7f3 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 98c2f34c43..d6289ce002 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 700f42e00b..d7de6c329f 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 95a9b8876b..7b28a8cfbc 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 48eda1e667..e7b272622b 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 1b1f377986..ae5c66eaa3 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 17923f1a2a..177caa18f1 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 42432d4707..8904638197 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 c97fc1644f..e43e677999 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 f6e4c09053..e7e0b97d61 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 85d7c5764a..0d4c088223 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 a9a126d7bc..54ef0c7bd5 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 9691d6478d..20fc154da4 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 7f8ebb00ff..06b7c7d56c 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 de0072ad7e..24e927ed91 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 9163fb39c6..2915b6ef10 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 4858726ca0..cc3302f39d 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 0fc1a88565..e222516cca 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 951a368753..35d28db08d 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 5c5103a5c1..9da3ba98aa 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 cc56166da7..45b7af4ce2 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 83235dae5c..8478ce014b 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 174e81686b..75a2d948d3 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 510ab78d69..2323509592 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 13c8856e34..7f45d69fb6 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 f339055065..2b1bb14df4 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 a2aa91f295..b5e0b47afe 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 a8b04f5d73..94c0ac16d0 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 f53f265d7e..379e391e9a 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 4f2869cf5d..63c7eb91ac 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 1223ef8605..f458bf4792 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 8d1241a278..d874707ddc 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 fba8ca5486..46a4e4c852 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 69a3be2650..0731f454ed 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 c458f6fe9d..572268d39b 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 95a4a047bc..8675372007 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 135e8ea67e..5ff3e7fa12 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 ce11650b63..a5f1d9f2f0 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 37b4c2d25b..ea2fe34aaa 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 0041829a32..117ace3951 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 cb6828b8da..9b1206b5b9 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 9695b1e4b0..60349c01dc 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 cb7e685017..9975a3c05b 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 a20c06ddbc..499fe57f9b 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 55aff5123b..61208aaa78 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 26342a7048..ae765c246d 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 b40e2d643e..078edb1808 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 879ec16bd8..fa5a7b394d 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 99c3ac49de..1574653ab9 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 26d2f26e22..da63aa668d 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 e5c5956d50..647c815336 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 10bef77d17..19d0cb13ca 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 c1959f8bcb..8931c4c5a1 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 5f8b198e8b..85e6199a30 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 06241badc0..635aae4517 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 050107db03..c6f2008538 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 932065a466..2c50c807bc 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 fc0ca1cd0d..d177ecb298 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 fef937d96b..e5560d5fb7 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 226901fee7..c5e24a3712 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 79e2ed8421..9556ff3069 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 9e391a67d1..f17a0d9b12 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 4761ebd4d8..1f53561da3 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 8526081664..501b9493ca 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 d2222cfda7..1d8c8b77f1 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 aa1508e2b1..c5a803a287 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 188d3381fa..2e3b3a3872 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 b97fb513c6..10ebcc0648 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 694f17fd31..5c12b2f02c 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 6b709d26bd..a0d0794436 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 ff1004ce8b..8e1c1a3348 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 89851af0d0..e9f73aece6 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 b756ba925a..91deb36f30 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 e97d19e6e9..5c3a6e9e35 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 94f639cd20..fb7055f505 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 09fa19b608..71359562b4 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 d1830d8f84..f38656165f 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 39454b96b7..c0cfd5321b 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 0a5a42534b..74d4dedd14 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 5576182aca..ff35407378 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 4f68db37d1..4d7b61e933 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 15716186f0..a7c7331f50 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 bf40487b2f..aac6d5b5ea 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 d8ea7243fa..e5134d12a1 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 ceb75e5b75..cf62b10e39 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 1c4b1ddf6c..6f38620945 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 24ad2af4da..93a2dfe064 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 9ae71ee594..71f2b39134 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 532296d32e..96ebba5f34 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 db90fb1d05..1836ea52d8 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 18f13da911..5f08acb1ac 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 015f180753..73a7c1da04 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 6bc7c614a9..85b934f3fa 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 46cdb6967a..b8c466798f 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 ac62f34a61..843a85e73b 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 992f38fb40..8c8fc91fd6 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 16baf164f2..e4f2dac684 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 c4e697867b..55846d5764 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 03ab713ae1..2cd803d930 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 897473a84c..99be35d3e9 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 6e70d58bca..8103f201c4 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 86a83f9e78..e87ea4d88c 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 d524dd1098..e987e65c63 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 fe0951f03f..a2c7fee237 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 9ac5a98beb..aba41e6227 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 17f2456ec5..8571d9a92b 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 e1d27853f6..14f39e19c8 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 dd9816accd..031cd4782a 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 cf169b61c1..c37b68685f 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 3aa230db21..8d613d9f68 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 e3a12f1dc5..87f4eb9081 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 33d415c90f..6069dceccc 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 3ccb69ca1f..f6641a9283 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 93be5ecff0..bae7b56822 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 a48770aa70..33ddee2306 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 5b66ec292d..a836844e5c 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 c7cc4e0a0e..a0b5910e7f 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 f3aa50dbcf..0d1b1c0d4b 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 661902a5e4..0762730c81 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 5942ee4f39..69727f5abc 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 2e12b1b70e..258137f20b 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 77e5bb6d6d..b55328fe6b 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 b9bcf33233..380a01190e 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 bc391255a9..daf2af681d 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 d41824aa13..e27449bb9d 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 19adcd9512..7b3fbb89fa 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 c75fcff767..78e4fc88d9 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 fe4a39b45f..cdb00a6005 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 2a89a06be1..3d4aea8826 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 32612a188c..d8b22c03b3 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 c78449cccc..67a4b924d7 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 6b6080ac5d..0e3db20feb 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 b43da9bd8f..3c5c3b0bc3 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 00089e4f71..c2e4c88e92 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 086c3d6b9d..3566d36af4 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 744ff9b23d..0907fa58ef 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 d4563e72fb..c4a0980ace 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 3a28599e7e..5c77ec9148 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 78de2782eb..da3efa6afe 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 0cd85c2fd1..60adb8959f 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 511e29ace0..1f40b4bda3 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 43241118d7..9af1e54e16 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 962dad728b..810a76e5ad 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 a1009517c9..2a92d7e107 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 336ed100aa..d6d82deb10 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 6990d260c0..3df876fdd5 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 dba83c52c3..20e902880d 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 2d3b055eb1..8b569e8b34 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 c4ddcf97dd..339fd3c864 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 621dafd1cd..b81a9a5575 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 e56a7eba43..5472442711 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 d0a9cc279c..6fd6a6c361 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 c46a6dd833..14ed5c72fb 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 44aadab349..6eb106793a 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 7e7439085e..707df1f977 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 776d668d7e..3fefe012bc 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 db29664159..e90b3c7f55 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 72f0b04270..d03693b5d6 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 39a34bc188..7668e18de2 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 e8720d3e4c..e53a21dc6f 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 edf92aa2e7..fd017d9ad1 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 72e3424987..7a0a49939d 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 69cb38f61a..4728ff7861 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 442ea68e22..2e17e74fba 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 e7f655388b..620a742fa4 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 b93405a501..4d4f2d1a6a 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 1bb4724e13..21152509d1 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 eb1ab02d8c..3ab6343bcd 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 ee960b9340..0403a672a6 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 00cea8141b..f40f75831c 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 bdcbfe2dd8..db3d7d72fb 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 97a7c170d4..70dd1b627c 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 6aae42a3f5..ab26b9d293 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 2d9ebafac9..e36740c07d 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 5357154c7d..ceef7d650a 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 f47c0d1bfc..d11b3c43dc 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 fdc9779aa5..9a837580aa 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 3722f09836..5f595d7c63 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 9f42477478..dd634b8325 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 3dea23383e..0bdbd099ea 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 04d3f39539..e7034e3c86 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 31da247f6a..27ac7c8fa9 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 4cf04093fa..240fa5f3a6 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 ff269b0dfb..8b3000c1b7 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 0f905faec2..c33bf9ef71 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 3f05fd71f9..fc0e14ca9a 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 9277820534..3e6299029f 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 fc59ec70fc..f6bd148a65 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 c3c9ed08a0..02b8a6f6f1 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 c939f0976a..f0b1b36732 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 abc471a552..0ad3e0ebb8 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 6cf50b9482..0ef6429cbd 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 749efda7e9..5092aa1201 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 c84e69e9db..5d82c34e6e 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 317b4d1220..7575c6c376 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 02c40eaf75..dac890b303 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 585a28b1f2..be2e6c3e88 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 9c075cbada..f64f1eadaf 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 cd55dc754e..b99a98fbc6 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 4263b96e6f..9fee6a3241 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 3662ef7d88..afba4e0957 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 94d3028894..36937b9759 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 39303db13e..9d9f99fc9d 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 6a31d445af..56669fa389 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 4839ad07c0..c594886f84 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 3187270193..1c685ccd03 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 dff506b3b2..512e4af512 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 c9f32d24f0..190790e898 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 338656f04c..c1fbe3cca8 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 b04f589e3c..939321b4fe 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 bb0d827241..c9bc2570f6 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 bc8958f060..99f44dfea1 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 abfc0602de..745e8d639c 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 07fe495dc6..acffb74a60 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 a7af9c477a..31d09e83c9 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 b21e58bd14..44e8e64c95 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 87b31119c3..c4266d5236 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 dbfc636241..0563838491 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 4cf0aa0554..8dc0fdee1f 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 f747f5f1c8..1c1a9a738e 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 8c67f543cb..80d0a9394e 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 77b21a6ef9..ab7cf60905 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 1baeb2d9ca..dd3904d713 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 57c6a74d9b..60a1760eb0 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 f16086ec4b..3b786e5fb1 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 07edf13015..6f9287be1b 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 478ca0c83c..33483a1b1e 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 743a6e91ea..72a6b6d259 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 6db7677e9a..3fba9af82a 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 d5e631943d..338205aaec 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 8986ce8dca..ada84236dd 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 ddf62daf14..a531509d3a 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 9bdf4afb98..f068de7709 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 ec5296c6fa..3f32fbfa44 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 2523425f26..5d76f560f5 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 b09d24b13f..4767bfa30a 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 6f717c0788..926f4a1f78 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 299da31895..9597ce96a0 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 bad13368a3..30c8bfda97 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 1170ff6d37..3bf4df0b81 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 6cb905c33c..f080d81eb8 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 4807150a69..b17f6b3830 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 4beabff84f..cdeff2a9b3 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 4608bee109..0e3e395733 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 51c815b7ad..5b52320706 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 1452856ef0..270794a89e 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 7570efe5bf..e34070c503 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 a6eb23b0af..14fb8eac68 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 8f3fb216cf..ca086bfab6 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 c82c63bde9..5ecdf8a8a7 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 35ce2ee7b8..451d78e819 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 e26a96add3..e5b3775a8b 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 c137480cb9..83d34e92e8 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 9e4edaafd8..9d26519de7 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 68aca8a592..1d47fc922b 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 97f80dc4b1..9f04dc7ff4 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 4eeff8838c..2becbab225 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 c3add91d2a..1e164e155f 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 9e03b7b385..d1d81ba420 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 12f19b8392..0ed2698dd2 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 eb54f43ee2..c2af9c5fbf 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 1550ca6d3f..8d2a9df176 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 aed02ed88c..81658115e6 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 8b9f5edfaf..71f2273276 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 3073f2033d..e9c80d862c 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 a9f658d1a8..a5cedf5055 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 9ff08ef475..a4bd8541f3 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 1295fdd95c..e213a16db6 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 e6cd6da86a..430a020932 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 ccc6c1e4b2..feed0d43e4 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 a8b23f7e44..03945cb27d 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 4ba41513ca..39086798cc 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 5f89e27b7a..34ed71e944 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 00ffd74a01..6753c2985d 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 f2854b61c6..94af58dd4c 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 f4552fb2da..63c31a086f 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 483fcb48ff..40a077424c 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 42a6179ea3..a5cb5dd950 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 21109f01ec..9c1dc17b04 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 3d3fc76974..b9ad43d9d0 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 bf745a7243..11da1b9dd3 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 2452353912..b7fbd9f8b5 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 0e35bd3f37..72a19f360b 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 bfe1646ade..c8a037f6f2 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 1c40372d9d..78920cb3c9 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 7e8c542c0a..3bfcb8b165 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 f171f6a14b..3861b71933 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 fb6fce8c1e..3446bbd649 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 6d83592283..0034a1e9e0 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 256f6ebfa3..2839516e97 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 28db96f9d3..693f3a604d 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 9cb14b2b56..edab44910a 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 828b5a511c..87e004c699 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 e87f1c330a..636a589e1e 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 d226975ffc..ea84b164f8 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 ee7aa1f98c..3f274dd445 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 07072bb671..c62f6d63b6 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 464f21713d..a86eb798e9 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 b4cc5b316a..e0c0c1dab7 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 5a52ef7564..e2727c5a5b 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 1ecfbe5329..13854d01a3 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 b0f42ce657..909f12476d 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 5ce4b86d80..fc38cfb5cb 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 cf6da4e098..a6ccec0e72 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 fdeef897c5..cd0bd20443 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 70c6b7c2f0..edda8c9fbd 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 c9c9c30776..dc25c22388 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 838f0ddd20..b2ad37b81e 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 f40fc29452..6d31ae5705 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 130e201b68..f90d6534d5 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 69ce6a65b8..48d14b26ad 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 2eb92a93ff..f6faa8662a 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 f7008d226a..6e4b94c1f5 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 9c5a044f2e..f64b23e8ae 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 196380fef8..4433e052cd 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 b1bf220080..b37adc0156 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 a6488338f5..5406a1e114 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 f633aa617b..575b96d468 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 8e34c9c6f7..e5b6f63a5f 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 0cbda95c44..83dfe233aa 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 a88ed6a020..0a3b34ac6e 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 c00298579d..b82f7639e2 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 3c440b9364..b51f4d4f5f 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 7c8e591507..17df5c7d0f 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 93b54afe85..7fbb9fb7c1 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 54b6a2db90..285ac6e247 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 a7fac76a4e..f3d8a5081a 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 87a7da58c3..2653572d96 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 acdf0a907c..4bc8fccbca 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 0a99bf85f4..ab6fa38b24 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 3c0201adae..c973940bf6 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 dee3715339..a0fa66a1d9 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 0e629bcb20..477ef1e2c8 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 0b45449b6a..02dea8dd7e 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 3bf3bd5f92..eab9a69951 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 bd04c1644e..41159b2de1 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 89af4f0a52..5922acb560 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 27fa6a73c1..334ddecdfd 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 ab34908045..1fb99dbcf5 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 b92ec84cde..4a8b230bd1 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 47adbd8cd1..9622c31560 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 56422c6100..6bb21f3cc0 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 8d6d655895..0e32f6548f 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 da31354c71..0b31820c37 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 975e020147..bf8f6eecac 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 fd167cddfd..ab0a2eb5bd 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 10db9b015e..c359c9eaf0 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 2a92a4802e..21a6d4306c 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 b12e7d2e2d..3419ecba1a 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 0190f83e31..e15c48fe20 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 45419fba25..d88396ff2a 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 ca375d4a5e..400487ac87 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 6bc1a89719..adcf7e2d81 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 e33a428882..346b3425e9 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 b2c6bbd407..8396481d6d 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 79736426b5..e7aecfe14e 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 ef08dd8ffd..1a65ee6d3e 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 5104dfd2c1..5c4dceb739 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 fc4e3a3a59..d2dde4847f 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 92d4373f78..be790fdf6d 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 a4b085cacc..9720052129 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 e1035a0640..6597f90f7f 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 0bd7d98ff8..59c6c09dd9 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 df556089b0..b951acfb18 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 d37c5b78f0..58cabf89ee 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 3fe2467790..727ab5169f 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 7be22bf34a..5da53b8986 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 c6d456b7f3..b22e271327 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 d6289ce002..09f3cee837 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 d7de6c329f..71a988d67f 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 7b28a8cfbc..ef4b5a1939 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 5e9e98fd72..00ee924f3e 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 79ba621b0c..36427c2532 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 463b10f9f6..564e077832 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 6c15e19bb5..e7a44843c9 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 1bf2dc13af..7c404ba8b9 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 a07cb3012e..730b9465c8 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 4ac0dc6513..70ff79839d 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 16026364da..1714b3401f 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 ccfb15ac64..d99b90067e 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 5d47d1b85e..2ed2d538e5 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 e9f8c7fe0c..84afcd6354 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 4b98928027..c7571c35b7 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 ad2c6fe192..46b9a43524 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 057f0b6470..467b4dbcc0 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 0e49f70cc1..d6453e74bc 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 b6409a5f6e..07de126e74 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 b58f943575..3e21f2edd3 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 681e8fdd89..5b0a8893d6 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 b8b6a67744..b977edc447 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 5cf0b4681c..3a0298b14a 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 f0c141c0cb..1212f6f9fa 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 42416bbd12..9dcb68bb61 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 6986107bcb..901bc19283 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 82e2d5d49d..4c6702b04a 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 dceb272c62..9bced7a7f4 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 c387fcecf3..5e2c66bb6a 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 d6c4259576..a26aea8f54 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 4e2681feb5..dfd5b17cd9 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 f55bf78f66..c789a1a905 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 fb2503e78f..bfa86988d5 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 e6a29e5be9..dab72b3232 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 f7d2b161c3..19d9784279 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 5302beff77..c4d5ed7177 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 f507504348..b21940d658 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 938096c7df..059a3c0597 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 a263177d22..d3c5644156 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 a162e14648..27ba0ca5f3 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 f779d12698..7a135af18c 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 25bfadb4e2..0d17af5f06 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 c5ef31e4b0..10dcbcf0b9 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 66860cf517..6947b6666e 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 c0442f2d44..e6c593bafb 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 3238c8162f..808fef960b 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 61b9bd0225..18b3eee118 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 50e8f6571f..6ac74e5049 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 f59c0cf9bf..c16e4855d8 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 0e619a661a..1ff230006f 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 27caedad53..60e4cc8d34 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 51bc6a007c..9bd1572c31 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 9377a0a741..27a54c94e9 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 0230ba14e0..298ca42dbf 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 e0f6612177..2dc697c23b 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 cad5ea8494..5581fc92a6 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 c63b7a87ee..cea6db2a09 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 00a45a15b6..1f4830378c 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 40f1b4136d..fc67712c3f 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 46ba4ee018..cd3468252f 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 cdea49be4c..e00ded91e0 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 6254c430fc..cdfc30fbd2 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 ce6a377883..8803ac43d8 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 ea90e79879..7a05f61c53 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 7eab1b30b6..0d69457105 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 d95c2f21c8..c4c2d3a037 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 8248fdd7d8..1250637ac7 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 0c2e320b62..d8aec2ca3b 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 754c371a44..bc970c7329 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 75e0ca0f9f..23a82880c9 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 21f8879f3d..2d86199ea0 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 2772864450..81576091da 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 3f905042e2..6752870471 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 a6db9eef1d..8e7cfe5b7f 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 8cd48ba650..2016b583e2 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 f920bd7802..0d771af14e 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 d5b2cf5c46..d11646bd23 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 eee7992a49..2edae61143 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 b6189db57a..4d6c9b3b30 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 4af0ebec99..48d7db5506 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 87105d666a..60a2826bae 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 8a7a6907df..8b6792eadb 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 94a1d26a41..6ef37cd3b6 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 1fe6374177..3ae1470e41 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 5eb76e8e50..cd98a6d430 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 cba0763f2d..a102d9bc2b 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 60f5f1bc6d..0f68e2050c 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 3d64abeeb9..f67aa01b6c 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 2feea43ecc..e936df75c4 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 474e9e9c85..a54345b33e 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 9585c54af1..2c5be92a6b 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 82fee74e79..33ccc8534a 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 65ce246b32..0024fb852d 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 d2af874457..44b5dcf765 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 3dccc763c0..f3ed35adcc 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 f35cba79f4..6032eef4fc 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 89348300be..b606a909e2 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 266646cf0a..73d0f33beb 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 40f0181371..03cb5dcc2e 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 49dc28df93..6853c06762 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 52722ec25b..966e1fcd0a 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 0a9dc13098..7cef70b14c 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 53f98f39f2..6934a6007e 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 a3c90f75b9..e6b8636b5e 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 9008d9b025..f74656b142 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 d6cb6f1d27..31b9898bb7 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 8ab646bf8c..c2ffba7e3d 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 eaaa126f18..7a8b3d2a74 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 3425f63b02..128807aa7c 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 b618241679..448494c8b2 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 9ecb0aaa5c..5769766317 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 73743ebe67..e2e36ac0a8 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 b6e3ec8142..73a327ff95 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 4c2606760b..9cb39841c6 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 6ce7a9198f..2e25101e3a 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 35ca43645d..8b64d10b50 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 423cc7e1cb..21816cf276 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 48c5bed5c1..ec7944294c 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 f2642eb27b..022667a262 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 ff64489f97..e5d9ec6691 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 6a9637bade..6217b52758 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 44dbc2a82a..e83ca382ae 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 269562297d..3a52c65be1 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 20caa533d3..d30c9b9e8f 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 f5438e5ac6..905e155973 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 44d7f38eec..f3cfd7ef01 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 f0c639b283..d4ec71810a 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 2677c3ed11..f9670ce84b 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 e457b31330..43ce709292 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 f88e132622..26c2884535 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 4ce24f54b7..102307f848 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 d3a0f47f9b..9e60cb3df8 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 a2d341d7d0..fc8d7359ac 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 9e1660a559..02b47735b4 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 67eaab80ae..32a98e1c74 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 ea327c0ec2..6b5100d0e1 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 e814720ff8..02a0dda0b2 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 c2acf8daf6..61670a3b9d 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 26abd46b7f..9b37c35eee 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 9ab2e92de2..c23e4d1d6f 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 b4476fcb6a..b69603d526 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 86ea4683b1..47593ecbfc 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 dcfe4b7848..13bfe6ad4b 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 b4d6b811e1..da156be06b 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 ce299cdf81..039a7a8e13 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 15b299a186..12ee763380 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 8866c336d1..94d0c33599 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 00ee924f3e..44386266f3 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 d75aa7a8e4..76c62903da 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 eb653ca4d8..290de5242a 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 9587b04f3c..5ef98f81af 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 15e7b28925..8c36c1d9ca 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 4c163292ee..bbab64068f 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 3b12b1a34f..b0d2f876f5 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 e0b6611065..1386bc592f 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 1e2d7378ef..00e980f5ec 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 196cca9684..9769e7e50d 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 d81380ad8f..f0eba7b405 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 f813eae8ed..eff6b19246 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 965241138a..58f689c72a 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 7456edb6db..41601afeb5 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 f7792f1971..a2ecf082c9 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 17b83e7e33..d02e80a9cd 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 d0ef2bdf2a..973637b78a 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 16b956f150..326a3f4c63 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 936d6a46d0..1c8f0b4065 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 5bb7a78780..394b08787a 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 8bfb921e7d..740e6c54a5 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 bb4a680098..ff6fee951e 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 8a851f63d2..41d9efb501 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 cf3ba575de..50879fceb8 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 dc021a399f..99e5a2a544 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 e3be2f91c2..072e70e499 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 f7b6027ba1..278abfe548 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 ff88ab8007..7ddd82c351 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 2fb4850306..0776f93afc 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 284e87cf68..b7a80b649b 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 8ec83fae9e..6cb65a72d5 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 a69df0331f..702c971795 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 4d1fe390a5..a48671fc27 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 e967db0e26..72f73ae52e 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 d4f9363972..4eec0cdbcb 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 e2776fc79c..38811762ca 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 ddb6e76fae..0e5fe4404b 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 b5f362402e..f454ce96c6 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 905cb57ddf..a438a58954 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 223109f556..2f61b3bfc1 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 cfae326453..4c90296f1e 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 0f025f199c..33b9fb307a 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 1cc853e236..09a85812c2 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 cccd36c564..57b95d0b19 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 f6e6758af6..6f1f7b163e 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 dc15766709..2c80b350d2 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 f4414f5b42..c0c3112617 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 06a97ad8d7..3a0557c19e 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 b083ad94aa..2878f795ca 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 423ab0a19b..47781d5e7f 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 b0e8c4d0c6..306a760d60 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 659f9041f4..e9516922be 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 fe3de0c1b9..f71f9b4f64 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 1b319a8afb..68f6aac7d4 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 edeef20c6d..8074527e14 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 02ba36a7b7..d0f51fd573 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 fa008dd6cd..6faf736e4b 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 b5fbeba35d..6890b02246 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 9d71c1dc9c..fcafac578a 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 48000b0edd..9e8ec188e9 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 11bb457c29..c7be09dfdd 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 35459f9422..e1886d46ac 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 9034406c14..abd4d54877 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 11a3a977ab..161b9b192f 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 3d14861c22..dfeabe606d 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 43d81bc643..d453668a54 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 9c5a132c6c..052ab284b0 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 efbfa84ff7..695fd4ffe2 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 79c5675671..5dcc075d38 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 f8be76924b..bb82964d7d 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 c6ff32ce1f..5cc89dde98 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 1856c92f1b..3cf9bac3de 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 ba7e6bd7db..d43c4f663b 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 0b1627d408..dc9fc0290a 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 e6baf4c404..55976fe629 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 06032e91ec..7fb708c7dd 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 53cf7b6150..78df231d30 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 e876ae2c02..460db0e989 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 8e26e491e6..a98f8ae723 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 e696602ff6..7826506379 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 4822e4a709..ec9bc99daa 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 0000000000..a960a3dda0
--- /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 0c0689ed3f..8686604648 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 0e3e3a467f..772e32c99f 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 6c267cbfed..b926dc783c 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 9765e0e493..781d390eb7 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 069996ea9e..dd511e246f 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 cde25bb562..95de589994 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 cfac9de190..6d51742fac 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 7a479e0ecd..21671540a4 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 2cdc9240e4..f3f96df85b 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 122ab4508a..4e2fa5307c 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 4f50714e66..3a64bd5e75 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 41e83e9351..9393e57ef9 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 197e5fb2f9..0fd7416e48 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 76489a0eb8..2c2a865ab5 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 713f2accb4..881f7cc3a6 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 f30e6fbaa3..b5f18e5485 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 0f8838bd68..9ef0fbca8a 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 8460cf4ae2..7edee54d05 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 92f3bf746d..a0312aa7a9 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 a255467b0b..153bc171df 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 49ff0ff39e..ec7f881bca 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 66980ee74d..a4ba302bb5 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 b932c3b254..733b348514 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 c611d3f8b3..295722ecc6 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 a68c56f794..753a0c66ff 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 7117c15bf5..3013f9f535 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 aff172115c..daa238cc9d 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 b5cacef5d8..7c8faecf12 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 ad7f5ced8b..ae72585ee4 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 d86017ea00..acda39198f 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 312db7ca6a..b7901d6453 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 57d9668f0b..c717bd9292 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 1acc946b47..b70c4ba582 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 d26743a655..0be4e0ab38 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 e0b8acb907..f87cbccad6 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 b56bde31ce..3d4b4a571f 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 3d1ef54fd0..7886b1ec68 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 5dbddfb3e3..ea01bcdec3 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 4c35475109..c69afa4b28 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 b3519d3c99..48ec83db48 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 20b8267829..da1e2e6735 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 0d7e5886f8..1f7063de7c 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 1e39b1393e..762a8883fa 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 56cf89fe71..d9f659436b 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 ae54b47349..c7bf2a5ad6 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 f4b1e3d069..8b82eccbd9 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 7589fd3dc3..d0777ea5ab 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 c5acca7a55..0415277030 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 805c03a75d..6219c21229 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 6d8d501d00..76b2a797ec 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 190720cf40..8a38eaffdb 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 b6f4fece18..03b0b73bc1 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 b00bd647cf..fd841f1a7b 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 e6546de6ca..7ba24c81c7 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 bdd148f337..33272e7aed 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 73ae61d56e..6dded93802 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 f23e4e14bb..b929eeafce 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 0f8a700452..53209591bf 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 72fec0cc40..71a1427341 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 1550146887..e6c42bf873 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 d209c17564..8336caabcf 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 6be3925ed9..0dc7a013ed 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 bba6993ba2..a20141e155 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 3fb41d337f..16cfbf5292 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 d563d19be1..51be2f867e 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 0e4fa64ce9..781a3fce1b 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 e442336e5d..c1169badf6 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 6c9f20fa4a..4f1f4d54ac 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 f13d264460..4da748a6f3 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 00d6d111e3..3298f139f5 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 78654634ed..70dcdcf603 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 3877f877e2..af6586c4b0 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 abdc102588..9147d5c9da 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 3dd917eafc..07a735b5e0 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 54c27c4108..4c41281bf6 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 6d18f0d7fa..322f6d4383 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 f98320462d..58e3943e61 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 ebec4db72b..696b1e8ab1 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 fc02ae7c65..c6f42d7a48 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 d8f9a8cf6c..c4ac1934a5 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 e4675ba807..2f334184ff 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 fa065abdb6..ece29a9443 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 4d982aa94f..049b449fe6 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 6b8e6543b4..3da884d55f 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 a7282c2622..3ba5c53149 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 598b03f1dc..9466b03e74 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 5315f69627..ae7e072695 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 ef817be2cb..d9afad442e 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 80f917c9df..603abca5c5 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 2c50cd7381..493d4bff55 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 0c0090d4c0..7595dc7524 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 7ac59fb19c..de42c6a0ec 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 07e103c752..3b28dd39bc 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 63f36a8cf4..3b29041edf 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 5cb18b9850..b9f4da7dac 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 1d50e45d7b..3df21967e5 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 92d6b4bd39..e9b11df847 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 cdb11f8c94..3520c38a52 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 676d091005..7765045347 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 a67be6c5c4..e7ebb5a60d 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 ced90e5429..5d6777d9fc 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 5f70aa75c0..2104b906a6 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 9a23891b3f..3661ab50bb 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 f619b1f245..83e40e574f 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 c91ba14d52..69b99c985e 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 2596011286..d2229dee08 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 5934f4ac07..b618c5957a 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 db385d2139..9593a1a13f 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 8bd12d8cba..de442379f5 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 1fca50bd90..e6a304caa4 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 bf895fedc7..5b01dc698a 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 a8b1adf3f0..d567e4722d 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 01420f32a2..d82ba0b472 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 f8a539d697..3b4e852753 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 70c8eed9ee..e41bd1fcc3 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 24716dfbb1..9116356a29 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 24713e8160..d717d9728b 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 ddc2dcb811..7ba201aa29 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 ee3ccc76af..3b359f10c6 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 10e130dcf7..7ba753bd19 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 228f4c56bd..ecb7e3d9fb 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 350003523f..87dd25efb9 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 492be69cbc..60f3c5b442 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 4d68d36f07..cb5a400153 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 53910bc4e5..41dc0d635f 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 724511c519..1f4dc4ef7e 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 c26dfbeaba..48ce882e56 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 5b7a801373..42bdb0b79f 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 3b0a1dc49c..c6839e7877 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 b572affabe..a0e896c2a2 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 bb0edd5b56..b307ae38dc 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 bd929dc143..c5f4f017f2 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 e882ce8900..b8ba55c67c 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 5aa59e98c5..ef3cca89b4 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 589dc89b0e..88e3bdb120 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 06670553e4..c9d774eb4a 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 e42b397c8e..803d13f325 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 3680d6049c..401d19bf6f 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 5bdba8abed..7b287f9510 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 2ecbfef8a3..2b1e690e70 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 abecf273f8..0b25af3b1a 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 8a3e6dcfd8..b61f6c1581 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 6a4c22155e..10212c659e 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 bfc60968ad..7f4e0734bf 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 195dbc21e1..dcbbe8ed34 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 fd76151aca..97f9645715 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 006634c73e..3ebf7a7f42 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 45c4087053..b85c0773dc 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 a758d15ef5..ed6be52cc3 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 0787114375..43829bec3b 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 c7081560d4..e9ae01bd00 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 4fdb3b36a8..55c34a0b65 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 1ff343515d..df19dd38d3 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 1a530b7e87..c7c25d776b 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 5b6a838f7f..f7b71260bc 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 3dc9acede6..f21cdf4d6d 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 5d51237388..0e28544399 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 c7171acdaa..bf1e6dd234 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 e85f779e5e..777d110ce1 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 d509934f72..f95f19156a 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 316631222a..615cd29b22 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 736b9975cb..57b69074eb 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 e31505211e..584ec0af7d 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 e2050b1b28..918471c9cf 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 7c8abda147..1fa542ba4f 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 ccc4956d6f..3009cbaa58 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 11db4f6ed8..eb0d749561 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 6e7c046dbb..00ede89920 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 9017419de7..42f8128620 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 0bba28a716..2880426adc 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 99ec59d5a5..b27775df4d 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 396abddd7e..219f21996a 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 23e8956570..44f5e2f68c 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 f9596efb8f..a74b18fdc4 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 4bc69166b7..eb09c25c65 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 2562a4fc5d..37e4e9a50e 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 0f6fd4a10e..3ad9beacd1 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 0610019755..ce322941eb 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 922816541e..a5b9f9b235 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 64b5befd07..126585fd03 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 4b324633d4..e736acad11 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 9343440ece..c59b686f6e 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 e3dfea8e37..365d749e53 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 17213f17bd..b5b7f03214 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 db2aeef24d..d45d38cac5 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 4e04d4674f..c37f6bdec6 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 538c212313..bf0d7d5d7b 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 7c4d81ff98..e43a9f5eb7 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 4dec416253..c2af58bcbd 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 c96284fffd..668688acf5 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 ce21918b81..09cc994c2f 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 3515b514da..fd63730eb2 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 ce52d78846..96e314500c 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 c887ae3f9d..ff63be2856 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 d9e87e15df..7c113f5b58 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 5d5b4550f8..b96640f23f 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 9bef3a6e40..3e930686e2 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 d2c9be0e84..ff56201323 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 0f36b6b037..4943e6cc19 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 8ea7611d99..86af7ae9a7 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 9b686c1633..f8566fd6f0 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 c674923d1b..79a508e1c3 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 662685c086..f6ea9461b6 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 8610f890f5..d49a024755 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 bc5a38e457..68fcabdcc4 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 dc6a1bee60..25de43c0d1 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 ad1a346688..677ff22de3 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 dc12eaab08..038517f0b5 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 2777ad5dbd..60f5a0ad3f 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 81079e4bce..bb5763ffcf 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 271d91f328..737a28c223 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 c8f54ebaa2..07032f09b5 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 567abdcc6e..b03d5baf9b 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 2826e44eb1..240b53a112 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 1e7c8dce62..b66ff6416e 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 7078512dbb..8ae98c38be 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 56ee494c36..9da0021edd 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 0bf859b48f..a2b6d9c832 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 f5a58a73c1..3a5c2b5bec 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 87c85c5bd6..02ca76851d 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 a561f71113..08f18cf11a 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 21887fc80a..54c9607694 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 d154e1a17f..d8fd49eba0 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 4b6e83a07e..5e379a9e68 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 61c5971980..234bb1a4e5 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 479d349d54..4a14b8e5e9 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 0f9fa518cd..fb839f0fb2 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 8c5fa49ec9..19112b90b8 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 21edda41c8..46c7bee946 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 e86b1d3eeb..75ce7d839e 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 e764ef5b67..f1ad7da2f4 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 dba9f6c6b3..151dbb5930 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 6b2aecdd0a..f269cff8ce 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 2c4e70b179..8662d2dc46 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 685e53a32a..bd4bf9cfb9 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 f4109a6aeb..104352590b 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 1f51f17d5c..3a05b8eb67 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 83f755b2b6..b17d74161d 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 43a97cf1ea..9b27487c65 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 0a6644b96b..29fb0e55f0 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 9151f0fac2..1a7532443b 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 6b64034a1f..246763d2ac 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 9ec3a54c54..4b34936417 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 539b633ed7..1a30131b00 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 5ce4fec7e4..6bf586c83a 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 35caa9885f..451de46a79 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 f390c5c95a..fc90449fd9 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 6c8450c2aa..0a84fa8e51 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 8bccbe379c..e871afb8c8 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 0831c1e833..246763d2ac 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 ccdd34b231..4b34936417 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 026a0a6b28..1a30131b00 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 cf79272c38..6bf586c83a 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 9af9049a37..451de46a79 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 e95257f51f..fc90449fd9 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 4ccb36a6c7..0a84fa8e51 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 be0ac479ae..e871afb8c8 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 599099f584..36cf9100d6 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 eebc20decc..10e10aecd0 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 76fcd88e6f..521b8056e4 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 37ec79f53e..7a7b9dc6fe 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 4ba137b8b6..478d49307c 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 6cf1053604..db3390cb10 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 3fe20cfbe6..74da492b91 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 bf10029457..3ab057101f 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 8f576e11d3..9c399bd7ec 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 eb90843edd..2e1f2607a9 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 0938dd239d..0dfc70dd40 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 e3fc4d2864..a87f8f985d 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 56d220814e..f0ea7647b7 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 5ed63fd489..2cecb5552e 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 e0afebaec1..17d42437f7 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 cf360ab0fd..ef08c177db 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 89bf3f4d81..03d3aacd75 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 6375042797..cf75afe0d3 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 4c0e95883b..d2996036a1 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 1714b3401f..af73db3a13 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 4e5c7711bc..764ac2bc86 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 eb5a839543..13023871ec 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 a1e01c7fb3..8a548fe07b 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 2dffdb7fde..e742adef80 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 dfc996f599..af23c64938 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 2bbedf80d8..76ad72a6c8 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 dbbcbd64b8..39b4247b0b 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 6e7450270c..1178cbc15c 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 da9dcdc466..a9e0e25a16 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 ed8215824c..69d68eb247 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 60cd4b294a..d8315d4215 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 e85a558664..f20c20e24d 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 3831e860c0..0e5cde93f1 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 9c2575da80..9a0151451a 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 0a667bbba6..1c3ded4c20 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 6f5e863de7..8fa714bbff 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 6726c8a942..5f071b1010 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 195b4ecfa0..f33f72d2c4 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 c3bb507fc4..9eefe4889a 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 02be49fbfc..57a5d49d10 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 02a7938266..0c538ac1a4 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 a43c04e333..15101adbad 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 93ccc1053e..5fdf2a0c61 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 2604d27729..79e9c9f26f 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 61fae82b49..b2d691da00 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 232c9d721a..8be1403d43 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 bc28e3a7d0..74148fe94f 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 d906232044..38793d85f0 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 5a79737e04..67e6e556fa 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 81e9cfe7d6..9f4fa5b195 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 899e682bfd..b83373cade 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 1a8cf00bc1..b373b2e340 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 157e84f224..374f13d33f 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 c7884d6299..db765f21bd 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 d99b90067e..d51aa86272 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 281d4c404d..388ca2abc2 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 d8d43c0fe6..9d86b842b2 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 3a1bbe6876..8d8075cbfc 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 76b7dd9fc2..77092f6fb1 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 ada3eaead0..571a162249 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 2436a5e32e..c475ffd907 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 f98abe3a69..3e62429728 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 ffcde89d9f..e309e5ab68 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 58da0e1741..5806b6bdd4 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 64ee029adc..9f6599e8d6 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 9d6113c370..d101439a22 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 509d297485..f5e721a0af 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 40932f97d7..79a222c9cb 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 7cf196a843..1c48a39591 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 7b5d3a90c0..41b759c408 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 91cf08d67e..fbfa600cf7 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 586749424e..30748b8f4a 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 dee6da0d89..647100c930 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 40eaeefc8a..39683682b0 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 9d55e7d2b4..3721193f10 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 7da702b50d..2b0d72b92f 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 2eb6b1444b..7222690fdf 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 693007ea4e..9dcddf1825 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 e8cb04a98b..c37065b75f 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 32b02f3dc3..a718780386 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 ce434af377..57f6b62fda 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 996d32e946..ebd0792bdc 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 c405777168..2c99079deb 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 842ae17ec1..d544746fd2 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 ae522aef05..bc9f05799f 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 c5af425e4e..001d123298 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 f6afa45c3b..5706eb5b92 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 b6059ff0d2..77211056ad 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 6b7da0d6cf..98fbfff74a 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 0e5c635c3e..5fdeac2408 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 238ba82778..5509d7ed62 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 2ed2d538e5..bf6aca5760 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 8da420c97e..e0911083e2 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 777d8aa07d..ca56a0bae6 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 25069ea5ff..7d40786ce9 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 aee7db558e..591e572576 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 3a3d7a155f..845c180011 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 3540eb4372..2714c99ffd 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 f72b023817..3f0cb79682 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 a433015b13..058975a90c 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 fe07d92bac..1c9a2e4656 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 de3ce0cbd8..1c94be1946 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 60b810511c..1d2457d222 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 23809f6306..0aabca53a8 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 08e873e5f8..ecbdf25cf6 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 c7571c35b7..efa0af1a1c 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 46b9a43524..e42e347fd8 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 301369af13..0c2d91ad22 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 1897a2b1bc..681106a4f8 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 c51ef21c18..f63a583dd6 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 149405fee9..0388c39f7e 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 faede8145c..d1879bad4c 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 200b10a0d1..3398707488 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 638b3c1e61..6cb762af90 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 264dc865c8..af8163f45e 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 e08821d450..4ba7aea6ba 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 cd2e4c7dda..9c10b96638 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 c84db7ee82..5bbf0df3f3 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 603dccff48..51518c8265 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 e786dce211..05f3d2cd2f 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 74f18a45dc..351e005369 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 2bfca388dc..eeccea3d0e 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 66199d8e68..f0824897bd 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 3caf4a162e..0d107c6175 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 cad2b1d499..af0c2e3175 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 a085095b33..2b0992e0f0 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 bcbd308789..247545b140 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 59ecfada70..1072e8da67 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 511cd420f9..5049dc48dc 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 70fc98d1cb..dea8e95726 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 b79dde932a..ed5e3beeac 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 7ff587df09..ff13cd0c1d 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 4c1a9513d5..2e427ca2cc 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 09d2bb8a7d..1e58dd4a80 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 e396257e97..4a32a60b4a 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 2118bbd59b..00f19b8dd1 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 a62a586f62..38133806b2 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 f4f4d5fc21..9540560d51 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 9dee038565..49a474f816 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 98b40ed89f..040112c6a8 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 4395a8cbbb..9c17e491bd 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 b3e1863f5f..1be8789a30 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 47267078da..8d141a44a2 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 3688755134..6963634baa 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 bd9990f971..652e834460 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 5c74b8d122..0e15ff07aa 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 f9c6adfa87..97676a3bc0 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 afb4134d8d..d9d5956d5f 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 79288c73bf..26c619121c 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 e6a09b6198..70d583f307 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 e1230cd785..a20b28afbd 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 9918ad4776..f68f5415d6 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 ee07bd7f0f..85f74111e3 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 ad4d687b28..b930cf2400 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 204ca15726..fb85c61ed9 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 12610b12f6..07a6faf47b 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 14dadcdb8f..6dca5e7343 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 57419880af..753ecd9eb7 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 8e6bfd905c..f959cf68fa 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 b2ff0c73d9..65b86f0e55 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 3a81437d0c..ed51569ac3 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 88125d8a21..f331878ad6 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 d747cd8e9e..1414887acd 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 6ee393e82c..9aa31da25a 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 6c43026289..a10359a8c7 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 ebff0ea608..987de6a11d 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 9075628beb..a01a1798a8 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 9f5c926cfc..f8bd405fcf 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 69bdeda208..44412ab8e3 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 b90b1296af..e9aa6d0c14 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 14220dc1d8..85a63bdd98 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 507321ff70..559258d730 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 e9429ac14d..3bca471561 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 f030077859..3d63a59c3b 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 a813e545c6..cb714f3c32 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 69be5f6591..cdd1bbe2a4 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 bc8ad45981..512e9fc428 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 608ba06334..d81b88aae3 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 a41f2187e8..bf4f948138 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 df3f1dcd4e..9b22f48a14 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 5006b190b2..66414de9a3 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 a67f40937d..43a8172de4 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 1616824478..e80fabdf69 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 fb49a82ab5..4163e869b8 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 4e5403d4fa..a4d3736353 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 15b031ffd1..2663dd9b38 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 d69b010b07..d8d5dd6073 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 24b4ffac3e..530662dd78 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 49f6cc482c..37746780c9 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 22c679f37b..e05696435a 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 b17a6b2177..17d5e9ead6 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 76429b0150..4d84e0993c 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 2faf424a89..740549ab6d 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 7821bfa617..013d410007 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 23f88b7516..fc49c618a6 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 77ce25b128..540d44b748 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 bc370e4c8f..3ac47823cd 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 bd29bb4852..9a3fdd71ce 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 7e25df847a..7110355796 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 0f8f3c7edc..7691af79e5 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 19ad5e1ed4..36dcc2326c 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 12dcd81210..c9531a148d 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 f0257cdc32..2a026dfae1 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 3267ad2dc3..d3c8621b41 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 28775941b2..537078079e 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 1841774431..8e20a44d6f 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 e9319121f0..fb1a982aba 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 ccbc53d8e3..f5b0b0a077 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 36a23e9124..758289401b 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 06799b8d4b..d9a391b6b9 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 f4560b62f3..be1e63642c 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 2ca9ddd64e..5cf22c3091 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 8882e6e249..bf4ac93784 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 f81aa04c09..ed9e64f1fc 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 e9250e3246..0a7de6630a 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 dac06e6e63..9b64a7409c 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 4b7865d14f..50b7fa963b 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 a7c4f0d811..5588da69ad 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 39ed8f202e..2a28919909 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