1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
# Jakarta Servlet
This repository contains the code for Jakarta Servlet TCK
About Jakarta Servlet TCK
-------------------------
Jakarta Servlet TCK defines a server-side API for handling HTTP requests and is based on Junit5 and Arquillian.
Building
--------
Prerequisites:
* JDK 17+
* Maven 3.9.0+
Run the build:
`mvn install`
Running TCK
------------
You need to configure your Apache Maven build to run tests from the tck artifacts.
This will be achieved by adding a dependency within your surefire configuration
```xml
<dependencies>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>tck-runtime</artifactId>
</dependency>
</dependencies>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.version}</version>
<configuration>
<dependenciesToScan>
<dependenciesToScan>jakarta.servlet:tck-runtime</dependenciesToScan>
</dependenciesToScan>
<systemProperties>
<!-- if the servlet container doesn't support optional cross context -->
<servlet.tck.support.crossContext>false</servlet.tck.support.crossContext>
<!-- if the servlet container doesn't support optional http2 push -->
<servlet.tck.support.http2Push>false</servlet.tck.support.http2Push>
<!--
the slf4j impl to include within the deployed wars, default value is org.slf4j:slf4j-simple
-->
<servlet.tck.slf4jimpl>org.slf4j:slf4j-simple</servlet.tck.slf4jimpl>
</systemProperties>
</configuration>
</plugin>
```
|