Skip to content

Commit

Permalink
Add standalone Jakarta JSON Processing Pluggability TCK
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Pinčuk <alexander.v.pinchuk@gmail.com>
  • Loading branch information
avpinchuk committed Jul 1, 2024
1 parent c9998f3 commit c2ad27a
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 0 deletions.
141 changes: 141 additions & 0 deletions appserver/tests/tck/jsonp_pluggability/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2024 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.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.glassfish.main.tests.tck</groupId>
<artifactId>tck</artifactId>
<version>7.0.16-SNAPSHOT</version>
</parent>

<artifactId>glassfish-external-tck-jsonp-pluggability</artifactId>

<name>Jakarta JSON Processing Pluggability TCK run on GlassFish</name>
<description>This verifies the compliance of Eclipse Glassfish using the Jakarta JSON Processing Pluggability standalone TCK</description>

<properties>
<maven.compiler.release>11</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<tck.version>2.1.1</tck.version>

<glassfish.version>${project.version}</glassfish.version>
<glassfish.root>${project.build.directory}</glassfish.root>
<glassfish.home>${glassfish.root}/glassfish7</glassfish.home>
<glassfish.artifact.id>glassfish</glassfish.artifact.id>

<skip.surefire.report>true</skip.surefire.report>
</properties>

<dependencies>
<dependency>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-tck-tests-pluggability</artifactId>
<version>${tck.version}</version>
<exclusions>
<exclusion>
<groupId>org.junit.jupiter</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<!-- Download and installation of the GlassFish server used for testing -->
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>generate-test-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.glassfish.main.distributions</groupId>
<artifactId>${glassfish.artifact.id}</artifactId>
<version>${glassfish.version}</version>
<type>zip</type>
<overWrite>false</overWrite>
<outputDirectory>${glassfish.root}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<reuseForks>false</reuseForks>
<dependenciesToScan>
<dependency>jakarta.json:jakarta.json-tck-tests-pluggability</dependency>
</dependenciesToScan>
<additionalClasspathElements>
<additionalClasspathElement>${glassfish.home}/glassfish/modules/jakarta.json-api.jar</additionalClasspathElement>
<additionalClasspathElement>${glassfish.home}/glassfish/modules/parsson.jar</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-report-plugin</artifactId>
<executions>
<execution>
<id>generate-test-report</id>
<phase>verify</phase>
<goals>
<goal>report-only</goal>
</goals>
</execution>
</executions>
<configuration>
<linkXRef>false</linkXRef>
<outputName>test-report</outputName>
</configuration>
</plugin>
</plugins>
</build>

<reporting>
<outputDirectory>${project.build.directory}/surefire-reports</outputDirectory>
</reporting>

<profiles>
<profile>
<id>web</id>
<properties>
<glassfish.artifact.id>web</glassfish.artifact.id>
</properties>
</profile>
</profiles>

</project>
1 change: 1 addition & 0 deletions appserver/tests/tck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<module>jwt</module>
<module>websocket</module>
<module>jsonp</module>
<module>jsonp_pluggability</module>
</modules>

<build>
Expand Down

0 comments on commit c2ad27a

Please sign in to comment.