-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not fail when tests when cross context not supported (as it is not…
… mandatory per spec) (#553) * do not fail test when cross context is not supported (servletContext.getContext returning null) * add a sys property to define if cross context is supported or not --------- Signed-off-by: Olivier Lamy <[email protected]>
- Loading branch information
Showing
8 changed files
with
451 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Jakarta Servlet | ||
|
||
This repository contains the code for Jakarta Servle 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 11+ | ||
* 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> | ||
</systemProperties> | ||
</configuration> | ||
</plugin> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.