Skip to content

Commit 9c248fe

Browse files
authored
Merge pull request #221 from aguibert/tck
Add JSON-B TCK tests to repo
2 parents c84e585 + 0650b22 commit 9c248fe

File tree

276 files changed

+21170
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+21170
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ String aliceJson = "{\"id\":5678,\"name\":\"Alice\",\"age\":42}";
5252
User alice = jsonb.fromJson(aliceJson, User.class);
5353
```
5454

55+
## How to run the TCK tests
56+
57+
The JSON-B TCK tests are produced as a Maven artifact where the tests use Arquillian + JUnit. To run the TCK tests using your implementation,
58+
include the TCK module and apply the appropriate Arquillian container. See the [Eclipse Yasson](https://github.com/eclipse-ee4j/yasson) repository for an example of this.
59+
5560
## Links
5661

5762
- [Official web site](https://eclipse-ee4j.github.io/jsonb-api)

api/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@
9191
<skip.release.tests>false</skip.release.tests>
9292
<spec.version>1.1</spec.version>
9393
<jakarta.json.version>2.0.0-RC1</jakarta.json.version>
94+
<!-- The version of JSON-B API to compare against to verify we follow semantic versioning rules -->
95+
<baseline.compare.version>1.0.2</baseline.compare.version>
9496
<api_package>jakarta.json.bind</api_package>
9597
<legal.doc.source>${project.basedir}/..</legal.doc.source>
9698
<vendor.name>Oracle Corporation</vendor.name>
@@ -552,6 +554,25 @@
552554
<groupId>org.glassfish.build</groupId>
553555
<artifactId>spec-version-maven-plugin</artifactId>
554556
</plugin>
557+
<!-- Ensures that we follow semantic versioning rules -->
558+
<plugin>
559+
<groupId>biz.aQute.bnd</groupId>
560+
<artifactId>bnd-baseline-maven-plugin</artifactId>
561+
<version>4.3.0</version>
562+
<configuration>
563+
<base>
564+
<version>${baseline.compare.version}</version>
565+
</base>
566+
</configuration>
567+
<executions>
568+
<execution>
569+
<id>baseline</id>
570+
<goals>
571+
<goal>baseline</goal>
572+
</goals>
573+
</execution>
574+
</executions>
575+
</plugin>
555576
</plugins>
556577
</build>
557578

tck/pom.xml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2020 IBM and/or its affiliates. All rights reserved.
5+
6+
This program and the accompanying materials are made available under the
7+
terms of the Eclipse Public License v. 2.0, which is available at
8+
http://www.eclipse.org/legal/epl-2.0.
9+
10+
This Source Code may also be made available under the following Secondary
11+
Licenses when the conditions for such availability set forth in the
12+
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
13+
version 2 with the GNU Classpath Exception, which is available at
14+
https://www.gnu.org/software/classpath/license.html.
15+
16+
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
17+
18+
-->
19+
<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">
20+
<modelVersion>4.0.0</modelVersion>
21+
22+
<parent>
23+
<groupId>org.eclipse.ee4j</groupId>
24+
<artifactId>project</artifactId>
25+
<version>1.0.6</version>
26+
</parent>
27+
28+
<groupId>jakarta.json.bind</groupId>
29+
<artifactId>jakarta.json.bind-tck</artifactId>
30+
<version>2.0.0-SNAPSHOT</version>
31+
<packaging>jar</packaging>
32+
33+
<name>JSON-B TCK</name>
34+
<description>Jakarta JSON Binding TCK Tests</description>
35+
36+
<licenses>
37+
<license>
38+
<name>Eclipse Public License 2.0</name>
39+
<url>https://projects.eclipse.org/license/epl-2.0</url>
40+
<distribution>repo</distribution>
41+
</license>
42+
<license>
43+
<name>GNU General Public License, version 2 with the GNU Classpath Exception</name>
44+
<url>https://projects.eclipse.org/license/secondary-gpl-2.0-cp</url>
45+
<distribution>repo</distribution>
46+
</license>
47+
</licenses>
48+
49+
<properties>
50+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
51+
<maven.compiler.target>1.8</maven.compiler.target>
52+
<maven.compiler.source>1.8</maven.compiler.source>
53+
</properties>
54+
55+
<dependencies>
56+
<dependency>
57+
<groupId>jakarta.json.bind</groupId>
58+
<artifactId>jakarta.json.bind-api</artifactId>
59+
<version>${project.version}</version>
60+
<scope>provided</scope>
61+
</dependency>
62+
<dependency>
63+
<groupId>jakarta.json</groupId>
64+
<artifactId>jakarta.json-api</artifactId>
65+
<version>2.0.0-RC1</version>
66+
<scope>provided</scope>
67+
</dependency>
68+
<dependency>
69+
<groupId>jakarta.inject</groupId>
70+
<artifactId>jakarta.inject-api</artifactId>
71+
<version>1.0</version>
72+
<scope>provided</scope>
73+
</dependency>
74+
<dependency>
75+
<groupId>org.jboss.arquillian.junit</groupId>
76+
<artifactId>arquillian-junit-container</artifactId>
77+
<version>1.6.0.Final</version>
78+
</dependency>
79+
<dependency>
80+
<groupId>junit</groupId>
81+
<artifactId>junit</artifactId>
82+
<version>4.12</version>
83+
</dependency>
84+
</dependencies>
85+
</project>

0 commit comments

Comments
 (0)