Skip to content

Commit 0cfd0ac

Browse files
jbescossenivam
authored andcommitted
Moving tests to servlet 4.0
Signed-off-by: Jorge Bescos Gascon <[email protected]>
1 parent 5d377a4 commit 0cfd0ac

File tree

8 files changed

+12
-7
lines changed

8 files changed

+12
-7
lines changed

tests/integration/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
<module>servlet-2.5-mvc-1</module>
108108
<module>servlet-2.5-mvc-2</module>
109109
<module>servlet-2.5-mvc-3</module>
110-
<module>servlet-2.5-mvc-4</module>
111110
<module>servlet-2.5-reload</module>
112111
<module>servlet-3-async</module>
113112
<module>servlet-3-chunked-io</module>
@@ -125,6 +124,7 @@
125124
<module>servlet-3-init-provider</module>
126125
<module>servlet-3-params</module>
127126
<module>servlet-3-sse-1</module>
127+
<module>servlet-4.0-mvc-1</module>
128128
<module>servlet-request-wrapper-binding-2</module>
129129
<module>servlet-request-wrapper-binding</module>
130130
<module>servlet-tests</module>

tests/integration/servlet-2.5-mvc-4/pom.xml renamed to tests/integration/servlet-4.0-mvc-1/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
<version>2.32.0-SNAPSHOT</version>
2727
</parent>
2828

29-
<artifactId>servlet-2.5-mvc-4</artifactId>
29+
<artifactId>servlet-4.0-mvc-1</artifactId>
3030
<packaging>war</packaging>
31-
<name>jersey-tests-integration-servlet-2.5-mvc-4</name>
31+
<name>jersey-tests-integration-servlet-4.0-mvc-1</name>
3232

3333
<description>Servlet integration test - servlet-2.5-mvc-4 - filter - MVC - jersey.config.servlet.JspTemplatesBasePath</description>
3434

@@ -47,9 +47,9 @@
4747
</dependency>
4848

4949
<dependency>
50-
<groupId>javax.servlet</groupId>
51-
<artifactId>servlet-api</artifactId>
52-
<version>${servlet2.version}</version>
50+
<groupId>jakarta.servlet</groupId>
51+
<artifactId>jakarta.servlet-api</artifactId>
52+
<version>${servlet4.version}</version>
5353
</dependency>
5454

5555
<dependency>

tests/integration/servlet-2.5-mvc-4/src/main/webapp/WEB-INF/web.xml renamed to tests/integration/servlet-4.0-mvc-1/src/main/webapp/WEB-INF/web.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
1818
-->
1919

20-
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
20+
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
21+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22+
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
23+
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
24+
version="4.0"
25+
metadata-complete="true">
2126
<filter>
2227
<filter-name>org.glassfish.jersey.tests.integration.servlet_25_mvc_4.MyApplication</filter-name>
2328
<filter-class>org.glassfish.jersey.servlet.ServletContainer</filter-class>

0 commit comments

Comments
 (0)